|
@@ -0,0 +1,80 @@
|
|
1
|
+package bwfapiao
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+type UnifiedLoginResponse struct {
|
|
5
|
+ Success bool `json:"success"`
|
|
6
|
+ Method string `json:"method"`
|
|
7
|
+ RequestId string `json:"requestId"`
|
|
8
|
+ Response *LoginResponseData `json:"response,omitempty"`
|
|
9
|
+ ErrorResponse *ErrorResponse `json:"errorResponse,omitempty"`
|
|
10
|
+}
|
|
11
|
+
|
|
12
|
+type LoginResponseData struct {
|
|
13
|
+ DigitAccount string `json:"digitAccount"`
|
|
14
|
+ LoginType string `json:"loginType"`
|
|
15
|
+ BatchNo string `json:"batchNo"`
|
|
16
|
+ Status string `json:"status"`
|
|
17
|
+ StatusMessage string `json:"statusMessage"`
|
|
18
|
+ QRCode string `json:"qrCode"`
|
|
19
|
+ QRCodeId string `json:"qrCodeId"`
|
|
20
|
+ EndTime string `json:"endTime"`
|
|
21
|
+}
|
|
22
|
+
|
|
23
|
+type ErrorResponse struct {
|
|
24
|
+ Code int `json:"code"`
|
|
25
|
+ Message string `json:"message"`
|
|
26
|
+ SubCode string `json:"subCode"`
|
|
27
|
+ SubMessage string `json:"subMessage"`
|
|
28
|
+}
|
|
29
|
+
|
|
30
|
+type SEinvoicebasicGetLoginResultResponse struct {
|
|
31
|
+ Success bool `json:"success"`
|
|
32
|
+ Method string `json:"method"`
|
|
33
|
+ RequestID string `json:"requestId"`
|
|
34
|
+ Response LoginResponse `json:"response"`
|
|
35
|
+ ErrorResponse ErrorResponse `json:"errorResponse"`
|
|
36
|
+}
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+type LoginResponse struct {
|
|
40
|
+ DigitAccount string `json:"digitAccount"`
|
|
41
|
+ LoginStatus string `json:"loginStatus"`
|
|
42
|
+ LoginType string `json:"loginType"`
|
|
43
|
+}
|
|
44
|
+
|
|
45
|
+type GetCertifyQrcodeResponse struct {
|
|
46
|
+ Success bool `json:"success"`
|
|
47
|
+ Response GetCertifyQrcodeData `json:"response"`
|
|
48
|
+ ErrorResponse GetCertifyQrcodeError `json:"error_response"`
|
|
49
|
+}
|
|
50
|
+
|
|
51
|
+type GetCertifyQrcodeData struct {
|
|
52
|
+ QRCode string `json:"qrCode"`
|
|
53
|
+ ExpireTime string `json:"expireTime"`
|
|
54
|
+}
|
|
55
|
+
|
|
56
|
+type GetCertifyQrcodeError struct {
|
|
57
|
+ Code int `json:"code"`
|
|
58
|
+ Message string `json:"message"`
|
|
59
|
+}
|
|
60
|
+
|
|
61
|
+type GetQrcodeCertifyResultResponse struct {
|
|
62
|
+ Success bool `json:"success"`
|
|
63
|
+ Response QrcodeCertifyResultData `json:"response"`
|
|
64
|
+ ErrorResponse QrcodeCertifyResultError `json:"error_response"`
|
|
65
|
+}
|
|
66
|
+
|
|
67
|
+type QrcodeCertifyResultData struct {
|
|
68
|
+ TaxNo string `json:"taxNo"`
|
|
69
|
+ DigitAccount string `json:"digitAccount"`
|
|
70
|
+ AuthId string `json:"authId"`
|
|
71
|
+ CertificationStatus string `json:"certificationStatus"`
|
|
72
|
+ CertStatusMessage string `json:"certStatusMessage"`
|
|
73
|
+}
|
|
74
|
+
|
|
75
|
+type QrcodeCertifyResultError struct {
|
|
76
|
+ Code int `json:"code"`
|
|
77
|
+ Message string `json:"message"`
|
|
78
|
+ SubCode string `json:"subCode"`
|
|
79
|
+ SubMessage string `json:"subMessage"`
|
|
80
|
+}
|