merchant.go 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. package models
  2. type CreateMerchantRequest struct {
  3. OpenId string `json:"open_id"` //open_id
  4. MerchantName string `json:"merchant_name"` // 店铺名称
  5. Industry string `json:"industry"` // 行业
  6. IndustryCategory string `json:"industry_category"` // 行业分类
  7. Contacts string `json:"contacts"` // 联系人
  8. BusinessHours string `json:"business_hours"` // 营业时间
  9. Consumption string `json:"consumption"` // 人均消费
  10. Iphone string `json:"iphone"` // 手机号
  11. Area string `json:"area"` // 地区
  12. Address string `json:"address"` // 地址
  13. NumberPlate string `json:"number_plate"` // 门牌号
  14. BusinessLicenseUrl string `json:"business_license_url"` // 营业执照 url
  15. DoorHeaderUrl string `json:"door_header_url"` // 门头照 url
  16. RechargeUrl string `json:"recharge_url"` // 充值url
  17. }
  18. type GetMerchantRequest struct {
  19. OpenId string `json:"open_id"` //openid
  20. }
  21. type GetRechargeRequest struct {
  22. OpenId string `json:"open_id"` //openid
  23. }
  24. type GetRechargeReply struct {
  25. RechargeUrl string `json:"recharge_url"` //recharge_url
  26. }
  27. type MerchantListRequest struct {
  28. OpenId string `json:"open_id"`
  29. PageSize int `json:"page_size"`
  30. PageIndex int `json:"page_index"`
  31. }
  32. type UpdateMerchantRequest struct {
  33. ID int64 `json:"id"`
  34. MerchantName string `json:"merchant_name"` // 店铺名称
  35. Industry string `json:"industry"` // 行业
  36. IndustryCategory string `json:"industry_category"` // 行业分类
  37. Contacts string `json:"contacts"` // 联系人
  38. BusinessHours string `json:"business_hours"` // 营业时间
  39. Consumption string `json:"consumption"` // 人均消费
  40. Iphone string `json:"iphone"` // 手机号
  41. Area string `json:"area"` // 地区
  42. Address string `json:"address"` // 地址
  43. NumberPlate string `json:"number_plate"` // 门牌号
  44. BusinessLicenseUrl string `json:"business_license_url"` // 营业执照 url
  45. DoorHeaderUrl string `json:"door_header_url"` // 门头照 url
  46. RechargeUrl string `json:"recharge_url"` // 充值url
  47. }
  48. type CancelCardRequest struct {
  49. MerchantOpenId string `json:"merchant_open_id"`
  50. QRMessage string `json:"qr_message"`
  51. }
  52. type CancelCardV2Request struct {
  53. MerchantOpenId string `json:"merchant_open_id"`
  54. QRMessage string `json:"qr_message"`
  55. Number int `json:"number"`
  56. }