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