智慧食堂
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

211 lines
10 KiB

  1. package md
  2. type EnterpriseUserListReq struct {
  3. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  4. Limit int `json:"limit" binding:"required"`
  5. Page int `json:"page" binding:"required"`
  6. Nickname string `json:"nickname" label:"支付宝昵称"`
  7. Phone string `json:"phone" label:"手机号"`
  8. IsTeacher int `json:"is_teacher" label:"是否教师"`
  9. }
  10. type EnterpriseUserListByCentralKitchenForSchoolStruct struct {
  11. Id int `json:"id" label:"支付宝昵称"`
  12. Nickname string `json:"nickname" label:"支付宝昵称"`
  13. Phone string `json:"phone" label:"手机号"`
  14. Avatar string `json:"avatar" label:"头像"`
  15. IsTeacher int `json:"is_teacher" label:"是否教师"`
  16. CreateAt string `json:"create_at" label:"创建时间"`
  17. UserIdentities []struct {
  18. Id int `json:"id" label:"身份id"`
  19. IdNo string `json:"id_no" label:"身份证号"`
  20. SchoolName string `json:"school_name" label:"学校名"`
  21. Name string `json:"name" label:"姓名"`
  22. Grade string `json:"grade" label:"年级"`
  23. GradeId int `json:"grade_id" label:"年级id"`
  24. Class string `json:"class" label:"班级"`
  25. ClassId int `json:"class_id" label:"班级id"`
  26. } `json:"user_identities" label:"身份列表"`
  27. }
  28. type EnterpriseUserListByCentralKitchenForSchoolResp struct {
  29. List []EnterpriseUserListByCentralKitchenForSchoolStruct `json:"list"`
  30. Total int64 `json:"total"`
  31. }
  32. type CentralKitchenForSchoolUserUpdateReq struct {
  33. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  34. Uid int `json:"uid" binding:"required" label:"用户id"`
  35. Nickname string `json:"nickname" binding:"required" label:"支付宝昵称"`
  36. Phone string `json:"phone" binding:"required" label:"手机号"`
  37. BindUserIdentities []struct {
  38. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  39. IdNo string `json:"id_no" label:"身份证号"`
  40. Name string `json:"name" label:"姓名"`
  41. GradeId int `json:"grade_id" label:"年级"`
  42. ClassId int `json:"class_id" label:"班级"`
  43. } `json:"user_identities" label:"身份列表"`
  44. }
  45. type CentralKitchenForSchoolUserDeleteReq struct {
  46. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  47. Uids []int `json:"uids" binding:"required" label:"用户id"`
  48. }
  49. type CentralKitchenForSchoolStudentListReq struct {
  50. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  51. Limit int `json:"limit" binding:"required"`
  52. Page int `json:"page" binding:"required"`
  53. Name string `json:"name" label:"姓名"`
  54. IdNo string `json:"id_no" label:"身份证号"`
  55. Phone string `json:"phone" label:"手机号"`
  56. GradeId int `json:"grade_id" label:"年级id"`
  57. ClassId int `json:"class_id" label:"班级id"`
  58. }
  59. type CentralKitchenForSchoolTeacherListReq struct {
  60. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  61. Limit int `json:"limit" binding:"required"`
  62. Page int `json:"page" binding:"required"`
  63. Name string `json:"name" label:"姓名"`
  64. IdNo string `json:"id_no" label:"身份证号"`
  65. }
  66. type CentralKitchenForSchoolStudentListResp struct {
  67. IdNo string `json:"id_no" label:"身份证号"`
  68. ParentPhone string `json:"parent_phone" label:"家长电话"`
  69. Name string `json:"name" label:"姓名"`
  70. Grade string `json:"grade" label:"年级"`
  71. GradeId int `json:"grade_id" label:"年级id"`
  72. Class string `json:"class" label:"班级"`
  73. ClassId int `json:"class_id" label:"班级"`
  74. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  75. }
  76. type CentralKitchenForSchoolTeacherListResp struct {
  77. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  78. IdNo string `json:"id_no" label:"身份证号"`
  79. Phone string `json:"parent_phone" label:"电话"`
  80. Name string `json:"name" label:"姓名"`
  81. }
  82. type CentralKitchenForSchoolTeacherUpdateReq struct {
  83. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  84. UserIdentityId int `json:"user_identity_id" binding:"required" label:"用户身份id"`
  85. IdNo string `json:"id_no" label:"身份证号"`
  86. Name string `json:"name" label:"姓名"`
  87. }
  88. type CentralKitchenForSchoolStudentUpdateReq struct {
  89. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  90. UserIdentityId int `json:"user_identity_id" binding:"required" label:"用户身份id"`
  91. IdNo string `json:"id_no" label:"身份证号"`
  92. Name string `json:"name" label:"姓名"`
  93. GradeId int `json:"grade_id" label:"年级id"`
  94. ClassId int `json:"class_id" label:"班级id"`
  95. }
  96. type CentralKitchenForSchoolStudentDeleteReq struct {
  97. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  98. UserIdentityIds []int `json:"user_identity_ids" binding:"required" label:"用户身份id"`
  99. }
  100. type CentralKitchenForSchoolTeacherDeleteReq struct {
  101. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  102. UserIdentityIds []int `json:"user_identity_ids" binding:"required" label:"用户身份id"`
  103. }
  104. type CentralKitchenForSchoolStudentAdmissionReq struct {
  105. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  106. ClassId int `json:"class_id" binding:"required" label:"班级id"`
  107. GradeId int `json:"grade_id" binding:"required" label:"年级id"`
  108. }
  109. type SetCentralKitchenForSchoolWithSpecReq struct {
  110. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  111. BreakfastUnitPrice string `json:"breakfast_unit_price" binding:"required" label:"早餐-单价"`
  112. BreakfastUnitPriceForTeacher string `json:"breakfast_unit_price_for_teacher" binding:"required" label:"教师-早餐-单价"`
  113. LunchUnitPrice string `json:"lunch_unit_price" binding:"required" label:"午餐-单价"`
  114. LunchUnitPriceForTeacher string `json:"lunch_unit_price_for_teacher" binding:"required" label:"教师-午餐-单价"`
  115. DinnerUnitPrice string `json:"dinner_unit_price" binding:"required" label:"晚餐-单价"`
  116. DinnerUnitPriceForTeacher string `json:"dinner_unit_price_for_teacher" binding:"required" label:"教师-晚餐-单价"`
  117. }
  118. type SaveCentralKitchenForSchoolPackageReq struct {
  119. PackageId int `json:"package_id" label:"套餐ID"`
  120. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  121. Year string `json:"year" binding:"required" label:"年份"`
  122. Month string `json:"month" binding:"required" label:"月份"`
  123. StartDate string `json:"start_date" binding:"required" label:"开始时间"`
  124. EndDate string `json:"end_date" binding:"required" label:"截止时间"`
  125. State int `json:"state" label:"状态(1:可用 2:不可用)"`
  126. DateList []struct {
  127. Date string `json:"date"`
  128. IsOpenBreakfast int32 `json:"is_open_breakfast"`
  129. IsOpenLunch int32 `json:"is_open_lunch"`
  130. IsOpenDinner int32 `json:"is_open_dinner"`
  131. IsOpenReplenish int32 `json:"is_open_replenish"`
  132. } `json:"date_list" binding:"required" label:"日期"`
  133. }
  134. type SetBasicCentralKitchenForSchoolReq struct {
  135. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  136. State int32 `json:"state" label:"状态(1:正常 2:冻结)"`
  137. Name string `json:"name" binding:"required" label:"名称"`
  138. IsOpenBreakfast int `json:"is_open_breakfast" label:"是否开启早餐"`
  139. IsOpenLunch int `json:"is_open_lunch" label:"是否开启午餐"`
  140. IsOpenDinner int `json:"is_open_dinner" label:"是否开启晚餐"`
  141. IsOpenReportMealForDay int `json:"is_open_report_meal_for_day" label:"开启按天报餐(1:开启 2:关闭)"`
  142. IsOpenReportMealForMonth int `json:"is_open_report_meal_for_month" label:"开启按月报餐(1:开启 2:关闭)"`
  143. IsOpenReportMealForSemester int `json:"is_open_report_meal_for_semester" label:"开启按学期报餐(1:开启 2:关闭)"`
  144. IsOpenTeacherReportMeal int `json:"is_open_teacher_report_meal" label:"'教师报餐(1:开启 2:关闭)"`
  145. }
  146. type ListCentralKitchenForSchoolPackageReq struct {
  147. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  148. Page int `json:"page" label:"页码"`
  149. Limit int `json:"limit" label:"每页数量"`
  150. Year string `json:"year" label:"年份"`
  151. Month string `json:"month" label:"月份"`
  152. }
  153. type CentralKitchenForSchoolOrdRefundReq struct {
  154. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  155. Ids []string `json:"ids" label:"ids" binding:"required"`
  156. }
  157. type CentralKitchenForSchoolOrdListResp struct {
  158. EnterpriseId int `json:"enterprise_id" `
  159. EnterpriseName string `json:"enterprise_name" `
  160. Uid int `json:"uid" `
  161. UserIdentityId int `json:"user_identity_id" `
  162. UserIdentityName string `json:"user_identity_name" `
  163. TotalPrice string `json:"total_price" `
  164. Kind int `json:"kind" `
  165. OutTradeNo string `json:"out_trade_no" `
  166. TradeNo string `json:"trade_no"`
  167. State int `json:"state"`
  168. OrdState int `json:"ord_state"`
  169. CreateAt string `json:"create_at"`
  170. Name string `json:"name" label:"姓名"`
  171. Grade string `json:"grade" label:"年级"`
  172. GradeId int `json:"grade_id" label:"年级id"`
  173. Class string `json:"class" label:"班级"`
  174. ClassId int `json:"class_id" label:"班级id"`
  175. }
  176. type CentralKitchenForSchoolOrdListReq struct {
  177. EnterpriseId int `json:"enterprise_id" label:"企业id"`
  178. Limit int `json:"limit" binding:"required"`
  179. Page int `json:"page" binding:"required"`
  180. Name string `json:"name" label:"姓名"`
  181. OutTradeNo string `json:"out_trade_no" label:"订单号"`
  182. Kind int `json:"kind" label:"预定类型"`
  183. Sate int `json:"state" label:"支付状态"`
  184. OrdSate int `json:"ord_state" label:"订单状态"`
  185. GradeId int `json:"grade_id" label:"年级id"`
  186. ClassId int `json:"class_id" label:"班级id"`
  187. StartDate string `json:"start_date" label:"开始时间"`
  188. EndDate string `json:"end_date" label:"截止时间"`
  189. }