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 AttachmentModelV3 ¶ added in v0.0.35
type AttachmentModelV3 struct { Token string `json:"token"` MimeType string `json:"mime_type,omitempty"` Name string `json:"name,omitempty"` Size string `json:"size,omitempty"` URI string `json:"uri,omitempty"` }
AttachmentModelV3 文件(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 AvatarV3 ¶ added in v0.0.35
type AvatarV3 struct { Source string `json:"source"` Image *AttachmentModelV3 `json:"image,omitempty"` Color *string `json:"color,omitempty"` Content interface{} `json:"content,omitempty"` // int | MultilingualV3 }
AvatarV3 头像(datav3 协议) @example
{ "source": "image", "image": { "token": "0a4ca526dxxxxxxxxx9457145882", // 附件ID, 富文本resource id 或 图片ID "uri": "/img/198999/da69a4ef2ebxxxxxxxxba397bcc6602_l.jpg", // 图片large信息 } }
type LookupV3 ¶ added in v0.0.35
type LookupV3 struct { ID string `json:"_id"` Name MultilingualV3 `json:"_name"` }
type MultilingualV3 ¶ added in v0.0.35
type OptionV3 ¶ added in v0.0.35
type OptionV3 struct { APIName string `json:"api_name"` Color string `json:"color"` Label MultilingualV3 `json:"label"` }
type PhoneNumber ¶
type PhoneNumber struct { // 示例:+86(CN) Key string `json:"key"` // 示例:18898888888 Number string `json:"number"` }
PhoneNumber 电话号码
type PhoneNumberV3 ¶ added in v0.0.35
type PhoneNumberV3 struct { RegionCode string `json:"region_code"` DialingCode string `json:"dialing_code"` Number string `json:"number"` }
PhoneNumberV3 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 RegionV3 ¶ added in v0.0.35
type RegionV3 struct { ID string `json:"_id"` RegionCode string `json:"region_code"` FullPath MultilingualV3 `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 RichTextV3 ¶ added in v0.0.35
type RichTextV3 struct { Raw string `json:"raw"` Config *AttachmentModelV3 `json:"config,omitempty"` }
RichTextV3 富文本(datav3 协议)
Click to show internal directories.
Click to hide internal directories.