merchant.go 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. }
  17. type GetMerchantRequest struct {
  18. OpenId string `json:"open_id"` //openid
  19. }
  20. type MerchantListRequest struct {
  21. OpenId string `json:"open_id"`
  22. PageSize int `json:"page_size"`
  23. PageIndex int `json:"page_index"`
  24. }
  25. type UpdateMerchantRequest struct {
  26. ID int64 `json:"id"`
  27. MerchantName string `json:"merchant_name"` // 店铺名称
  28. Industry string `json:"industry"` // 行业
  29. IndustryCategory string `json:"industry_category"` // 行业分类
  30. Contacts string `json:"contacts"` // 联系人
  31. BusinessHours string `json:"business_hours"` // 营业时间
  32. Consumption string `json:"consumption"` // 人均消费
  33. Iphone string `json:"iphone"` // 手机号
  34. Area string `json:"area"` // 地区
  35. Address string `json:"address"` // 地址
  36. NumberPlate string `json:"number_plate"` // 门牌号
  37. BusinessLicenseUrl string `json:"business_license_url"` // 营业执照 url
  38. DoorHeaderUrl string `json:"door_header_url"` // 门头照 url
  39. }
  40. type CancelCardRequest struct {
  41. MerchantOpenId string `json:"merchant_open_id"`
  42. QRMessage string `json:"qr_message"`
  43. }
  44. type CancelCardV2Request struct {
  45. MerchantOpenId string `json:"merchant_open_id"`
  46. QRMessage string `json:"qr_message"`
  47. Number int `json:"number"`
  48. }