-
Notifications
You must be signed in to change notification settings - Fork 3
/
bizlicgxv2h5api.go
183 lines (169 loc) · 6.4 KB
/
bizlicgxv2h5api.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
package api
import (
"context"
)
// BizlicGxV2H5APIService 云账户共享大额 H5+API
type BizlicGxV2H5APIService interface {
// GxV2H5APIPreCollectBizlicMsg 工商实名信息录入
GxV2H5APIPreCollectBizlicMsg(context.Context, *GxV2H5APIPreCollectBizlicMsgRequest) (*GxV2H5APIPreCollectBizlicMsgResponse, error)
// GxV2H5APIGetStartUrl 预启动
GxV2H5APIGetStartUrl(context.Context, *GxV2H5APIGetStartUrlRequest) (*GxV2H5APIGetStartUrlResponse, error)
// GxV2H5APIGetAicStatus 查询个体工商户状态
GxV2H5APIGetAicStatus(context.Context, *GxV2H5APIGetAicStatusRequest) (*GxV2H5APIGetAicStatusResponse, error)
}
// bizlicGxV2H5APIServiceImpl BizlicGxV2H5APIService 接口实现
type bizlicGxV2H5APIServiceImpl struct {
cc Invoker
}
// NewBizlicGxV2H5APIService 创建客户端
func NewBizlicGxV2H5APIService(cc Invoker) BizlicGxV2H5APIService {
return &bizlicGxV2H5APIServiceImpl{cc}
}
// GxV2H5APIPreCollectBizlicMsg 工商实名信息录入
func (c *bizlicGxV2H5APIServiceImpl) GxV2H5APIPreCollectBizlicMsg(ctx context.Context, in *GxV2H5APIPreCollectBizlicMsgRequest) (*GxV2H5APIPreCollectBizlicMsgResponse, error) {
out := new(GxV2H5APIPreCollectBizlicMsgResponse)
err := c.cc.Invoke(ctx, "POST", "/api/aic/sharing-economy/api-h5/v1/collect", false, in, out)
if err != nil {
return nil, err
}
return out, nil
}
// GxV2H5APIGetStartUrl 预启动
func (c *bizlicGxV2H5APIServiceImpl) GxV2H5APIGetStartUrl(ctx context.Context, in *GxV2H5APIGetStartUrlRequest) (*GxV2H5APIGetStartUrlResponse, error) {
out := new(GxV2H5APIGetStartUrlResponse)
err := c.cc.Invoke(ctx, "GET", "/api/aic/sharing-economy/api-h5/v1/h5url", false, in, out)
if err != nil {
return nil, err
}
return out, nil
}
// GxV2H5APIGetAicStatus 查询个体工商户状态
func (c *bizlicGxV2H5APIServiceImpl) GxV2H5APIGetAicStatus(ctx context.Context, in *GxV2H5APIGetAicStatusRequest) (*GxV2H5APIGetAicStatusResponse, error) {
out := new(GxV2H5APIGetAicStatusResponse)
err := c.cc.Invoke(ctx, "GET", "/api/aic/sharing-economy/api-h5/v1/status", false, in, out)
if err != nil {
return nil, err
}
return out, nil
}
// GxV2H5APIPreCollectBizlicMsgRequest 工商实名信息录入请求
type GxV2H5APIPreCollectBizlicMsgRequest struct {
// 平台企业 ID
DealerID string `json:"dealer_id,omitempty"`
// 综合服务主体 ID
BrokerID string `json:"broker_id,omitempty"`
// 平台企业端的用户 ID
DealerUserID string `json:"dealer_user_id,omitempty"`
// 手机号
PhoneNo string `json:"phone_no,omitempty"`
// 身份证号码
IDCard string `json:"id_card,omitempty"`
// 姓名
RealName string `json:"real_name,omitempty"`
// 身份证住址
IDCardAddress string `json:"id_card_address,omitempty"`
// 身份证签发机关
IDCardAgency string `json:"id_card_agency,omitempty"`
// 身份证民族
IDCardNation string `json:"id_card_nation,omitempty"`
// 身份证有效期开始时间
IDCardValidityStart string `json:"id_card_validity_start,omitempty"`
// 身份证有效期结束时间
IDCardValidityEnd string `json:"id_card_validity_end,omitempty"`
}
// GxV2H5APIPreCollectBizlicMsgResponse 工商实名信息录入返回
type GxV2H5APIPreCollectBizlicMsgResponse struct {
// 平台企业端的用户 ID
DealerUserID string `json:"dealer_user_id,omitempty"`
}
// GxV2H5APIGetStartUrlRequest 预启动请求
type GxV2H5APIGetStartUrlRequest struct {
// 平台企业 ID
DealerID string `json:"dealer_id,omitempty"`
// 综合服务主体 ID
BrokerID string `json:"broker_id,omitempty"`
// 平台企业端的用户 ID
DealerUserID string `json:"dealer_user_id,omitempty"`
// 客户端类型
ClientType int32 `json:"client_type,omitempty"`
// 异步通知 URL
NotifyURL string `json:"notify_url,omitempty"`
// H5 页面主题颜色
Color string `json:"color,omitempty"`
// 跳转 URL
ReturnURL string `json:"return_url,omitempty"`
// H5 页面 Title
CustomerTitle int32 `json:"customer_title,omitempty"`
}
// GxV2H5APIGetStartUrlResponse 预启动返回
type GxV2H5APIGetStartUrlResponse struct {
// 跳转 URL
H5URL string `json:"h5_url,omitempty"`
}
// GxV2H5APIGetAicStatusRequest 查询个体工商户状态请求
type GxV2H5APIGetAicStatusRequest struct {
// 平台企业 ID
DealerID string `json:"dealer_id,omitempty"`
// 综合服务主体 ID
BrokerID string `json:"broker_id,omitempty"`
// 用户唯一标识
OpenID string `json:"open_id,omitempty"`
// 姓名
RealName string `json:"real_name,omitempty"`
// 身份证号码
IDCard string `json:"id_card,omitempty"`
// 平台企业端的用户 ID
DealerUserID string `json:"dealer_user_id,omitempty"`
}
// GxV2H5APIGetAicStatusResponse 查询个体工商户状态返回
type GxV2H5APIGetAicStatusResponse struct {
// 用户注册状态
Status int32 `json:"status,omitempty"`
// 注册状态描述
StatusMessage string `json:"status_message,omitempty"`
// 注册详情状态码
StatusDetail int32 `json:"status_detail,omitempty"`
// 注册详情状态码描述
StatusDetailMessage string `json:"status_detail_message,omitempty"`
// 注册发起时间
ApplyedAt string `json:"applyed_at,omitempty"`
// 注册完成时间
RegistedAt string `json:"registed_at,omitempty"`
// 统一社会信用代码
Uscc string `json:"uscc,omitempty"`
// 身份证号码
IDCard string `json:"id_card,omitempty"`
// 姓名
RealName string `json:"real_name,omitempty"`
}
// NotifyGxV2H5APIAicRequest 个体工商户注册/注销结果回调通知
type NotifyGxV2H5APIAicRequest struct {
// 用户唯一标识
OpenID string `json:"open_id,omitempty"`
// 平台企业端的用户 ID
DealerUserID string `json:"dealer_user_id,omitempty"`
// 注册/注销提交时间
SubmitAt string `json:"submit_at,omitempty"`
// 注册/注销完成时间
RegistedAt string `json:"registed_at,omitempty"`
// 用户注册/注销状态
Status int32 `json:"status,omitempty"`
// 注册/注销状态描述
StatusMessage string `json:"status_message,omitempty"`
// 注册/注销详情状态码
StatusDetail int32 `json:"status_detail,omitempty"`
// 注册/注销详情状态码描述
StatusDetailMessage string `json:"status_detail_message,omitempty"`
// 平台企业 ID
DealerID string `json:"dealer_id,omitempty"`
// 综合服务主体 ID
BrokerID string `json:"broker_id,omitempty"`
// 统一社会信用代码
Uscc string `json:"uscc,omitempty"`
// 身份证号码
IDCard string `json:"id_card,omitempty"`
// 姓名
RealName string `json:"real_name,omitempty"`
// 回调类型
Type int32 `json:"type,omitempty"`
}