POST new/user/setSendmode

通知方式设置

Request Information

URI Parameters

None.

Body Parameters

UserSetSendModeRequest
NameDescriptionTypeAdditional information
UserId

目标用户 ID。

integer

None.

sendMode

发送模式配置。

SendModeModel

None.

Request Formats

application/json, text/json

Sample:
{
  "UserId": 1,
  "sendMode": {
    "IsWeixin": true,
    "IsEmail": true,
    "IsSM": true
  }
}

application/xml, text/xml

Sample:
<UserSetSendModeRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ma.Api.Controllers.Dtos">
  <SendMode xmlns:d2p1="http://schemas.datacontract.org/2004/07/ma.Model.Model.Api">
    <d2p1:IsEmail>true</d2p1:IsEmail>
    <d2p1:IsSM>true</d2p1:IsSM>
    <d2p1:IsWeixin>true</d2p1:IsWeixin>
  </SendMode>
  <UserId>1</UserId>
</UserSetSendModeRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'UserSetSendModeRequest'.

Response Information

Resource Description

ApiDataResponse
NameDescriptionTypeAdditional information
Ok

接口是否成功。

boolean

None.

Data

返回数据。

Object

None.

Msg

返回消息。

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Ok": true,
  "Data": {},
  "Msg": "sample string 3"
}

application/xml, text/xml

Sample:
<ApiDataResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ma.Api.Controllers.Dtos">
  <Data />
  <Msg>sample string 3</Msg>
  <Ok>true</Ok>
</ApiDataResponse>