POST api/wechat/saveweixintemplatemsg
保存微信模板消息
Request Information
URI Parameters
None.
Body Parameters
WeiXinTemplateMsgName | Description | Type | Additional information |
---|---|---|---|
Id |
主键id |
string |
Max length: 50 |
NoticeType |
微信通知类型 |
WxNoticeType |
None. |
GroupType |
组类型 |
WxGroupType |
None. |
first |
微信公众号模板消息[first.DATA]字段 |
string |
Max length: 500 |
keyword1 |
微信公众号模板消息[keyword1.DATA]字段 |
string |
Max length: 100 |
keyword2 |
微信公众号模板消息[keyword2.DATA]字段 |
string |
Max length: 100 |
keyword3 |
微信公众号模板消息[keyword3.DATA]字段 |
string |
Max length: 100 |
keyword4 |
微信公众号模板消息[keyword4.DATA]字段 |
string |
Max length: 100 |
keyword5 |
微信公众号模板消息[keyword5.DATA]字段 |
string |
Max length: 100 |
remark |
微信公众号模板消息[remark.DATA]字段 |
string |
Max length: 500 |
Title |
标题 |
string |
Max length: 100 |
IsEnabled |
是否启用 |
boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": "sample string 1", "NoticeType": 1, "GroupType": 1, "first": "sample string 2", "keyword1": "sample string 3", "keyword2": "sample string 4", "keyword3": "sample string 5", "keyword4": "sample string 6", "keyword5": "sample string 7", "remark": "sample string 8", "Title": "sample string 9", "IsEnabled": true }
text/html
Sample:
{"Id":"sample string 1","NoticeType":1,"GroupType":1,"first":"sample string 2","keyword1":"sample string 3","keyword2":"sample string 4","keyword3":"sample string 5","keyword4":"sample string 6","keyword5":"sample string 7","remark":"sample string 8","Title":"sample string 9","IsEnabled":true}
application/xml, text/xml
Sample:
<WeiXinTemplateMsg xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Data"> <GroupType>博教科技</GroupType> <Id>sample string 1</Id> <IsEnabled>true</IsEnabled> <NoticeType>考试安排</NoticeType> <Title>sample string 9</Title> <first>sample string 2</first> <keyword1>sample string 3</keyword1> <keyword2>sample string 4</keyword2> <keyword3>sample string 5</keyword3> <keyword4>sample string 6</keyword4> <keyword5>sample string 7</keyword5> <remark>sample string 8</remark> </WeiXinTemplateMsg>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
保存微信模板消息
JsonRtnDtoOfBooleanName | Description | Type | Additional information |
---|---|---|---|
Msg | string |
None. |
|
State | RtnState |
None. |
|
Data | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{ "Msg": "sample string 1", "State": 100, "Data": true }
text/html
Sample:
{"Msg":"sample string 1","State":100,"Data":true}
application/xml, text/xml
Sample:
<JsonRtnDtoOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BJ.Services"> <Data>true</Data> <Msg>sample string 1</Msg> <State>Display</State> </JsonRtnDtoOfboolean>
text/javascript, application/javascript, application/json-p
Sample:
/**/ typeof === 'function' && ({"Msg":"sample string 1","State":100,"Data":true});