SimpleTemplate

data class SimpleTemplate @ApiResultType constructor(val id: String, val title: String, val type: Int = 0, val msgtype: Int = 1, val status: Int = 0, val testData: String = "", val testChannel: String = "", val content: String = "") : Template(source)

Template 的简单实现。

Since

4.3.0

Constructors

Link copied to clipboard
constructor(id: String, title: String, type: Int = 0, msgtype: Int = 1, status: Int = 0, testData: String = "", testChannel: String = "", content: String = "")

Properties

Link copied to clipboard
open override val content: String

模板内容

Link copied to clipboard
open override val id: String

模板的id,最长16

Link copied to clipboard
open override val msgtype: Int = 1

1代表kmd消息,2代表通过json发卡片消息,3代表通过yaml发卡片消息

Link copied to clipboard
open override val status: Int = 0

0代表未审核,1代表审核中,2代表审核通过,3代表审核拒绝,当前没有开发审核,都为0

Link copied to clipboard
@SerialName(value = "test_channel")
open override val testChannel: String

测试的频道,最长64。 主要用于界面上的便利测试

Link copied to clipboard
@SerialName(value = "test_data")
open override val testData: String

测试数据, 主要用于界面上的便利测试

Link copied to clipboard
open override val title: String

模型的标题,最长64

Link copied to clipboard
open override val type: Int = 0

目前固定为0,代表模型使用twig渲染