Documentation ¶
Index ¶
- Constants
- func ToJSON(i interface{}) string
- type CommonRes
- func Error(code int, msg string) CommonRes
- func ErrorWithSign(code int, msg string, sign string) CommonRes
- func Succ(code int, msg string, i interface{}, sign string) CommonRes
- func SuccContent(code int, msg string, content string, sign string) CommonRes
- func Success(code int, bizContent string, sign string) CommonRes
- type DecryptContentReq
- type DingDingAt
- type DingDingNotify
- type DingDingReq
- type Listener
- type Markdown
- type RequiredReq
Constants ¶
View Source
const ( REQ = "req" FILENAME_REQ = "filenameReq" REQ_BODY = "reqBody" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommonRes ¶
type DecryptContentReq ¶
type DingDingAt ¶
type DingDingNotify ¶
type DingDingReq ¶
type DingDingReq struct { MsgType string `json:"msgtype"` Markdown Markdown `json:"markdown"` Text Markdown `json:"text"` At DingDingAt `json:"at"` }
type RequiredReq ¶
type RequiredReq struct { SignType string `json:"signType,required" vd:"@:len($)>0; msg:'signType不能为空'"` Sign string `json:"sign,required"` Filename string `json:"filename,required" vd:"@:len($)>0; msg:'filename不能为空'"` EncryptType string `json:"encryptType,required" vd:"@:len($)>0; msg:'encryptType不能为空'"` BizContent string `json:"bizContent,required"` Timestamp string `json:"timestamp,required" vd:"@:len($)>0; msg:'timestamp不能为空'"` Version string `json:"version,required" vd:"@:len($)>0; msg:'version不能为空'"` }
Click to show internal directories.
Click to hide internal directories.