qnc-server-old/model/response/verify.go

29 lines
834 B
Go
Raw Normal View History

2024-09-14 10:48:09 +08:00
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"`
}