@@ -68,6 +68,32 @@ func CentralKitchenForSchoolOrderRefundList(c *gin.Context) { | |||||
"value": enum.CentralKitchenForSchoolUserRefundDayStateForAuditComplete, | "value": enum.CentralKitchenForSchoolUserRefundDayStateForAuditComplete, | ||||
}, | }, | ||||
}, | }, | ||||
"user_identity_kind_list": []map[string]interface{}{ | |||||
{ | |||||
"name": enum.UserIdentity.String(enum.UserIdentityForCentralKitchenForStudent), | |||||
"value": enum.UserIdentityForCentralKitchenForStudent, | |||||
}, | |||||
{ | |||||
"name": enum.UserIdentity.String(enum.UserIdentityForCentralKitchenForTeacher), | |||||
"value": enum.UserIdentityForCentralKitchenForTeacher, | |||||
}, | |||||
{ | |||||
"name": enum.UserIdentity.String(enum.UserIdentityForCentralKitchenForWorker), | |||||
"value": enum.UserIdentityForCentralKitchenForWorker, | |||||
}, | |||||
{ | |||||
"name": enum.UserIdentity.String(enum.UserIdentityForSelfSupportForStudent), | |||||
"value": enum.UserIdentityForSelfSupportForStudent, | |||||
}, | |||||
{ | |||||
"name": enum.UserIdentity.String(enum.UserIdentityForSelfSupportForTeacher), | |||||
"value": enum.UserIdentityForSelfSupportForTeacher, | |||||
}, | |||||
{ | |||||
"name": enum.UserIdentity.String(enum.UserIdentityForSelfSupportForWorker), | |||||
"value": enum.UserIdentityForSelfSupportForWorker, | |||||
}, | |||||
}, | |||||
}, nil) | }, nil) | ||||
return | return | ||||
} | } | ||||
@@ -1,19 +1,20 @@ | |||||
package md | package md | ||||
type CentralKitchenForSchoolOrderRefundListResp struct { | type CentralKitchenForSchoolOrderRefundListResp struct { | ||||
Id int `json:"id" label:"退款id"` | |||||
OutTradeNo string `json:"out_trade_no" label:"订单号"` | |||||
OutRequestNo string `json:"out_request_no" label:"退款请求号"` | |||||
Name string `json:"name" label:"姓名"` | |||||
Phone string `json:"phone" label:"用户电话"` | |||||
EnterpriseName string `json:"enterprise_name" label:"学校名称"` | |||||
ClassName string `json:"class_name" label:"班级名称"` | |||||
GradeName string `json:"grade_name" label:"年纪名称"` | |||||
Kind int `json:"kind" label:"订餐类型"` | |||||
Amount string `json:"amount" label:"退款金额"` | |||||
State int `json:"state" label:"退款订单状态"` | |||||
CreateAt string `json:"create_at" label:"申请时间"` | |||||
Memo string `json:"memo" label:"备注"` | |||||
Id int `json:"id" label:"退款id"` | |||||
OutTradeNo string `json:"out_trade_no" label:"订单号"` | |||||
OutRequestNo string `json:"out_request_no" label:"退款请求号"` | |||||
Name string `json:"name" label:"姓名"` | |||||
Phone string `json:"phone" label:"用户电话"` | |||||
EnterpriseName string `json:"enterprise_name" label:"学校名称"` | |||||
ClassName string `json:"class_name" label:"班级名称"` | |||||
GradeName string `json:"grade_name" label:"年纪名称"` | |||||
Kind int `json:"kind" label:"订餐类型"` | |||||
UserIdentityKind int `json:"user_identity_kind" label:"用户类型"` | |||||
Amount string `json:"amount" label:"退款金额"` | |||||
State int `json:"state" label:"退款订单状态"` | |||||
CreateAt string `json:"create_at" label:"申请时间"` | |||||
Memo string `json:"memo" label:"备注"` | |||||
} | } | ||||
type CentralKitchenForSchoolOrderRefundListReq struct { | type CentralKitchenForSchoolOrderRefundListReq struct { | ||||
@@ -126,19 +126,20 @@ func CentralKitchenForSchoolOrderRefundList(req md.CentralKitchenForSchoolOrderR | |||||
for _, v := range m { | for _, v := range m { | ||||
resp = append(resp, md.CentralKitchenForSchoolOrderRefundListResp{ | resp = append(resp, md.CentralKitchenForSchoolOrderRefundListResp{ | ||||
Id: v.CentralKitchenForSchoolUserRefundDay.Id, | |||||
OutTradeNo: v.CentralKitchenForSchoolUserRefundDay.OutTradeNo, | |||||
OutRequestNo: v.CentralKitchenForSchoolUserRefundDay.OutRequestNo, | |||||
Name: v.UserIdentity.Name, | |||||
Phone: v.User.Phone, | |||||
EnterpriseName: v.Enterprise.Name, | |||||
ClassName: v.Class.Name, | |||||
GradeName: v.Grade.Name, | |||||
Kind: v.CentralKitchenForSchoolUserWithDay.Kind, | |||||
Amount: v.CentralKitchenForSchoolUserRefundDay.Amount, | |||||
State: v.CentralKitchenForSchoolUserRefundDay.State, | |||||
CreateAt: v.CentralKitchenForSchoolUserRefundDay.CreateAt, | |||||
Memo: v.CentralKitchenForSchoolUserRefundDay.Memo, | |||||
Id: v.CentralKitchenForSchoolUserRefundDay.Id, | |||||
OutTradeNo: v.CentralKitchenForSchoolUserRefundDay.OutTradeNo, | |||||
OutRequestNo: v.CentralKitchenForSchoolUserRefundDay.OutRequestNo, | |||||
Name: v.UserIdentity.Name, | |||||
Phone: v.User.Phone, | |||||
EnterpriseName: v.Enterprise.Name, | |||||
ClassName: v.Class.Name, | |||||
GradeName: v.Grade.Name, | |||||
Kind: v.CentralKitchenForSchoolUserWithDay.Kind, | |||||
UserIdentityKind: v.UserIdentity.Kind, | |||||
Amount: v.CentralKitchenForSchoolUserRefundDay.Amount, | |||||
State: v.CentralKitchenForSchoolUserRefundDay.State, | |||||
CreateAt: v.CentralKitchenForSchoolUserRefundDay.CreateAt, | |||||
Memo: v.CentralKitchenForSchoolUserRefundDay.Memo, | |||||
}) | }) | ||||
} | } | ||||
return | return | ||||