智慧食堂
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 30 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
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627
  1. package md
  2. type EnterpriseUserListReq struct {
  3. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  4. Limit int `json:"limit" binding:"required"`
  5. Page int `json:"page" binding:"required"`
  6. Nickname string `json:"nickname" label:"支付宝昵称"`
  7. Phone string `json:"phone" label:"手机号"`
  8. IsTeacher int `json:"is_teacher" label:"是否教师"`
  9. EnterpriseName string `json:"enterprise_name" label:"校企名称"`
  10. }
  11. type EnterpriseUserListByCentralKitchenForSchoolStruct struct {
  12. Id int `json:"id" label:"支付宝昵称"`
  13. Nickname string `json:"nickname" label:"支付宝昵称"`
  14. Phone string `json:"phone" label:"手机号"`
  15. Avatar string `json:"avatar" label:"头像"`
  16. IsTeacher int `json:"is_teacher" label:"是否教师"`
  17. CreateAt string `json:"create_at" label:"创建时间"`
  18. UserIdentities []struct {
  19. Id int `json:"id" label:"身份id"`
  20. IdNo string `json:"id_no" label:"身份证号"`
  21. SchoolName string `json:"school_name" label:"学校名"`
  22. Name string `json:"name" label:"姓名"`
  23. Grade string `json:"grade" label:"年级"`
  24. GradeId int `json:"grade_id" label:"年级id"`
  25. Class string `json:"class" label:"班级"`
  26. ClassId int `json:"class_id" label:"班级id"`
  27. } `json:"user_identities" label:"身份列表"`
  28. }
  29. type EnterpriseUserListByCentralKitchenForSchoolResp struct {
  30. List []EnterpriseUserListByCentralKitchenForSchoolStruct `json:"list"`
  31. Total int64 `json:"total"`
  32. }
  33. type CentralKitchenForSchoolUserUpdateReq struct {
  34. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  35. Uid int `json:"uid" binding:"required" label:"用户id"`
  36. Nickname string `json:"nickname" binding:"required" label:"支付宝昵称"`
  37. Phone string `json:"phone" binding:"required" label:"手机号"`
  38. BindUserIdentities []struct {
  39. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  40. IdNo string `json:"id_no" label:"身份证号"`
  41. Name string `json:"name" label:"姓名"`
  42. GradeId int `json:"grade_id" label:"年级"`
  43. ClassId int `json:"class_id" label:"班级"`
  44. } `json:"user_identities" label:"身份列表"`
  45. }
  46. type CentralKitchenForSchoolUserDeleteReq struct {
  47. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  48. Uids []int `json:"uids" binding:"required" label:"用户id"`
  49. }
  50. type CentralKitchenForSchoolStudentListReq struct {
  51. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  52. Limit int `json:"limit" binding:"required"`
  53. Page int `json:"page" binding:"required"`
  54. Name string `json:"name" label:"姓名"`
  55. IdNo string `json:"id_no" label:"身份证号"`
  56. Phone string `json:"phone" label:"手机号"`
  57. GradeId int `json:"grade_id" label:"年级id"`
  58. ClassId int `json:"class_id" label:"班级id"`
  59. }
  60. type CentralKitchenForSchoolTeacherListReq struct {
  61. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  62. Limit int `json:"limit" binding:"required"`
  63. Page int `json:"page" binding:"required"`
  64. Name string `json:"name" label:"姓名"`
  65. IdNo string `json:"id_no" label:"身份证号"`
  66. }
  67. type CentralKitchenForSchoolStudentListResp struct {
  68. IdNo string `json:"id_no" label:"身份证号"`
  69. ParentPhone string `json:"parent_phone" label:"家长电话"`
  70. Name string `json:"name" label:"姓名"`
  71. Grade string `json:"grade" label:"年级"`
  72. GradeId int `json:"grade_id" label:"年级id"`
  73. Class string `json:"class" label:"班级"`
  74. ClassId int `json:"class_id" label:"班级"`
  75. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  76. }
  77. type CentralKitchenForSchoolTeacherListResp struct {
  78. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  79. IdNo string `json:"id_no" label:"身份证号"`
  80. Phone string `json:"parent_phone" label:"电话"`
  81. Name string `json:"name" label:"姓名"`
  82. }
  83. type CentralKitchenForSchoolTeacherUpdateReq struct {
  84. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  85. UserIdentityId int `json:"user_identity_id" binding:"required" label:"用户身份id"`
  86. IdNo string `json:"id_no" label:"身份证号"`
  87. Name string `json:"name" label:"姓名"`
  88. }
  89. type CentralKitchenForSchoolStudentUpdateReq struct {
  90. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  91. UserIdentityId int `json:"user_identity_id" binding:"required" label:"用户身份id"`
  92. IdNo string `json:"id_no" label:"身份证号"`
  93. Name string `json:"name" label:"姓名"`
  94. GradeId int `json:"grade_id" label:"年级id"`
  95. ClassId int `json:"class_id" label:"班级id"`
  96. }
  97. type CentralKitchenForSchoolStudentDeleteReq struct {
  98. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  99. UserIdentityIds []int `json:"user_identity_ids" binding:"required" label:"用户身份id"`
  100. }
  101. type CentralKitchenForSchoolTeacherDeleteReq struct {
  102. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  103. UserIdentityIds []int `json:"user_identity_ids" binding:"required" label:"用户身份id"`
  104. }
  105. type CentralKitchenForSchoolStudentAdmissionReq struct {
  106. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  107. ClassId int `json:"class_id" label:"班级id"`
  108. GradeId int `json:"grade_id" label:"年级id"`
  109. }
  110. type SetCentralKitchenForSchoolWithSpecReq struct {
  111. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  112. BreakfastUnitPrice string `json:"breakfast_unit_price" binding:"required" label:"早餐-单价"`
  113. BreakfastUnitPriceForTeacher string `json:"breakfast_unit_price_for_teacher" binding:"required" label:"教师-早餐-单价"`
  114. LunchUnitPrice string `json:"lunch_unit_price" binding:"required" label:"午餐-单价"`
  115. LunchUnitPriceForTeacher string `json:"lunch_unit_price_for_teacher" binding:"required" label:"教师-午餐-单价"`
  116. DinnerUnitPrice string `json:"dinner_unit_price" binding:"required" label:"晚餐-单价"`
  117. DinnerUnitPriceForTeacher string `json:"dinner_unit_price_for_teacher" binding:"required" label:"教师-晚餐-单价"`
  118. }
  119. type SaveCentralKitchenForSchoolPackageReq struct {
  120. PackageId int `json:"package_id" label:"套餐ID"`
  121. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  122. Year string `json:"year" binding:"required" label:"年份"`
  123. Month string `json:"month" binding:"required" label:"月份"`
  124. StartDate string `json:"start_date" binding:"required" label:"开始时间"`
  125. EndDate string `json:"end_date" binding:"required" label:"截止时间"`
  126. State int `json:"state" label:"状态(1:可用 2:不可用)"`
  127. DateList []struct {
  128. Date string `json:"date"`
  129. IsOpenBreakfast int32 `json:"is_open_breakfast"`
  130. IsOpenLunch int32 `json:"is_open_lunch"`
  131. IsOpenDinner int32 `json:"is_open_dinner"`
  132. IsOpenReplenish int32 `json:"is_open_replenish"`
  133. } `json:"date_list" binding:"required" label:"日期"`
  134. }
  135. type SetBasicCentralKitchenForSchoolReq struct {
  136. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  137. State int32 `json:"state" label:"状态(1:正常 2:冻结)"`
  138. Name string `json:"name" binding:"required" label:"名称"`
  139. IsOpenBreakfast int `json:"is_open_breakfast" label:"是否开启早餐"`
  140. IsOpenLunch int `json:"is_open_lunch" label:"是否开启午餐"`
  141. IsOpenDinner int `json:"is_open_dinner" label:"是否开启晚餐"`
  142. IsOpenReportMealForDay int `json:"is_open_report_meal_for_day" label:"开启按天报餐(1:开启 2:关闭)"`
  143. IsOpenReportMealForMonth int `json:"is_open_report_meal_for_month" label:"开启按月报餐(1:开启 2:关闭)"`
  144. IsOpenReportMealForSemester int `json:"is_open_report_meal_for_semester" label:"开启按学期报餐(1:开启 2:关闭)"`
  145. IsOpenTeacherReportMeal int `json:"is_open_teacher_report_meal" label:"'教师报餐(1:开启 2:关闭)"`
  146. }
  147. type ListCentralKitchenForSchoolPackageReq struct {
  148. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  149. Page int `json:"page" label:"页码"`
  150. Limit int `json:"limit" label:"每页数量"`
  151. Year string `json:"year" label:"年份"`
  152. Month string `json:"month" label:"月份"`
  153. }
  154. type CentralKitchenForSchoolOrdRefundReq struct {
  155. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  156. Ids []string `json:"ids" label:"ids" binding:"required"`
  157. }
  158. type CentralKitchenForSchoolOrdListResp struct {
  159. EnterpriseId int `json:"enterprise_id" `
  160. EnterpriseName string `json:"enterprise_name" `
  161. Uid int `json:"uid" `
  162. UserIdentityId int `json:"user_identity_id" `
  163. UserIdentityKind int `json:"user_identity_kind" `
  164. UserIdentityName string `json:"user_identity_name" `
  165. TotalPrice string `json:"total_price" `
  166. Kind int `json:"kind" `
  167. OutTradeNo string `json:"out_trade_no" `
  168. TradeNo string `json:"trade_no"`
  169. State int `json:"state"`
  170. OrdState int `json:"ord_state"`
  171. CreateAt string `json:"create_at"`
  172. Phone string `json:"phone" label:"家长联系电话"`
  173. Name string `json:"name" label:"姓名"`
  174. Grade string `json:"grade" label:"年级"`
  175. GradeId int `json:"grade_id" label:"年级id"`
  176. Class string `json:"class" label:"班级"`
  177. ClassId int `json:"class_id" label:"班级id"`
  178. }
  179. type CentralKitchenForSchoolOrdListReq struct {
  180. EnterpriseId int `json:"enterprise_id" label:"企业id"`
  181. IsTeacher int `json:"is_teacher" label:"是否教师"`
  182. Limit int `json:"limit" binding:"required"`
  183. Page int `json:"page" binding:"required"`
  184. Name string `json:"name" label:"姓名"`
  185. OutTradeNo string `json:"out_trade_no" label:"订单号"`
  186. Kind int `json:"kind" label:"预定类型"`
  187. Sate int `json:"state" label:"支付状态"`
  188. OrdSate int `json:"ord_state" label:"订单状态"`
  189. GradeId int `json:"grade_id" label:"年级id"`
  190. ClassId int `json:"class_id" label:"班级id"`
  191. Phone string `json:"phone" label:"家长联系电话"`
  192. StartDate string `json:"start_date" label:"开始时间"`
  193. EndDate string `json:"end_date" label:"截止时间"`
  194. }
  195. type CentralKitchenForSchoolReserveListReq struct {
  196. EnterpriseId int `json:"enterprise_id" label:"企业id"`
  197. Limit int `json:"limit" binding:"required"`
  198. Page int `json:"page" binding:"required"`
  199. Name string `json:"name" label:"姓名"`
  200. OutTradeNo string `json:"out_trade_no" label:"订单号"`
  201. Kind int `json:"kind" label:"预定类型"`
  202. GradeId int `json:"grade_id" label:"年级id"`
  203. ClassId int `json:"class_id" label:"班级id"`
  204. Phone string `json:"phone" label:"家长联系电话"`
  205. StartDate string `json:"start_date" label:"开始时间"`
  206. EndDate string `json:"end_date" label:"截止时间"`
  207. }
  208. type CentralKitchenForSchoolReserveListResp struct {
  209. Id int `json:"id" `
  210. EnterpriseId int `json:"enterprise_id" `
  211. EnterpriseName string `json:"enterprise_name" `
  212. Uid int `json:"uid" `
  213. UserIdentityId int `json:"user_identity_id" `
  214. UserIdentityName string `json:"user_identity_name" `
  215. Kind int `json:"kind"`
  216. OutTradeNo string `json:"out_trade_no" `
  217. ReserveMonth string `json:"reserve_month"`
  218. CreateAt string `json:"create_at"`
  219. Phone string `json:"phone" label:"家长联系电话"`
  220. Grade string `json:"grade" label:"年级"`
  221. GradeId int `json:"grade_id" label:"年级id"`
  222. Class string `json:"class" label:"班级"`
  223. ClassId int `json:"class_id" label:"班级id"`
  224. }
  225. type SelfSupportForSchoolUserUpdateReq struct {
  226. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  227. Uid int `json:"uid" binding:"required" label:"用户id"`
  228. Nickname string `json:"nickname" binding:"required" label:"支付宝昵称"`
  229. Phone string `json:"phone" binding:"required" label:"手机号"`
  230. BindUserIdentities []struct {
  231. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  232. IdNo string `json:"id_no" label:"身份证号"`
  233. Name string `json:"name" label:"姓名"`
  234. GradeId int `json:"grade_id" label:"年级"`
  235. ClassId int `json:"class_id" label:"班级"`
  236. } `json:"user_identities" label:"身份列表"`
  237. }
  238. type SelfSupportForSchoolUserDeleteReq struct {
  239. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  240. Uids []int `json:"uids" binding:"required" label:"用户id"`
  241. }
  242. type SelfSupportForSchoolStudentListReq struct {
  243. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  244. Limit int `json:"limit" binding:"required"`
  245. Page int `json:"page" binding:"required"`
  246. Name string `json:"name" label:"姓名"`
  247. IdNo string `json:"id_no" label:"身份证号"`
  248. Phone string `json:"phone" label:"手机号"`
  249. GradeId int `json:"grade_id" label:"年级id"`
  250. ClassId int `json:"class_id" label:"班级id"`
  251. }
  252. type SelfSupportForSchoolStudentListResp struct {
  253. IdNo string `json:"id_no" label:"身份证号"`
  254. ParentPhone string `json:"parent_phone" label:"家长电话"`
  255. Name string `json:"name" label:"姓名"`
  256. Grade string `json:"grade" label:"年级"`
  257. GradeId int `json:"grade_id" label:"年级id"`
  258. Class string `json:"class" label:"班级"`
  259. ClassId int `json:"class_id" label:"班级"`
  260. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  261. CollectFaceType int `json:"collect_face_type" label:"采集人脸方式(1:个采 2:集采) "`
  262. SchoolFacePassStatus string `json:"school_face_pass_status" label:"校园一脸通行开通状态(开通:OPEN 关闭:CLOSE) "`
  263. SchoolFacePaymentStatus string `json:"school_face_payment_status" label:"校园一脸通行刷脸支付开通状态(开通:OPEN 关闭:CLOSE) "`
  264. }
  265. type SelfSupportForSchoolTeacherListReq struct {
  266. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  267. Limit int `json:"limit" binding:"required"`
  268. Page int `json:"page" binding:"required"`
  269. Name string `json:"name" label:"姓名"`
  270. IdNo string `json:"id_no" label:"身份证号"`
  271. }
  272. type SelfSupportForSchoolTeacherListResp struct {
  273. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  274. IdNo string `json:"id_no" label:"身份证号"`
  275. Phone string `json:"parent_phone" label:"电话"`
  276. Name string `json:"name" label:"姓名"`
  277. CollectFaceType int `json:"collect_face_type" label:"采集人脸方式(1:个采 2:集采) "`
  278. SchoolFacePassStatus string `json:"school_face_pass_status" label:"校园一脸通行开通状态(开通:OPEN 关闭:CLOSE) "`
  279. SchoolFacePaymentStatus string `json:"school_face_payment_status" label:"校园一脸通行刷脸支付开通状态(开通:OPEN 关闭:CLOSE) "`
  280. }
  281. type SelfSupportForSchoolStudentUpdateReq struct {
  282. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  283. UserIdentityId int `json:"user_identity_id" binding:"required" label:"用户身份id"`
  284. IdNo string `json:"id_no" label:"身份证号"`
  285. Name string `json:"name" label:"姓名"`
  286. GradeId int `json:"grade_id" label:"年级id"`
  287. ClassId int `json:"class_id" label:"班级id"`
  288. CollectFaceType int `json:"collect_face_type" label:"采集人脸方式(1:个采 2:集采)"`
  289. }
  290. type SelfSupportForSchoolStudentDeleteReq struct {
  291. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  292. UserIdentityIds []int `json:"user_identity_ids" binding:"required" label:"用户身份id"`
  293. }
  294. type SelfSupportForSchoolStudentAdmissionReq struct {
  295. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  296. ClassId int `json:"class_id" label:"班级id"`
  297. GradeId int `json:"grade_id" label:"年级id"`
  298. }
  299. type SelfSupportForSchoolTeacherUpdateReq struct {
  300. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  301. UserIdentityId int `json:"user_identity_id" binding:"required" label:"用户身份id"`
  302. IdNo string `json:"id_no" label:"身份证号"`
  303. Name string `json:"name" label:"姓名"`
  304. CollectFaceType int `json:"collect_face_type" label:"采集人脸方式(1:个采 2:集采)"`
  305. }
  306. type SelfSupportForSchoolTeacherDeleteReq struct {
  307. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  308. UserIdentityIds []int `json:"user_identity_ids" binding:"required" label:"用户身份id"`
  309. }
  310. type SelfSupportForSchoolWorkerListReq struct {
  311. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  312. Limit int `json:"limit" binding:"required"`
  313. Page int `json:"page" binding:"required"`
  314. Name string `json:"name" label:"姓名"`
  315. IdNo string `json:"id_no" label:"身份证号"`
  316. }
  317. type SelfSupportForSchoolWorkerListResp struct {
  318. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  319. IdNo string `json:"id_no" label:"身份证号"`
  320. Phone string `json:"parent_phone" label:"电话"`
  321. Name string `json:"name" label:"姓名"`
  322. CreateAt string `json:"create_at" label:"创建时间"`
  323. }
  324. type SelfSupportForSchoolWorkerUpdateReq struct {
  325. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  326. UserIdentityId int `json:"user_identity_id" binding:"required" label:"用户身份id"`
  327. IdNo string `json:"id_no" label:"身份证号"`
  328. Name string `json:"name" label:"姓名"`
  329. }
  330. type SelfSupportForSchoolWorkerDeleteReq struct {
  331. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  332. UserIdentityIds []int `json:"user_identity_ids" binding:"required" label:"用户身份id"`
  333. }
  334. type CentralKitchenForSchoolGradeListReq struct {
  335. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  336. Limit int `json:"limit" binding:"required"`
  337. Page int `json:"page" binding:"required"`
  338. Name string `json:"name" label:"名称"`
  339. }
  340. type CentralKitchenForSchoolClassListReq struct {
  341. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  342. GradeId int `json:"grade_id" label:"年级id"`
  343. Limit int `json:"limit" binding:"required"`
  344. Page int `json:"page" binding:"required"`
  345. Name string `json:"name" label:"名称"`
  346. }
  347. type SelfSupportForSchoolGradeListReq struct {
  348. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  349. Limit int `json:"limit" binding:"required"`
  350. Page int `json:"page" binding:"required"`
  351. Name string `json:"name" label:"名称"`
  352. }
  353. type SelfSupportForSchoolClassListReq struct {
  354. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  355. GradeId int `json:"grade_id" label:"年级id"`
  356. Limit int `json:"limit" binding:"required"`
  357. Page int `json:"page" binding:"required"`
  358. Name string `json:"name" label:"名称"`
  359. }
  360. type SelfSupportForSchoolAddWorkerReq struct {
  361. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  362. Name string `json:"name" label:"名称"`
  363. IdNo string `json:"id_no" label:"身份证号"`
  364. }
  365. type SelfSupportForSchoolAddTeacherReq struct {
  366. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  367. Name string `json:"name" label:"名称"`
  368. IdNo string `json:"id_no" label:"身份证号"`
  369. }
  370. type SelfSupportForSchoolOrdListReq struct {
  371. EnterpriseId int `json:"enterprise_id" label:"企业id"`
  372. Limit int `json:"limit" binding:"required"`
  373. Page int `json:"page" binding:"required"`
  374. Name string `json:"name" label:"姓名"`
  375. Phone string `json:"phone" label:"用户电话"`
  376. OutTradeNo string `json:"out_trade_no" label:"订单号"`
  377. OrderStatus int `json:"order_status" label:"订单状态"`
  378. GradeId int `json:"grade_id" label:"年级id"`
  379. ClassId int `json:"class_id" label:"班级id"`
  380. StartDate string `json:"start_date" label:"刷脸-开始时间"`
  381. EndDate string `json:"end_date" label:"刷脸-截止时间"`
  382. IsTeacher int `json:"is_teacher" label:"是否教师"`
  383. }
  384. type SelfSupportForSchoolArrearsOrdListReq struct {
  385. EnterpriseId int `json:"enterprise_id" label:"企业id"`
  386. Limit int `json:"limit" binding:"required"`
  387. Page int `json:"page" binding:"required"`
  388. Name string `json:"name" label:"姓名"`
  389. Phone string `json:"phone" label:"用户电话"`
  390. OutTradeNo string `json:"out_trade_no" label:"订单号"`
  391. GradeId int `json:"grade_id" label:"年级id"`
  392. ClassId int `json:"class_id" label:"班级id"`
  393. StartDate string `json:"start_date" label:"刷脸-开始时间"`
  394. EndDate string `json:"end_date" label:"刷脸-截止时间"`
  395. IsTeacher int `json:"is_teacher" label:"是否教师"`
  396. }
  397. type SelfSupportForSchoolArrearsOrdDebtRepayReq struct {
  398. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  399. OutOrderNo string `json:"out_order_no"`
  400. MerchantCode string `json:"merchant_code" `
  401. }
  402. type SelfSupportForSchoolArrearsOrdDebtCancelReq struct {
  403. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  404. OutOrderNo string `json:"out_order_no"`
  405. MerchantCode string `json:"merchant_code" `
  406. }
  407. type SelfSupportForSchoolOrdListResp struct {
  408. EnterpriseId int `json:"enterprise_id" `
  409. EnterpriseName string `json:"enterprise_name" `
  410. Uid int `json:"uid" `
  411. UserIdentityId int `json:"user_identity_id" `
  412. UserIdentityName string `json:"user_identity_name" `
  413. TotalPrice string `json:"total_price" `
  414. OutTradeNo string `json:"out_trade_no" `
  415. TradeNo string `json:"trade_no"`
  416. OrderStatus int `json:"order_status"`
  417. Phone string `json:"phone"`
  418. FaceTime string `json:"face_time"`
  419. Name string `json:"name" label:"姓名"`
  420. Grade string `json:"grade" label:"年级"`
  421. GradeId int `json:"grade_id" label:"年级id"`
  422. Class string `json:"class" label:"班级"`
  423. ClassId int `json:"class_id" label:"班级id"`
  424. DeviceSn string `json:"device_sn" label:"设备编号"`
  425. CpMerchantId string `json:"cp_merchant_id" label:"商户编码"`
  426. }
  427. type CentralKitchenForSchoolBatchAskForLeaveReq struct {
  428. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  429. GradeId int `json:"grade_id" binding:"required" label:"年级id"`
  430. ClassId int `json:"class_id" label:"班级id"`
  431. IsBreakfast int `json:"is_breakfast" label:"是否退早餐(1:退 0:不退)"`
  432. IsLunch int `json:"is_lunch" label:"是否退午餐(1:退 0:不退)"`
  433. IsDinner int `json:"is_dinner" label:"是否退晚餐(1:退 0:不退)"`
  434. Date string `json:"date"`
  435. }
  436. type ListNursingHomePackageReq struct {
  437. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  438. Page int `json:"page" label:"页码"`
  439. Limit int `json:"limit" label:"每页数量"`
  440. Year string `json:"year" label:"年份"`
  441. Month string `json:"month" label:"月份"`
  442. }
  443. type EnterpriseUserListByNursingHomeResp struct {
  444. List []EnterpriseUserListByNursingHomeStruct `json:"list"`
  445. Total int64 `json:"total"`
  446. }
  447. type EnterpriseUserListByNursingHomeStruct struct {
  448. Id int `json:"id" label:"支付宝昵称"`
  449. Nickname string `json:"nickname" label:"支付宝昵称"`
  450. Phone string `json:"phone" label:"手机号"`
  451. Avatar string `json:"avatar" label:"头像"`
  452. CreateAt string `json:"create_at" label:"创建时间"`
  453. UserIdentities []struct {
  454. Id int `json:"id" label:"身份id"`
  455. IdNo string `json:"id_no" label:"身份证号"`
  456. EnterpriseName string `json:"enterprise_name" label:"单位名"`
  457. Name string `json:"name" label:"姓名"`
  458. } `json:"user_identities" label:"身份列表"`
  459. }
  460. type NursingHomeUserUpdateReq struct {
  461. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  462. Uid int `json:"uid" binding:"required" label:"用户id"`
  463. Nickname string `json:"nickname" binding:"required" label:"支付宝昵称"`
  464. Phone string `json:"phone" binding:"required" label:"手机号"`
  465. BindUserIdentities []struct {
  466. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  467. IdNo string `json:"id_no" label:"身份证号"`
  468. Name string `json:"name" label:"姓名"`
  469. } `json:"user_identities" label:"身份列表"`
  470. }
  471. type NursingHomeOrdListReq struct {
  472. EnterpriseId int `json:"enterprise_id" label:"企业id"`
  473. Limit int `json:"limit" binding:"required"`
  474. Page int `json:"page" binding:"required"`
  475. Name string `json:"name" label:"姓名"`
  476. OutTradeNo string `json:"out_trade_no" label:"订单号"`
  477. Kind int `json:"kind" label:"预定类型"`
  478. Sate int `json:"state" label:"支付状态"`
  479. OrdSate int `json:"ord_state" label:"订单状态"`
  480. Phone string `json:"phone" label:"家长联系电话"`
  481. StartDate string `json:"start_date" label:"开始时间"`
  482. EndDate string `json:"end_date" label:"截止时间"`
  483. }
  484. type NursingHomeOrdListResp struct {
  485. EnterpriseId int `json:"enterprise_id" `
  486. EnterpriseName string `json:"enterprise_name" `
  487. Uid int `json:"uid" `
  488. UserIdentityId int `json:"user_identity_id" `
  489. UserIdentityKind int `json:"user_identity_kind" `
  490. UserIdentityName string `json:"user_identity_name" `
  491. TotalPrice string `json:"total_price" `
  492. Kind int `json:"kind" `
  493. OutTradeNo string `json:"out_trade_no" `
  494. TradeNo string `json:"trade_no"`
  495. State int `json:"state"`
  496. OrdState int `json:"ord_state"`
  497. CreateAt string `json:"create_at"`
  498. Phone string `json:"phone" label:"家长联系电话"`
  499. Name string `json:"name" label:"姓名"`
  500. }
  501. type NursingHomeReserveListReq struct {
  502. EnterpriseId int `json:"enterprise_id" label:"企业id"`
  503. Limit int `json:"limit" binding:"required"`
  504. Page int `json:"page" binding:"required"`
  505. Name string `json:"name" label:"姓名"`
  506. OutTradeNo string `json:"out_trade_no" label:"订单号"`
  507. Kind int `json:"kind" label:"预定类型"`
  508. Phone string `json:"phone" label:"家长联系电话"`
  509. StartDate string `json:"start_date" label:"开始时间"`
  510. EndDate string `json:"end_date" label:"截止时间"`
  511. }
  512. type NursingHomeReserveListResp struct {
  513. Id int `json:"id" `
  514. EnterpriseId int `json:"enterprise_id" `
  515. EnterpriseName string `json:"enterprise_name" `
  516. Uid int `json:"uid" `
  517. UserIdentityId int `json:"user_identity_id" `
  518. UserIdentityName string `json:"user_identity_name" `
  519. Kind int `json:"kind"`
  520. OutTradeNo string `json:"out_trade_no" `
  521. ReserveMonth string `json:"reserve_month"`
  522. CreateAt string `json:"create_at"`
  523. Phone string `json:"phone" label:"家长联系电话"`
  524. }
  525. type NursingHomeOrdRefundReq struct {
  526. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  527. Ids []string `json:"ids" label:"ids" binding:"required"`
  528. }
  529. type NursingHomeUserDeleteReq struct {
  530. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  531. Uids []int `json:"uids" binding:"required" label:"用户id"`
  532. }
  533. type SetBasicNursingHomeReq struct {
  534. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  535. State int32 `json:"state" label:"状态(1:正常 2:冻结)"`
  536. Name string `json:"name" binding:"required" label:"名称"`
  537. IsOpenBreakfast int `json:"is_open_breakfast" label:"是否开启早餐"`
  538. IsOpenLunch int `json:"is_open_lunch" label:"是否开启午餐"`
  539. IsOpenDinner int `json:"is_open_dinner" label:"是否开启晚餐"`
  540. IsOpenReportMealForDay int `json:"is_open_report_meal_for_day" label:"开启按天报餐(1:开启 2:关闭)"`
  541. IsOpenReportMealForMonth int `json:"is_open_report_meal_for_month" label:"开启按月报餐(1:开启 2:关闭)"`
  542. IsOpenReportMealForYear int `json:"is_open_report_meal_for_year" label:"开启按年报餐(1:开启 2:关闭)"`
  543. }
  544. type SetNursingHomeWithSpecReq struct {
  545. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  546. BreakfastUnitPrice string `json:"breakfast_unit_price" binding:"required" label:"早餐-单价"`
  547. LunchUnitPrice string `json:"lunch_unit_price" binding:"required" label:"午餐-单价"`
  548. DinnerUnitPrice string `json:"dinner_unit_price" binding:"required" label:"晚餐-单价"`
  549. }
  550. type SaveNursingHomePackageReq struct {
  551. PackageId int `json:"package_id" label:"套餐ID"`
  552. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  553. Year string `json:"year" binding:"required" label:"年份"`
  554. Month string `json:"month" binding:"required" label:"月份"`
  555. StartDate string `json:"start_date" binding:"required" label:"开始时间"`
  556. EndDate string `json:"end_date" binding:"required" label:"截止时间"`
  557. State int `json:"state" label:"状态(1:可用 2:不可用)"`
  558. DateList []struct {
  559. Date string `json:"date"`
  560. IsOpenBreakfast int32 `json:"is_open_breakfast"`
  561. IsOpenLunch int32 `json:"is_open_lunch"`
  562. IsOpenDinner int32 `json:"is_open_dinner"`
  563. IsOpenReplenish int32 `json:"is_open_replenish"`
  564. } `json:"date_list" binding:"required" label:"日期"`
  565. }