qnc init
This commit is contained in:
28
model/response/verify.go
Normal file
28
model/response/verify.go
Normal file
@@ -0,0 +1,28 @@
|
||||
package response
|
||||
|
||||
type VerifyPhoneRespData struct {
|
||||
Result string `json:"result"`
|
||||
ResultMsg string `json:"resultMsg"`
|
||||
}
|
||||
|
||||
type VerifyPhoneResp struct {
|
||||
Data VerifyPhoneRespData `json:"data"`
|
||||
}
|
||||
|
||||
// 通用的响应结构体
|
||||
type VerifyCardResp struct {
|
||||
Msg string `json:"msg"`
|
||||
Success bool `json:"success"`
|
||||
Code int `json:"code"`
|
||||
Data *VerifyCardRespData `json:"data"` // 使用 json.RawMessage 暂存 data 字段的数据
|
||||
}
|
||||
|
||||
// 成功时的数据结构体
|
||||
type VerifyCardRespData struct {
|
||||
Birthday string `json:"birthday,omitempty"`
|
||||
Result int `json:"result,omitempty"` // 1.不一致 0.一致
|
||||
Address string `json:"address,omitempty"`
|
||||
OrderNo string `json:"orderNo,omitempty"`
|
||||
Sex string `json:"sex,omitempty"`
|
||||
Desc string `json:"desc,omitempty"`
|
||||
}
|
||||
Reference in New Issue
Block a user