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

784 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 SelfSupportForSchoolOrdPartRefundReq struct {
  199. EnterpriseId int `json:"enterprise_id" label:"企业id"`
  200. Id string `json:"id" label:"id" binding:"required"`
  201. RefundAmount string `json:"refund_amount" label:"退款金额" binding:"required"`
  202. }
  203. type CentralKitchenForSchoolOrdListResp struct {
  204. EnterpriseId int `json:"enterprise_id" `
  205. EnterpriseName string `json:"enterprise_name" `
  206. Uid int `json:"uid" `
  207. UserIdentityId int `json:"user_identity_id" `
  208. UserIdentityKind int `json:"user_identity_kind" `
  209. UserIdentityName string `json:"user_identity_name" `
  210. TotalPrice string `json:"total_price" `
  211. Kind int `json:"kind" `
  212. OutTradeNo string `json:"out_trade_no" `
  213. TradeNo string `json:"trade_no"`
  214. State int `json:"state"`
  215. OrdState int `json:"ord_state"`
  216. PayWay int `json:"pay_way"`
  217. CreateAt string `json:"create_at"`
  218. Phone string `json:"phone" label:"家长联系电话"`
  219. Name string `json:"name" label:"姓名"`
  220. Grade string `json:"grade" label:"年级"`
  221. GradeId int `json:"grade_id" label:"年级id"`
  222. Class string `json:"class" label:"班级"`
  223. ClassId int `json:"class_id" label:"班级id"`
  224. }
  225. type CentralKitchenForSchoolOrdListReq struct {
  226. EnterpriseId int `json:"enterprise_id" label:"企业id"`
  227. IsTeacher int `json:"is_teacher" label:"是否教师"`
  228. Limit int `json:"limit" binding:"required"`
  229. Page int `json:"page" binding:"required"`
  230. Name string `json:"name" label:"姓名"`
  231. OutTradeNo string `json:"out_trade_no" label:"订单号"`
  232. Kind int `json:"kind" label:"预定类型"`
  233. EnterPriseKind int `json:"enterprise_kind" label:"校企类型"`
  234. Sate int `json:"state" label:"支付状态"`
  235. OrdSate int `json:"ord_state" label:"订单状态"`
  236. PayWay int `json:"pay_way" label:"支付方式(1:支付宝 2:微信)"`
  237. GradeId int `json:"grade_id" label:"年级id"`
  238. ClassId int `json:"class_id" label:"班级id"`
  239. Phone string `json:"phone" label:"家长联系电话"`
  240. StartDate string `json:"start_date" label:"开始时间"`
  241. EndDate string `json:"end_date" label:"截止时间"`
  242. }
  243. type CentralKitchenForSchoolReserveListReq struct {
  244. EnterpriseId int `json:"enterprise_id" label:"企业id"`
  245. Limit int `json:"limit" binding:"required"`
  246. Page int `json:"page" binding:"required"`
  247. Name string `json:"name" label:"姓名"`
  248. OutTradeNo string `json:"out_trade_no" label:"订单号"`
  249. Kind int `json:"kind" label:"预定类型"`
  250. EnterPriseKind int `json:"enterprise_kind" label:"校企类型"`
  251. GradeId int `json:"grade_id" label:"年级id"`
  252. ClassId int `json:"class_id" label:"班级id"`
  253. Phone string `json:"phone" label:"家长联系电话"`
  254. StartDate string `json:"start_date" label:"开始时间"`
  255. EndDate string `json:"end_date" label:"截止时间"`
  256. }
  257. type CentralKitchenForSchoolReserveUpdateStudentReq struct {
  258. Id int `json:"id" `
  259. EnterpriseId int `json:"enterprise_id" label:"企业id"`
  260. UserIdentityId int `json:"user_identity_id" `
  261. OriginalUserIdentityId int `json:"original_user_identity_id" `
  262. Uid int `json:"uid" `
  263. }
  264. type CentralKitchenForSchoolReserveListResp struct {
  265. Id int `json:"id" `
  266. EnterpriseId int `json:"enterprise_id" `
  267. EnterpriseName string `json:"enterprise_name" `
  268. Uid int `json:"uid" `
  269. UserIdentityId int `json:"user_identity_id" `
  270. UserIdentityName string `json:"user_identity_name" `
  271. Kind int `json:"kind"`
  272. OutTradeNo string `json:"out_trade_no" `
  273. TradeNo string `json:"trade_no" `
  274. ReserveMonth string `json:"reserve_month"`
  275. TotalPrice string `json:"total_price"`
  276. CreateAt string `json:"create_at"`
  277. State int `json:"state"`
  278. StateZh string `json:"state_zh"`
  279. Phone string `json:"phone" label:"家长联系电话"`
  280. Grade string `json:"grade" label:"年级"`
  281. GradeId int `json:"grade_id" label:"年级id"`
  282. Class string `json:"class" label:"班级"`
  283. ClassId int `json:"class_id" label:"班级id"`
  284. }
  285. type SelfSupportForSchoolUserUpdateReq struct {
  286. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  287. Uid int `json:"uid" binding:"required" label:"用户id"`
  288. Nickname string `json:"nickname" binding:"required" label:"支付宝昵称"`
  289. Phone string `json:"phone" binding:"required" label:"手机号"`
  290. BindUserIdentities []struct {
  291. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  292. IdNo string `json:"id_no" label:"身份证号"`
  293. CertType int `json:"cert_type" label:"证件类型"`
  294. Name string `json:"name" label:"姓名"`
  295. GradeId int `json:"grade_id" label:"年级"`
  296. ClassId int `json:"class_id" label:"班级"`
  297. } `json:"user_identities" label:"身份列表"`
  298. }
  299. type SelfSupportForSchoolUserDeleteReq struct {
  300. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  301. Uids []int `json:"uids" binding:"required" label:"用户id"`
  302. }
  303. type SelfSupportForSchoolStudentListReq struct {
  304. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  305. Limit int `json:"limit" binding:"required"`
  306. Page int `json:"page" binding:"required"`
  307. Name string `json:"name" label:"姓名"`
  308. IdNo string `json:"id_no" label:"身份证号"`
  309. Phone string `json:"phone" label:"手机号"`
  310. GradeId int `json:"grade_id" label:"年级id"`
  311. ClassId int `json:"class_id" label:"班级id"`
  312. }
  313. type SelfSupportForSchoolStudentListResp struct {
  314. IdNo string `json:"id_no" label:"证件号"`
  315. CertType int `json:"cert_type" label:"证件类型"`
  316. ParentPhone string `json:"parent_phone" label:"家长电话"`
  317. Name string `json:"name" label:"姓名"`
  318. Grade string `json:"grade" label:"年级"`
  319. GradeId int `json:"grade_id" label:"年级id"`
  320. Class string `json:"class" label:"班级"`
  321. ClassId int `json:"class_id" label:"班级"`
  322. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  323. CollectFaceType int `json:"collect_face_type" label:"采集人脸方式(1:个采 2:集采) "`
  324. SchoolFacePassStatus string `json:"school_face_pass_status" label:"校园一脸通行开通状态(开通:OPEN 关闭:CLOSE) "`
  325. SchoolFacePaymentStatus string `json:"school_face_payment_status" label:"校园一脸通行刷脸支付开通状态(开通:OPEN 关闭:CLOSE) "`
  326. }
  327. type SelfSupportForSchoolTeacherListReq struct {
  328. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  329. Limit int `json:"limit" binding:"required"`
  330. Page int `json:"page" binding:"required"`
  331. Name string `json:"name" label:"姓名"`
  332. IdNo string `json:"id_no" label:"身份证号"`
  333. }
  334. type SelfSupportForSchoolTeacherListResp struct {
  335. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  336. IdNo string `json:"id_no" label:"身份证号"`
  337. CertType int `json:"cert_type" label:"证件类型"`
  338. Phone string `json:"parent_phone" label:"电话"`
  339. Name string `json:"name" label:"姓名"`
  340. CollectFaceType int `json:"collect_face_type" label:"采集人脸方式(1:个采 2:集采) "`
  341. SchoolFacePassStatus string `json:"school_face_pass_status" label:"校园一脸通行开通状态(开通:OPEN 关闭:CLOSE) "`
  342. SchoolFacePaymentStatus string `json:"school_face_payment_status" label:"校园一脸通行刷脸支付开通状态(开通:OPEN 关闭:CLOSE) "`
  343. }
  344. type SelfSupportForSchoolStudentUpdateReq struct {
  345. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  346. UserIdentityId int `json:"user_identity_id" binding:"required" label:"用户身份id"`
  347. IdNo string `json:"id_no" label:"身份证号"`
  348. CertType int `json:"cert_type" label:"证件类型(1:身份证 2:学工号 3:护照)"`
  349. Name string `json:"name" label:"姓名"`
  350. GradeId int `json:"grade_id" label:"年级id"`
  351. ClassId int `json:"class_id" label:"班级id"`
  352. CollectFaceType int `json:"collect_face_type" label:"采集人脸方式(1:个采 2:集采)"`
  353. }
  354. type SelfSupportForSchoolStudentAddReq struct {
  355. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  356. IdNo string `json:"id_no" label:"身份证号"`
  357. CertType int `json:"cert_type" label:"证件类型(1:身份证 2:学工号 3:护照)"`
  358. Name string `json:"name" label:"姓名"`
  359. GradeId int `json:"grade_id" label:"年级id"`
  360. ClassId int `json:"class_id" label:"班级id"`
  361. CollectFaceType int `json:"collect_face_type" label:"采集人脸方式(1:个采 2:集采)"`
  362. }
  363. type SelfSupportForSchoolStudentDeleteReq struct {
  364. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  365. UserIdentityIds []int `json:"user_identity_ids" binding:"required" label:"用户身份id"`
  366. }
  367. type SelfSupportForSchoolStudentAdmissionReq struct {
  368. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  369. ClassId int `json:"class_id" label:"班级id"`
  370. GradeId int `json:"grade_id" label:"年级id"`
  371. }
  372. type SelfSupportForSchoolTeacherUpdateReq struct {
  373. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  374. UserIdentityId int `json:"user_identity_id" binding:"required" label:"用户身份id"`
  375. IdNo string `json:"id_no" label:"身份证号"`
  376. CertType int `json:"cert_type" label:"证件类型"`
  377. Name string `json:"name" label:"姓名"`
  378. CollectFaceType int `json:"collect_face_type" label:"采集人脸方式(1:个采 2:集采)"`
  379. }
  380. type SelfSupportForSchoolTeacherDeleteReq struct {
  381. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  382. UserIdentityIds []int `json:"user_identity_ids" binding:"required" label:"用户身份id"`
  383. }
  384. type SelfSupportForSchoolWorkerListReq struct {
  385. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  386. Limit int `json:"limit" binding:"required"`
  387. Page int `json:"page" binding:"required"`
  388. Name string `json:"name" label:"姓名"`
  389. IdNo string `json:"id_no" label:"身份证号"`
  390. }
  391. type SelfSupportForSchoolWorkerListResp struct {
  392. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  393. IdNo string `json:"id_no" label:"身份证号"`
  394. CertType int `json:"cert_type" label:"证件类型"`
  395. Phone string `json:"parent_phone" label:"电话"`
  396. Name string `json:"name" label:"姓名"`
  397. CreateAt string `json:"create_at" label:"创建时间"`
  398. }
  399. type SelfSupportForSchoolWorkerUpdateReq struct {
  400. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  401. UserIdentityId int `json:"user_identity_id" binding:"required" label:"用户身份id"`
  402. IdNo string `json:"id_no" label:"身份证号"`
  403. Name string `json:"name" label:"姓名"`
  404. }
  405. type SelfSupportForSchoolWorkerDeleteReq struct {
  406. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  407. UserIdentityIds []int `json:"user_identity_ids" binding:"required" label:"用户身份id"`
  408. }
  409. type CentralKitchenForSchoolGradeListReq struct {
  410. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  411. Limit int `json:"limit" binding:"required"`
  412. Page int `json:"page" binding:"required"`
  413. Name string `json:"name" label:"名称"`
  414. }
  415. type CentralKitchenForSchoolClassListReq struct {
  416. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  417. GradeId int `json:"grade_id" label:"年级id"`
  418. Limit int `json:"limit" binding:"required"`
  419. Page int `json:"page" binding:"required"`
  420. Name string `json:"name" label:"名称"`
  421. }
  422. type SelfSupportForSchoolGradeListReq struct {
  423. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  424. Limit int `json:"limit" binding:"required"`
  425. Page int `json:"page" binding:"required"`
  426. Name string `json:"name" label:"名称"`
  427. }
  428. type SelfSupportForSchoolClassListReq struct {
  429. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  430. GradeId int `json:"grade_id" label:"年级id"`
  431. Limit int `json:"limit" binding:"required"`
  432. Page int `json:"page" binding:"required"`
  433. Name string `json:"name" label:"名称"`
  434. }
  435. type SelfSupportForSchoolAddWorkerReq 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. }
  440. type SelfSupportForSchoolAddTeacherReq struct {
  441. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  442. Name string `json:"name" label:"名称"`
  443. IdNo string `json:"id_no" label:"身份证号"`
  444. CertType int `json:"cert_type" label:"证件类型"`
  445. }
  446. type SelfSupportForSchoolOrdListReq struct {
  447. EnterpriseId int `json:"enterprise_id" label:"企业id"`
  448. EnterpriseKind int `json:"enterprise_kind" label:"校企类型"`
  449. Limit int `json:"limit" binding:"required"`
  450. Page int `json:"page" binding:"required"`
  451. Name string `json:"name" label:"姓名"`
  452. Phone string `json:"phone" label:"用户电话"`
  453. OutTradeNo string `json:"out_trade_no" label:"订单号"`
  454. OrderStatus int `json:"order_status" label:"订单状态"`
  455. GradeId int `json:"grade_id" label:"年级id"`
  456. ClassId int `json:"class_id" label:"班级id"`
  457. StartDate string `json:"start_date" label:"刷脸-开始时间"`
  458. EndDate string `json:"end_date" label:"刷脸-截止时间"`
  459. IsTeacher int `json:"is_teacher" label:"是否教师"`
  460. }
  461. type SelfSupportForSchoolConsumeLimitReq struct {
  462. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  463. DailyConsumeLimit string `json:"daily_consume_limit" label:"单日金额上限"`
  464. SingleConsumeLimit string `json:"single_consume_limit" label:"单笔金额上限"`
  465. DailyMaxConsumeTimes string `json:"daily_max_consume_times" label:"单日最大消费次数"`
  466. RosterPeriodConsumeLimitConfigList []RosterPeriodConsumeLimitConfig `json:"roster_period_consume_limit_config_list" label:"餐段设置"`
  467. }
  468. type RosterPeriodConsumeLimitConfig struct {
  469. PeriodDesc string `json:"period_desc" label:"餐段时间描述"`
  470. StartTime string `json:"start_time" label:"餐段开始时间,格式为:xx:xx"`
  471. EndTime string `json:"end_time" label:"餐段结束时间,格式为:xx:xx"`
  472. MaxConsumeTimes int `json:"max_consume_times" label:"餐段内最大消费次数,默认值1,最大9"`
  473. }
  474. type SelfSupportForSchoolConsumeLimitListReq struct {
  475. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  476. EnterpriseKind int `json:"enterprise_kind" label:"企业类型"`
  477. Limit int `json:"limit" binding:"required"`
  478. Page int `json:"page" binding:"required"`
  479. Name string `json:"name" label:"姓名"`
  480. GradeId int `json:"grade_id" label:"年级id"`
  481. ClassId int `json:"class_id" label:"班级id"`
  482. Phone string `json:"phone" label:"用户电话"`
  483. DailyConsumeLimit string `json:"daily_consume_limit" label:"单日金额上限"`
  484. SingleConsumeLimit string `json:"single_consume_limit" label:"单笔金额上限"`
  485. DailyMaxConsumeTimes string `json:"daily_max_consume_times" label:"单日最大消费次数"`
  486. IsTeacher int `json:"is_teacher" label:"是否教师"`
  487. }
  488. type SelfSupportForSchoolConsumeLimitListResp struct {
  489. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  490. Name string `json:"name" label:"姓名"`
  491. GradeId int `json:"grade_id" label:"年级id"`
  492. GradeName string `json:"grade_name" label:"年级名称"`
  493. ClassId int `json:"class_id" label:"班级id"`
  494. ClassName string `json:"class_name" label:"班级名称"`
  495. Phone string `json:"phone" label:"用户电话"`
  496. DailyConsumeLimit string `json:"daily_consume_limit" label:"单日金额上限"`
  497. SingleConsumeLimit string `json:"single_consume_limit" label:"单笔金额上限"`
  498. DailyMaxConsumeTimes string `json:"daily_max_consume_times" label:"单日最大消费次数"`
  499. RosterPeriodConsumeLimitConfigList []RosterPeriodConsumeLimitConfig `json:"roster_period_consume_limit_config_list" label:"餐段设置"`
  500. }
  501. type SelfSupportForSchoolArrearsOrdListReq struct {
  502. EnterpriseId int `json:"enterprise_id" label:"企业id"`
  503. EnterpriseKind int `json:"enterprise_kind" label:"企业类型"`
  504. Limit int `json:"limit" binding:"required"`
  505. Page int `json:"page" binding:"required"`
  506. Name string `json:"name" label:"姓名"`
  507. Phone string `json:"phone" label:"用户电话"`
  508. OutTradeNo string `json:"out_trade_no" label:"订单号"`
  509. GradeId int `json:"grade_id" label:"年级id"`
  510. ClassId int `json:"class_id" label:"班级id"`
  511. StartDate string `json:"start_date" label:"刷脸-开始时间"`
  512. EndDate string `json:"end_date" label:"刷脸-截止时间"`
  513. IsTeacher int `json:"is_teacher" label:"是否教师"`
  514. }
  515. type SelfSupportForSchoolBlackListReq struct {
  516. EnterpriseId int `json:"enterprise_id" label:"企业id"`
  517. Limit int `json:"limit" binding:"required"`
  518. Page int `json:"page" binding:"required"`
  519. }
  520. type SelfSupportForSchoolArrearsOrdDebtRepayReq 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 SelfSupportForSchoolArrearsOrdDebtCancelReq struct {
  526. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  527. OutOrderNo string `json:"out_order_no"`
  528. MerchantCode string `json:"merchant_code" `
  529. }
  530. type SelfSupportForSchoolOrdListResp struct {
  531. Id int `json:"id" `
  532. EnterpriseId int `json:"enterprise_id" `
  533. EnterpriseName string `json:"enterprise_name" `
  534. Uid int `json:"uid" `
  535. UserIdentityId int `json:"user_identity_id" `
  536. UserIdentityName string `json:"user_identity_name" `
  537. TotalPrice string `json:"total_price" `
  538. RefundAmount string `json:"refund_amount" `
  539. OutTradeNo string `json:"out_trade_no" `
  540. TradeNo string `json:"trade_no"`
  541. OrderStatus int `json:"order_status"`
  542. Phone string `json:"phone"`
  543. FaceTime string `json:"face_time"`
  544. PayTime string `json:"pay_time"`
  545. Name string `json:"name" label:"姓名"`
  546. Grade string `json:"grade" label:"年级"`
  547. GradeId int `json:"grade_id" label:"年级id"`
  548. Class string `json:"class" label:"班级"`
  549. ClassId int `json:"class_id" label:"班级id"`
  550. DeviceSn string `json:"device_sn" label:"设备编号"`
  551. ShopName string `json:"shop_name" label:"消费档口"`
  552. CpMerchantId string `json:"cp_merchant_id" label:"商户编码"`
  553. DebtBusinessMsg string `json:"debt_business_msg" label:"欠款原因"`
  554. }
  555. type CentralKitchenForSchoolBatchAskForLeaveReqBySchool struct {
  556. EnterpriseIds []int `json:"enterprise_ids" binding:"required" label:"企业id"`
  557. IsBreakfast int `json:"is_breakfast" label:"是否退早餐(1:退 0:不退)"`
  558. IsLunch int `json:"is_lunch" label:"是否退午餐(1:退 0:不退)"`
  559. IsDinner int `json:"is_dinner" label:"是否退晚餐(1:退 0:不退)"`
  560. Dates []string `json:"dates"`
  561. }
  562. type CentralKitchenForSchoolBatchAskForLeaveReqByGrade struct {
  563. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  564. GradeIds []int `json:"grade_ids" binding:"required" label:"年级id"`
  565. IsBreakfast int `json:"is_breakfast" label:"是否退早餐(1:退 0:不退)"`
  566. IsLunch int `json:"is_lunch" label:"是否退午餐(1:退 0:不退)"`
  567. IsDinner int `json:"is_dinner" label:"是否退晚餐(1:退 0:不退)"`
  568. Dates []string `json:"dates"`
  569. }
  570. type CentralKitchenForSchoolBatchAskForLeaveReqByClass struct {
  571. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  572. GradeId int `json:"grade_id" binding:"required" label:"年级id"`
  573. ClassIds []int `json:"class_ids" label:"班级id"`
  574. IsBreakfast int `json:"is_breakfast" label:"是否退早餐(1:退 0:不退)"`
  575. IsLunch int `json:"is_lunch" label:"是否退午餐(1:退 0:不退)"`
  576. IsDinner int `json:"is_dinner" label:"是否退晚餐(1:退 0:不退)"`
  577. Dates []string `json:"dates"`
  578. }
  579. type ListNursingHomePackageReq struct {
  580. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  581. Page int `json:"page" label:"页码"`
  582. Limit int `json:"limit" label:"每页数量"`
  583. Year string `json:"year" label:"年份"`
  584. Month string `json:"month" label:"月份"`
  585. }
  586. type EnterpriseUserListByNursingHomeResp struct {
  587. List []EnterpriseUserListByNursingHomeStruct `json:"list"`
  588. Total int64 `json:"total"`
  589. }
  590. type EnterpriseUserListByNursingHomeStruct struct {
  591. Id int `json:"id" label:"支付宝昵称"`
  592. Nickname string `json:"nickname" label:"支付宝昵称"`
  593. Phone string `json:"phone" label:"手机号"`
  594. Avatar string `json:"avatar" label:"头像"`
  595. CreateAt string `json:"create_at" label:"创建时间"`
  596. UserIdentities []struct {
  597. Id int `json:"id" label:"身份id"`
  598. IdNo string `json:"id_no" label:"身份证号"`
  599. EnterpriseName string `json:"enterprise_name" label:"单位名"`
  600. Name string `json:"name" label:"姓名"`
  601. } `json:"user_identities" label:"身份列表"`
  602. }
  603. type NursingHomeUserUpdateReq struct {
  604. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  605. Uid int `json:"uid" binding:"required" label:"用户id"`
  606. Nickname string `json:"nickname" binding:"required" label:"支付宝昵称"`
  607. Phone string `json:"phone" binding:"required" label:"手机号"`
  608. BindUserIdentities []struct {
  609. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  610. IdNo string `json:"id_no" label:"身份证号"`
  611. Name string `json:"name" label:"姓名"`
  612. } `json:"user_identities" label:"身份列表"`
  613. }
  614. type NursingHomeOrdListReq struct {
  615. EnterpriseId int `json:"enterprise_id" label:"企业id"`
  616. Limit int `json:"limit" binding:"required"`
  617. Page int `json:"page" binding:"required"`
  618. Name string `json:"name" label:"姓名"`
  619. OutTradeNo string `json:"out_trade_no" label:"订单号"`
  620. Kind int `json:"kind" label:"预定类型"`
  621. Sate int `json:"state" label:"支付状态"`
  622. OrdSate int `json:"ord_state" label:"订单状态"`
  623. Phone string `json:"phone" label:"家长联系电话"`
  624. StartDate string `json:"start_date" label:"开始时间"`
  625. EndDate string `json:"end_date" label:"截止时间"`
  626. }
  627. type NursingHomeOrdListResp struct {
  628. EnterpriseId int `json:"enterprise_id" `
  629. EnterpriseName string `json:"enterprise_name" `
  630. Uid int `json:"uid" `
  631. UserIdentityId int `json:"user_identity_id" `
  632. UserIdentityKind int `json:"user_identity_kind" `
  633. UserIdentityName string `json:"user_identity_name" `
  634. TotalPrice string `json:"total_price" `
  635. Kind int `json:"kind" `
  636. OutTradeNo string `json:"out_trade_no" `
  637. TradeNo string `json:"trade_no"`
  638. State int `json:"state"`
  639. OrdState int `json:"ord_state"`
  640. CreateAt string `json:"create_at"`
  641. Phone string `json:"phone" label:"家长联系电话"`
  642. Name string `json:"name" label:"姓名"`
  643. }
  644. type NursingHomeReserveListReq struct {
  645. EnterpriseId int `json:"enterprise_id" label:"企业id"`
  646. Limit int `json:"limit" binding:"required"`
  647. Page int `json:"page" binding:"required"`
  648. Name string `json:"name" label:"姓名"`
  649. OutTradeNo string `json:"out_trade_no" label:"订单号"`
  650. Kind int `json:"kind" label:"预定类型"`
  651. Phone string `json:"phone" label:"家长联系电话"`
  652. StartDate string `json:"start_date" label:"开始时间"`
  653. EndDate string `json:"end_date" label:"截止时间"`
  654. }
  655. type NursingHomeReserveListResp struct {
  656. Id int `json:"id" `
  657. EnterpriseId int `json:"enterprise_id" `
  658. EnterpriseName string `json:"enterprise_name" `
  659. Uid int `json:"uid" `
  660. UserIdentityId int `json:"user_identity_id" `
  661. UserIdentityName string `json:"user_identity_name" `
  662. Kind int `json:"kind"`
  663. OutTradeNo string `json:"out_trade_no" `
  664. ReserveMonth string `json:"reserve_month"`
  665. CreateAt string `json:"create_at"`
  666. Phone string `json:"phone" label:"家长联系电话"`
  667. }
  668. type NursingHomeOrdRefundReq struct {
  669. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  670. Ids []string `json:"ids" label:"ids" binding:"required"`
  671. }
  672. type NursingHomeUserDeleteReq struct {
  673. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  674. Uids []int `json:"uids" binding:"required" label:"用户id"`
  675. }
  676. type SetBasicNursingHomeReq struct {
  677. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  678. State int32 `json:"state" label:"状态(1:正常 2:冻结)"`
  679. Name string `json:"name" binding:"required" label:"名称"`
  680. IsOpenBreakfast int `json:"is_open_breakfast" label:"是否开启早餐"`
  681. IsOpenLunch int `json:"is_open_lunch" label:"是否开启午餐"`
  682. IsOpenDinner int `json:"is_open_dinner" label:"是否开启晚餐"`
  683. IsOpenReportMealForDay int `json:"is_open_report_meal_for_day" label:"开启按天报餐(1:开启 2:关闭)"`
  684. IsOpenReportMealForMonth int `json:"is_open_report_meal_for_month" label:"开启按月报餐(1:开启 2:关闭)"`
  685. IsOpenReportMealForYear int `json:"is_open_report_meal_for_year" label:"开启按年报餐(1:开启 2:关闭)"`
  686. }
  687. type SetNursingHomeWithSpecReq struct {
  688. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  689. BreakfastUnitPrice string `json:"breakfast_unit_price" binding:"required" label:"早餐-单价"`
  690. LunchUnitPrice string `json:"lunch_unit_price" binding:"required" label:"午餐-单价"`
  691. DinnerUnitPrice string `json:"dinner_unit_price" binding:"required" label:"晚餐-单价"`
  692. }
  693. type SaveNursingHomePackageReq struct {
  694. PackageId int `json:"package_id" label:"套餐ID"`
  695. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  696. Year string `json:"year" binding:"required" label:"年份"`
  697. Month string `json:"month" binding:"required" label:"月份"`
  698. StartDate string `json:"start_date" binding:"required" label:"开始时间"`
  699. EndDate string `json:"end_date" binding:"required" label:"截止时间"`
  700. State int `json:"state" label:"状态(1:可用 2:不可用)"`
  701. DateList []struct {
  702. Date string `json:"date"`
  703. IsOpenBreakfast int32 `json:"is_open_breakfast"`
  704. IsOpenLunch int32 `json:"is_open_lunch"`
  705. IsOpenDinner int32 `json:"is_open_dinner"`
  706. IsOpenReplenish int32 `json:"is_open_replenish"`
  707. } `json:"date_list" binding:"required" label:"日期"`
  708. }