Skip to content

Commit e78c4c2

Browse files
publish jdcloud-sdk-go version 2.0.9
1 parent 2e950a0 commit e78c4c2

41 files changed

Lines changed: 1476 additions & 105 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

services/cloudsign/ChangeLog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# 更新历史 #
22
| 发布时间 | 版本号 | 更新 | 说明 |
33
| ---------------| -----------|-----------|---------|
4+
| 2024-05-30 | 2.0.9 | 电子签章 |修复模板、印章列表 |
5+
| 2024-03-11 | 2.0.8 | 证书代理 | |
6+
| 2024-01-30 | 2.0.7 | 电子签章新版本sdk | |
47
| 2023-09-22 | 2.0.6 | 增加盖章位置参数 | |
58
| 2023-06-16 | 2.0.5 | 增加获取存证报告接口 | |
69
| 2023-05-15 | 2.0.4 | 添加页面签署功能,兼容已有api签署接口 | |
Lines changed: 106 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
// Copyright 2018 JDCLOUD.COM
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
//
15+
// NOTE: This class is auto generated by the jdcloud code generator program.
16+
17+
package apis
18+
19+
import (
20+
"github.com/jdcloud-api/jdcloud-sdk-go/core"
21+
cloudsign "github.com/jdcloud-api/jdcloud-sdk-go/services/cloudsign/models"
22+
)
23+
24+
type ApplyCertRequest struct {
25+
26+
core.JDCloudRequest
27+
28+
/* */
29+
CertSpec *cloudsign.CertSpec `json:"certSpec"`
30+
}
31+
32+
/*
33+
* param certSpec: (Required)
34+
*
35+
* @Deprecated, not compatible when mandatory parameters changed
36+
*/
37+
func NewApplyCertRequest(
38+
certSpec *cloudsign.CertSpec,
39+
) *ApplyCertRequest {
40+
41+
return &ApplyCertRequest{
42+
JDCloudRequest: core.JDCloudRequest{
43+
URL: "/smqCert:applyCert",
44+
Method: "POST",
45+
Header: nil,
46+
Version: "v1",
47+
},
48+
CertSpec: certSpec,
49+
}
50+
}
51+
52+
/*
53+
* param certSpec: (Required)
54+
*/
55+
func NewApplyCertRequestWithAllParams(
56+
certSpec *cloudsign.CertSpec,
57+
) *ApplyCertRequest {
58+
59+
return &ApplyCertRequest{
60+
JDCloudRequest: core.JDCloudRequest{
61+
URL: "/smqCert:applyCert",
62+
Method: "POST",
63+
Header: nil,
64+
Version: "v1",
65+
},
66+
CertSpec: certSpec,
67+
}
68+
}
69+
70+
/* This constructor has better compatible ability when API parameters changed */
71+
func NewApplyCertRequestWithoutParam() *ApplyCertRequest {
72+
73+
return &ApplyCertRequest{
74+
JDCloudRequest: core.JDCloudRequest{
75+
URL: "/smqCert:applyCert",
76+
Method: "POST",
77+
Header: nil,
78+
Version: "v1",
79+
},
80+
}
81+
}
82+
83+
/* param certSpec: (Required) */
84+
func (r *ApplyCertRequest) SetCertSpec(certSpec *cloudsign.CertSpec) {
85+
r.CertSpec = certSpec
86+
}
87+
88+
89+
// GetRegionId returns path parameter 'regionId' if exist,
90+
// otherwise return empty string
91+
func (r ApplyCertRequest) GetRegionId() string {
92+
return ""
93+
}
94+
95+
type ApplyCertResponse struct {
96+
RequestID string `json:"requestId"`
97+
Error core.ErrorResponse `json:"error"`
98+
Result ApplyCertResult `json:"result"`
99+
}
100+
101+
type ApplyCertResult struct {
102+
Success bool `json:"success"`
103+
Message string `json:"message"`
104+
Code string `json:"code"`
105+
Data cloudsign.CertResp `json:"data"`
106+
}

