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

790 lines
40 KiB

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