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

679 lines
33 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 CentralKitchenForSchoolReserveUpdateStudentReq struct {
  227. Id int `json:"id" `
  228. EnterpriseId int `json:"enterprise_id" label:"企业id"`
  229. UserIdentityId int `json:"user_identity_id" `
  230. OriginalUserIdentityId int `json:"original_user_identity_id" `
  231. Uid int `json:"uid" `
  232. }
  233. type CentralKitchenForSchoolReserveListResp struct {
  234. Id int `json:"id" `
  235. EnterpriseId int `json:"enterprise_id" `
  236. EnterpriseName string `json:"enterprise_name" `
  237. Uid int `json:"uid" `
  238. UserIdentityId int `json:"user_identity_id" `
  239. UserIdentityName string `json:"user_identity_name" `
  240. Kind int `json:"kind"`
  241. OutTradeNo string `json:"out_trade_no" `
  242. ReserveMonth string `json:"reserve_month"`
  243. TotalPrice string `json:"total_price"`
  244. CreateAt string `json:"create_at"`
  245. Phone string `json:"phone" label:"家长联系电话"`
  246. Grade string `json:"grade" label:"年级"`
  247. GradeId int `json:"grade_id" label:"年级id"`
  248. Class string `json:"class" label:"班级"`
  249. ClassId int `json:"class_id" label:"班级id"`
  250. }
  251. type SelfSupportForSchoolUserUpdateReq struct {
  252. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  253. Uid int `json:"uid" binding:"required" label:"用户id"`
  254. Nickname string `json:"nickname" binding:"required" label:"支付宝昵称"`
  255. Phone string `json:"phone" binding:"required" label:"手机号"`
  256. BindUserIdentities []struct {
  257. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  258. IdNo string `json:"id_no" label:"身份证号"`
  259. Name string `json:"name" label:"姓名"`
  260. GradeId int `json:"grade_id" label:"年级"`
  261. ClassId int `json:"class_id" label:"班级"`
  262. } `json:"user_identities" label:"身份列表"`
  263. }
  264. type SelfSupportForSchoolUserDeleteReq struct {
  265. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  266. Uids []int `json:"uids" binding:"required" label:"用户id"`
  267. }
  268. type SelfSupportForSchoolStudentListReq struct {
  269. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  270. Limit int `json:"limit" binding:"required"`
  271. Page int `json:"page" binding:"required"`
  272. Name string `json:"name" label:"姓名"`
  273. IdNo string `json:"id_no" label:"身份证号"`
  274. Phone string `json:"phone" label:"手机号"`
  275. GradeId int `json:"grade_id" label:"年级id"`
  276. ClassId int `json:"class_id" label:"班级id"`
  277. }
  278. type SelfSupportForSchoolStudentListResp struct {
  279. IdNo string `json:"id_no" label:"身份证号"`
  280. ParentPhone string `json:"parent_phone" label:"家长电话"`
  281. Name string `json:"name" label:"姓名"`
  282. Grade string `json:"grade" label:"年级"`
  283. GradeId int `json:"grade_id" label:"年级id"`
  284. Class string `json:"class" label:"班级"`
  285. ClassId int `json:"class_id" label:"班级"`
  286. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  287. CollectFaceType int `json:"collect_face_type" label:"采集人脸方式(1:个采 2:集采) "`
  288. SchoolFacePassStatus string `json:"school_face_pass_status" label:"校园一脸通行开通状态(开通:OPEN 关闭:CLOSE) "`
  289. SchoolFacePaymentStatus string `json:"school_face_payment_status" label:"校园一脸通行刷脸支付开通状态(开通:OPEN 关闭:CLOSE) "`
  290. }
  291. type SelfSupportForSchoolTeacherListReq struct {
  292. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  293. Limit int `json:"limit" binding:"required"`
  294. Page int `json:"page" binding:"required"`
  295. Name string `json:"name" label:"姓名"`
  296. IdNo string `json:"id_no" label:"身份证号"`
  297. }
  298. type SelfSupportForSchoolTeacherListResp struct {
  299. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  300. IdNo string `json:"id_no" label:"身份证号"`
  301. Phone string `json:"parent_phone" label:"电话"`
  302. Name string `json:"name" label:"姓名"`
  303. CollectFaceType int `json:"collect_face_type" label:"采集人脸方式(1:个采 2:集采) "`
  304. SchoolFacePassStatus string `json:"school_face_pass_status" label:"校园一脸通行开通状态(开通:OPEN 关闭:CLOSE) "`
  305. SchoolFacePaymentStatus string `json:"school_face_payment_status" label:"校园一脸通行刷脸支付开通状态(开通:OPEN 关闭:CLOSE) "`
  306. }
  307. type SelfSupportForSchoolStudentUpdateReq struct {
  308. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  309. UserIdentityId int `json:"user_identity_id" binding:"required" label:"用户身份id"`
  310. IdNo string `json:"id_no" label:"身份证号"`
  311. Name string `json:"name" label:"姓名"`
  312. GradeId int `json:"grade_id" label:"年级id"`
  313. ClassId int `json:"class_id" label:"班级id"`
  314. CollectFaceType int `json:"collect_face_type" label:"采集人脸方式(1:个采 2:集采)"`
  315. }
  316. type SelfSupportForSchoolStudentDeleteReq struct {
  317. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  318. UserIdentityIds []int `json:"user_identity_ids" binding:"required" label:"用户身份id"`
  319. }
  320. type SelfSupportForSchoolStudentAdmissionReq struct {
  321. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  322. ClassId int `json:"class_id" label:"班级id"`
  323. GradeId int `json:"grade_id" label:"年级id"`
  324. }
  325. type SelfSupportForSchoolTeacherUpdateReq struct {
  326. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  327. UserIdentityId int `json:"user_identity_id" binding:"required" label:"用户身份id"`
  328. IdNo string `json:"id_no" label:"身份证号"`
  329. Name string `json:"name" label:"姓名"`
  330. CollectFaceType int `json:"collect_face_type" label:"采集人脸方式(1:个采 2:集采)"`
  331. }
  332. type SelfSupportForSchoolTeacherDeleteReq struct {
  333. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  334. UserIdentityIds []int `json:"user_identity_ids" binding:"required" label:"用户身份id"`
  335. }
  336. type SelfSupportForSchoolWorkerListReq struct {
  337. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  338. Limit int `json:"limit" binding:"required"`
  339. Page int `json:"page" binding:"required"`
  340. Name string `json:"name" label:"姓名"`
  341. IdNo string `json:"id_no" label:"身份证号"`
  342. }
  343. type SelfSupportForSchoolWorkerListResp struct {
  344. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  345. IdNo string `json:"id_no" label:"身份证号"`
  346. Phone string `json:"parent_phone" label:"电话"`
  347. Name string `json:"name" label:"姓名"`
  348. CreateAt string `json:"create_at" label:"创建时间"`
  349. }
  350. type SelfSupportForSchoolWorkerUpdateReq struct {
  351. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  352. UserIdentityId int `json:"user_identity_id" binding:"required" label:"用户身份id"`
  353. IdNo string `json:"id_no" label:"身份证号"`
  354. Name string `json:"name" label:"姓名"`
  355. }
  356. type SelfSupportForSchoolWorkerDeleteReq struct {
  357. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  358. UserIdentityIds []int `json:"user_identity_ids" binding:"required" label:"用户身份id"`
  359. }
  360. type CentralKitchenForSchoolGradeListReq struct {
  361. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  362. Limit int `json:"limit" binding:"required"`
  363. Page int `json:"page" binding:"required"`
  364. Name string `json:"name" label:"名称"`
  365. }
  366. type CentralKitchenForSchoolClassListReq struct {
  367. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  368. GradeId int `json:"grade_id" label:"年级id"`
  369. Limit int `json:"limit" binding:"required"`
  370. Page int `json:"page" binding:"required"`
  371. Name string `json:"name" label:"名称"`
  372. }
  373. type SelfSupportForSchoolGradeListReq 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. }
  379. type SelfSupportForSchoolClassListReq struct {
  380. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  381. GradeId int `json:"grade_id" label:"年级id"`
  382. Limit int `json:"limit" binding:"required"`
  383. Page int `json:"page" binding:"required"`
  384. Name string `json:"name" label:"名称"`
  385. }
  386. type SelfSupportForSchoolAddWorkerReq struct {
  387. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  388. Name string `json:"name" label:"名称"`
  389. IdNo string `json:"id_no" label:"身份证号"`
  390. }
  391. type SelfSupportForSchoolAddTeacherReq struct {
  392. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  393. Name string `json:"name" label:"名称"`
  394. IdNo string `json:"id_no" label:"身份证号"`
  395. }
  396. type SelfSupportForSchoolOrdListReq struct {
  397. EnterpriseId int `json:"enterprise_id" label:"企业id"`
  398. Limit int `json:"limit" binding:"required"`
  399. Page int `json:"page" binding:"required"`
  400. Name string `json:"name" label:"姓名"`
  401. Phone string `json:"phone" label:"用户电话"`
  402. OutTradeNo string `json:"out_trade_no" label:"订单号"`
  403. OrderStatus int `json:"order_status" label:"订单状态"`
  404. GradeId int `json:"grade_id" label:"年级id"`
  405. ClassId int `json:"class_id" label:"班级id"`
  406. StartDate string `json:"start_date" label:"刷脸-开始时间"`
  407. EndDate string `json:"end_date" label:"刷脸-截止时间"`
  408. IsTeacher int `json:"is_teacher" label:"是否教师"`
  409. }
  410. type SelfSupportForSchoolArrearsOrdListReq struct {
  411. EnterpriseId int `json:"enterprise_id" label:"企业id"`
  412. Limit int `json:"limit" binding:"required"`
  413. Page int `json:"page" binding:"required"`
  414. Name string `json:"name" label:"姓名"`
  415. Phone string `json:"phone" label:"用户电话"`
  416. OutTradeNo string `json:"out_trade_no" label:"订单号"`
  417. GradeId int `json:"grade_id" label:"年级id"`
  418. ClassId int `json:"class_id" label:"班级id"`
  419. StartDate string `json:"start_date" label:"刷脸-开始时间"`
  420. EndDate string `json:"end_date" label:"刷脸-截止时间"`
  421. IsTeacher int `json:"is_teacher" label:"是否教师"`
  422. }
  423. type SelfSupportForSchoolBlackListReq struct {
  424. EnterpriseId int `json:"enterprise_id" label:"企业id"`
  425. Limit int `json:"limit" binding:"required"`
  426. Page int `json:"page" binding:"required"`
  427. }
  428. type SelfSupportForSchoolArrearsOrdDebtRepayReq struct {
  429. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  430. OutOrderNo string `json:"out_order_no"`
  431. MerchantCode string `json:"merchant_code" `
  432. }
  433. type SelfSupportForSchoolArrearsOrdDebtCancelReq struct {
  434. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  435. OutOrderNo string `json:"out_order_no"`
  436. MerchantCode string `json:"merchant_code" `
  437. }
  438. type SelfSupportForSchoolOrdListResp struct {
  439. EnterpriseId int `json:"enterprise_id" `
  440. EnterpriseName string `json:"enterprise_name" `
  441. Uid int `json:"uid" `
  442. UserIdentityId int `json:"user_identity_id" `
  443. UserIdentityName string `json:"user_identity_name" `
  444. TotalPrice string `json:"total_price" `
  445. OutTradeNo string `json:"out_trade_no" `
  446. TradeNo string `json:"trade_no"`
  447. OrderStatus int `json:"order_status"`
  448. Phone string `json:"phone"`
  449. FaceTime string `json:"face_time"`
  450. Name string `json:"name" label:"姓名"`
  451. Grade string `json:"grade" label:"年级"`
  452. GradeId int `json:"grade_id" label:"年级id"`
  453. Class string `json:"class" label:"班级"`
  454. ClassId int `json:"class_id" label:"班级id"`
  455. DeviceSn string `json:"device_sn" label:"设备编号"`
  456. CpMerchantId string `json:"cp_merchant_id" label:"商户编码"`
  457. }
  458. type CentralKitchenForSchoolBatchAskForLeaveReqBySchool struct {
  459. EnterpriseIds []int `json:"enterprise_ids" binding:"required" label:"企业id"`
  460. IsBreakfast int `json:"is_breakfast" label:"是否退早餐(1:退 0:不退)"`
  461. IsLunch int `json:"is_lunch" label:"是否退午餐(1:退 0:不退)"`
  462. IsDinner int `json:"is_dinner" label:"是否退晚餐(1:退 0:不退)"`
  463. Dates []string `json:"dates"`
  464. }
  465. type CentralKitchenForSchoolBatchAskForLeaveReqByGrade struct {
  466. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  467. GradeIds []int `json:"grade_ids" binding:"required" label:"年级id"`
  468. IsBreakfast int `json:"is_breakfast" label:"是否退早餐(1:退 0:不退)"`
  469. IsLunch int `json:"is_lunch" label:"是否退午餐(1:退 0:不退)"`
  470. IsDinner int `json:"is_dinner" label:"是否退晚餐(1:退 0:不退)"`
  471. Dates []string `json:"dates"`
  472. }
  473. type CentralKitchenForSchoolBatchAskForLeaveReqByClass struct {
  474. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  475. GradeId int `json:"grade_id" binding:"required" label:"年级id"`
  476. ClassIds []int `json:"class_ids" label:"班级id"`
  477. IsBreakfast int `json:"is_breakfast" label:"是否退早餐(1:退 0:不退)"`
  478. IsLunch int `json:"is_lunch" label:"是否退午餐(1:退 0:不退)"`
  479. IsDinner int `json:"is_dinner" label:"是否退晚餐(1:退 0:不退)"`
  480. Dates []string `json:"dates"`
  481. }
  482. type ListNursingHomePackageReq struct {
  483. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  484. Page int `json:"page" label:"页码"`
  485. Limit int `json:"limit" label:"每页数量"`
  486. Year string `json:"year" label:"年份"`
  487. Month string `json:"month" label:"月份"`
  488. }
  489. type EnterpriseUserListByNursingHomeResp struct {
  490. List []EnterpriseUserListByNursingHomeStruct `json:"list"`
  491. Total int64 `json:"total"`
  492. }
  493. type EnterpriseUserListByNursingHomeStruct struct {
  494. Id int `json:"id" label:"支付宝昵称"`
  495. Nickname string `json:"nickname" label:"支付宝昵称"`
  496. Phone string `json:"phone" label:"手机号"`
  497. Avatar string `json:"avatar" label:"头像"`
  498. CreateAt string `json:"create_at" label:"创建时间"`
  499. UserIdentities []struct {
  500. Id int `json:"id" label:"身份id"`
  501. IdNo string `json:"id_no" label:"身份证号"`
  502. EnterpriseName string `json:"enterprise_name" label:"单位名"`
  503. Name string `json:"name" label:"姓名"`
  504. } `json:"user_identities" label:"身份列表"`
  505. }
  506. type NursingHomeUserUpdateReq struct {
  507. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  508. Uid int `json:"uid" binding:"required" label:"用户id"`
  509. Nickname string `json:"nickname" binding:"required" label:"支付宝昵称"`
  510. Phone string `json:"phone" binding:"required" label:"手机号"`
  511. BindUserIdentities []struct {
  512. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  513. IdNo string `json:"id_no" label:"身份证号"`
  514. Name string `json:"name" label:"姓名"`
  515. } `json:"user_identities" label:"身份列表"`
  516. }
  517. type NursingHomeOrdListReq struct {
  518. EnterpriseId int `json:"enterprise_id" label:"企业id"`
  519. Limit int `json:"limit" binding:"required"`
  520. Page int `json:"page" binding:"required"`
  521. Name string `json:"name" label:"姓名"`
  522. OutTradeNo string `json:"out_trade_no" label:"订单号"`
  523. Kind int `json:"kind" label:"预定类型"`
  524. Sate int `json:"state" label:"支付状态"`
  525. OrdSate int `json:"ord_state" label:"订单状态"`
  526. Phone string `json:"phone" label:"家长联系电话"`
  527. StartDate string `json:"start_date" label:"开始时间"`
  528. EndDate string `json:"end_date" label:"截止时间"`
  529. }
  530. type NursingHomeOrdListResp struct {
  531. EnterpriseId int `json:"enterprise_id" `
  532. EnterpriseName string `json:"enterprise_name" `
  533. Uid int `json:"uid" `
  534. UserIdentityId int `json:"user_identity_id" `
  535. UserIdentityKind int `json:"user_identity_kind" `
  536. UserIdentityName string `json:"user_identity_name" `
  537. TotalPrice string `json:"total_price" `
  538. Kind int `json:"kind" `
  539. OutTradeNo string `json:"out_trade_no" `
  540. TradeNo string `json:"trade_no"`
  541. State int `json:"state"`
  542. OrdState int `json:"ord_state"`
  543. CreateAt string `json:"create_at"`
  544. Phone string `json:"phone" label:"家长联系电话"`
  545. Name string `json:"name" label:"姓名"`
  546. }
  547. type NursingHomeReserveListReq struct {
  548. EnterpriseId int `json:"enterprise_id" label:"企业id"`
  549. Limit int `json:"limit" binding:"required"`
  550. Page int `json:"page" binding:"required"`
  551. Name string `json:"name" label:"姓名"`
  552. OutTradeNo string `json:"out_trade_no" label:"订单号"`
  553. Kind int `json:"kind" label:"预定类型"`
  554. Phone string `json:"phone" label:"家长联系电话"`
  555. StartDate string `json:"start_date" label:"开始时间"`
  556. EndDate string `json:"end_date" label:"截止时间"`
  557. }
  558. type NursingHomeReserveListResp struct {
  559. Id int `json:"id" `
  560. EnterpriseId int `json:"enterprise_id" `
  561. EnterpriseName string `json:"enterprise_name" `
  562. Uid int `json:"uid" `
  563. UserIdentityId int `json:"user_identity_id" `
  564. UserIdentityName string `json:"user_identity_name" `
  565. Kind int `json:"kind"`
  566. OutTradeNo string `json:"out_trade_no" `
  567. ReserveMonth string `json:"reserve_month"`
  568. CreateAt string `json:"create_at"`
  569. Phone string `json:"phone" label:"家长联系电话"`
  570. }
  571. type NursingHomeOrdRefundReq struct {
  572. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  573. Ids []string `json:"ids" label:"ids" binding:"required"`
  574. }
  575. type NursingHomeUserDeleteReq struct {
  576. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  577. Uids []int `json:"uids" binding:"required" label:"用户id"`
  578. }
  579. type SetBasicNursingHomeReq struct {
  580. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  581. State int32 `json:"state" label:"状态(1:正常 2:冻结)"`
  582. Name string `json:"name" binding:"required" label:"名称"`
  583. IsOpenBreakfast int `json:"is_open_breakfast" label:"是否开启早餐"`
  584. IsOpenLunch int `json:"is_open_lunch" label:"是否开启午餐"`
  585. IsOpenDinner int `json:"is_open_dinner" label:"是否开启晚餐"`
  586. IsOpenReportMealForDay int `json:"is_open_report_meal_for_day" label:"开启按天报餐(1:开启 2:关闭)"`
  587. IsOpenReportMealForMonth int `json:"is_open_report_meal_for_month" label:"开启按月报餐(1:开启 2:关闭)"`
  588. IsOpenReportMealForYear int `json:"is_open_report_meal_for_year" label:"开启按年报餐(1:开启 2:关闭)"`
  589. }
  590. type SetNursingHomeWithSpecReq struct {
  591. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  592. BreakfastUnitPrice string `json:"breakfast_unit_price" binding:"required" label:"早餐-单价"`
  593. LunchUnitPrice string `json:"lunch_unit_price" binding:"required" label:"午餐-单价"`
  594. DinnerUnitPrice string `json:"dinner_unit_price" binding:"required" label:"晚餐-单价"`
  595. }
  596. type SaveNursingHomePackageReq struct {
  597. PackageId int `json:"package_id" label:"套餐ID"`
  598. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  599. Year string `json:"year" binding:"required" label:"年份"`
  600. Month string `json:"month" binding:"required" label:"月份"`
  601. StartDate string `json:"start_date" binding:"required" label:"开始时间"`
  602. EndDate string `json:"end_date" binding:"required" label:"截止时间"`
  603. State int `json:"state" label:"状态(1:可用 2:不可用)"`
  604. DateList []struct {
  605. Date string `json:"date"`
  606. IsOpenBreakfast int32 `json:"is_open_breakfast"`
  607. IsOpenLunch int32 `json:"is_open_lunch"`
  608. IsOpenDinner int32 `json:"is_open_dinner"`
  609. IsOpenReplenish int32 `json:"is_open_replenish"`
  610. } `json:"date_list" binding:"required" label:"日期"`
  611. }