增加渠道(供应商)

URL地址:api/App/Supplier/InsertSupplier

请求方式:POST

传递参数

None.

传递对象

SupplierEntity (渠道(供应商)对象)
名   称描   述参数类型附加信息
Id

integer

None.

SupName

渠道名称

string

None.

SupType

渠道类型

integer

None.

Contacts

联系人

string

None.

Phone

电话

string

None.

QQ

联系qq

string

None.

WeChat

联系微信

string

None.

Remark

备注

string

None.

Creator

创建人

integer

None.

CreateDate

创建日期

date

None.

Status

状态(1:启用,0:停用)

integer

None.

application/json, text/json

Sample:
{
  "Id": 1,
  "SupName": "sample string 2",
  "SupType": 3,
  "Contacts": "sample string 4",
  "Phone": "sample string 5",
  "QQ": "sample string 6",
  "WeChat": "sample string 7",
  "Remark": "sample string 8",
  "Creator": 9,
  "CreateDate": "2021-03-08T02:00:53.3736379+08:00",
  "Status": 11
}

application/xml, text/xml

Sample:
<SupplierEntity xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WeChat.Api.Models">
  <Contacts>sample string 4</Contacts>
  <CreateDate>2021-03-08T02:00:53.3736379+08:00</CreateDate>
  <Creator>9</Creator>
  <Id>1</Id>
  <Phone>sample string 5</Phone>
  <QQ>sample string 6</QQ>
  <Remark>sample string 8</Remark>
  <Status>11</Status>
  <SupName>sample string 2</SupName>
  <SupType>3</SupType>
  <WeChat>sample string 7</WeChat>
</SupplierEntity>

application/x-www-form-urlencoded

Sample:

Sample not available.

返回对象

HttpResultMessageOfBoolean (bool)
名   称描   述参数类型附加信息
StatusCode

HttpStatusCode

None.

Errors

Dictionary of string [key] and string [value]

None.

Msg

string

None.

message

string

None.

Result

boolean

None.

返回对象格式

application/json, text/json

Sample:
{
  "StatusCode": 100,
  "Errors": {
    "sample string 1": "sample string 2",
    "sample string 3": "sample string 4"
  },
  "Msg": "sample string 1",
  "message": "sample string 2",
  "Result": true
}

application/xml, text/xml

Sample:
<HttpResultMessageOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WeChat.Api.Models">
  <Errors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 1</d2p1:Key>
      <d2p1:Value>sample string 2</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
    <d2p1:KeyValueOfstringstring>
      <d2p1:Key>sample string 3</d2p1:Key>
      <d2p1:Value>sample string 4</d2p1:Value>
    </d2p1:KeyValueOfstringstring>
  </Errors>
  <Msg>sample string 1</Msg>
  <Result>true</Result>
  <StatusCode>Continue</StatusCode>
  <message>sample string 2</message>
</HttpResultMessageOfboolean>