智慧食堂
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

833 рядки
42 KiB

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