智慧食堂
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.

371 lines
18 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. }
  190. type SelfSupportForSchoolUserUpdateReq struct {
  191. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  192. Uid int `json:"uid" binding:"required" label:"用户id"`
  193. Nickname string `json:"nickname" binding:"required" label:"支付宝昵称"`
  194. Phone string `json:"phone" binding:"required" label:"手机号"`
  195. BindUserIdentities []struct {
  196. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  197. IdNo string `json:"id_no" label:"身份证号"`
  198. Name string `json:"name" label:"姓名"`
  199. GradeId int `json:"grade_id" label:"年级"`
  200. ClassId int `json:"class_id" label:"班级"`
  201. } `json:"user_identities" label:"身份列表"`
  202. }
  203. type SelfSupportForSchoolUserDeleteReq struct {
  204. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  205. Uids []int `json:"uids" binding:"required" label:"用户id"`
  206. }
  207. type SelfSupportForSchoolStudentListReq struct {
  208. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  209. Limit int `json:"limit" binding:"required"`
  210. Page int `json:"page" binding:"required"`
  211. Name string `json:"name" label:"姓名"`
  212. IdNo string `json:"id_no" label:"身份证号"`
  213. Phone string `json:"phone" label:"手机号"`
  214. GradeId int `json:"grade_id" label:"年级id"`
  215. ClassId int `json:"class_id" label:"班级id"`
  216. }
  217. type SelfSupportForSchoolStudentListResp struct {
  218. IdNo string `json:"id_no" label:"身份证号"`
  219. ParentPhone string `json:"parent_phone" label:"家长电话"`
  220. Name string `json:"name" label:"姓名"`
  221. Grade string `json:"grade" label:"年级"`
  222. GradeId int `json:"grade_id" label:"年级id"`
  223. Class string `json:"class" label:"班级"`
  224. ClassId int `json:"class_id" label:"班级"`
  225. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  226. }
  227. type SelfSupportForSchoolTeacherListReq struct {
  228. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  229. Limit int `json:"limit" binding:"required"`
  230. Page int `json:"page" binding:"required"`
  231. Name string `json:"name" label:"姓名"`
  232. IdNo string `json:"id_no" label:"身份证号"`
  233. }
  234. type SelfSupportForSchoolTeacherListResp struct {
  235. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  236. IdNo string `json:"id_no" label:"身份证号"`
  237. Phone string `json:"parent_phone" label:"电话"`
  238. Name string `json:"name" label:"姓名"`
  239. }
  240. type SelfSupportForSchoolStudentUpdateReq struct {
  241. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  242. UserIdentityId int `json:"user_identity_id" binding:"required" label:"用户身份id"`
  243. IdNo string `json:"id_no" label:"身份证号"`
  244. Name string `json:"name" label:"姓名"`
  245. GradeId int `json:"grade_id" label:"年级id"`
  246. ClassId int `json:"class_id" label:"班级id"`
  247. CollectFaceType int `json:"collect_face_type" label:"采集人脸方式(1:个采 2:集采)"`
  248. }
  249. type SelfSupportForSchoolStudentDeleteReq struct {
  250. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  251. UserIdentityIds []int `json:"user_identity_ids" binding:"required" label:"用户身份id"`
  252. }
  253. type SelfSupportForSchoolStudentAdmissionReq struct {
  254. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  255. ClassId int `json:"class_id" binding:"required" label:"班级id"`
  256. GradeId int `json:"grade_id" binding:"required" label:"年级id"`
  257. }
  258. type SelfSupportForSchoolTeacherUpdateReq struct {
  259. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  260. UserIdentityId int `json:"user_identity_id" binding:"required" label:"用户身份id"`
  261. IdNo string `json:"id_no" label:"身份证号"`
  262. Name string `json:"name" label:"姓名"`
  263. CollectFaceType int `json:"collect_face_type" label:"采集人脸方式(1:个采 2:集采)"`
  264. }
  265. type SelfSupportForSchoolTeacherDeleteReq struct {
  266. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  267. UserIdentityIds []int `json:"user_identity_ids" binding:"required" label:"用户身份id"`
  268. }
  269. type SelfSupportForSchoolWorkerListReq struct {
  270. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  271. Limit int `json:"limit" binding:"required"`
  272. Page int `json:"page" binding:"required"`
  273. Name string `json:"name" label:"姓名"`
  274. IdNo string `json:"id_no" label:"身份证号"`
  275. }
  276. type SelfSupportForSchoolWorkerListResp struct {
  277. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  278. IdNo string `json:"id_no" label:"身份证号"`
  279. Phone string `json:"parent_phone" label:"电话"`
  280. Name string `json:"name" label:"姓名"`
  281. CreateAt string `json:"create_at" label:"创建时间"`
  282. }
  283. type SelfSupportForSchoolWorkerUpdateReq struct {
  284. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  285. UserIdentityId int `json:"user_identity_id" binding:"required" label:"用户身份id"`
  286. IdNo string `json:"id_no" label:"身份证号"`
  287. Name string `json:"name" label:"姓名"`
  288. }
  289. type SelfSupportForSchoolWorkerDeleteReq struct {
  290. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  291. UserIdentityIds []int `json:"user_identity_ids" binding:"required" label:"用户身份id"`
  292. }
  293. type CentralKitchenForSchoolGradeListReq struct {
  294. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  295. Limit int `json:"limit" binding:"required"`
  296. Page int `json:"page" binding:"required"`
  297. Name string `json:"name" label:"名称"`
  298. }
  299. type CentralKitchenForSchoolClassListReq struct {
  300. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  301. GradeId int `json:"grade_id" label:"年级id"`
  302. Limit int `json:"limit" binding:"required"`
  303. Page int `json:"page" binding:"required"`
  304. Name string `json:"name" label:"名称"`
  305. }
  306. type SelfSupportForSchoolGradeListReq struct {
  307. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  308. Limit int `json:"limit" binding:"required"`
  309. Page int `json:"page" binding:"required"`
  310. Name string `json:"name" label:"名称"`
  311. }
  312. type SelfSupportForSchoolClassListReq struct {
  313. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  314. GradeId int `json:"grade_id" label:"年级id"`
  315. Limit int `json:"limit" binding:"required"`
  316. Page int `json:"page" binding:"required"`
  317. Name string `json:"name" label:"名称"`
  318. }
  319. type SelfSupportForSchoolAddWorkerReq struct {
  320. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  321. Name string `json:"name" label:"名称"`
  322. IdNo string `json:"id_no" label:"身份证号"`
  323. }
  324. type SelfSupportForSchoolAddTeacherReq struct {
  325. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  326. Name string `json:"name" label:"名称"`
  327. IdNo string `json:"id_no" label:"身份证号"`
  328. }