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

647 lines
32 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. SchoolName string `json:"school_name" label:"学校名"`
  26. Name string `json:"name" label:"姓名"`
  27. Grade string `json:"grade" label:"年级"`
  28. GradeId int `json:"grade_id" label:"年级id"`
  29. Class string `json:"class" label:"班级"`
  30. ClassId int `json:"class_id" label:"班级id"`
  31. } `json:"user_identities" label:"身份列表"`
  32. }
  33. type EnterpriseUserListByCentralKitchenForSchoolResp struct {
  34. List []EnterpriseUserListByCentralKitchenForSchoolStruct `json:"list"`
  35. Total int64 `json:"total"`
  36. UserIdentityKindList interface{} `json:"user_identity_kind_list"`
  37. }
  38. type CentralKitchenForSchoolUserUpdateReq struct {
  39. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  40. Uid int `json:"uid" binding:"required" label:"用户id"`
  41. Nickname string `json:"nickname" binding:"required" label:"支付宝昵称"`
  42. Phone string `json:"phone" binding:"required" label:"手机号"`
  43. BindUserIdentities []struct {
  44. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  45. IdNo string `json:"id_no" label:"身份证号"`
  46. Name string `json:"name" label:"姓名"`
  47. GradeId int `json:"grade_id" label:"年级"`
  48. ClassId int `json:"class_id" label:"班级"`
  49. } `json:"user_identities" label:"身份列表"`
  50. }
  51. type CentralKitchenForSchoolUserUpdateReqV2 struct {
  52. Uid int `json:"uid" binding:"required" label:"用户id"`
  53. Nickname string `json:"nickname" binding:"required" label:"支付宝昵称"`
  54. Phone string `json:"phone" binding:"required" label:"手机号"`
  55. BindUserIdentities []struct {
  56. EnterpriseId int `json:"enterprise_id" label:"企业id"`
  57. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  58. IdNo string `json:"id_no" label:"身份证号"`
  59. Name string `json:"name" label:"姓名"`
  60. GradeId int `json:"grade_id" label:"年级"`
  61. ClassId int `json:"class_id" label:"班级"`
  62. } `json:"user_identities" label:"身份列表"`
  63. }
  64. type CentralKitchenForSchoolUserDeleteReq struct {
  65. EnterpriseId int `json:"enterprise_id" label:"企业id"`
  66. Uids []int `json:"uids" binding:"required" label:"用户id"`
  67. }
  68. type CentralKitchenForSchoolStudentListReq struct {
  69. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  70. Limit int `json:"limit" binding:"required"`
  71. Page int `json:"page" binding:"required"`
  72. Name string `json:"name" label:"姓名"`
  73. IdNo string `json:"id_no" label:"身份证号"`
  74. Phone string `json:"phone" label:"手机号"`
  75. GradeId int `json:"grade_id" label:"年级id"`
  76. ClassId int `json:"class_id" label:"班级id"`
  77. }
  78. type CentralKitchenForSchoolTeacherListReq struct {
  79. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  80. Limit int `json:"limit" binding:"required"`
  81. Page int `json:"page" binding:"required"`
  82. Name string `json:"name" label:"姓名"`
  83. IdNo string `json:"id_no" label:"身份证号"`
  84. }
  85. type CentralKitchenForSchoolStudentListResp struct {
  86. IdNo string `json:"id_no" label:"身份证号"`
  87. ParentPhone string `json:"parent_phone" label:"家长电话"`
  88. Name string `json:"name" label:"姓名"`
  89. Grade string `json:"grade" label:"年级"`
  90. GradeId int `json:"grade_id" label:"年级id"`
  91. Class string `json:"class" label:"班级"`
  92. ClassId int `json:"class_id" label:"班级"`
  93. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  94. }
  95. type CentralKitchenForSchoolTeacherListResp struct {
  96. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  97. IdNo string `json:"id_no" label:"身份证号"`
  98. Phone string `json:"parent_phone" label:"电话"`
  99. Name string `json:"name" label:"姓名"`
  100. }
  101. type CentralKitchenForSchoolTeacherUpdateReq struct {
  102. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  103. UserIdentityId int `json:"user_identity_id" binding:"required" label:"用户身份id"`
  104. IdNo string `json:"id_no" label:"身份证号"`
  105. Name string `json:"name" label:"姓名"`
  106. }
  107. type CentralKitchenForSchoolStudentUpdateReq struct {
  108. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  109. UserIdentityId int `json:"user_identity_id" binding:"required" label:"用户身份id"`
  110. IdNo string `json:"id_no" label:"身份证号"`
  111. Name string `json:"name" label:"姓名"`
  112. GradeId int `json:"grade_id" label:"年级id"`
  113. ClassId int `json:"class_id" label:"班级id"`
  114. }
  115. type CentralKitchenForSchoolStudentDeleteReq struct {
  116. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  117. UserIdentityIds []int `json:"user_identity_ids" binding:"required" label:"用户身份id"`
  118. }
  119. type CentralKitchenForSchoolTeacherDeleteReq struct {
  120. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  121. UserIdentityIds []int `json:"user_identity_ids" binding:"required" label:"用户身份id"`
  122. }
  123. type CentralKitchenForSchoolStudentAdmissionReq struct {
  124. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  125. ClassId int `json:"class_id" label:"班级id"`
  126. GradeId int `json:"grade_id" label:"年级id"`
  127. }
  128. type SetCentralKitchenForSchoolWithSpecReq struct {
  129. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  130. BreakfastUnitPrice string `json:"breakfast_unit_price" binding:"required" label:"早餐-单价"`
  131. BreakfastUnitPriceForTeacher string `json:"breakfast_unit_price_for_teacher" binding:"required" label:"教师-早餐-单价"`
  132. LunchUnitPrice string `json:"lunch_unit_price" binding:"required" label:"午餐-单价"`
  133. LunchUnitPriceForTeacher string `json:"lunch_unit_price_for_teacher" binding:"required" label:"教师-午餐-单价"`
  134. DinnerUnitPrice string `json:"dinner_unit_price" binding:"required" label:"晚餐-单价"`
  135. DinnerUnitPriceForTeacher string `json:"dinner_unit_price_for_teacher" binding:"required" label:"教师-晚餐-单价"`
  136. }
  137. type SaveCentralKitchenForSchoolPackageReq struct {
  138. PackageId int `json:"package_id" label:"套餐ID"`
  139. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  140. Year string `json:"year" binding:"required" label:"年份"`
  141. Month string `json:"month" binding:"required" label:"月份"`
  142. StartDate string `json:"start_date" binding:"required" label:"开始时间"`
  143. EndDate string `json:"end_date" binding:"required" label:"截止时间"`
  144. State int `json:"state" label:"状态(1:可用 2:不可用)"`
  145. DateList []struct {
  146. Date string `json:"date"`
  147. IsOpenBreakfast int32 `json:"is_open_breakfast"`
  148. IsOpenLunch int32 `json:"is_open_lunch"`
  149. IsOpenDinner int32 `json:"is_open_dinner"`
  150. IsOpenReplenish int32 `json:"is_open_replenish"`
  151. } `json:"date_list" binding:"required" label:"日期"`
  152. }
  153. type SetBasicCentralKitchenForSchoolReq struct {
  154. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  155. State int32 `json:"state" label:"状态(1:正常 2:冻结)"`
  156. Name string `json:"name" binding:"required" label:"名称"`
  157. IsOpenBreakfast int `json:"is_open_breakfast" label:"是否开启早餐"`
  158. IsOpenLunch int `json:"is_open_lunch" label:"是否开启午餐"`
  159. IsOpenDinner int `json:"is_open_dinner" label:"是否开启晚餐"`
  160. IsOpenReportMealForDay int `json:"is_open_report_meal_for_day" label:"开启按天报餐(1:开启 2:关闭)"`
  161. IsOpenReportMealForMonth int `json:"is_open_report_meal_for_month" label:"开启按月报餐(1:开启 2:关闭)"`
  162. IsOpenReportMealForSemester int `json:"is_open_report_meal_for_semester" label:"开启按学期报餐(1:开启 2:关闭)"`
  163. IsOpenTeacherReportMeal int `json:"is_open_teacher_report_meal" label:"'教师报餐(1:开启 2:关闭)"`
  164. }
  165. type ListCentralKitchenForSchoolPackageReq struct {
  166. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  167. Page int `json:"page" label:"页码"`
  168. Limit int `json:"limit" label:"每页数量"`
  169. Year string `json:"year" label:"年份"`
  170. Month string `json:"month" label:"月份"`
  171. }
  172. type CentralKitchenForSchoolOrdRefundReq struct {
  173. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  174. Ids []string `json:"ids" label:"ids" binding:"required"`
  175. }
  176. type CentralKitchenForSchoolOrdListResp struct {
  177. EnterpriseId int `json:"enterprise_id" `
  178. EnterpriseName string `json:"enterprise_name" `
  179. Uid int `json:"uid" `
  180. UserIdentityId int `json:"user_identity_id" `
  181. UserIdentityKind int `json:"user_identity_kind" `
  182. UserIdentityName string `json:"user_identity_name" `
  183. TotalPrice string `json:"total_price" `
  184. Kind int `json:"kind" `
  185. OutTradeNo string `json:"out_trade_no" `
  186. TradeNo string `json:"trade_no"`
  187. State int `json:"state"`
  188. OrdState int `json:"ord_state"`
  189. CreateAt string `json:"create_at"`
  190. Phone string `json:"phone" label:"家长联系电话"`
  191. Name string `json:"name" label:"姓名"`
  192. Grade string `json:"grade" label:"年级"`
  193. GradeId int `json:"grade_id" label:"年级id"`
  194. Class string `json:"class" label:"班级"`
  195. ClassId int `json:"class_id" label:"班级id"`
  196. }
  197. type CentralKitchenForSchoolOrdListReq struct {
  198. EnterpriseId int `json:"enterprise_id" label:"企业id"`
  199. IsTeacher int `json:"is_teacher" label:"是否教师"`
  200. Limit int `json:"limit" binding:"required"`
  201. Page int `json:"page" binding:"required"`
  202. Name string `json:"name" label:"姓名"`
  203. OutTradeNo string `json:"out_trade_no" label:"订单号"`
  204. Kind int `json:"kind" label:"预定类型"`
  205. Sate int `json:"state" label:"支付状态"`
  206. OrdSate int `json:"ord_state" label:"订单状态"`
  207. GradeId int `json:"grade_id" label:"年级id"`
  208. ClassId int `json:"class_id" label:"班级id"`
  209. Phone string `json:"phone" label:"家长联系电话"`
  210. StartDate string `json:"start_date" label:"开始时间"`
  211. EndDate string `json:"end_date" label:"截止时间"`
  212. }
  213. type CentralKitchenForSchoolReserveListReq struct {
  214. EnterpriseId int `json:"enterprise_id" label:"企业id"`
  215. Limit int `json:"limit" binding:"required"`
  216. Page int `json:"page" binding:"required"`
  217. Name string `json:"name" label:"姓名"`
  218. OutTradeNo string `json:"out_trade_no" label:"订单号"`
  219. Kind int `json:"kind" label:"预定类型"`
  220. GradeId int `json:"grade_id" label:"年级id"`
  221. ClassId int `json:"class_id" label:"班级id"`
  222. Phone string `json:"phone" label:"家长联系电话"`
  223. StartDate string `json:"start_date" label:"开始时间"`
  224. EndDate string `json:"end_date" label:"截止时间"`
  225. }
  226. type CentralKitchenForSchoolReserveListResp struct {
  227. Id int `json:"id" `
  228. EnterpriseId int `json:"enterprise_id" `
  229. EnterpriseName string `json:"enterprise_name" `
  230. Uid int `json:"uid" `
  231. UserIdentityId int `json:"user_identity_id" `
  232. UserIdentityName string `json:"user_identity_name" `
  233. Kind int `json:"kind"`
  234. OutTradeNo string `json:"out_trade_no" `
  235. ReserveMonth string `json:"reserve_month"`
  236. CreateAt string `json:"create_at"`
  237. Phone string `json:"phone" label:"家长联系电话"`
  238. Grade string `json:"grade" label:"年级"`
  239. GradeId int `json:"grade_id" label:"年级id"`
  240. Class string `json:"class" label:"班级"`
  241. ClassId int `json:"class_id" label:"班级id"`
  242. }
  243. type SelfSupportForSchoolUserUpdateReq struct {
  244. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  245. Uid int `json:"uid" binding:"required" label:"用户id"`
  246. Nickname string `json:"nickname" binding:"required" label:"支付宝昵称"`
  247. Phone string `json:"phone" binding:"required" label:"手机号"`
  248. BindUserIdentities []struct {
  249. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  250. IdNo string `json:"id_no" label:"身份证号"`
  251. Name string `json:"name" label:"姓名"`
  252. GradeId int `json:"grade_id" label:"年级"`
  253. ClassId int `json:"class_id" label:"班级"`
  254. } `json:"user_identities" label:"身份列表"`
  255. }
  256. type SelfSupportForSchoolUserDeleteReq struct {
  257. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  258. Uids []int `json:"uids" binding:"required" label:"用户id"`
  259. }
  260. type SelfSupportForSchoolStudentListReq struct {
  261. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  262. Limit int `json:"limit" binding:"required"`
  263. Page int `json:"page" binding:"required"`
  264. Name string `json:"name" label:"姓名"`
  265. IdNo string `json:"id_no" label:"身份证号"`
  266. Phone string `json:"phone" label:"手机号"`
  267. GradeId int `json:"grade_id" label:"年级id"`
  268. ClassId int `json:"class_id" label:"班级id"`
  269. }
  270. type SelfSupportForSchoolStudentListResp struct {
  271. IdNo string `json:"id_no" label:"身份证号"`
  272. ParentPhone string `json:"parent_phone" label:"家长电话"`
  273. Name string `json:"name" label:"姓名"`
  274. Grade string `json:"grade" label:"年级"`
  275. GradeId int `json:"grade_id" label:"年级id"`
  276. Class string `json:"class" label:"班级"`
  277. ClassId int `json:"class_id" label:"班级"`
  278. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  279. CollectFaceType int `json:"collect_face_type" label:"采集人脸方式(1:个采 2:集采) "`
  280. SchoolFacePassStatus string `json:"school_face_pass_status" label:"校园一脸通行开通状态(开通:OPEN 关闭:CLOSE) "`
  281. SchoolFacePaymentStatus string `json:"school_face_payment_status" label:"校园一脸通行刷脸支付开通状态(开通:OPEN 关闭:CLOSE) "`
  282. }
  283. type SelfSupportForSchoolTeacherListReq struct {
  284. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  285. Limit int `json:"limit" binding:"required"`
  286. Page int `json:"page" binding:"required"`
  287. Name string `json:"name" label:"姓名"`
  288. IdNo string `json:"id_no" label:"身份证号"`
  289. }
  290. type SelfSupportForSchoolTeacherListResp struct {
  291. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  292. IdNo string `json:"id_no" label:"身份证号"`
  293. Phone string `json:"parent_phone" label:"电话"`
  294. Name string `json:"name" label:"姓名"`
  295. CollectFaceType int `json:"collect_face_type" label:"采集人脸方式(1:个采 2:集采) "`
  296. SchoolFacePassStatus string `json:"school_face_pass_status" label:"校园一脸通行开通状态(开通:OPEN 关闭:CLOSE) "`
  297. SchoolFacePaymentStatus string `json:"school_face_payment_status" label:"校园一脸通行刷脸支付开通状态(开通:OPEN 关闭:CLOSE) "`
  298. }
  299. type SelfSupportForSchoolStudentUpdateReq struct {
  300. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  301. UserIdentityId int `json:"user_identity_id" binding:"required" label:"用户身份id"`
  302. IdNo string `json:"id_no" label:"身份证号"`
  303. Name string `json:"name" label:"姓名"`
  304. GradeId int `json:"grade_id" label:"年级id"`
  305. ClassId int `json:"class_id" label:"班级id"`
  306. CollectFaceType int `json:"collect_face_type" label:"采集人脸方式(1:个采 2:集采)"`
  307. }
  308. type SelfSupportForSchoolStudentDeleteReq struct {
  309. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  310. UserIdentityIds []int `json:"user_identity_ids" binding:"required" label:"用户身份id"`
  311. }
  312. type SelfSupportForSchoolStudentAdmissionReq struct {
  313. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  314. ClassId int `json:"class_id" label:"班级id"`
  315. GradeId int `json:"grade_id" label:"年级id"`
  316. }
  317. type SelfSupportForSchoolTeacherUpdateReq struct {
  318. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  319. UserIdentityId int `json:"user_identity_id" binding:"required" label:"用户身份id"`
  320. IdNo string `json:"id_no" label:"身份证号"`
  321. Name string `json:"name" label:"姓名"`
  322. CollectFaceType int `json:"collect_face_type" label:"采集人脸方式(1:个采 2:集采)"`
  323. }
  324. type SelfSupportForSchoolTeacherDeleteReq struct {
  325. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  326. UserIdentityIds []int `json:"user_identity_ids" binding:"required" label:"用户身份id"`
  327. }
  328. type SelfSupportForSchoolWorkerListReq struct {
  329. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  330. Limit int `json:"limit" binding:"required"`
  331. Page int `json:"page" binding:"required"`
  332. Name string `json:"name" label:"姓名"`
  333. IdNo string `json:"id_no" label:"身份证号"`
  334. }
  335. type SelfSupportForSchoolWorkerListResp struct {
  336. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  337. IdNo string `json:"id_no" label:"身份证号"`
  338. Phone string `json:"parent_phone" label:"电话"`
  339. Name string `json:"name" label:"姓名"`
  340. CreateAt string `json:"create_at" label:"创建时间"`
  341. }
  342. type SelfSupportForSchoolWorkerUpdateReq struct {
  343. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  344. UserIdentityId int `json:"user_identity_id" binding:"required" label:"用户身份id"`
  345. IdNo string `json:"id_no" label:"身份证号"`
  346. Name string `json:"name" label:"姓名"`
  347. }
  348. type SelfSupportForSchoolWorkerDeleteReq struct {
  349. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  350. UserIdentityIds []int `json:"user_identity_ids" binding:"required" label:"用户身份id"`
  351. }
  352. type CentralKitchenForSchoolGradeListReq struct {
  353. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  354. Limit int `json:"limit" binding:"required"`
  355. Page int `json:"page" binding:"required"`
  356. Name string `json:"name" label:"名称"`
  357. }
  358. type CentralKitchenForSchoolClassListReq struct {
  359. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  360. GradeId int `json:"grade_id" label:"年级id"`
  361. Limit int `json:"limit" binding:"required"`
  362. Page int `json:"page" binding:"required"`
  363. Name string `json:"name" label:"名称"`
  364. }
  365. type SelfSupportForSchoolGradeListReq struct {
  366. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  367. Limit int `json:"limit" binding:"required"`
  368. Page int `json:"page" binding:"required"`
  369. Name string `json:"name" label:"名称"`
  370. }
  371. type SelfSupportForSchoolClassListReq struct {
  372. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  373. GradeId int `json:"grade_id" label:"年级id"`
  374. Limit int `json:"limit" binding:"required"`
  375. Page int `json:"page" binding:"required"`
  376. Name string `json:"name" label:"名称"`
  377. }
  378. type SelfSupportForSchoolAddWorkerReq struct {
  379. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  380. Name string `json:"name" label:"名称"`
  381. IdNo string `json:"id_no" label:"身份证号"`
  382. }
  383. type SelfSupportForSchoolAddTeacherReq struct {
  384. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  385. Name string `json:"name" label:"名称"`
  386. IdNo string `json:"id_no" label:"身份证号"`
  387. }
  388. type SelfSupportForSchoolOrdListReq struct {
  389. EnterpriseId int `json:"enterprise_id" label:"企业id"`
  390. Limit int `json:"limit" binding:"required"`
  391. Page int `json:"page" binding:"required"`
  392. Name string `json:"name" label:"姓名"`
  393. Phone string `json:"phone" label:"用户电话"`
  394. OutTradeNo string `json:"out_trade_no" label:"订单号"`
  395. OrderStatus int `json:"order_status" label:"订单状态"`
  396. GradeId int `json:"grade_id" label:"年级id"`
  397. ClassId int `json:"class_id" label:"班级id"`
  398. StartDate string `json:"start_date" label:"刷脸-开始时间"`
  399. EndDate string `json:"end_date" label:"刷脸-截止时间"`
  400. IsTeacher int `json:"is_teacher" label:"是否教师"`
  401. }
  402. type SelfSupportForSchoolArrearsOrdListReq struct {
  403. EnterpriseId int `json:"enterprise_id" label:"企业id"`
  404. Limit int `json:"limit" binding:"required"`
  405. Page int `json:"page" binding:"required"`
  406. Name string `json:"name" label:"姓名"`
  407. Phone string `json:"phone" label:"用户电话"`
  408. OutTradeNo string `json:"out_trade_no" label:"订单号"`
  409. GradeId int `json:"grade_id" label:"年级id"`
  410. ClassId int `json:"class_id" label:"班级id"`
  411. StartDate string `json:"start_date" label:"刷脸-开始时间"`
  412. EndDate string `json:"end_date" label:"刷脸-截止时间"`
  413. IsTeacher int `json:"is_teacher" label:"是否教师"`
  414. }
  415. type SelfSupportForSchoolArrearsOrdDebtRepayReq struct {
  416. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  417. OutOrderNo string `json:"out_order_no"`
  418. MerchantCode string `json:"merchant_code" `
  419. }
  420. type SelfSupportForSchoolArrearsOrdDebtCancelReq struct {
  421. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  422. OutOrderNo string `json:"out_order_no"`
  423. MerchantCode string `json:"merchant_code" `
  424. }
  425. type SelfSupportForSchoolOrdListResp struct {
  426. EnterpriseId int `json:"enterprise_id" `
  427. EnterpriseName string `json:"enterprise_name" `
  428. Uid int `json:"uid" `
  429. UserIdentityId int `json:"user_identity_id" `
  430. UserIdentityName string `json:"user_identity_name" `
  431. TotalPrice string `json:"total_price" `
  432. OutTradeNo string `json:"out_trade_no" `
  433. TradeNo string `json:"trade_no"`
  434. OrderStatus int `json:"order_status"`
  435. Phone string `json:"phone"`
  436. FaceTime string `json:"face_time"`
  437. Name string `json:"name" label:"姓名"`
  438. Grade string `json:"grade" label:"年级"`
  439. GradeId int `json:"grade_id" label:"年级id"`
  440. Class string `json:"class" label:"班级"`
  441. ClassId int `json:"class_id" label:"班级id"`
  442. DeviceSn string `json:"device_sn" label:"设备编号"`
  443. CpMerchantId string `json:"cp_merchant_id" label:"商户编码"`
  444. }
  445. type CentralKitchenForSchoolBatchAskForLeaveReq struct {
  446. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  447. GradeId int `json:"grade_id" binding:"required" label:"年级id"`
  448. ClassId int `json:"class_id" label:"班级id"`
  449. IsBreakfast int `json:"is_breakfast" label:"是否退早餐(1:退 0:不退)"`
  450. IsLunch int `json:"is_lunch" label:"是否退午餐(1:退 0:不退)"`
  451. IsDinner int `json:"is_dinner" label:"是否退晚餐(1:退 0:不退)"`
  452. Date string `json:"date"`
  453. }
  454. type ListNursingHomePackageReq struct {
  455. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  456. Page int `json:"page" label:"页码"`
  457. Limit int `json:"limit" label:"每页数量"`
  458. Year string `json:"year" label:"年份"`
  459. Month string `json:"month" label:"月份"`
  460. }
  461. type EnterpriseUserListByNursingHomeResp struct {
  462. List []EnterpriseUserListByNursingHomeStruct `json:"list"`
  463. Total int64 `json:"total"`
  464. }
  465. type EnterpriseUserListByNursingHomeStruct struct {
  466. Id int `json:"id" label:"支付宝昵称"`
  467. Nickname string `json:"nickname" label:"支付宝昵称"`
  468. Phone string `json:"phone" label:"手机号"`
  469. Avatar string `json:"avatar" label:"头像"`
  470. CreateAt string `json:"create_at" label:"创建时间"`
  471. UserIdentities []struct {
  472. Id int `json:"id" label:"身份id"`
  473. IdNo string `json:"id_no" label:"身份证号"`
  474. EnterpriseName string `json:"enterprise_name" label:"单位名"`
  475. Name string `json:"name" label:"姓名"`
  476. } `json:"user_identities" label:"身份列表"`
  477. }
  478. type NursingHomeUserUpdateReq struct {
  479. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  480. Uid int `json:"uid" binding:"required" label:"用户id"`
  481. Nickname string `json:"nickname" binding:"required" label:"支付宝昵称"`
  482. Phone string `json:"phone" binding:"required" label:"手机号"`
  483. BindUserIdentities []struct {
  484. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  485. IdNo string `json:"id_no" label:"身份证号"`
  486. Name string `json:"name" label:"姓名"`
  487. } `json:"user_identities" label:"身份列表"`
  488. }
  489. type NursingHomeOrdListReq struct {
  490. EnterpriseId int `json:"enterprise_id" label:"企业id"`
  491. Limit int `json:"limit" binding:"required"`
  492. Page int `json:"page" binding:"required"`
  493. Name string `json:"name" label:"姓名"`
  494. OutTradeNo string `json:"out_trade_no" label:"订单号"`
  495. Kind int `json:"kind" label:"预定类型"`
  496. Sate int `json:"state" label:"支付状态"`
  497. OrdSate int `json:"ord_state" label:"订单状态"`
  498. Phone string `json:"phone" label:"家长联系电话"`
  499. StartDate string `json:"start_date" label:"开始时间"`
  500. EndDate string `json:"end_date" label:"截止时间"`
  501. }
  502. type NursingHomeOrdListResp struct {
  503. EnterpriseId int `json:"enterprise_id" `
  504. EnterpriseName string `json:"enterprise_name" `
  505. Uid int `json:"uid" `
  506. UserIdentityId int `json:"user_identity_id" `
  507. UserIdentityKind int `json:"user_identity_kind" `
  508. UserIdentityName string `json:"user_identity_name" `
  509. TotalPrice string `json:"total_price" `
  510. Kind int `json:"kind" `
  511. OutTradeNo string `json:"out_trade_no" `
  512. TradeNo string `json:"trade_no"`
  513. State int `json:"state"`
  514. OrdState int `json:"ord_state"`
  515. CreateAt string `json:"create_at"`
  516. Phone string `json:"phone" label:"家长联系电话"`
  517. Name string `json:"name" label:"姓名"`
  518. }
  519. type NursingHomeReserveListReq struct {
  520. EnterpriseId int `json:"enterprise_id" label:"企业id"`
  521. Limit int `json:"limit" binding:"required"`
  522. Page int `json:"page" binding:"required"`
  523. Name string `json:"name" label:"姓名"`
  524. OutTradeNo string `json:"out_trade_no" label:"订单号"`
  525. Kind int `json:"kind" label:"预定类型"`
  526. Phone string `json:"phone" label:"家长联系电话"`
  527. StartDate string `json:"start_date" label:"开始时间"`
  528. EndDate string `json:"end_date" label:"截止时间"`
  529. }
  530. type NursingHomeReserveListResp struct {
  531. Id int `json:"id" `
  532. EnterpriseId int `json:"enterprise_id" `
  533. EnterpriseName string `json:"enterprise_name" `
  534. Uid int `json:"uid" `
  535. UserIdentityId int `json:"user_identity_id" `
  536. UserIdentityName string `json:"user_identity_name" `
  537. Kind int `json:"kind"`
  538. OutTradeNo string `json:"out_trade_no" `
  539. ReserveMonth string `json:"reserve_month"`
  540. CreateAt string `json:"create_at"`
  541. Phone string `json:"phone" label:"家长联系电话"`
  542. }
  543. type NursingHomeOrdRefundReq struct {
  544. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  545. Ids []string `json:"ids" label:"ids" binding:"required"`
  546. }
  547. type NursingHomeUserDeleteReq struct {
  548. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  549. Uids []int `json:"uids" binding:"required" label:"用户id"`
  550. }
  551. type SetBasicNursingHomeReq struct {
  552. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  553. State int32 `json:"state" label:"状态(1:正常 2:冻结)"`
  554. Name string `json:"name" binding:"required" label:"名称"`
  555. IsOpenBreakfast int `json:"is_open_breakfast" label:"是否开启早餐"`
  556. IsOpenLunch int `json:"is_open_lunch" label:"是否开启午餐"`
  557. IsOpenDinner int `json:"is_open_dinner" label:"是否开启晚餐"`
  558. IsOpenReportMealForDay int `json:"is_open_report_meal_for_day" label:"开启按天报餐(1:开启 2:关闭)"`
  559. IsOpenReportMealForMonth int `json:"is_open_report_meal_for_month" label:"开启按月报餐(1:开启 2:关闭)"`
  560. IsOpenReportMealForYear int `json:"is_open_report_meal_for_year" label:"开启按年报餐(1:开启 2:关闭)"`
  561. }
  562. type SetNursingHomeWithSpecReq struct {
  563. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  564. BreakfastUnitPrice string `json:"breakfast_unit_price" binding:"required" label:"早餐-单价"`
  565. LunchUnitPrice string `json:"lunch_unit_price" binding:"required" label:"午餐-单价"`
  566. DinnerUnitPrice string `json:"dinner_unit_price" binding:"required" label:"晚餐-单价"`
  567. }
  568. type SaveNursingHomePackageReq struct {
  569. PackageId int `json:"package_id" label:"套餐ID"`
  570. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  571. Year string `json:"year" binding:"required" label:"年份"`
  572. Month string `json:"month" binding:"required" label:"月份"`
  573. StartDate string `json:"start_date" binding:"required" label:"开始时间"`
  574. EndDate string `json:"end_date" binding:"required" label:"截止时间"`
  575. State int `json:"state" label:"状态(1:可用 2:不可用)"`
  576. DateList []struct {
  577. Date string `json:"date"`
  578. IsOpenBreakfast int32 `json:"is_open_breakfast"`
  579. IsOpenLunch int32 `json:"is_open_lunch"`
  580. IsOpenDinner int32 `json:"is_open_dinner"`
  581. IsOpenReplenish int32 `json:"is_open_replenish"`
  582. } `json:"date_list" binding:"required" label:"日期"`
  583. }