File tree Expand file tree Collapse file tree 5 files changed +16
-5
lines changed
Sources/AlibabacloudOcrApi20210707 Expand file tree Collapse file tree 5 files changed +16
-5
lines changed Original file line number Diff line number Diff line change 11Pod ::Spec . new do |spec |
22
33 spec . name = "AlibabacloudOcrApi20210707"
4- spec . version = "2.0.4 "
4+ spec . version = "2.0.5 "
55 spec . license = "Apache 2.0"
66 spec . summary = "Alibaba Cloud ocr-api (20210707) SDK Library for Swift"
77 spec . homepage = "https://github.com/alibabacloud-sdk-swift/ocr-api-20210707"
Original file line number Diff line number Diff line change 1717要使用 [ Carthage] ( https://github.com/Carthage/Carthage ) 将 ` AlibabacloudOcrApi20210707 ` 集成到你的 Xcode 项目中,需要在 ` Cartfile ` 中定义以下内容:
1818
1919``` ogdl
20- github "alibabacloud-sdk-swift/ocr-api-20210707" "2.0.4 "
20+ github "alibabacloud-sdk-swift/ocr-api-20210707" "2.0.5 "
2121```
2222
2323### Swift 包管理工具
@@ -26,7 +26,7 @@ github "alibabacloud-sdk-swift/ocr-api-20210707" "2.0.4"
2626
2727``` swift
2828dependencies: [
29- .package (url : " https://github.com/alibabacloud-sdk-swift/ocr-api-20210707.git" , from : " 2.0.4 " )
29+ .package (url : " https://github.com/alibabacloud-sdk-swift/ocr-api-20210707.git" , from : " 2.0.5 " )
3030]
3131```
3232
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ English | [简体中文](README-CN.md)
1717To integrate ` AlibabacloudOcrApi20210707 ` into your Xcode project using [ Carthage] ( https://github.com/Carthage/Carthage ) , specify it in your ` Cartfile ` :
1818
1919``` ogdl
20- github "alibabacloud-sdk-swift/ocr-api-20210707" "2.0.4 "
20+ github "alibabacloud-sdk-swift/ocr-api-20210707" "2.0.5 "
2121```
2222
2323### Swift Package Manager
@@ -26,7 +26,7 @@ To integrate `AlibabacloudOcrApi20210707` into your Xcode project using [Swift P
2626
2727``` swift
2828dependencies: [
29- .package (url : " https://github.com/alibabacloud-sdk-swift/ocr-api-20210707.git" , from : " 2.0.4 " )
29+ .package (url : " https://github.com/alibabacloud-sdk-swift/ocr-api-20210707.git" , from : " 2.0.5 " )
3030]
3131```
3232
Original file line number Diff line number Diff line change @@ -314,6 +314,9 @@ open class Client : AlibabacloudOpenApi.Client {
314314 public func recognizeBasicWithOptions( _ request: RecognizeBasicRequest , _ runtime: TeaUtils . RuntimeOptions ) async throws -> RecognizeBasicResponse {
315315 try TeaUtils . Client. validateModel ( request)
316316 var query : [ String : Any ] = [ : ]
317+ if ( !TeaUtils. Client. isUnset ( request. needRotate) ) {
318+ query [ " NeedRotate " ] = request. needRotate!;
319+ }
317320 if ( !TeaUtils. Client. isUnset ( request. url) ) {
318321 query [ " Url " ] = request. url ?? " " ;
319322 }
Original file line number Diff line number Diff line change @@ -4267,6 +4267,8 @@ public class RecognizeBankCardResponse : Tea.TeaModel {
42674267}
42684268
42694269public class RecognizeBasicRequest : Tea . TeaModel {
4270+ public var needRotate : Bool ?
4271+
42704272 public var url : String ?
42714273
42724274 public var body : InputStream ?
@@ -4285,6 +4287,9 @@ public class RecognizeBasicRequest : Tea.TeaModel {
42854287
42864288 public override func toMap( ) -> [ String : Any ] {
42874289 var map = super. toMap ( )
4290+ if self . needRotate != nil {
4291+ map [ " NeedRotate " ] = self . needRotate!
4292+ }
42884293 if self . url != nil {
42894294 map [ " Url " ] = self . url!
42904295 }
@@ -4295,6 +4300,9 @@ public class RecognizeBasicRequest : Tea.TeaModel {
42954300 }
42964301
42974302 public override func fromMap( _ dict: [ String : Any ] ) -> Void {
4303+ if dict. keys. contains ( " NeedRotate " ) && dict [ " NeedRotate " ] != nil {
4304+ self . needRotate = dict [ " NeedRotate " ] as! Bool
4305+ }
42984306 if dict. keys. contains ( " Url " ) && dict [ " Url " ] != nil {
42994307 self . url = dict [ " Url " ] as! String
43004308 }
You can’t perform that action at this time.
0 commit comments