diff --git a/server/product/internal/logic/getproductdesignlogic.go b/server/product/internal/logic/getproductdesignlogic.go index 85b63967..8882bec3 100644 --- a/server/product/internal/logic/getproductdesignlogic.go +++ b/server/product/internal/logic/getproductdesignlogic.go @@ -83,7 +83,7 @@ func (l *GetProductDesignLogic) GetProductDesign(req *types.GetProductDesignReq, return resp.SetStatusWithMessage(basic.CodeOK, "success", types.GetProductDesignRsp{ ProductId: *designInfo.ProductId, TemplateId: *designInfo.TemplateId, - MaterialId: *designInfo.MaterialId, + //MaterialId: *designInfo.MaterialId, SizeId: *designInfo.SizeId, OptionalId: optionalId, Cover: *designInfo.Cover, diff --git a/server/product/internal/types/types.go b/server/product/internal/types/types.go index de674721..7d794ee4 100644 --- a/server/product/internal/types/types.go +++ b/server/product/internal/types/types.go @@ -88,7 +88,6 @@ type GetProductDesignReq struct { type GetProductDesignRsp struct { ProductId int64 `json:"product_id"` TemplateId int64 `json:"template_id"` - MaterialId int64 `json:"material_id"` SizeId int64 `json:"size_id"` OptionalId int64 `json:"optional_id"` Cover string `json:"cover"` diff --git a/server_api/product.api b/server_api/product.api index 96189201..a0e454f2 100644 --- a/server_api/product.api +++ b/server_api/product.api @@ -108,9 +108,9 @@ type GetProductDesignReq { Sn string `form:"sn"` } type GetProductDesignRsp { - ProductId int64 `json:"product_id"` - TemplateId int64 `json:"template_id"` - MaterialId int64 `json:"material_id"` + ProductId int64 `json:"product_id"` + TemplateId int64 `json:"template_id"` + //MaterialId int64 `json:"material_id"` SizeId int64 `json:"size_id"` OptionalId int64 `json:"optional_id"` Cover string `json:"cover"`