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