请求方式 POST 请求路径 api/Goods/EditGoodsInfo

编辑商品信息

URI 参数说明

None.

Json字符串 参数说明:Body Data

GoodsInfo
字段说明类型备注说明
CateName

商品分类

string

None.

BrandName

品牌

string

None.

BasicUnit

基本单位

string

None.

Specification

规格

string

None.

Model

型号

string

None.

MainPhoto

商品主图

integer

None.

PriceInfoList

价格体系列表

Collection of PriceInfoDto

None.

BranchCompanyList

授权分栈列表

Collection of Object

None.

GoodsPhotoList

商品图片列表

Collection of GoodsPhotosModel

None.

ID

编号

integer

None.

SupGoodSkuId

商品SKUID

string

必填

SkuId

商品ID

string

None.

SkuName

商品名

string

必填

最大长度: 100

CateId

分类唯一编号

integer

必填

BrandId

品牌唯一编号

integer

None.

ShelfLife

保质期

string

最大长度: 100

Produce

产地

string

最大长度: 100

Storage

储藏方式

string

最大长度: 100

GoodsContent

商品详细信息

string

None.

EnableState

启用状态 0=禁用 1=启用

integer

None.

CompanyId

公司ID 自营0 联营商ID

integer

None.

IsAllowGroupBuy

是否允许参与拼团活动

integer

None.

BusinessModel

经营模式 自营1 联营2

integer

None.

请求格式:application/json, text/json

application/json

Sample:
{
  "CateName": "sample string 1",
  "BrandName": "sample string 2",
  "BasicUnit": "sample string 3",
  "Specification": "sample string 4",
  "Model": "sample string 5",
  "MainPhoto": 6,
  "PriceInfoList": [
    {
      "CompanyName": "sample string 1",
      "PriceTypeName": "",
      "ID": 2,
      "SkuId": "sample string 3",
      "SupGoodSkuId": "sample string 4",
      "CompanyId": 5,
      "ApproveState": 6,
      "PriceType": 7,
      "PostPrice": 8.0,
      "MinCount": 9,
      "MaxCountPerHeadPerDay": 10,
      "SalePrice": 11.0,
      "MoreThanCountFirst": 12,
      "LessThanCountFirst": 13,
      "SalePriceFirst": 14.0,
      "MoreThanCountSecond": 15,
      "LessThanCountSecond": 16,
      "SalePriceSecond": 17.0,
      "MoreThanCount": 18,
      "AddTime": "2025-05-18 06:05:46",
      "UpdateTime": "2025-05-18 06:05:46",
      "AddUser": "sample string 21",
      "AddUserID": 22,
      "UpdateUser": "sample string 23",
      "Deleted": 24
    },
    {
      "CompanyName": "sample string 1",
      "PriceTypeName": "",
      "ID": 2,
      "SkuId": "sample string 3",
      "SupGoodSkuId": "sample string 4",
      "CompanyId": 5,
      "ApproveState": 6,
      "PriceType": 7,
      "PostPrice": 8.0,
      "MinCount": 9,
      "MaxCountPerHeadPerDay": 10,
      "SalePrice": 11.0,
      "MoreThanCountFirst": 12,
      "LessThanCountFirst": 13,
      "SalePriceFirst": 14.0,
      "MoreThanCountSecond": 15,
      "LessThanCountSecond": 16,
      "SalePriceSecond": 17.0,
      "MoreThanCount": 18,
      "AddTime": "2025-05-18 06:05:46",
      "UpdateTime": "2025-05-18 06:05:46",
      "AddUser": "sample string 21",
      "AddUserID": 22,
      "UpdateUser": "sample string 23",
      "Deleted": 24
    }
  ],
  "BranchCompanyList": [
    {},
    {}
  ],
  "GoodsPhotoList": [
    {
      "ID": 1,
      "SupGoodSkuId": "sample string 2",
      "ImagesSrc": "sample string 3",
      "Sort": 1,
      "State": 4,
      "AddTime": "2025-05-18 06:05:46",
      "UpdateTime": "2025-05-18 06:05:46",
      "AddUser": "sample string 7",
      "AddUserID": 8,
      "UpdateUser": "sample string 9",
      "Deleted": 10
    },
    {
      "ID": 1,
      "SupGoodSkuId": "sample string 2",
      "ImagesSrc": "sample string 3",
      "Sort": 1,
      "State": 4,
      "AddTime": "2025-05-18 06:05:46",
      "UpdateTime": "2025-05-18 06:05:46",
      "AddUser": "sample string 7",
      "AddUserID": 8,
      "UpdateUser": "sample string 9",
      "Deleted": 10
    }
  ],
  "ID": 1,
  "SupGoodSkuId": "sample string 7",
  "SkuId": "sample string 8",
  "SkuName": "sample string 9",
  "CateId": 10,
  "BrandId": 1,
  "ShelfLife": "sample string 11",
  "Produce": "sample string 12",
  "Storage": "sample string 13",
  "GoodsContent": "sample string 14",
  "EnableState": 15,
  "CompanyId": 16,
  "IsAllowGroupBuy": 1,
  "BusinessModel": 1,
  "AddTime": "2025-05-18 06:05:46",
  "UpdateTime": "2025-05-18 06:05:46",
  "AddUser": "sample string 19",
  "AddUserID": 20,
  "UpdateUser": "sample string 21",
  "Deleted": 22
}

得到响应信息说明

编辑商品信息

ResponseResult
字段说明类型备注说明
ResponseMsg

返回结果内容描述

string

None.

ResponseCode

状态码 0(成功) >0(业务错误) <0(系统错误) -1: 系统错误 100: 字符为空报错 101: 字符类型错误 102: 图片上传失败200: 操作失败300: 缓存验证超时错误 301: 缓存验证码错误 302: token 错误系统不存在,非法操作 303: token 验证超时500: 参数错误 501: 数据为空 502: 存在重复数据 503: 业务验证失败

integer

None.

Data

返回的结果集

Object

None.

响应格式

application/json, text/json

Sample:
{
  "ResponseMsg": "sample string 1",
  "ResponseCode": 2,
  "Data": {}
}