Skip to content

Commit 66b7896

Browse files
publish jdcloud-sdk-go version 0.2.8
1 parent c6f429b commit 66b7896

105 files changed

Lines changed: 4321 additions & 9 deletions

File tree

Some content is hidden

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

services/user/ChangeLog.md

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,41 @@
1414
* 增加isRealUser 接口
1515
* 去掉联系人组接口中无法返回的email,mobile字段
1616

17-
2020-03-04 reversion: 0.1.5
18-
* 用户报备对接离职系统
17+
2020-07-08 reversion: 0.1.5
18+
* 去掉用户报备对接离职系统接口
19+
* 用户报备支持渠道系统渠道打标
20+
21+
2020-12-31 reversion: 0.1.6
22+
* describeUserReportProperty 新增返回 reportName
23+
* describeUserResourceType 新增网络专区属性
24+
25+
2021-01-14 reversion: 0.1.7
26+
* 联系人管理优化
27+
28+
2021-04-15 reversion: 0.1.8
29+
* fix describePins
30+
31+
2021-06-23 reversion: 0.1.9
32+
* 增加 createTagForUser,打用户特征标签支持openapi
33+
34+
2022-01-27 reversion: 0.2.0
35+
* 修改 describeUsers接口说明
36+
37+
2022-02-17 reversion: 0.2.1
38+
* 增加 MfaFace,mfa扫脸开启\关闭支持openapi
39+
40+
2022-05-10 reversion: 0.2.2
41+
* 增加 联通子账号登陆校验openapi
42+
43+
2022-06-02 reversion: 0.2.3
44+
* 增加 增加查询账号类型接口
45+
46+
2023-12-08 reversion: 0.2.4
47+
* 增加 manage对应迁移接口
48+
49+
2024-01-23 reversion: 0.2.5
50+
* 增加 getUserByPin
51+
2024-03-21 reversion: 0.2.6
52+
* 增加 运营后台系列接口
53+
2024-06-12 reversion: 0.2.7
54+
* 增加 查询实名信息接口

services/user/apis/CreateTicket.go

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
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+
)
22+
23+
type CreateTicketRequest struct {
24+
25+
core.JDCloudRequest
26+
27+
/* 有效期(默认24,最小1,最大24,单位小时) (Optional) */
28+
Expire *int64 `json:"expire"`
29+
}
30+
31+
/*
32+
*
33+
* @Deprecated, not compatible when mandatory parameters changed
34+
*/
35+
func NewCreateTicketRequest(
36+
) *CreateTicketRequest {
37+
38+
return &CreateTicketRequest{
39+
JDCloudRequest: core.JDCloudRequest{
40+
URL: "/user:createTicket",
41+
Method: "POST",
42+
Header: nil,
43+
Version: "v1",
44+
},
45+
}
46+
}
47+
48+
/*
49+
* param expire: 有效期(默认24,最小1,最大24,单位小时) (Optional)
50+
*/
51+
func NewCreateTicketRequestWithAllParams(
52+
expire *int64,
53+
) *CreateTicketRequest {
54+
55+
return &CreateTicketRequest{
56+
JDCloudRequest: core.JDCloudRequest{
57+
URL: "/user:createTicket",
58+
Method: "POST",
59+
Header: nil,
60+
Version: "v1",
61+
},
62+
Expire: expire,
63+
}
64+
}
65+
66+
/* This constructor has better compatible ability when API parameters changed */
67+
func NewCreateTicketRequestWithoutParam() *CreateTicketRequest {
68+
69+
return &CreateTicketRequest{
70+
JDCloudRequest: core.JDCloudRequest{
71+
URL: "/user:createTicket",
72+
Method: "POST",
73+
Header: nil,
74+
Version: "v1",
75+
},
76+
}
77+
}
78+
79+
/* param expire: 有效期(默认24,最小1,最大24,单位小时)(Optional) */
80+
func (r *CreateTicketRequest) SetExpire(expire int64) {
81+
r.Expire = &expire
82+
}
83+
84+
85+
// GetRegionId returns path parameter 'regionId' if exist,
86+
// otherwise return empty string
87+
func (r CreateTicketRequest) GetRegionId() string {
88+
return ""
89+
}
90+
91+
type CreateTicketResponse struct {
92+
RequestID string `json:"requestId"`
93+
Error core.ErrorResponse `json:"error"`
94+
Result CreateTicketResult `json:"result"`
95+
}
96+
97+
type CreateTicketResult struct {
98+
Ticket string `json:"ticket"`
99+
}

services/user/apis/DescribeUser.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ func NewDescribeUserRequestWithoutParam() *DescribeUserRequest {
7070
}
7171
}
7272

73+
74+
7375
// GetRegionId returns path parameter 'regionId' if exist,
7476
// otherwise return empty string
7577
func (r DescribeUserRequest) GetRegionId() string {

services/user/client/UserClient.go

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ func NewUserClient(credential *core.Credential) *UserClient {
4040
Credential: *credential,
4141
Config: *config,
4242
ServiceName: "user",
43-
Revision: "0.1.5",
43+
Revision: "0.2.8",
4444
Logger: core.NewDefaultLogger(core.LogInfo),
4545
}}
4646
}
@@ -57,6 +57,26 @@ func (c *UserClient) DisableLogger() {
5757
c.Logger = core.NewDummyLogger()
5858
}
5959

