feat 修改BrandName和BrandId类型

This commit is contained in:
timerzz 2024-09-02 17:03:52 +08:00
parent 016d3922cc
commit 85e6bb8a8e
2 changed files with 8 additions and 4 deletions

View File

@ -57,8 +57,8 @@ type Spu struct {
SpuId int `json:"spu_id"`
CategoryId int `json:"category_id"`
CategoryName string `json:"category_name"`
BrandId int `json:"brand_id"`
BrandName string `json:"brand_name"`
BrandId BrandId `json:"brand_id"`
BrandName BrandName `json:"brand_name"`
ArticleNumber string `json:"article_number"` //商品货号
OtherNumbers string `json:"other_numbers"` // 辅助货号,逗号分隔,可传多个
Title string `json:"title"`

View File

@ -1,9 +1,13 @@
package dw_sdk
type BrandId int
type BrandName string
const (
BrandId_Coach = 10229
BrandId_Coach BrandId = 10229
)
const (
BrandName_Coach = "COACH/蔻驰"
BrandName_Coach BrandName = "COACH/蔻驰"
)