智慧食堂
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

md_factory_identity.go 8.2 KiB

1年前
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. package md
  2. type FactoryIdentityListResp struct {
  3. Id int `json:"id" xorm:"not null pk autoincr INT(11)"`
  4. Name string `json:"name" xorm:"not null default '' comment('名称') VARCHAR(255)"`
  5. State int `json:"state" xorm:"not null default 1 comment('状态(1:正常 2:冻结)') TINYINT(1)"`
  6. Memo string `json:"memo" xorm:"not null default '' comment('备注') VARCHAR(255)"`
  7. IsSubsidy int `json:"is_subsidy" xorm:"not null default 0 comment('是否优惠补贴(0:否 1:是)') TINYINT(1)"`
  8. SubsidyAmount string `json:"subsidy_amount" xorm:"not null default 0.00 comment('补贴金额') DECIMAL(8,2)"`
  9. LeastPayAmount string `json:"least_pay_amount" xorm:"not null default 0.00 comment('最少支付金额') DECIMAL(8,2)"`
  10. IsLimitConsumeNum int `json:"is_limit_consume_num" xorm:"not null default 0 comment('是否限制消费次数') TINYINT(1)"`
  11. LimitConsumeNum int `json:"limit_consume_num" xorm:"default 0 comment('限制消费次数/日') TINYINT(1)"`
  12. WithUserIdentitiesNum string `json:"with_user_identities_num"`
  13. CreateAt string `json:"create_at" xorm:"not null default 'CURRENT_TIMESTAMP' DATETIME"`
  14. UpdateAt string `json:"update_at" xorm:"not null default 'CURRENT_TIMESTAMP' DATETIME"`
  15. }
  16. type UpdateFactoryIdentityStateReq struct {
  17. Id int `json:"id" binding:"required" label:"id"`
  18. State int `json:"state" binding:"required" label:"状态"`
  19. }
  20. type AddFactoryIdentityReq struct {
  21. Name string `json:"name" binding:"required" label:"名称"`
  22. Memo string `json:"memo" label:"备注"`
  23. IsSubsidy int `json:"is_subsidy" label:"是否优惠补贴(0:否 1:是)"`
  24. SubsidyAmount string `json:"subsidy_amount" label:"补贴金额"`
  25. LeastPayAmount string `json:"least_pay_amount" label:"最少支付金额"`
  26. IsLimitConsumeNum int `json:"is_limit_consume_num" label:"是否限制消费次数"`
  27. LimitConsumeNum int `json:"limit_consume_num" label:"限制消费次数/日"`
  28. }
  29. type UpdateFactoryIdentityReq struct {
  30. Id int `json:"id" binding:"required" label:"id"`
  31. Name string `json:"name" binding:"required" label:"名称"`
  32. Memo string `json:"memo" label:"备注"`
  33. IsSubsidy int `json:"is_subsidy" label:"是否优惠补贴(0:否 1:是)"`
  34. SubsidyAmount string `json:"subsidy_amount" label:"补贴金额"`
  35. LeastPayAmount string `json:"least_pay_amount" label:"最少支付金额"`
  36. IsLimitConsumeNum int `json:"is_limit_consume_num" label:"是否限制消费次数"`
  37. LimitConsumeNum int `json:"limit_consume_num" label:"限制消费次数/日"`
  38. }
  39. type FactoryIdentityListReq struct {
  40. Limit int `json:"limit"`
  41. Page int `json:"page" `
  42. Name string `json:"name"`
  43. State int `json:"state"`
  44. StartDate string `json:"start_date" `
  45. EndDate string `json:"end_date" `
  46. }
  47. type BindFactoryIdentityReq struct {
  48. UserIdentitiesId int `json:"user_identities_id" binding:"required"`
  49. FactoryIdentityId int `json:"factory_identity_id" label:"角色id"`
  50. }
  51. type SetBasicFactoryReq struct {
  52. IsOpenNaturalCustomer int `json:"is_open_natural_customer" binding:"required"`
  53. NaturalCustomerServiceFee string `json:"natural_customer_service_fee" binding:"required"`
  54. }
  55. type FactoryWorkerListReq struct {
  56. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  57. Limit int `json:"limit" binding:"required"`
  58. Page int `json:"page" binding:"required"`
  59. Name string `json:"name" label:"姓名"`
  60. IdNo string `json:"id_no" label:"身份证号"`
  61. Phone string `json:"phone" label:"手机号"`
  62. }
  63. type FactoryWorkerListResp struct {
  64. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  65. IdNo string `json:"id_no" label:"身份证号"`
  66. CertType int `json:"cert_type" label:"证件类型"`
  67. Phone string `json:"parent_phone" label:"电话"`
  68. Name string `json:"name" label:"姓名"`
  69. FactoryIdentityId int `json:"factory_identity_id" label:"工厂身份id"`
  70. FactoryIdentity string `json:"factory_identity" label:"工厂身份"`
  71. CreateAt string `json:"create_at" xorm:"not null default 'CURRENT_TIMESTAMP' DATETIME"`
  72. UpdateAt string `json:"update_at" xorm:"not null default 'CURRENT_TIMESTAMP' DATETIME"`
  73. }
  74. type FactoryUserDeleteReq struct {
  75. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  76. Uids []int `json:"uids" binding:"required" label:"用户id"`
  77. }
  78. type FactoryUserUpdateReq struct {
  79. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  80. Uid int `json:"uid" binding:"required" label:"用户id"`
  81. Nickname string `json:"nickname" binding:"required" label:"支付宝昵称"`
  82. Phone string `json:"phone" binding:"required" label:"手机号"`
  83. BindUserIdentities []struct {
  84. UserIdentityId int `json:"user_identity_id" label:"用户身份id"`
  85. IdNo string `json:"id_no" label:"身份证号"`
  86. CertType int `json:"cert_type" label:"证件类型"`
  87. Name string `json:"name" label:"姓名"`
  88. } `json:"user_identities" label:"身份列表"`
  89. }
  90. type FactoryWorkerUpdateReq struct {
  91. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  92. UserIdentityId int `json:"user_identity_id" binding:"required" label:"用户身份id"`
  93. IdNo string `json:"id_no" label:"身份证号"`
  94. CertType int `json:"cert_type" label:"证件类型(1:身份证 2:学工号 3:护照)"`
  95. Name string `json:"name" label:"姓名"`
  96. FactoryIdentityId int `json:"factory_identity_id" label:"工厂身份id"`
  97. }
  98. type FactoryWorkerDeleteReq struct {
  99. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  100. UserIdentityIds []int `json:"user_identity_ids" binding:"required" label:"用户身份id"`
  101. }
  102. type FactoryWorkerAddReq struct {
  103. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  104. Name string `json:"name" label:"名称"`
  105. CertType int `json:"cert_type" label:"证件类型(1:身份证 2:学工号 3:护照)"`
  106. IdNo string `json:"id_no" label:"身份证号"`
  107. FactoryIdentityId int `json:"factory_identity_id" label:"工厂身份id"`
  108. }
  109. type FactoryOrdListReq struct {
  110. EnterpriseId int `json:"enterprise_id" label:"企业id"`
  111. Limit int `json:"limit" binding:"required"`
  112. Page int `json:"page" binding:"required"`
  113. Name string `json:"name" label:"姓名"`
  114. Phone string `json:"phone" label:"用户电话"`
  115. OutTradeNo string `json:"out_trade_no" label:"订单号"`
  116. TradeNo string `json:"trade_no" label:"交易单号"`
  117. OrderStatus int `json:"order_status" label:"订单状态"`
  118. StartDate string `json:"start_date" label:"订单-开始时间"`
  119. EndDate string `json:"end_date" label:"订单-截止时间"`
  120. TerminalId string `json:"terminal_id" label:"设备编号"`
  121. TradeChannel string `json:"trade_channel" label:"交易渠道"`
  122. ShopName string `json:"shop_name" label:"消费档口"`
  123. }
  124. type FactoryOrdListResp struct {
  125. EnterpriseId int `json:"enterprise_id" `
  126. EnterpriseName string `json:"enterprise_name" `
  127. Uid int `json:"uid" `
  128. UserIdentityId int `json:"user_identity_id" `
  129. UserIdentityName string `json:"user_identity_name" `
  130. OutTradeNo string `json:"out_trade_no" `
  131. TradeNo string `json:"trade_no"`
  132. OrderStatus int `json:"order_status"`
  133. Phone string `json:"phone"`
  134. GmtPayment string `json:"gmt_payment"`
  135. TerminalId string `json:"terminal_id" label:"设备编号"`
  136. ShopName string `json:"shop_name" label:"消费档口"`
  137. TotalAmount string `json:"total_amount" label:"订单总金额"`
  138. ReceiptAmount string `json:"receipt_amount" label:"实收金额"`
  139. BuyerPayAmount string `json:"buyer_pay_amount" label:"买家支付金额"`
  140. SubsidyAmount string `json:"subsidy_amount" label:"补贴金额"`
  141. ServiceFee string `json:"service_fee" label:"服务费用"`
  142. TradeChannel string `json:"trade_channel" label:"交易渠道"`
  143. }