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

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