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

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