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

682 lines
34 KiB

  1. package md
  2. type EnterpriseUserListReq struct {
  3. EnterpriseId int `json:"enterprise_id" label:"企业id"`
  4. GradeId int `json:"grade_id" label:"年级id"`
  5. ClassId int `json:"class_id" label:"班级id"`
  6. Limit int `json:"limit" binding:"required"`
  7. Page int `json:"page" binding:"required"`
  8. Nickname string `json:"nickname" label:"支付宝昵称"`
  9. Name string `json:"name" label:"用户名称"`
  10. Phone string `json:"phone" label:"手机号"`
  11. IsTeacher int `json:"is_teacher" label:"是否教师"`
  12. EnterpriseName string `json:"enterprise_name" label:"校企名称"`
  13. }
  14. type EnterpriseUserListByCentralKitchenForSchoolStruct struct {
  15. Id int `json:"id" label:"支付宝昵称"`
  16. Nickname string `json:"nickname" label:"支付宝昵称"`
  17. Phone string `json:"phone" label:"手机号"`
  18. Avatar string `json:"avatar" label:"头像"`
  19. IsTeacher int `json:"is_teacher" label:"是否教师"`
  20. CreateAt string `json:"create_at" label:"创建时间"`
  21. UserIdentities []struct {
  22. Id int `json:"id" label:"身份id"`
  23. EnterpriseId int `json:"enterprise_id" label:"企业id"`
  24. IdNo string `json:"id_no" label:"身份证号"`
  25. SchoolName string `json:"school_name" label:"学校名"`
  26. Name string `json:"name" label:"姓名"`
  27. Grade string `json:"grade" label:"年级"`
  28. GradeId int `json:"grade_id" label:"年级id"`
  29. Class string `json:"class" label:"班级"`
  30. ClassId int `json:"class_id" label:"班级id"`
  31. } `json:"user_identities" label:"身份列表"`
  32. }
  33. type EnterpriseUserListByCentralKitchenForSchoolResp struct {
  34. List []EnterpriseUserListByCentralKitchenForSchoolStruct `json:"list"`
  35. Total int64 `json:"total"`
  36. UserIdentityKindList interface{} `json:"user_identity_kind_list"`
  37. }
  38. type CentralKitchenForSchoolUserUpdateReq struct {
  39. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  40. Uid int `json:"uid" binding:"required" label:"用户id"`
  41. Nickname string `json:"nickname" binding:"required" label:"支付宝昵称"`
  42. Phone string `json:"phone" binding:"required" label:"手机号"`
  43. BindUserIdentities []struct {
  44. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  45. IdNo string `json:"id_no" label:"身份证号"`
  46. Name string `json:"name" label:"姓名"`
  47. GradeId int `json:"grade_id" label:"年级"`
  48. ClassId int `json:"class_id" label:"班级"`
  49. } `json:"user_identities" label:"身份列表"`
  50. }
  51. type CentralKitchenForSchoolUserUpdateReqV2 struct {
  52. Uid int `json:"uid" binding:"required" label:"用户id"`
  53. Nickname string `json:"nickname" binding:"required" label:"支付宝昵称"`
  54. Phone string `json:"phone" binding:"required" label:"手机号"`
  55. BindUserIdentities []struct {
  56. EnterpriseId int `json:"enterprise_id" label:"企业id"`
  57. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  58. IdNo string `json:"id_no" label:"身份证号"`
  59. Name string `json:"name" label:"姓名"`
  60. GradeId int `json:"grade_id" label:"年级"`
  61. ClassId int `json:"class_id" label:"班级"`
  62. } `json:"user_identities" label:"身份列表"`
  63. }
  64. type CentralKitchenForSchoolUserDeleteReq struct {
  65. EnterpriseId int `json:"enterprise_id" label:"企业id"`
  66. Uids []int `json:"uids" binding:"required" label:"用户id"`
  67. }
  68. type CentralKitchenForSchoolStudentListReq struct {
  69. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  70. Limit int `json:"limit" binding:"required"`
  71. Page int `json:"page" binding:"required"`
  72. Name string `json:"name" label:"姓名"`
  73. IdNo string `json:"id_no" label:"身份证号"`
  74. Phone string `json:"phone" label:"手机号"`
  75. GradeId int `json:"grade_id" label:"年级id"`
  76. ClassId int `json:"class_id" label:"班级id"`
  77. }
  78. type CentralKitchenForSchoolTeacherListReq struct {
  79. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  80. Limit int `json:"limit" binding:"required"`
  81. Page int `json:"page" binding:"required"`
  82. Name string `json:"name" label:"姓名"`
  83. IdNo string `json:"id_no" label:"身份证号"`
  84. }
  85. type CentralKitchenForSchoolStudentListResp struct {
  86. IdNo string `json:"id_no" label:"身份证号"`
  87. ParentPhone string `json:"parent_phone" label:"家长电话"`
  88. Name string `json:"name" label:"姓名"`
  89. Grade string `json:"grade" label:"年级"`
  90. GradeId int `json:"grade_id" label:"年级id"`
  91. Class string `json:"class" label:"班级"`
  92. ClassId int `json:"class_id" label:"班级"`
  93. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  94. }
  95. type CentralKitchenForSchoolTeacherListResp struct {
  96. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  97. IdNo string `json:"id_no" label:"身份证号"`
  98. Phone string `json:"parent_phone" label:"电话"`
  99. Name string `json:"name" label:"姓名"`
  100. }
  101. type CentralKitchenForSchoolTeacherUpdateReq struct {
  102. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  103. UserIdentityId int `json:"user_identity_id" binding:"required" label:"用户身份id"`
  104. IdNo string `json:"id_no" label:"身份证号"`
  105. Name string `json:"name" label:"姓名"`
  106. }
  107. type CentralKitchenForSchoolStudentUpdateReq struct {
  108. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  109. UserIdentityId int `json:"user_identity_id" binding:"required" label:"用户身份id"`
  110. IdNo string `json:"id_no" label:"身份证号"`
  111. Name string `json:"name" label:"姓名"`
  112. GradeId int `json:"grade_id" label:"年级id"`
  113. ClassId int `json:"class_id" label:"班级id"`
  114. }
  115. type CentralKitchenForSchoolStudentDeleteReq struct {
  116. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  117. UserIdentityIds []int `json:"user_identity_ids" binding:"required" label:"用户身份id"`
  118. }
  119. type CentralKitchenForSchoolTeacherDeleteReq struct {
  120. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  121. UserIdentityIds []int `json:"user_identity_ids" binding:"required" label:"用户身份id"`
  122. }
  123. type CentralKitchenForSchoolStudentAdmissionReq struct {
  124. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  125. ClassId int `json:"class_id" label:"班级id"`
  126. GradeId int `json:"grade_id" label:"年级id"`
  127. }
  128. type SetCentralKitchenForSchoolWithSpecReq struct {
  129. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  130. BreakfastUnitPrice string `json:"breakfast_unit_price" binding:"required" label:"早餐-单价"`
  131. BreakfastUnitPriceForTeacher string `json:"breakfast_unit_price_for_teacher" binding:"required" label:"教师-早餐-单价"`
  132. LunchUnitPrice string `json:"lunch_unit_price" binding:"required" label:"午餐-单价"`
  133. LunchUnitPriceForTeacher string `json:"lunch_unit_price_for_teacher" binding:"required" label:"教师-午餐-单价"`
  134. DinnerUnitPrice string `json:"dinner_unit_price" binding:"required" label:"晚餐-单价"`
  135. DinnerUnitPriceForTeacher string `json:"dinner_unit_price_for_teacher" binding:"required" label:"教师-晚餐-单价"`
  136. }
  137. type SaveCentralKitchenForSchoolPackageReq struct {
  138. PackageId int `json:"package_id" label:"套餐ID"`
  139. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  140. Year string `json:"year" binding:"required" label:"年份"`
  141. Month string `json:"month" binding:"required" label:"月份"`
  142. StartDate string `json:"start_date" binding:"required" label:"开始时间"`
  143. EndDate string `json:"end_date" binding:"required" label:"截止时间"`
  144. State int `json:"state" label:"状态(1:可用 2:不可用)"`
  145. DateList []struct {
  146. Date string `json:"date"`
  147. IsOpenBreakfast int32 `json:"is_open_breakfast"`
  148. IsOpenLunch int32 `json:"is_open_lunch"`
  149. IsOpenDinner int32 `json:"is_open_dinner"`
  150. IsOpenReplenish int32 `json:"is_open_replenish"`
  151. } `json:"date_list" binding:"required" label:"日期"`
  152. }
  153. type SetBasicCentralKitchenForSchoolReq struct {
  154. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  155. State int32 `json:"state" label:"状态(1:正常 2:冻结)"`
  156. Name string `json:"name" binding:"required" label:"名称"`
  157. IsOpenBreakfast int `json:"is_open_breakfast" label:"是否开启早餐"`
  158. IsOpenLunch int `json:"is_open_lunch" label:"是否开启午餐"`
  159. IsOpenDinner int `json:"is_open_dinner" label:"是否开启晚餐"`
  160. IsOpenReportMealForDay int `json:"is_open_report_meal_for_day" label:"开启学生按天报餐(1:开启 2:关闭)"`
  161. IsOpenReportMealForMonth int `json:"is_open_report_meal_for_month" label:"开启学生按月报餐(1:开启 2:关闭)"`
  162. IsOpenReportMealForSemester int `json:"is_open_report_meal_for_semester" label:"开启学生按学期报餐(1:开启 2:关闭)"`
  163. IsOpenTeacherReportMealForDay int `json:"is_open_teacher_report_meal_for_day" label:"开启教师按天报餐(1:开启 2:关闭)"`
  164. IsOpenTeacherReportMealForMonth int `json:"is_open_teacher_report_meal_for_month" label:"开启教师按月报餐(1:开启 2:关闭)"`
  165. IsOpenTeacherReportMealForSemester int `json:"is_open_teacher_report_meal_for_semester" label:"开启教师按学期报餐(1:开启 2:关闭)"`
  166. IsOpenTeacherReportMeal int `json:"is_open_teacher_report_meal" label:"'教师报餐(1:开启 2:关闭)"`
  167. }
  168. type ListCentralKitchenForSchoolPackageReq struct {
  169. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  170. Page int `json:"page" label:"页码"`
  171. Limit int `json:"limit" label:"每页数量"`
  172. Year string `json:"year" label:"年份"`
  173. Month string `json:"month" label:"月份"`
  174. }
  175. type CentralKitchenForSchoolOrdRefundReq struct {
  176. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  177. Ids []string `json:"ids" label:"ids" binding:"required"`
  178. }
  179. type CentralKitchenForSchoolOrdListResp struct {
  180. EnterpriseId int `json:"enterprise_id" `
  181. EnterpriseName string `json:"enterprise_name" `
  182. Uid int `json:"uid" `
  183. UserIdentityId int `json:"user_identity_id" `
  184. UserIdentityKind int `json:"user_identity_kind" `
  185. UserIdentityName string `json:"user_identity_name" `
  186. TotalPrice string `json:"total_price" `
  187. Kind int `json:"kind" `
  188. OutTradeNo string `json:"out_trade_no" `
  189. TradeNo string `json:"trade_no"`
  190. State int `json:"state"`
  191. OrdState int `json:"ord_state"`
  192. CreateAt string `json:"create_at"`
  193. Phone string `json:"phone" label:"家长联系电话"`
  194. Name string `json:"name" label:"姓名"`
  195. Grade string `json:"grade" label:"年级"`
  196. GradeId int `json:"grade_id" label:"年级id"`
  197. Class string `json:"class" label:"班级"`
  198. ClassId int `json:"class_id" label:"班级id"`
  199. }
  200. type CentralKitchenForSchoolOrdListReq struct {
  201. EnterpriseId int `json:"enterprise_id" label:"企业id"`
  202. IsTeacher int `json:"is_teacher" label:"是否教师"`
  203. Limit int `json:"limit" binding:"required"`
  204. Page int `json:"page" binding:"required"`
  205. Name string `json:"name" label:"姓名"`
  206. OutTradeNo string `json:"out_trade_no" label:"订单号"`
  207. Kind int `json:"kind" label:"预定类型"`
  208. Sate int `json:"state" label:"支付状态"`
  209. OrdSate int `json:"ord_state" label:"订单状态"`
  210. GradeId int `json:"grade_id" label:"年级id"`
  211. ClassId int `json:"class_id" label:"班级id"`
  212. Phone string `json:"phone" label:"家长联系电话"`
  213. StartDate string `json:"start_date" label:"开始时间"`
  214. EndDate string `json:"end_date" label:"截止时间"`
  215. }
  216. type CentralKitchenForSchoolReserveListReq struct {
  217. EnterpriseId int `json:"enterprise_id" label:"企业id"`
  218. Limit int `json:"limit" binding:"required"`
  219. Page int `json:"page" binding:"required"`
  220. Name string `json:"name" label:"姓名"`
  221. OutTradeNo string `json:"out_trade_no" label:"订单号"`
  222. Kind int `json:"kind" label:"预定类型"`
  223. GradeId int `json:"grade_id" label:"年级id"`
  224. ClassId int `json:"class_id" label:"班级id"`
  225. Phone string `json:"phone" label:"家长联系电话"`
  226. StartDate string `json:"start_date" label:"开始时间"`
  227. EndDate string `json:"end_date" label:"截止时间"`
  228. }
  229. type CentralKitchenForSchoolReserveUpdateStudentReq struct {
  230. Id int `json:"id" `
  231. EnterpriseId int `json:"enterprise_id" label:"企业id"`
  232. UserIdentityId int `json:"user_identity_id" `
  233. OriginalUserIdentityId int `json:"original_user_identity_id" `
  234. Uid int `json:"uid" `
  235. }
  236. type CentralKitchenForSchoolReserveListResp struct {
  237. Id int `json:"id" `
  238. EnterpriseId int `json:"enterprise_id" `
  239. EnterpriseName string `json:"enterprise_name" `
  240. Uid int `json:"uid" `
  241. UserIdentityId int `json:"user_identity_id" `
  242. UserIdentityName string `json:"user_identity_name" `
  243. Kind int `json:"kind"`
  244. OutTradeNo string `json:"out_trade_no" `
  245. ReserveMonth string `json:"reserve_month"`
  246. TotalPrice string `json:"total_price"`
  247. CreateAt string `json:"create_at"`
  248. Phone string `json:"phone" label:"家长联系电话"`
  249. Grade string `json:"grade" label:"年级"`
  250. GradeId int `json:"grade_id" label:"年级id"`
  251. Class string `json:"class" label:"班级"`
  252. ClassId int `json:"class_id" label:"班级id"`
  253. }
  254. type SelfSupportForSchoolUserUpdateReq struct {
  255. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  256. Uid int `json:"uid" binding:"required" label:"用户id"`
  257. Nickname string `json:"nickname" binding:"required" label:"支付宝昵称"`
  258. Phone string `json:"phone" binding:"required" label:"手机号"`
  259. BindUserIdentities []struct {
  260. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  261. IdNo string `json:"id_no" label:"身份证号"`
  262. Name string `json:"name" label:"姓名"`
  263. GradeId int `json:"grade_id" label:"年级"`
  264. ClassId int `json:"class_id" label:"班级"`
  265. } `json:"user_identities" label:"身份列表"`
  266. }
  267. type SelfSupportForSchoolUserDeleteReq struct {
  268. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  269. Uids []int `json:"uids" binding:"required" label:"用户id"`
  270. }
  271. type SelfSupportForSchoolStudentListReq struct {
  272. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  273. Limit int `json:"limit" binding:"required"`
  274. Page int `json:"page" binding:"required"`
  275. Name string `json:"name" label:"姓名"`
  276. IdNo string `json:"id_no" label:"身份证号"`
  277. Phone string `json:"phone" label:"手机号"`
  278. GradeId int `json:"grade_id" label:"年级id"`
  279. ClassId int `json:"class_id" label:"班级id"`
  280. }
  281. type SelfSupportForSchoolStudentListResp struct {
  282. IdNo string `json:"id_no" label:"身份证号"`
  283. ParentPhone string `json:"parent_phone" label:"家长电话"`
  284. Name string `json:"name" label:"姓名"`
  285. Grade string `json:"grade" label:"年级"`
  286. GradeId int `json:"grade_id" label:"年级id"`
  287. Class string `json:"class" label:"班级"`
  288. ClassId int `json:"class_id" label:"班级"`
  289. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  290. CollectFaceType int `json:"collect_face_type" label:"采集人脸方式(1:个采 2:集采) "`
  291. SchoolFacePassStatus string `json:"school_face_pass_status" label:"校园一脸通行开通状态(开通:OPEN 关闭:CLOSE) "`
  292. SchoolFacePaymentStatus string `json:"school_face_payment_status" label:"校园一脸通行刷脸支付开通状态(开通:OPEN 关闭:CLOSE) "`
  293. }
  294. type SelfSupportForSchoolTeacherListReq struct {
  295. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  296. Limit int `json:"limit" binding:"required"`
  297. Page int `json:"page" binding:"required"`
  298. Name string `json:"name" label:"姓名"`
  299. IdNo string `json:"id_no" label:"身份证号"`
  300. }
  301. type SelfSupportForSchoolTeacherListResp struct {
  302. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  303. IdNo string `json:"id_no" label:"身份证号"`
  304. Phone string `json:"parent_phone" label:"电话"`
  305. Name string `json:"name" label:"姓名"`
  306. CollectFaceType int `json:"collect_face_type" label:"采集人脸方式(1:个采 2:集采) "`
  307. SchoolFacePassStatus string `json:"school_face_pass_status" label:"校园一脸通行开通状态(开通:OPEN 关闭:CLOSE) "`
  308. SchoolFacePaymentStatus string `json:"school_face_payment_status" label:"校园一脸通行刷脸支付开通状态(开通:OPEN 关闭:CLOSE) "`
  309. }
  310. type SelfSupportForSchoolStudentUpdateReq struct {
  311. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  312. UserIdentityId int `json:"user_identity_id" binding:"required" label:"用户身份id"`
  313. IdNo string `json:"id_no" label:"身份证号"`
  314. Name string `json:"name" label:"姓名"`
  315. GradeId int `json:"grade_id" label:"年级id"`
  316. ClassId int `json:"class_id" label:"班级id"`
  317. CollectFaceType int `json:"collect_face_type" label:"采集人脸方式(1:个采 2:集采)"`
  318. }
  319. type SelfSupportForSchoolStudentDeleteReq struct {
  320. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  321. UserIdentityIds []int `json:"user_identity_ids" binding:"required" label:"用户身份id"`
  322. }
  323. type SelfSupportForSchoolStudentAdmissionReq struct {
  324. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  325. ClassId int `json:"class_id" label:"班级id"`
  326. GradeId int `json:"grade_id" label:"年级id"`
  327. }
  328. type SelfSupportForSchoolTeacherUpdateReq struct {
  329. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  330. UserIdentityId int `json:"user_identity_id" binding:"required" label:"用户身份id"`
  331. IdNo string `json:"id_no" label:"身份证号"`
  332. Name string `json:"name" label:"姓名"`
  333. CollectFaceType int `json:"collect_face_type" label:"采集人脸方式(1:个采 2:集采)"`
  334. }
  335. type SelfSupportForSchoolTeacherDeleteReq struct {
  336. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  337. UserIdentityIds []int `json:"user_identity_ids" binding:"required" label:"用户身份id"`
  338. }
  339. type SelfSupportForSchoolWorkerListReq struct {
  340. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  341. Limit int `json:"limit" binding:"required"`
  342. Page int `json:"page" binding:"required"`
  343. Name string `json:"name" label:"姓名"`
  344. IdNo string `json:"id_no" label:"身份证号"`
  345. }
  346. type SelfSupportForSchoolWorkerListResp struct {
  347. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  348. IdNo string `json:"id_no" label:"身份证号"`
  349. Phone string `json:"parent_phone" label:"电话"`
  350. Name string `json:"name" label:"姓名"`
  351. CreateAt string `json:"create_at" label:"创建时间"`
  352. }
  353. type SelfSupportForSchoolWorkerUpdateReq struct {
  354. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  355. UserIdentityId int `json:"user_identity_id" binding:"required" label:"用户身份id"`
  356. IdNo string `json:"id_no" label:"身份证号"`
  357. Name string `json:"name" label:"姓名"`
  358. }
  359. type SelfSupportForSchoolWorkerDeleteReq struct {
  360. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  361. UserIdentityIds []int `json:"user_identity_ids" binding:"required" label:"用户身份id"`
  362. }
  363. type CentralKitchenForSchoolGradeListReq struct {
  364. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  365. Limit int `json:"limit" binding:"required"`
  366. Page int `json:"page" binding:"required"`
  367. Name string `json:"name" label:"名称"`
  368. }
  369. type CentralKitchenForSchoolClassListReq struct {
  370. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  371. GradeId int `json:"grade_id" label:"年级id"`
  372. Limit int `json:"limit" binding:"required"`
  373. Page int `json:"page" binding:"required"`
  374. Name string `json:"name" label:"名称"`
  375. }
  376. type SelfSupportForSchoolGradeListReq struct {
  377. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  378. Limit int `json:"limit" binding:"required"`
  379. Page int `json:"page" binding:"required"`
  380. Name string `json:"name" label:"名称"`
  381. }
  382. type SelfSupportForSchoolClassListReq struct {
  383. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  384. GradeId int `json:"grade_id" label:"年级id"`
  385. Limit int `json:"limit" binding:"required"`
  386. Page int `json:"page" binding:"required"`
  387. Name string `json:"name" label:"名称"`
  388. }
  389. type SelfSupportForSchoolAddWorkerReq struct {
  390. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  391. Name string `json:"name" label:"名称"`
  392. IdNo string `json:"id_no" label:"身份证号"`
  393. }
  394. type SelfSupportForSchoolAddTeacherReq struct {
  395. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  396. Name string `json:"name" label:"名称"`
  397. IdNo string `json:"id_no" label:"身份证号"`
  398. }
  399. type SelfSupportForSchoolOrdListReq struct {
  400. EnterpriseId int `json:"enterprise_id" label:"企业id"`
  401. Limit int `json:"limit" binding:"required"`
  402. Page int `json:"page" binding:"required"`
  403. Name string `json:"name" label:"姓名"`
  404. Phone string `json:"phone" label:"用户电话"`
  405. OutTradeNo string `json:"out_trade_no" label:"订单号"`
  406. OrderStatus int `json:"order_status" label:"订单状态"`
  407. GradeId int `json:"grade_id" label:"年级id"`
  408. ClassId int `json:"class_id" label:"班级id"`
  409. StartDate string `json:"start_date" label:"刷脸-开始时间"`
  410. EndDate string `json:"end_date" label:"刷脸-截止时间"`
  411. IsTeacher int `json:"is_teacher" label:"是否教师"`
  412. }
  413. type SelfSupportForSchoolArrearsOrdListReq struct {
  414. EnterpriseId int `json:"enterprise_id" label:"企业id"`
  415. Limit int `json:"limit" binding:"required"`
  416. Page int `json:"page" binding:"required"`
  417. Name string `json:"name" label:"姓名"`
  418. Phone string `json:"phone" label:"用户电话"`
  419. OutTradeNo string `json:"out_trade_no" label:"订单号"`
  420. GradeId int `json:"grade_id" label:"年级id"`
  421. ClassId int `json:"class_id" label:"班级id"`
  422. StartDate string `json:"start_date" label:"刷脸-开始时间"`
  423. EndDate string `json:"end_date" label:"刷脸-截止时间"`
  424. IsTeacher int `json:"is_teacher" label:"是否教师"`
  425. }
  426. type SelfSupportForSchoolBlackListReq struct {
  427. EnterpriseId int `json:"enterprise_id" label:"企业id"`
  428. Limit int `json:"limit" binding:"required"`
  429. Page int `json:"page" binding:"required"`
  430. }
  431. type SelfSupportForSchoolArrearsOrdDebtRepayReq struct {
  432. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  433. OutOrderNo string `json:"out_order_no"`
  434. MerchantCode string `json:"merchant_code" `
  435. }
  436. type SelfSupportForSchoolArrearsOrdDebtCancelReq struct {
  437. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  438. OutOrderNo string `json:"out_order_no"`
  439. MerchantCode string `json:"merchant_code" `
  440. }
  441. type SelfSupportForSchoolOrdListResp struct {
  442. EnterpriseId int `json:"enterprise_id" `
  443. EnterpriseName string `json:"enterprise_name" `
  444. Uid int `json:"uid" `
  445. UserIdentityId int `json:"user_identity_id" `
  446. UserIdentityName string `json:"user_identity_name" `
  447. TotalPrice string `json:"total_price" `
  448. OutTradeNo string `json:"out_trade_no" `
  449. TradeNo string `json:"trade_no"`
  450. OrderStatus int `json:"order_status"`
  451. Phone string `json:"phone"`
  452. FaceTime string `json:"face_time"`
  453. Name string `json:"name" label:"姓名"`
  454. Grade string `json:"grade" label:"年级"`
  455. GradeId int `json:"grade_id" label:"年级id"`
  456. Class string `json:"class" label:"班级"`
  457. ClassId int `json:"class_id" label:"班级id"`
  458. DeviceSn string `json:"device_sn" label:"设备编号"`
  459. CpMerchantId string `json:"cp_merchant_id" label:"商户编码"`
  460. }
  461. type CentralKitchenForSchoolBatchAskForLeaveReqBySchool struct {
  462. EnterpriseIds []int `json:"enterprise_ids" binding:"required" label:"企业id"`
  463. IsBreakfast int `json:"is_breakfast" label:"是否退早餐(1:退 0:不退)"`
  464. IsLunch int `json:"is_lunch" label:"是否退午餐(1:退 0:不退)"`
  465. IsDinner int `json:"is_dinner" label:"是否退晚餐(1:退 0:不退)"`
  466. Dates []string `json:"dates"`
  467. }
  468. type CentralKitchenForSchoolBatchAskForLeaveReqByGrade struct {
  469. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  470. GradeIds []int `json:"grade_ids" binding:"required" label:"年级id"`
  471. IsBreakfast int `json:"is_breakfast" label:"是否退早餐(1:退 0:不退)"`
  472. IsLunch int `json:"is_lunch" label:"是否退午餐(1:退 0:不退)"`
  473. IsDinner int `json:"is_dinner" label:"是否退晚餐(1:退 0:不退)"`
  474. Dates []string `json:"dates"`
  475. }
  476. type CentralKitchenForSchoolBatchAskForLeaveReqByClass struct {
  477. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  478. GradeId int `json:"grade_id" binding:"required" label:"年级id"`
  479. ClassIds []int `json:"class_ids" label:"班级id"`
  480. IsBreakfast int `json:"is_breakfast" label:"是否退早餐(1:退 0:不退)"`
  481. IsLunch int `json:"is_lunch" label:"是否退午餐(1:退 0:不退)"`
  482. IsDinner int `json:"is_dinner" label:"是否退晚餐(1:退 0:不退)"`
  483. Dates []string `json:"dates"`
  484. }
  485. type ListNursingHomePackageReq struct {
  486. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  487. Page int `json:"page" label:"页码"`
  488. Limit int `json:"limit" label:"每页数量"`
  489. Year string `json:"year" label:"年份"`
  490. Month string `json:"month" label:"月份"`
  491. }
  492. type EnterpriseUserListByNursingHomeResp struct {
  493. List []EnterpriseUserListByNursingHomeStruct `json:"list"`
  494. Total int64 `json:"total"`
  495. }
  496. type EnterpriseUserListByNursingHomeStruct struct {
  497. Id int `json:"id" label:"支付宝昵称"`
  498. Nickname string `json:"nickname" label:"支付宝昵称"`
  499. Phone string `json:"phone" label:"手机号"`
  500. Avatar string `json:"avatar" label:"头像"`
  501. CreateAt string `json:"create_at" label:"创建时间"`
  502. UserIdentities []struct {
  503. Id int `json:"id" label:"身份id"`
  504. IdNo string `json:"id_no" label:"身份证号"`
  505. EnterpriseName string `json:"enterprise_name" label:"单位名"`
  506. Name string `json:"name" label:"姓名"`
  507. } `json:"user_identities" label:"身份列表"`
  508. }
  509. type NursingHomeUserUpdateReq struct {
  510. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  511. Uid int `json:"uid" binding:"required" label:"用户id"`
  512. Nickname string `json:"nickname" binding:"required" label:"支付宝昵称"`
  513. Phone string `json:"phone" binding:"required" label:"手机号"`
  514. BindUserIdentities []struct {
  515. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  516. IdNo string `json:"id_no" label:"身份证号"`
  517. Name string `json:"name" label:"姓名"`
  518. } `json:"user_identities" label:"身份列表"`
  519. }
  520. type NursingHomeOrdListReq struct {
  521. EnterpriseId int `json:"enterprise_id" label:"企业id"`
  522. Limit int `json:"limit" binding:"required"`
  523. Page int `json:"page" binding:"required"`
  524. Name string `json:"name" label:"姓名"`
  525. OutTradeNo string `json:"out_trade_no" label:"订单号"`
  526. Kind int `json:"kind" label:"预定类型"`
  527. Sate int `json:"state" label:"支付状态"`
  528. OrdSate int `json:"ord_state" label:"订单状态"`
  529. Phone string `json:"phone" label:"家长联系电话"`
  530. StartDate string `json:"start_date" label:"开始时间"`
  531. EndDate string `json:"end_date" label:"截止时间"`
  532. }
  533. type NursingHomeOrdListResp struct {
  534. EnterpriseId int `json:"enterprise_id" `
  535. EnterpriseName string `json:"enterprise_name" `
  536. Uid int `json:"uid" `
  537. UserIdentityId int `json:"user_identity_id" `
  538. UserIdentityKind int `json:"user_identity_kind" `
  539. UserIdentityName string `json:"user_identity_name" `
  540. TotalPrice string `json:"total_price" `
  541. Kind int `json:"kind" `
  542. OutTradeNo string `json:"out_trade_no" `
  543. TradeNo string `json:"trade_no"`
  544. State int `json:"state"`
  545. OrdState int `json:"ord_state"`
  546. CreateAt string `json:"create_at"`
  547. Phone string `json:"phone" label:"家长联系电话"`
  548. Name string `json:"name" label:"姓名"`
  549. }
  550. type NursingHomeReserveListReq struct {
  551. EnterpriseId int `json:"enterprise_id" label:"企业id"`
  552. Limit int `json:"limit" binding:"required"`
  553. Page int `json:"page" binding:"required"`
  554. Name string `json:"name" label:"姓名"`
  555. OutTradeNo string `json:"out_trade_no" label:"订单号"`
  556. Kind int `json:"kind" label:"预定类型"`
  557. Phone string `json:"phone" label:"家长联系电话"`
  558. StartDate string `json:"start_date" label:"开始时间"`
  559. EndDate string `json:"end_date" label:"截止时间"`
  560. }
  561. type NursingHomeReserveListResp struct {
  562. Id int `json:"id" `
  563. EnterpriseId int `json:"enterprise_id" `
  564. EnterpriseName string `json:"enterprise_name" `
  565. Uid int `json:"uid" `
  566. UserIdentityId int `json:"user_identity_id" `
  567. UserIdentityName string `json:"user_identity_name" `
  568. Kind int `json:"kind"`
  569. OutTradeNo string `json:"out_trade_no" `
  570. ReserveMonth string `json:"reserve_month"`
  571. CreateAt string `json:"create_at"`
  572. Phone string `json:"phone" label:"家长联系电话"`
  573. }
  574. type NursingHomeOrdRefundReq struct {
  575. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  576. Ids []string `json:"ids" label:"ids" binding:"required"`
  577. }
  578. type NursingHomeUserDeleteReq struct {
  579. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  580. Uids []int `json:"uids" binding:"required" label:"用户id"`
  581. }
  582. type SetBasicNursingHomeReq struct {
  583. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  584. State int32 `json:"state" label:"状态(1:正常 2:冻结)"`
  585. Name string `json:"name" binding:"required" label:"名称"`
  586. IsOpenBreakfast int `json:"is_open_breakfast" label:"是否开启早餐"`
  587. IsOpenLunch int `json:"is_open_lunch" label:"是否开启午餐"`
  588. IsOpenDinner int `json:"is_open_dinner" label:"是否开启晚餐"`
  589. IsOpenReportMealForDay int `json:"is_open_report_meal_for_day" label:"开启按天报餐(1:开启 2:关闭)"`
  590. IsOpenReportMealForMonth int `json:"is_open_report_meal_for_month" label:"开启按月报餐(1:开启 2:关闭)"`
  591. IsOpenReportMealForYear int `json:"is_open_report_meal_for_year" label:"开启按年报餐(1:开启 2:关闭)"`
  592. }
  593. type SetNursingHomeWithSpecReq struct {
  594. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  595. BreakfastUnitPrice string `json:"breakfast_unit_price" binding:"required" label:"早餐-单价"`
  596. LunchUnitPrice string `json:"lunch_unit_price" binding:"required" label:"午餐-单价"`
  597. DinnerUnitPrice string `json:"dinner_unit_price" binding:"required" label:"晚餐-单价"`
  598. }
  599. type SaveNursingHomePackageReq struct {
  600. PackageId int `json:"package_id" label:"套餐ID"`
  601. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  602. Year string `json:"year" binding:"required" label:"年份"`
  603. Month string `json:"month" binding:"required" label:"月份"`
  604. StartDate string `json:"start_date" binding:"required" label:"开始时间"`
  605. EndDate string `json:"end_date" binding:"required" label:"截止时间"`
  606. State int `json:"state" label:"状态(1:可用 2:不可用)"`
  607. DateList []struct {
  608. Date string `json:"date"`
  609. IsOpenBreakfast int32 `json:"is_open_breakfast"`
  610. IsOpenLunch int32 `json:"is_open_lunch"`
  611. IsOpenDinner int32 `json:"is_open_dinner"`
  612. IsOpenReplenish int32 `json:"is_open_replenish"`
  613. } `json:"date_list" binding:"required" label:"日期"`
  614. }