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

md_enterprise_manage.go 35 KiB

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