Skip to content

Commit 3f1fddf

Browse files
committed
Change links
1 parent 41e622d commit 3f1fddf

File tree

7 files changed

+15
-13
lines changed

7 files changed

+15
-13
lines changed

Sources/TencentSCFEvents/APIGateway/APIGateway.swift

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import class Foundation.JSONDecoder
1616
import class Foundation.JSONEncoder
1717

18-
// https://cloud.tencent.com/document/product/583/12513
18+
// https://intl.cloud.tencent.com/document/product/583/12513
1919

2020
public enum APIGateway {
2121
/// `APIGateway.Request` contains data coming from the API Gateway.
@@ -50,12 +50,7 @@ public enum APIGateway {
5050
}
5151

5252
/// `APIGateway.Response` stores response ready for sending to the API Gateway.
53-
public struct Response: Encodable {
54-
public let statusCode: HTTPResponseStatus
55-
public let headers: HTTPHeaders
56-
public let body: String
57-
public let isBase64Encoded: Bool
58-
}
53+
public typealias Response = APIResponse
5954
}
6055

6156
internal extension APIGateway {

Sources/TencentSCFEvents/APIGateway/Request+Decodable.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
//
1313
//===------------------------------------------------------------------------------------===//
1414

15-
// https://cloud.tencent.com/document/product/583/12513
15+
// https://intl.cloud.tencent.com/document/product/583/12513
1616

1717
extension APIGateway.Request: Decodable {
1818
enum CodingKeys: String, CodingKey {

Sources/TencentSCFEvents/APIGateway/Response+Init.swift renamed to Sources/TencentSCFEvents/APIResponse.swift

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,14 @@ import struct Foundation.Data
1616

1717
// https://cloud.tencent.com/document/product/583/12513
1818

19-
extension APIGateway.Response {
19+
public struct APIResponse: Encodable {
20+
public let statusCode: HTTPResponseStatus
21+
public let headers: HTTPHeaders
22+
public let body: String
23+
public let isBase64Encoded: Bool
24+
}
25+
26+
extension APIResponse {
2027
public init(
2128
statusCode: HTTPResponseStatus,
2229
headers: HTTPHeaders = [:],

Sources/TencentSCFEvents/CKafka.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
//
1313
//===------------------------------------------------------------------------------------===//
1414

15-
// https://cloud.tencent.com/document/product/583/17530
15+
// https://intl.cloud.tencent.com/document/product/583/17530
1616

1717
public enum CKafka {
1818
public struct Event: Decodable, Equatable {

Sources/TencentSCFEvents/CMQTopic.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import struct Foundation.Date
1616

17-
// https://cloud.tencent.com/document/product/583/11517
17+
// https://intl.cloud.tencent.com/document/product/583/11517
1818

1919
public enum CMQ {
2020
public enum Topic {

Sources/TencentSCFEvents/COS/COS.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import struct Foundation.Date
1616
import struct Foundation.URL
1717

18-
// https://cloud.tencent.com/document/product/583/9707
18+
// https://intl.cloud.tencent.com/document/product/583/9707
1919

2020
public enum COS {
2121
public struct Event: Decodable, Equatable {

Sources/TencentSCFEvents/CTimer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import struct Foundation.Date
1616

17-
// https://cloud.tencent.com/document/product/583/9708
17+
// https://intl.cloud.tencent.com/document/product/583/9708
1818

1919
public enum CTimer {
2020
public struct Event: Decodable, Equatable {

0 commit comments

Comments
 (0)