60+
/* 创建免登录ticket */
61+
func (c *UserClient) CreateTicket(request *user.CreateTicketRequest) (*user.CreateTicketResponse, error) {
62+
if request == nil {
63+
return nil, errors.New("Request object is nil. ")
64+
}
65+
resp, err := c.Send(request, c.ServiceName)
66+
if err != nil {
67+
return nil, err
68+
}
69+
70+
jdResp := &user.CreateTicketResponse{}
71+
err = json.Unmarshal(resp, jdResp)
72+
if err != nil {
73+
c.Logger.Log(core.LogError, "Unmarshal json failed, resp: %s", string(resp))
74+
return nil, err
75+
}
76+
77+
return jdResp, err
78+
}
79+
6080
/* 查询用户信息 */
6181
func (c *UserClient) DescribeUser(request *user.DescribeUserRequest) (*user.DescribeUserResponse, error) {
6282
if request == nil {
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
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 models
18+
19+
20+
type AttachmentVo struct {
21+
22+
/* null (Optional) */
23+
Id int `json:"id"`
24+
25+
/* pin (Optional) */
26+
Pin string `json:"pin"`
27+
28+
/* 运营给用户填写的备注 (Optional) */
29+
Remark string `json:"remark"`
30+
31+
/* 行业属性 (Optional) */
32+
Industry string `json:"industry"`
33+
34+
/* 子行业属性 (Optional) */
35+
SubIndustry string `json:"subIndustry"`
36+
37+
/* 主营业务 (Optional) */
38+
Business string `json:"business"`
39+
40+
/* 推荐码 (Optional) */
41+
RecommendCode string `json:"recommendCode"`
42+
43+
/* 老用户-邮箱是否修改 (Optional) */
44+
OldUserMailModified string `json:"oldUserMailModified"`
45+
46+
/* 老用户-手机是否修改 (Optional) */
47+
OldUserPhoneModified string `json:"oldUserPhoneModified"`
48+
49+
/* 联系人 (Optional) */
50+
CpName string `json:"cpName"`
51+
52+
/* 网址 (Optional) */
53+
Website string `json:"website"`
54+
55+
/* 联系人国家 (Optional) */
56+
CpState string `json:"cpState"`
57+
58+
/* 联系人省份 (Optional) */
59+
CpProvince string `json:"cpProvince"`
60+
61+
/* 联系人城市 (Optional) */
62+
CpCity string `json:"cpCity"`
63+
64+
/* 主营业务 (Optional) */
65+
CpCountry string `json:"cpCountry"`
66+
67+
/* 联系人国家 (Optional) */
68+
CpAddress string `json:"cpAddress"`
69+
70+
/* 联系人联系电话 (Optional) */
71+
CpTelphone string `json:"cpTelphone"`
72+
73+
/* 商户号 (Optional) */
74+
MerchantId string `json:"merchantId"`
75+
}
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
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 models
18+
19+
20+
type AuthStatusVo struct {
21+
22+
/* 银行账号 (Optional) */
23+
BankAccount string `json:"bankAccount"`
24+
25+
/* 开户行编号 (Optional) */
26+
BankCode string `json:"bankCode"`
27+
28+
/* 是否扫脸实名(已废弃) (Optional) */
29+
LegalFace int `json:"legalFace"`
30+
31+
/* 个人实名方式(描述) (Optional) */
32+
PersonAuthWay string `json:"personAuthWay"`
33+
34+
/* 是否弱实名0否,1是 (Optional) */
35+
WeakAuth int `json:"weakAuth"`
36+
37+
/* 是否需要授权 0否,1是 (Optional) */
38+
AuthorizeStatus int `json:"authorizeStatus"`
39+
40+
/* 开户行名称 (Optional) */
41+
BankName string `json:"bankName"`
42+
43+
/* 企业实名状态 (Optional) */
44+
CompanyAuthStatus int `json:"companyAuthStatus"`
45+
46+
/* 个人实名状态 (Optional) */
47+
PersonAuthStatus int `json:"personAuthStatus"`
48+
49+
/* 企业实名方式(描述) (Optional) */
50+
CompanyAuthWay string `json:"companyAuthWay"`
51+
52+
/* 认证方式(企业) (Optional) */
53+
LegalAuthType int `json:"legalAuthType"`
54+
55+
/* 更新实名认证状态1认证中,0未认证 (Optional) */
56+
AuthType int `json:"authType"`
57+
58+
/* 是否允许更新认证false不允许 (Optional) */
59+
SupportUpdateCompanyAuth bool `json:"supportUpdateCompanyAuth"`
60+
61+
/* 冻结时间 (Optional) */
62+
FrozenTime string `json:"frozenTime"`
63+
64+
/* 是否扫脸实名(已废弃) (Optional) */
65+
LegalAuth bool `json:"legalAuth"`
66+
67+
/* 驳回原因 (Optional) */
68+
RejectReason string `json:"rejectReason"`
69+
70+
/* 京东金融企业实名状态(-1 为认证 1 审核中 2 被驳回 3 未完成认证 4 认证通过) (Optional) */
71+
FromJDWallet int `json:"fromJDWallet"`
72+
73+
/* 京东金融的个人认证状态(-1 未认证 1 已认证) (Optional) */
74+
FromFinance int `json:"fromFinance"`
75+
76+
/* 提交方式0:接口提交,1:组件页面 (Optional) */
77+
IntegrationType int `json:"integrationType"`
78+
79+
/* 企业实名信息 (Optional) */
80+
CompanyAuthInfo CompanyAuthInfoVo `json:"companyAuthInfo"`
81+
82+
/* 个人实名信息 (Optional) */
83+
PersonAuthInfo PersonAuthInfoVo `json:"personAuthInfo"`
84+
}

0 commit comments

Comments
 (0)