Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllType = []*TypeDetail{ {TypeText, TypeText.String(), TypeText.StringEnglish()}, {TypeTextCard, TypeTextCard.String(), TypeTextCard.StringEnglish()}, {TypeMarkdown, TypeMarkdown.String(), TypeMarkdown.StringEnglish()}, {TypeHTML, TypeHTML.String(), TypeHTML.StringEnglish()}, }
Functions ¶
This section is empty.
Types ¶
type Resp ¶
type RespCode ¶
type RespCode int
const ( RespCodeSucceeded RespCode = 0 // 成功 RespCodeFailed RespCode = 1 // 失败 RespCodeNotFound RespCode = 2 // 未找到 RespCodeBadRequest RespCode = 3 // 错误输入 RespCodeUnAuthorized RespCode = 4 // 未登录 RespCodeForbidden RespCode = 5 // 未授权 RespCodeConflict RespCode = 6 // 数据冲突 RespCodeTooManyRequests RespCode = 7 // 太多请求 )
type RespRaw ¶
type RespRaw struct { Code RespCode `json:"code"` Msg string `json:"msg,omitempty"` Data json.RawMessage `json:"data,omitempty"` }
type Send ¶
type Send struct { ID int64 `json:"id" form:"id" query:"id"` Sign string `json:"sign" form:"sign" query:"sign"` // 唯一标记 Type Type `json:"type" form:"type" query:"type"` // 消息类型 At int64 `json:"at" form:"at" query:"at"` // SendAt Title string `json:"title" form:"title" query:"title"` Msg string `json:"msg" form:"msg" query:"msg"` }
type SendCancel ¶
type SendCancel struct {
ID int64 `json:"id" form:"id" query:"id"`
}
func NewSendCancel ¶
func NewSendCancel(id int64) *SendCancel
type SendStatus ¶
type SendStatus struct {
ID int64 `json:"id" form:"id" query:"id"`
}
func NewSendStatus ¶
func NewSendStatus(id int64) *SendStatus
type StatusModel ¶
Click to show internal directories.
Click to hide internal directories.