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

643 lines
31 KiB

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