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

777 regels
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. PayTime string `json:"pay_time"`
  539. Name string `json:"name" label:"姓名"`
  540. Grade string `json:"grade" label:"年级"`
  541. GradeId int `json:"grade_id" label:"年级id"`
  542. Class string `json:"class" label:"班级"`
  543. ClassId int `json:"class_id" label:"班级id"`
  544. DeviceSn string `json:"device_sn" label:"设备编号"`
  545. ShopName string `json:"shop_name" label:"消费档口"`
  546. CpMerchantId string `json:"cp_merchant_id" label:"商户编码"`
  547. DebtBusinessMsg string `json:"debt_business_msg" label:"欠款原因"`
  548. }
  549. type CentralKitchenForSchoolBatchAskForLeaveReqBySchool struct {
  550. EnterpriseIds []int `json:"enterprise_ids" binding:"required" label:"企业id"`
  551. IsBreakfast int `json:"is_breakfast" label:"是否退早餐(1:退 0:不退)"`
  552. IsLunch int `json:"is_lunch" label:"是否退午餐(1:退 0:不退)"`
  553. IsDinner int `json:"is_dinner" label:"是否退晚餐(1:退 0:不退)"`
  554. Dates []string `json:"dates"`
  555. }
  556. type CentralKitchenForSchoolBatchAskForLeaveReqByGrade struct {
  557. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  558. GradeIds []int `json:"grade_ids" binding:"required" label:"年级id"`
  559. IsBreakfast int `json:"is_breakfast" label:"是否退早餐(1:退 0:不退)"`
  560. IsLunch int `json:"is_lunch" label:"是否退午餐(1:退 0:不退)"`
  561. IsDinner int `json:"is_dinner" label:"是否退晚餐(1:退 0:不退)"`
  562. Dates []string `json:"dates"`
  563. }
  564. type CentralKitchenForSchoolBatchAskForLeaveReqByClass struct {
  565. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  566. GradeId int `json:"grade_id" binding:"required" label:"年级id"`
  567. ClassIds []int `json:"class_ids" label:"班级id"`
  568. IsBreakfast int `json:"is_breakfast" label:"是否退早餐(1:退 0:不退)"`
  569. IsLunch int `json:"is_lunch" label:"是否退午餐(1:退 0:不退)"`
  570. IsDinner int `json:"is_dinner" label:"是否退晚餐(1:退 0:不退)"`
  571. Dates []string `json:"dates"`
  572. }
  573. type ListNursingHomePackageReq struct {
  574. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  575. Page int `json:"page" label:"页码"`
  576. Limit int `json:"limit" label:"每页数量"`
  577. Year string `json:"year" label:"年份"`
  578. Month string `json:"month" label:"月份"`
  579. }
  580. type EnterpriseUserListByNursingHomeResp struct {
  581. List []EnterpriseUserListByNursingHomeStruct `json:"list"`
  582. Total int64 `json:"total"`
  583. }
  584. type EnterpriseUserListByNursingHomeStruct struct {
  585. Id int `json:"id" label:"支付宝昵称"`
  586. Nickname string `json:"nickname" label:"支付宝昵称"`
  587. Phone string `json:"phone" label:"手机号"`
  588. Avatar string `json:"avatar" label:"头像"`
  589. CreateAt string `json:"create_at" label:"创建时间"`
  590. UserIdentities []struct {
  591. Id int `json:"id" label:"身份id"`
  592. IdNo string `json:"id_no" label:"身份证号"`
  593. EnterpriseName string `json:"enterprise_name" label:"单位名"`
  594. Name string `json:"name" label:"姓名"`
  595. } `json:"user_identities" label:"身份列表"`
  596. }
  597. type NursingHomeUserUpdateReq struct {
  598. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  599. Uid int `json:"uid" binding:"required" label:"用户id"`
  600. Nickname string `json:"nickname" binding:"required" label:"支付宝昵称"`
  601. Phone string `json:"phone" binding:"required" label:"手机号"`
  602. BindUserIdentities []struct {
  603. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  604. IdNo string `json:"id_no" label:"身份证号"`
  605. Name string `json:"name" label:"姓名"`
  606. } `json:"user_identities" label:"身份列表"`
  607. }
  608. type NursingHomeOrdListReq struct {
  609. EnterpriseId int `json:"enterprise_id" label:"企业id"`
  610. Limit int `json:"limit" binding:"required"`
  611. Page int `json:"page" binding:"required"`
  612. Name string `json:"name" label:"姓名"`
  613. OutTradeNo string `json:"out_trade_no" label:"订单号"`
  614. Kind int `json:"kind" label:"预定类型"`
  615. Sate int `json:"state" label:"支付状态"`
  616. OrdSate int `json:"ord_state" label:"订单状态"`
  617. Phone string `json:"phone" label:"家长联系电话"`
  618. StartDate string `json:"start_date" label:"开始时间"`
  619. EndDate string `json:"end_date" label:"截止时间"`
  620. }
  621. type NursingHomeOrdListResp struct {
  622. EnterpriseId int `json:"enterprise_id" `
  623. EnterpriseName string `json:"enterprise_name" `
  624. Uid int `json:"uid" `
  625. UserIdentityId int `json:"user_identity_id" `
  626. UserIdentityKind int `json:"user_identity_kind" `
  627. UserIdentityName string `json:"user_identity_name" `
  628. TotalPrice string `json:"total_price" `
  629. Kind int `json:"kind" `
  630. OutTradeNo string `json:"out_trade_no" `
  631. TradeNo string `json:"trade_no"`
  632. State int `json:"state"`
  633. OrdState int `json:"ord_state"`
  634. CreateAt string `json:"create_at"`
  635. Phone string `json:"phone" label:"家长联系电话"`
  636. Name string `json:"name" label:"姓名"`
  637. }
  638. type NursingHomeReserveListReq struct {
  639. EnterpriseId int `json:"enterprise_id" label:"企业id"`
  640. Limit int `json:"limit" binding:"required"`
  641. Page int `json:"page" binding:"required"`
  642. Name string `json:"name" label:"姓名"`
  643. OutTradeNo string `json:"out_trade_no" label:"订单号"`
  644. Kind int `json:"kind" label:"预定类型"`
  645. Phone string `json:"phone" label:"家长联系电话"`
  646. StartDate string `json:"start_date" label:"开始时间"`
  647. EndDate string `json:"end_date" label:"截止时间"`
  648. }
  649. type NursingHomeReserveListResp struct {
  650. Id int `json:"id" `
  651. EnterpriseId int `json:"enterprise_id" `
  652. EnterpriseName string `json:"enterprise_name" `
  653. Uid int `json:"uid" `
  654. UserIdentityId int `json:"user_identity_id" `
  655. UserIdentityName string `json:"user_identity_name" `
  656. Kind int `json:"kind"`
  657. OutTradeNo string `json:"out_trade_no" `
  658. ReserveMonth string `json:"reserve_month"`
  659. CreateAt string `json:"create_at"`
  660. Phone string `json:"phone" label:"家长联系电话"`
  661. }
  662. type NursingHomeOrdRefundReq struct {
  663. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  664. Ids []string `json:"ids" label:"ids" binding:"required"`
  665. }
  666. type NursingHomeUserDeleteReq struct {
  667. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  668. Uids []int `json:"uids" binding:"required" label:"用户id"`
  669. }
  670. type SetBasicNursingHomeReq struct {
  671. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  672. State int32 `json:"state" label:"状态(1:正常 2:冻结)"`
  673. Name string `json:"name" binding:"required" label:"名称"`
  674. IsOpenBreakfast int `json:"is_open_breakfast" label:"是否开启早餐"`
  675. IsOpenLunch int `json:"is_open_lunch" label:"是否开启午餐"`
  676. IsOpenDinner int `json:"is_open_dinner" label:"是否开启晚餐"`
  677. IsOpenReportMealForDay int `json:"is_open_report_meal_for_day" label:"开启按天报餐(1:开启 2:关闭)"`
  678. IsOpenReportMealForMonth int `json:"is_open_report_meal_for_month" label:"开启按月报餐(1:开启 2:关闭)"`
  679. IsOpenReportMealForYear int `json:"is_open_report_meal_for_year" label:"开启按年报餐(1:开启 2:关闭)"`
  680. }
  681. type SetNursingHomeWithSpecReq struct {
  682. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  683. BreakfastUnitPrice string `json:"breakfast_unit_price" binding:"required" label:"早餐-单价"`
  684. LunchUnitPrice string `json:"lunch_unit_price" binding:"required" label:"午餐-单价"`
  685. DinnerUnitPrice string `json:"dinner_unit_price" binding:"required" label:"晚餐-单价"`
  686. }
  687. type SaveNursingHomePackageReq struct {
  688. PackageId int `json:"package_id" label:"套餐ID"`
  689. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  690. Year string `json:"year" binding:"required" label:"年份"`
  691. Month string `json:"month" binding:"required" label:"月份"`
  692. StartDate string `json:"start_date" binding:"required" label:"开始时间"`
  693. EndDate string `json:"end_date" binding:"required" label:"截止时间"`
  694. State int `json:"state" label:"状态(1:可用 2:不可用)"`
  695. DateList []struct {
  696. Date string `json:"date"`
  697. IsOpenBreakfast int32 `json:"is_open_breakfast"`
  698. IsOpenLunch int32 `json:"is_open_lunch"`
  699. IsOpenDinner int32 `json:"is_open_dinner"`
  700. IsOpenReplenish int32 `json:"is_open_replenish"`
  701. } `json:"date_list" binding:"required" label:"日期"`
  702. }