GET api/WechatTemplate/GetTemplateDetail?id={id}

后台 - 根据id获取模板消息详情

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

主键

string

Required

Body Parameters

None.

Response Information

Resource Description

后台 - 根据id获取模板消息详情

WechatTemplateDetailDto
NameDescriptionTypeAdditional information
ActionTypeName

模板事件名称

string

None.

ActionType

模板事件

WechatTemplateActionType

None.

AdviseSerialNum

官方推荐的模板编号

string

None.

AvailableVariables

可用场景变量

string

None.

LinkType

模板消息跳转类型

LinkType

None.

Link

模板消息跳转(json字符串,内喊跳转内容和跳转方式)

string

None.

Content

模板消息内容数据(json字符串,内含自定义的变量内容)

string

None.

VariableSeed

模板消息变量集合(模板消息的变量集合,初始化Content为空的时候前端可根据此字段生成Content字段,Content有值后此字段无用)

string

None.

OffContent

官方模板消息内容数据(json字符串,内含自定义的变量内容)

string

None.

OffVariableSeed

官方模板消息变量集合(官方模板消息的变量集合,初始化Content为空的时候前端可根据此字段生成Content字段,Content有值后此字段无用)

string

None.

Id

模板标识

integer

None.

SerialNum

模板id

string

None.

Business

关联业务模块

TemplateBizType

None.

Name

模板名称

string

None.

NotifyUserType

通知用户类型

UserNotifyType

None.

SpecifiedNotifiedUserId

指定通知用户,仅当通知类型为特定后台用户时才生效

string

None.

IsActivated

是否启用

boolean

None.

Response Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: 无法访问已关闭的流。

text/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: 无法访问已关闭的流。

application/xml, text/xml

Sample:
<WechatTemplateDetailDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Dto.WeChat">
  <Business xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Model.Base.Message">All</Business>
  <Id xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Model.Base.Message">8</Id>
  <IsActivated xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Model.Base.Message">true</IsActivated>
  <Name xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Model.Base.Message">sample string 10</Name>
  <NotifyUserType xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Model.Base.Message">ForAll</NotifyUserType>
  <SerialNum xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Model.Base.Message">sample string 9</SerialNum>
  <SpecifiedNotifiedUserId xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Model.Base.Message">sample string 11</SpecifiedNotifiedUserId>
  <ActionType xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Model">CarpoolNotify</ActionType>
  <AdviseSerialNum xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Model">sample string 1</AdviseSerialNum>
  <AvailableVariables xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Model">sample string 2</AvailableVariables>
  <Content xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Model">sample string 4</Content>
  <Link xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Model">sample string 3</Link>
  <LinkType xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Model">Url</LinkType>
  <OffContent xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Model">sample string 6</OffContent>
  <OffVariableSeed xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Model">sample string 7</OffVariableSeed>
  <VariableSeed xmlns="http://schemas.datacontract.org/2004/07/Mh.Common.Service.Model">sample string 5</VariableSeed>
</WechatTemplateDetailDto>