services/cloudsign/apis/DeleteStamp.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func NewDeleteStampRequest(
3939

4040
return &DeleteStampRequest{
4141
JDCloudRequest: core.JDCloudRequest{
42-
URL: "/stamp/{stampId}",
42+
URL: "/smqStamp/{stampId}:deleteStamp",
4343
Method: "DELETE",
4444
Header: nil,
4545
Version: "v1",
@@ -57,7 +57,7 @@ func NewDeleteStampRequestWithAllParams(
5757

5858
return &DeleteStampRequest{
5959
JDCloudRequest: core.JDCloudRequest{
60-
URL: "/stamp/{stampId}",
60+
URL: "/smqStamp/{stampId}:deleteStamp",
6161
Method: "DELETE",
6262
Header: nil,
6363
Version: "v1",
@@ -71,7 +71,7 @@ func NewDeleteStampRequestWithoutParam() *DeleteStampRequest {
7171

7272
return &DeleteStampRequest{
7373
JDCloudRequest: core.JDCloudRequest{
74-
URL: "/stamp/{stampId}",
74+
URL: "/smqStamp/{stampId}:deleteStamp",
7575
Method: "DELETE",
7676
Header: nil,
7777
Version: "v1",

services/cloudsign/apis/DeleteTemplate.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func NewDeleteTemplateRequest(
3939

4040
return &DeleteTemplateRequest{
4141
JDCloudRequest: core.JDCloudRequest{
42-
URL: "/template/{templateId}",
42+
URL: "/smqTemplate/{templateId}:deleteTemplate",
4343
Method: "DELETE",
4444
Header: nil,
4545
Version: "v1",
@@ -57,7 +57,7 @@ func NewDeleteTemplateRequestWithAllParams(
5757

5858
return &DeleteTemplateRequest{
5959
JDCloudRequest: core.JDCloudRequest{
60-
URL: "/template/{templateId}",
60+
URL: "/smqTemplate/{templateId}:deleteTemplate",
6161
Method: "DELETE",
6262
Header: nil,
6363
Version: "v1",
@@ -71,7 +71,7 @@ func NewDeleteTemplateRequestWithoutParam() *DeleteTemplateRequest {
7171

7272
return &DeleteTemplateRequest{
7373
JDCloudRequest: core.JDCloudRequest{
74-
URL: "/template/{templateId}",
74+
URL: "/smqTemplate/{templateId}:deleteTemplate",
7575
Method: "DELETE",
7676
Header: nil,
7777
Version: "v1",
Lines changed: 161 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,161 @@
1+
// Copyright 2018 JDCLOUD.COM
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
//
15+
// NOTE: This class is auto generated by the jdcloud code generator program.
16+
17+
package apis
18+
19+
import (
20+
"github.com/jdcloud-api/jdcloud-sdk-go/core"
21+
cloudsign "github.com/jdcloud-api/jdcloud-sdk-go/services/cloudsign/models"
22+
)
23+
24+
type DescribeCertListRequest struct {
25+
26+
core.JDCloudRequest
27+
28+
/* 页码, 默认为1 (Optional) */
29+
PageNumber *int `json:"pageNumber"`
30+
31+
/* 分页大小, 默认为10, 取值范围[10, 100] (Optional) */
32+
PageSize *int `json:"pageSize"`
33+
34+
/* 证书渠道 (Optional) */
35+
CaType *string `json:"caType"`
36+
37+
/* 个人用户姓名或企业名 (Optional) */
38+
Name *string `json:"name"`
39+
40+
/* 证书序列号 (Optional) */
41+
SerialNo *string `json:"serialNo"`
42+
43+
/* 证书算法 (Optional) */
44+
KeyAlg *string `json:"keyAlg"`
45+
46+
/* 证书状态 (Optional) */
47+
CertStatus *int `json:"certStatus"`
48+
}
49+
50+
/*
51+
*
52+
* @Deprecated, not compatible when mandatory parameters changed
53+
*/
54+
func NewDescribeCertListRequest(
55+
) *DescribeCertListRequest {
56+
57+
return &DescribeCertListRequest{
58+
JDCloudRequest: core.JDCloudRequest{
59+
URL: "/smqCert:list",
60+
Method: "GET",
61+
Header: nil,
62+
Version: "v1",
63+
},
64+
}
65+
}
66+
67+
/*
68+
* param pageNumber: 页码, 默认为1 (Optional)
69+
* param pageSize: 分页大小, 默认为10, 取值范围[10, 100] (Optional)
70+
* param caType: 证书渠道 (Optional)
71+
* param name: 个人用户姓名或企业名 (Optional)
72+
* param serialNo: 证书序列号 (Optional)
73+
* param keyAlg: 证书算法 (Optional)
74+
* param certStatus: 证书状态 (Optional)
75+
*/
76+
func NewDescribeCertListRequestWithAllParams(
77+
pageNumber *int,
78+
pageSize *int,
79+
caType *string,
80+
name *string,
81+
serialNo *string,
82+
keyAlg *string,
83+
certStatus *int,
84+
) *DescribeCertListRequest {
85+
86+
return &DescribeCertListRequest{
87+
JDCloudRequest: core.JDCloudRequest{
88+
URL: "/smqCert:list",
89+
Method: "GET",
90+
Header: nil,
91+
Version: "v1",
92+
},
93+
PageNumber: pageNumber,
94+
PageSize: pageSize,
95+
CaType: caType,
96+
Name: name,
97+
SerialNo: serialNo,
98+
KeyAlg: keyAlg,
99+
CertStatus: certStatus,
100+
}
101+
}
102+
103+
/* This constructor has better compatible ability when API parameters changed */
104+
func NewDescribeCertListRequestWithoutParam() *DescribeCertListRequest {
105+
106+
return &DescribeCertListRequest{
107+
JDCloudRequest: core.JDCloudRequest{
108+
URL: "/smqCert:list",
109+
Method: "GET",
110+
Header: nil,
111+
Version: "v1",
112+
},
113+
}
114+
}
115+
116+
/* param pageNumber: 页码, 默认为1(Optional) */
117+
func (r *DescribeCertListRequest) SetPageNumber(pageNumber int) {
118+
r.PageNumber = &pageNumber
119+
}
120+
/* param pageSize: 分页大小, 默认为10, 取值范围[10, 100](Optional) */
121+
func (r *DescribeCertListRequest) SetPageSize(pageSize int) {
122+
r.PageSize = &pageSize
123+
}
124+
/* param caType: 证书渠道(Optional) */
125+
func (r *DescribeCertListRequest) SetCaType(caType string) {
126+
r.CaType = &caType
127+
}
128+
/* param name: 个人用户姓名或企业名(Optional) */
129+
func (r *DescribeCertListRequest) SetName(name string) {
130+
r.Name = &name
131+
}
132+
/* param serialNo: 证书序列号(Optional) */
133+
func (r *DescribeCertListRequest) SetSerialNo(serialNo string) {
134+
r.SerialNo = &serialNo
135+
}
136+
/* param keyAlg: 证书算法(Optional) */
137+
func (r *DescribeCertListRequest) SetKeyAlg(keyAlg string) {
138+
r.KeyAlg = &keyAlg
139+
}
140+
/* param certStatus: 证书状态(Optional) */
141+
func (r *DescribeCertListRequest) SetCertStatus(certStatus int) {
142+
r.CertStatus = &certStatus
143+
}
144+
145+
146+
// GetRegionId returns path parameter 'regionId' if exist,
147+
// otherwise return empty string
148+
func (r DescribeCertListRequest) GetRegionId() string {
149+
return ""
150+
}
151+
152+
type DescribeCertListResponse struct {
153+
RequestID string `json:"requestId"`
154+
Error core.ErrorResponse `json:"error"`
155+
Result DescribeCertListResult `json:"result"`
156+
}
157+
158+
type DescribeCertListResult struct {
159+
CertList []cloudsign.CertInfo `json:"certList"`
160+
TotalCount int `json:"totalCount"`
161+
}

services/cloudsign/apis/DescribeStampList.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ func NewDescribeStampListRequest(
4444

4545
return &DescribeStampListRequest{
4646
JDCloudRequest: core.JDCloudRequest{
47-
URL: "/stamp",
47+
URL: "/smqStamp:describeStampList",
4848
Method: "GET",
4949
Header: nil,
5050
Version: "v1",
@@ -65,7 +65,7 @@ func NewDescribeStampListRequestWithAllParams(
6565

6666
return &DescribeStampListRequest{
6767
JDCloudRequest: core.JDCloudRequest{
68-
URL: "/stamp",
68+
URL: "/smqStamp:describeStampList",
6969
Method: "GET",
7070
Header: nil,
7171
Version: "v1",
@@ -81,7 +81,7 @@ func NewDescribeStampListRequestWithoutParam() *DescribeStampListRequest {
8181

8282
return &DescribeStampListRequest{
8383
JDCloudRequest: core.JDCloudRequest{
84-
URL: "/stamp",
84+
URL: "/smqStamp:describeStampList",
8585
Method: "GET",
8686
Header: nil,
8787
Version: "v1",
@@ -118,4 +118,6 @@ type DescribeStampListResponse struct {
118118
type DescribeStampListResult struct {
119119
StampList []cloudsign.StampInfo `json:"stampList"`
120120
TotalCount int `json:"totalCount"`
121+
PageNumber int `json:"pageNumber"`
122+
PageSize int `json:"pageSize"`
121123
}

0 commit comments

Comments
 (0)