XingYuXian il y a 1 an
Parent
commit
82b55da782
2 fichiers modifiés avec 5 ajouts et 0 suppressions
  1. 4 0
      model/http_model/UpdateSelectionRequest.go
  2. 1 0
      service/selection.go

+ 4 - 0
model/http_model/UpdateSelectionRequest.go

@@ -39,6 +39,10 @@ type UpdateSelectionData struct {
 	SelectionId string `json:"selection_id"`
 }
 
+type UpdateProductData struct {
+	ProductId string `json:"product_id"`
+}
+
 func NewUpdateSelectionRequest() *UpdateSelectionRequest {
 	return new(UpdateSelectionRequest)
 }

+ 1 - 0
service/selection.go

@@ -84,6 +84,7 @@ func (*selection) Create(ctx context.Context, request http_model.CreateSelection
 
 func (*selection) Update(ctx context.Context, request http_model.UpdateSelectionRequest, enterpriseId string) (*http_model.UpdateSelectionData, error) {
 	// 1. 检查该企业id和商品id有无选品
+	println("awdawdawdawdwad", request.EnterpriseId)
 	selectionInfo, err := db.GetSelectionById(ctx, request.SelectionID)
 	if err != nil {
 		return nil, err