Browse Source

实名

master
huangjiajun 1 month ago
parent
commit
208c52e563
2 changed files with 16 additions and 14 deletions
  1. +8
    -7
      app/md/md_user_real_name.go
  2. +8
    -7
      app/svc/user_real_name/svc_list.go

+ 8
- 7
app/md/md_user_real_name.go View File

@@ -15,13 +15,14 @@ type UserRealNameResp struct {
SelectData []map[string]string `json:"select_data"`
}
type UserRealName struct {
Id string `json:"id"`
Uid string `json:"uid"`
Phone string `json:"phone"`
Name string `json:"name"`
IdNo string `json:"id_no"`
PayState string `json:"pay_state" example:"0未支付 1已支付"`
State string `json:"state" example:"0未申请 1申请通过 3申请失败"`
Id string `json:"id"`
Uid string `json:"uid"`
Phone string `json:"phone"`
Name string `json:"name"`
IdNo string `json:"id_no"`
PayState string `json:"pay_state" example:"0未支付 1已支付"`
State string `json:"state" example:"0未申请 1申请通过 3申请失败"`
CreateTime string `json:"create_time"`
}
type UserRealNameSaveReq struct {
Id string `json:"id"`


+ 8
- 7
app/svc/user_real_name/svc_list.go View File

@@ -43,13 +43,14 @@ func List(c *gin.Context) {
phone = user.Phone
}
tmp := md.UserRealName{
Id: utils.IntToStr(v.Id),
Uid: utils.IntToStr(v.Uid),
Phone: phone,
Name: v.RealName,
IdNo: v.CardNo,
PayState: utils.IntToStr(v.IsPay),
State: utils.IntToStr(v.State),
Id: utils.IntToStr(v.Id),
Uid: utils.IntToStr(v.Uid),
Phone: phone,
Name: v.RealName,
IdNo: v.CardNo,
PayState: utils.IntToStr(v.IsPay),
State: utils.IntToStr(v.State),
CreateTime: v.CreateTime.Format("2006-01-02 15:04:05"),
}
noticeList = append(noticeList, tmp)
}


Loading…
Cancel
Save