智慧食堂
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

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