智慧食堂
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

md_enterprise_manage.go 10 KiB

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