merchant.go 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. }