智慧食堂-队列消费项目
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.
 
 
 

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