Documentation ¶
Index ¶
Constants ¶
View Source
const ( ZH = intern.LanguageCodeZH EN = intern.LanguageCodeEN )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachment ¶ added in v0.0.22
type Attachment struct { ID string `json:"id"` Token string `json:"token"` MimeType string `json:"mime_type"` Name string `json:"name"` Size int64 `json:"size"` }
Attachment 文件
type AttachmentV2 ¶
type AttachmentV2 struct { MimeType string `json:"mime_type"` Name string `json:"name"` Size int64 `json:"size"` Token string `json:"token"` URI string `json:"uri"` }
AttachmentV2 文件(datav3 协议)
type Avatar ¶ added in v0.0.22
type Avatar struct { Source string `json:"source"` Image AvatarImages `json:"image"` Color string `json:"color"` ColorID string `json:"color_id"` Content interface{} `json:"content"` }
Avatar 头像
type AvatarImages ¶ added in v0.0.22
type AvatarV2 ¶
type AvatarV2 struct { Source string `json:"source"` Image AttachmentV2 `json:"image"` Color string `json:"color"` Content int64 `json:"content"` }
AvatarV2 头像(datav3 协议) @example
{ "source": "image", "image": { "token": "0a4ca526dxxxxxxxxx9457145882", // 附件ID, 富文本resource id 或 图片ID "uri": "/img/198999/da69a4ef2ebxxxxxxxxba397bcc6602_l.jpg", // 图片large信息 } }
type PhoneNumber ¶
type PhoneNumber struct { // 示例:+86(CN) Key string `json:"key"` // 示例:18898888888 Number string `json:"number"` }
PhoneNumber 电话号码
type PhoneNumberV2 ¶
type PhoneNumberV2 struct { RegionCode string `json:"region_code"` DialingCode string `json:"dialing_code"` Number string `json:"number"` }
PhoneNumberV2 DataV3 协议
type Region ¶ added in v0.0.22
type Region struct { ID int64 `json:"id"` RegionID int64 `json:"regionId"` Level int `json:"level"` RegionCode string `json:"regionCode"` FullPath Multilingual `json:"fullPath"` }
Region 行政区划
type RegionV2 ¶
type RegionV2 struct { ID string `json:"_id"` RegionCode string `json:"region_code"` FullPath Multilingual `json:"full_path"` }
type RichText ¶ added in v0.0.22
type RichText struct { Raw string `json:"raw"` Preview string `json:"preview"` Config []*RichTextConfig `json:"config"` }
RichText 富文本
type RichTextConfig ¶ added in v0.0.22
type RichTextConfig struct { ResourceID string `json:"resourceId"` ResourceType string `json:"resourceType"` Token string `json:"token"` }
RichTextConfig 富文本配置
type RichTextV2 ¶
type RichTextV2 struct { Raw string `json:"raw"` Config AttachmentV2 `json:"config"` }
RichTextV2 富文本(datav3 协议)
Click to show internal directories.
Click to hide internal directories.