Skip to content

Commit 7ce6bd0

Browse files
committed
Update API RecognizeBasic: add param NeedRotate.
1 parent c8ad3ee commit 7ce6bd0

File tree

5 files changed

+16
-5
lines changed

5 files changed

+16
-5
lines changed

AlibabacloudOcrApi20210707.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::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"

README-CN.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
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
2828
dependencies: [
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

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ English | [简体中文](README-CN.md)
1717
To 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
2828
dependencies: [
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

Sources/AlibabacloudOcrApi20210707/Client.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

Sources/AlibabacloudOcrApi20210707/Models.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4267,6 +4267,8 @@ public class RecognizeBankCardResponse : Tea.TeaModel {
42674267
}
42684268

42694269
public 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
}

0 commit comments

Comments
 (0)