Bladeren bron

Merge branch 'refs/heads/develop-zhou' into develop

Ethan 4 maanden geleden
bovenliggende
commit
7982b66af5
2 gewijzigde bestanden met toevoegingen van 2 en 0 verwijderingen
  1. 1 0
      app/service/product_service.go
  2. 1 0
      app/vo/product_create_param.go

+ 1 - 0
app/service/product_service.go

@@ -68,6 +68,7 @@ func (p ProductService) GetTaskProductsByUserId(param vo.GetAllProductParam) (vo
 
 func (p ProductService) CreateProduct(productCreateParam *vo.ProductCreateParam) (int64, error) {
 	product := entity.Product{
+		ProductType:         productCreateParam.ProductType,
 		KuaishouProductId:   productCreateParam.ProductId,
 		ProductName:         productCreateParam.ProductName,
 		ProductCategory:     productCreateParam.ProductCategory,

+ 1 - 0
app/vo/product_create_param.go

@@ -9,6 +9,7 @@ type ProductPhoto struct {
 type ProductCreateParam struct {
 	EnterpriseId        string         `json:"enterprise_id"`        // 要绑定的企业id
 	SubAccountId        int64          `json:"sub_account_id"`       // 子账号id
+	ProductType         int64          `json:"product_type"`         // 商品类型(0一般商品 1快手商品)
 	ProductName         string         `json:"product_name"`         // 商品标题
 	ProductId           string         `json:"product_id"`           // 快手商品ID
 	ProductCategory     string         `json:"product_category"`     // 商品类目