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