diff --git a/app/md/md_user_real_name.go b/app/md/md_user_real_name.go index 33ad921..c43f023 100644 --- a/app/md/md_user_real_name.go +++ b/app/md/md_user_real_name.go @@ -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"` diff --git a/app/svc/user_real_name/svc_list.go b/app/svc/user_real_name/svc_list.go index eaeeee9..eadb7e1 100644 --- a/app/svc/user_real_name/svc_list.go +++ b/app/svc/user_real_name/svc_list.go @@ -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) }