vo

package
v0.3.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2021 License: MIT Imports: 1 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionButton added in v0.0.3

type ActionButton struct {
	Tag string `json:"tag"`

	Text     CardElementText        `json:"text"`
	Url      string                 `json:"url,omitempty"`
	MultiUrl *CardElementUrl        `json:"multi_url"`
	Type     string                 `json:"type,omitempty"`
	Value    map[string]interface{} `json:"value,omitempty"`
	Confirm  *CardElementConfirm    `json:"confirm,omitempty"`
}

type ActionDatePicker added in v0.0.3

type ActionDatePicker struct {
	Tag string `json:"tag"`

	InitialDate     string                 `json:"initial_date,omitempty"`
	InitialTime     string                 `json:"initial_time,omitempty"`
	InitialDatetime string                 `json:"initial_datetime,omitempty"`
	Placeholder     *CardElementText       `json:"placeholder,omitempty"`
	Value           map[string]interface{} `json:"value,omitempty"`
	Confirm         *CardElementConfirm    `json:"confirm,omitempty"`
}

type ActionOverflow added in v0.0.3

type ActionOverflow struct {
	Tag string `json:"tag"`

	Options []CardElementOption    `json:"options"`
	Value   map[string]interface{} `json:"value,omitempty"`
	Confirm *CardElementConfirm    `json:"confirm,omitempty"`
}

type ActionSelectMenu added in v0.0.3

type ActionSelectMenu struct {
	Tag string `json:"tag"`

	Placeholder   *CardElementText       `json:"placeholder,omitempty"`
	InitialOption string                 `json:"initial_option,omitempty"`
	Options       []CardElementOption    `json:"options"`
	Value         map[string]interface{} `json:"value,omitempty"`
	Confirm       *CardElementConfirm    `json:"confirm,omitempty"`
}

type AddCalendarAttendeesAclReq added in v0.0.6

type AddCalendarAttendeesAclReq struct {
	Role  string        `json:"role"`
	Scope CalendarScope `json:"scope"`
}

type AdminUserData added in v0.3.0

type AdminUserData struct {
	OpenId  string `json:"open_id"`
	UserId  string `json:"user_id"`
	UnionId string `json:"union_id"`
}

type AdminUserListResp added in v0.3.0

type AdminUserListResp struct {
	CommonVo
	Data AdminUserListRespData `json:"data"`
}

type AdminUserListRespData added in v0.3.0

type AdminUserListRespData struct {
	UserList []AdminUserData `json:"user_list"`
}

type AppAccessTokenInternalRespVo

type AppAccessTokenInternalRespVo struct {
	CommonVo
	TenantAccessToken string `json:"tenant_access_token"`
	AppAccessToken    string `json:"app_access_token"`
	Expire            int64  `json:"expire"`
}

type AppAccessTokenRespVo

type AppAccessTokenRespVo struct {
	CommonVo
	AppAccessToken string `json:"app_access_token"`
	Expire         int64  `json:"expire"`
}

type ApplyScopesResp added in v0.3.6

type ApplyScopesResp struct {
	CommonVo
	Data ApplyScopesRespData `json:"data"`
}

type ApplyScopesRespData added in v0.3.6

type ApplyScopesRespData struct {
}

type Attendees added in v0.0.3

type Attendees struct {
	OpenId      string `json:"open_id,omitempty"`
	EmployeeId  string `json:"employee_id,omitempty"`
	DisplayName string `json:"display_name,omitempty"`
	Optional    bool   `json:"optional,omitempty"`
}

type AttendeesResp added in v0.0.3

type AttendeesResp struct {
	Attendees
	Status string `json:"status"`
}

type BatchMsgVo added in v0.0.3

type BatchMsgVo struct {
	DepartmentIds []string `json:"department_ids"`
	OpenIds       []string `json:"open_ids"`
	UserIds       []string `json:"user_ids"`
	MsgType       string   `json:"msg_type"`

	Card    *Card       `json:"card,omitempty"`
	Content *MsgContent `json:"content,omitempty"`
}

type Calendar added in v0.0.3

type Calendar struct {
	Id                string `json:"id"`
	Summary           string `json:"summary"`
	Description       string `json:"description"`
	IsPrivate         bool   `json:"is_private"`
	DefaultAccessRole string `json:"default_access_role"`
}

type CalendarAttendeesAcl added in v0.0.6

type CalendarAttendeesAcl struct {
	Role  string        `json:"role"`
	Scope CalendarScope `json:"scope"`
}

type CalendarEvent added in v0.0.3

type CalendarEvent struct {
	Id          string      `json:"id"`
	Summary     string      `json:"summary"`
	Description string      `json:"description"`
	Start       TimeFormat  `json:"start"`
	End         TimeFormat  `json:"end"`
	Attendees   []Attendees `json:"attendees"`
	Visibility  string      `json:"visibility"`
}

type CalendarEventListResp added in v0.0.3

type CalendarEventListResp struct {
	CommonVo
	PageToken string          `json:"page_token"`
	SyncToken string          `json:"sync_token"`
	Data      []CalendarEvent `json:"data"`
}

type CalendarList added in v0.0.3

type CalendarList struct {
	Items []Calendar `json:"items"`
}

type CalendarListResp added in v0.0.3

type CalendarListResp struct {
	CommonVo
	PageToken string       `json:"page_token"`
	SyncToken string       `json:"sync_token"`
	Data      CalendarList `json:"data"`
}

type CalendarScope added in v0.0.6

type CalendarScope struct {
	Type       string `json:"type"`
	OpenId     string `json:"open_id,omitempty"`
	EmployeeId string `json:"employee_id,omitempty"`
}

type Card added in v0.0.3

type Card struct {
	Config       *CardConfig     `json:"config,omitempty"`
	CardLink     *CardElementUrl `json:"card_link,omitempty"`
	Header       *CardHeader     `json:"header,omitempty"`
	Elements     []interface{}   `json:"elements"`
	I18nElements *I18nElement    `json:"i18n_elements,omitempty"`
}

机器人消息Card字段数据格式定义

type CardConfig added in v0.0.3

type CardConfig struct {
	WideScreenMode bool `json:"wide_screen_mode"`
}

type CardElementAction added in v0.0.3

type CardElementAction struct {
	Tag  string           `json:"tag"`
	Text *CardElementText `json:"text,omitempty"`
	Type string           `json:"type"`
}

type CardElementActionModule added in v0.0.3

type CardElementActionModule struct {
	Tag     string        `json:"tag"`
	Layout  string        `json:"layout"`
	Actions []interface{} `json:"actions"`
}

type CardElementBrModule added in v0.0.3

type CardElementBrModule struct {
	Tag string `json:"tag"`
}

type CardElementConfirm added in v0.0.3

type CardElementConfirm struct {
	Title *CardHeaderTitle `json:"title,omitempty"`
	Text  *CardElementText `json:"text,omitempty"`
}

type CardElementContentModule added in v0.0.3

type CardElementContentModule struct {
	Tag string `json:"tag"`

	Text   *CardElementText   `json:"text"`
	Fields []CardElementField `json:"fields"`
	Extra  *CardElementExtra  `json:"extra,omitempty"`
}

type CardElementExtra added in v0.0.3

type CardElementExtra struct {
	Tag    string           `json:"tag"`
	ImgKey string           `json:"img_key"`
	Alt    *CardElementText `json:"alt,omitempty"`
}

type CardElementField added in v0.0.3

type CardElementField struct {
	IsShort bool            `json:"is_short"`
	Text    CardElementText `json:"text,omitempty"`
}

type CardElementImageModule added in v0.0.3

type CardElementImageModule struct {
	Tag string `json:"tag"`

	ImgKey string           `json:"img_key"`
	Alt    CardElementText  `json:"alt"`
	Title  *CardElementText `json:"title,omitempty"`
}

type CardElementNote added in v0.3.5

type CardElementNote struct {
	Tag      string        `json:"tag"`
	Elements []interface{} `json:"elements"`
}

type CardElementOption added in v0.0.3

type CardElementOption struct {
	Text     *CardElementText `json:"text,omitempty"`
	Value    string           `json:"value"`
	Url      string           `json:"url,omitempty"`
	MultiUrl *CardElementUrl  `json:"multi_url,omitempty"`
}

type CardElementText added in v0.0.3

type CardElementText struct {
	Tag     string                    `json:"tag"`
	Content string                    `json:"content"`
	Lines   int                       `json:"lines,omitempty"`
	Href    map[string]CardElementUrl `json:"href,omitempty"`
}

type CardElementTextAlt added in v0.2.7

type CardElementTextAlt struct {
	Tag     string                    `json:"tag"`
	Content string                    `json:"content"`
	Lines   int                       `json:"lines,omitempty"`
	Href    map[string]CardElementUrl `json:"href,omitempty"`
}

type CardElementUrl added in v0.0.3

type CardElementUrl struct {
	Url        string `json:"url"`
	AndroidUrl string `json:"android_url"`
	IosUrl     string `json:"ios_url"`
	PcUrl      string `json:"pc_url"`
}

type CardHeader added in v0.0.3

type CardHeader struct {
	Title    *CardHeaderTitle `json:"title,omitempty"`
	Template string           `json:"template"`
}

type CardHeaderTitle added in v0.0.3

type CardHeaderTitle struct {
	Tag     string    `json:"tag"`
	Content string    `json:"content"`
	Lines   int       `json:"lines,omitempty"`
	I18n    *CardI18n `json:"i18n,omitempty"`
}

type CardI18n added in v0.0.3

type CardI18n struct {
	ZhCn string `json:"zh_cn"`
	EnUs string `json:"en_us"`
	JaJp string `json:"ja_jp"`
}

type ChatGroupData added in v0.1.7

type ChatGroupData struct {
	ChatId  string       `json:"chat_id"`
	HasMore bool         `json:"has_more"`
	Members []MemberData `json:"members"`
}

type ChatInfoData added in v0.1.8

type ChatInfoData struct {
	Avatar      string            `json:"avatar"`
	ChatId      string            `json:"chat_id"`
	Description string            `json:"description"`
	I18nNames   map[string]string `json:"i18n_names"`
	Members     []ChatMemberData  `json:"members"`
	Name        string            `json:"name"`
	Type        string            `json:"type"`
	OwnerOpenId string            `json:"owner_open_id"`
	OwnerUserId string            `json:"owner_user_id"`
}

type ChatInfoRespVo added in v0.1.8

type ChatInfoRespVo struct {
	CommonVo
	Data ChatInfoData `json:"data"`
}

type ChatMemberData added in v0.1.8

type ChatMemberData struct {
	OpenId string `json:"open_id"`
	UserId string `json:"user_id"`
}

type ChatMembersRespVo added in v0.1.7

type ChatMembersRespVo struct {
	CommonVo
	Data *ChatGroupData `json:"data"`
}

type CheckUserData added in v0.2.5

type CheckUserData struct {
	Status          string `json:"status"`
	PricePlanId     string `json:"price_plan_id"`
	IsTrial         bool   `json:"is_trial"`
	ServiceStopTime string `json:"service_stop_time"`
}

type CheckUserReq added in v0.2.5

type CheckUserReq struct {
	OpenId string `json:"open_id"`
	UserId string `json:"user_id"`
}

type CheckUserResp added in v0.2.5

type CheckUserResp struct {
	CommonVo
	Data CheckUserData `json:"data"`
}

type CommonCalendarEventResp added in v0.0.3

type CommonCalendarEventResp struct {
	CommonVo
	Data CalendarEvent `json:"data"`
}

type CommonCalendarResp added in v0.0.3

type CommonCalendarResp struct {
	CommonVo
	Data Calendar `json:"data"`
}

type CommonVo

type CommonVo struct {
	Code int    `json:"code"`
	Msg  string `json:"msg"`
}

type CreateCalendarEventReq added in v0.0.3

type CreateCalendarEventReq struct {
	Summary     string       `json:"summary"`
	Description string       `json:"description,omitempty"`
	Start       TimeFormat   `json:"start"`
	End         TimeFormat   `json:"end"`
	Attendees   *[]Attendees `json:"attendees,omitempty"`
	Visibility  string       `json:"visibility,omitempty"`
}

type CreateCalendarReq added in v0.0.3

type CreateCalendarReq struct {
	Summary           string `json:"summary"`
	Description       string `json:"description,omitempty"`
	IsPrivate         bool   `json:"is_private,omitempty"`
	DefaultAccessRole string `json:"default_access_role,omitempty"`
}

type CreateChatData added in v0.1.8

type CreateChatData struct {
	ChatId         string   `json:"chat_id"`
	InvalidOpenIds []string `json:"invalid_open_ids"`
	InvalidUserIds []string `json:"invalid_user_ids"`
}

type CreateChatReqVo added in v0.1.8

type CreateChatReqVo struct {
	Name        string            `json:"name"`
	Description string            `json:"description"`
	OpenIds     []string          `json:"open_ids"`
	UserIds     []string          `json:"user_ids"`
	I18nNames   map[string]string `json:"i18n_names"`
}

type CreateChatRespVo added in v0.1.8

type CreateChatRespVo struct {
	CommonVo
	Data CreateChatData `json:"data"`
}

type CustomAttr added in v0.1.4

type CustomAttr struct {
	Id    string          `json:"id"`
	Type  string          `json:"type"`
	Value CustomAttrValue `json:"value"`
}

type CustomAttrValue added in v0.1.4

type CustomAttrValue struct {
	Url   string `json:"url"`
	PcUrl string `json:"pc_url"`
}

type DepartmentDetailInfo added in v0.1.5

type DepartmentDetailInfo struct {
	ChatId      string `json:"chat_id"`
	HasChild    bool   `json:"has_child"`
	Id          string `json:"id"`
	Leader      Leader `json:"leader"`
	MemberCount int    `json:"member_count"`
	Name        string `json:"name"`
	ParentId    string `json:"parent_id"`
	Status      int    `json:"status"`
}

type DepartmentDetailInfoVo

type DepartmentDetailInfoVo struct {
	Id               string `json:"id"`
	LeaderEmployeeId string `json:"leader_employee_id"`
	LeaderOpenId     string `json:"leader_open_id"`
	ChatId           string `json:"chat_id"`
	MemberCount      int    `json:"member_count"`
	Name             string `json:"name"`
	ParentId         string `json:"parent_id"`
	Status           int    `json:"status"`
}

type DepartmentRestInfoVo

type DepartmentRestInfoVo struct {
	Id       string `json:"id"`
	Name     string `json:"name"`
	ParentId string `json:"parent_id"`
}

type DocEntities added in v0.2.8

type DocEntities struct {
	DocsToken string `json:"docs_token"`
	DocsType  string `json:"docs_type"`
	Title     string `json:"title"`
	OwnerId   string `json:"owner_id"`
}

type DocMetaData added in v0.2.8

type DocMetaData struct {
	CreateDate     string `json:"create_date"`
	CreateTime     int64  `json:"create_time"`
	CreateUid      string `json:"create_uid"`
	CreateUserName string `json:"create_user_name"`
	DeleteFlag     int    `json:"delete_flag"`
	EditTime       int64  `json:"edit_time"`
	EditUserName   string `json:"edit_user_name"`
	IsExternal     bool   `json:"is_external"`
	IsPined        bool   `json:"is_pined"`
	IsStared       bool   `json:"is_stared"`
	ObjType        string `json:"obj_type"`
	OwnerId        string `json:"owner_id"`
	OwnerUserName  string `json:"owner_user_name"`
	ServerTime     int64  `json:"server_time"`
	TenantId       string `json:"tenant_id"`
	Title          string `json:"title"`
	Type           int    `json:"type"`
	Url            string `json:"url"`
}

type Entry

type Entry struct {
	Value string `json:"value"`
}

type GetCalendarAttendeesResp added in v0.0.6

type GetCalendarAttendeesResp struct {
	CommonVo
	Data []CalendarAttendeesAcl `json:"data"`
}

type GetDepartmentInfoBatchRespData added in v0.1.5

type GetDepartmentInfoBatchRespData struct {
	Departments []DepartmentDetailInfo `json:"departments"`
	Errors      []GetUserBatchError    `json:"errors"`
}

type GetDepartmentInfoBatchRespVo added in v0.1.5

type GetDepartmentInfoBatchRespVo struct {
	CommonVo
	Data GetDepartmentInfoBatchRespData `json:"data"`
}

type GetDepartmentInfoRespVo

type GetDepartmentInfoRespVo struct {
	CommonVo
	Data *GetDepartmentInfoRespVoData `json:"data"`
}

type GetDepartmentInfoRespVoData

type GetDepartmentInfoRespVoData struct {
	DepartmentInfo *DepartmentDetailInfoVo `json:"department_info"`
}

type GetDepartmentSimpleListRespVo

type GetDepartmentSimpleListRespVo struct {
	CommonVo
	Data *GetDepartmentSimpleListRespVoData `json:"data"`
}

type GetDepartmentSimpleListRespVoData

type GetDepartmentSimpleListRespVoData struct {
	HasMore         bool                   `json:"has_more"`
	PageToken       string                 `json:"page_token"`
	DepartmentInfos []DepartmentRestInfoVo `json:"department_infos"`
}

type GetDepartmentSimpleListV2RespVo added in v0.1.4

type GetDepartmentSimpleListV2RespVo struct {
	CommonVo
	Data *GetDepartmentSimpleListV2RespVoData `json:"data"`
}

type GetDepartmentSimpleListV2RespVoData added in v0.1.4

type GetDepartmentSimpleListV2RespVoData struct {
	HasMore         bool                   `json:"has_more"`
	PageToken       string                 `json:"page_token"`
	DepartmentInfos []DepartmentRestInfoVo `json:"departments"`
}

type GetDepartmentUserDetailListRespVo added in v0.0.3

type GetDepartmentUserDetailListRespVo struct {
	CommonVo
	Data *GetDepartmentUserDetailListRespVoData `json:"data"`
}

type GetDepartmentUserDetailListRespVoData added in v0.0.3

type GetDepartmentUserDetailListRespVoData struct {
	HasMore   bool             `json:"has_more"`
	UserInfos []UserDetailInfo `json:"user_infos"`
}

type GetDepartmentUserListRespVo

type GetDepartmentUserListRespVo struct {
	CommonVo
	Data *GetDepartmentUserListRespVoData `json:"data"`
}

type GetDepartmentUserListRespVoData

type GetDepartmentUserListRespVoData struct {
	HasMore  bool             `json:"has_more"`
	UserList []UserRestInfoVo `json:"user_list"`
}

type GetDepartmentUserListV2RespVo added in v0.1.4

type GetDepartmentUserListV2RespVo struct {
	CommonVo
	Data *GetDepartmentUserListV2RespVoData `json:"data"`
}

type GetDepartmentUserListV2RespVoData added in v0.1.4

type GetDepartmentUserListV2RespVoData struct {
	HasMore   bool             `json:"has_more"`
	PageToken string           `json:"page_token"`
	UserList  []UserRestInfoVo `json:"users"`
}

type GetDocMetaRespVo added in v0.2.8

type GetDocMetaRespVo struct {
	CommonVo
	Data DocMetaData `json:"data"`
}

type GetOrderListData added in v0.2.5

type GetOrderListData struct {
	Total     int64       `json:"total"`
	HasMore   bool        `json:"has_more"`
	PageToken string      `json:"page_token"`
	OrderList []OrderInfo `json:"order_list"`
}

type GetOrderListReq added in v0.2.5

type GetOrderListReq struct {
	Status    *string `json:"status"`
	PageSize  int     `json:"page_size"`
	PageToken *string `json:"page_token"`
	TenantKey *string `json:"tenant_key"`
}

type GetOrderListResp added in v0.2.5

type GetOrderListResp struct {
	CommonVo
	Data GetOrderListData `json:"data"`
}

type GetScopeRespData added in v0.0.9

type GetScopeRespData struct {
	AuthedDepartments []string `json:"authed_departments"`
	AuthedEmployeeIds []string `json:"authed_employee_ids"`
	AuthedOpenIds     []string `json:"authed_open_ids"`
}

type GetScopeRespV2Data added in v0.1.4

type GetScopeRespV2Data struct {
	AuthedDepartments []string    `json:"authed_departments"`
	AuthedUsers       []ScopeUser `json:"authed_users"`
}

type GetScopeRespV2Vo added in v0.1.4

type GetScopeRespV2Vo struct {
	CommonVo
	Data *GetScopeRespV2Data `json:"data"`
}

type GetScopeRespVo added in v0.0.9

type GetScopeRespVo struct {
	CommonVo
	Data *GetScopeRespData `json:"data"`
}

type GetScopesResp added in v0.3.6

type GetScopesResp struct {
	CommonVo
	Data GetScopesRespData `json:"data"`
}

type GetScopesRespData added in v0.3.6

type GetScopesRespData struct {
	Scopes []GetScopesRespDataScopes `json:"scopes"`
}

type GetScopesRespDataScopes added in v0.3.6

type GetScopesRespDataScopes struct {
	ScopeName   string `json:"scope_name"`
	GrantStatus int    `json:"grant_status"`
}

type GetUserBatchError added in v0.1.4

type GetUserBatchError struct {
	Id   string `json:"id"`
	Code int    `json:"code"`
	Msg  string `json:"msg"`
}

type GetUserBatchGetRespVo

type GetUserBatchGetRespVo struct {
	CommonVo
	Data *GetUserBatchGetRespVoData `json:"data"`
}

type GetUserBatchGetRespVoData

type GetUserBatchGetRespVoData struct {
	UserInfos []UserDetailInfo `json:"user_infos"`
}

type GetUserBatchGetV2Resp added in v0.1.4

type GetUserBatchGetV2Resp struct {
	CommonVo
	Data GetUserBatchGetV2RespData `json:"data"`
}

type GetUserBatchGetV2RespData added in v0.1.4

type GetUserBatchGetV2RespData struct {
	HasMore   bool                `json:"has_more"`
	PageToken string              `json:"page_token"`
	Users     []UserDetailInfoV2  `json:"users"`
	Errors    []GetUserBatchError `json:"errors"`
}

type GroupData added in v0.1.7

type GroupData struct {
	Avatar      string `json:"avatar"`
	ChatId      string `json:"chat_id"`
	Description string `json:"description"`
	Name        string `json:"name"`
	OwnerOpenId string `json:"owner_open_id"`
	OwnerUserId string `json:"owner_user_id"`
}

type GroupListRespVo added in v0.1.7

type GroupListRespVo struct {
	CommonVo
	Data *UserGroupListData `json:"data"`
}

type I18nElement added in v0.0.3

type I18nElement struct {
	ZhCn []interface{} `json:"zh_cn"`
	EnUs []interface{} `json:"en_us"`
	JaJp []interface{} `json:"ja_jp"`
}

type IsUserAdminResp added in v0.1.3

type IsUserAdminResp struct {
	CommonVo
	Data IsUserAdminRespData `json:"data"`
}

type IsUserAdminRespData added in v0.1.3

type IsUserAdminRespData struct {
	IsAppAdmin bool `json:"is_app_admin"`
}

type Leader added in v0.1.4

type Leader struct {
	OpenId       string `json:"open_id"`
	UserId       string `json:"user_id"`
	PositionCode string `json:"position_code"`
}

type MemberData added in v0.1.7

type MemberData struct {
	OpenId string `json:"open_id"`
	UserId string `json:"user_id"`
	Name   string `json:"name"`
}

type MsgContent added in v0.0.3

type MsgContent struct {
	Text     string   `json:"text"`
	ImageKey string   `json:"image_key"`
	Post     *MsgPost `json:"post,omitempty"`
}

type MsgPost added in v0.0.3

type MsgPost struct {
	ZhCn *MsgPostValue `json:"zh_cn,omitempty"`
	EnUs *MsgPostValue `json:"en_us,omitempty"`
	JaJp *MsgPostValue `json:"ja_jp,omitempty"`
}

type MsgPostContentA added in v0.0.3

type MsgPostContentA struct {
	Tag  string `json:"tag"`
	Text string `json:"text"`
	Href string `json:"href"`
}

type MsgPostContentAt added in v0.0.3

type MsgPostContentAt struct {
	Tag    string `json:"tag"`
	UserId string `json:"user_id"`
}

type MsgPostContentImage added in v0.0.3

type MsgPostContentImage struct {
	Tag      string  `json:"tag"`
	ImageKey string  `json:"image_key"`
	Width    float64 `json:"width"`
	Height   float64 `json:"height"`
}

type MsgPostContentText added in v0.0.3

type MsgPostContentText struct {
	Tag      string `json:"tag"`
	UnEscape bool   `json:"un_escape"`
	Text     string `json:"text"`
}

type MsgPostValue added in v0.0.3

type MsgPostValue struct {
	Title   string      `json:"title"`
	Content interface{} `json:"content"`
}

type MsgResp added in v0.0.3

type MsgResp struct {
	CommonVo

	Data MsgRespData `json:"data"`
}

type MsgRespData added in v0.0.3

type MsgRespData struct {
	MessageId string `json:"message_id"`
}

type MsgVo added in v0.0.3

type MsgVo struct {
	OpenId      string `json:"open_id,omitempty"`
	UserId      string `json:"user_id,omitempty"`
	Email       string `json:"email,omitempty"`
	ChatId      string `json:"chat_id,omitempty"`
	MsgType     string `json:"msg_type"`
	RootId      string `json:"root_id,omitempty"`
	UpdateMulti bool   `json:"update_multi"`

	Card    *Card       `json:"card,omitempty"`
	Content *MsgContent `json:"content,omitempty"`
}

定义参照: https://open.feishu.cn/open-apis/message/v4/send/

type OAuth2AccessTokenReqVo

type OAuth2AccessTokenReqVo struct {
	AppId          string `json:"app_id"`
	AppSecret      string `json:"app_secret"`
	AppAccessToken string `json:"app_access_token"`
	GrantType      string `json:"grant_type"`
	Code           string `json:"code"`
	RefreshToken   string `json:"refresh_token"`
}

type OAuth2AccessTokenRespVo

type OAuth2AccessTokenRespVo struct {
	AccessToken  string `json:"access_token"`
	AvatarUrl    string `json:"avatar_url"`
	ExpiresIn    int64  `json:"expires_in"`
	Name         string `json:"name"`
	EnName       string `json:"en_name"`
	OpenId       string `json:"open_id"`
	TenantKey    string `json:"tenant_key"`
	RefreshToken string `json:"refresh_token"`
	TokenType    string `json:"token_type"`
	Code         int    `json:"code"`
	Message      string `json:"message"`
}

type OAuth2UserInfoRespVo

type OAuth2UserInfoRespVo struct {
	AvatarUrl  string `json:"AvatarUrl"`
	Name       string `json:"Name"`
	Email      string `json:"Email"`
	Status     int    `json:"Status"`
	EmployeeId string `json:"EmployeeId"`
	Mobile     string `json:"Mobile"`
}

type Order added in v0.1.4

type Order struct {
	DepartmentId    string `json:"department_id"`
	UserOrder       int    `json:"user_order"`
	DepartmentOrder int    `json:"department_order"`
}

type OrderInfo added in v0.2.5

type OrderInfo struct {
	OrderId       string `json:"order_id"`
	PricePlanId   string `json:"price_plan_id"`
	PricePlanType string `json:"price_plan_type"`
	Seats         int    `json:"seats"`
	BuyCount      int    `json:"buy_count"`
	CreateTime    string `json:"create_time"`
	PayTime       string `json:"pay_time"`
	Status        string `json:"status"`
	BuyType       string `json:"buy_type"`
	SrcOrderId    string `json:"src_order_id"`
	DstOrderId    string `json:"dst_order_id"`
	OrderPayPrice int64  `json:"order_pay_price"`
	TenantKey     string `json:"tenant_key"`
}

type OrderInfoData added in v0.2.5

type OrderInfoData struct {
	Order OrderInfo `json:"order"`
}

type OrderInfoResp added in v0.2.5

type OrderInfoResp struct {
	CommonVo
	Data OrderInfoData `json:"data"`
}

type Position added in v0.1.4

type Position struct {
	PositionCode string `json:"position_code"`
	PositionName string `json:"position_name"`
	DepartmentId string `json:"department_id"`
	Leader       Leader `json:"leader"`
	IsMajor      bool   `json:"is_major"`
}

type RefreshAccessTokenResp added in v0.1.9

type RefreshAccessTokenResp struct {
	CommonVo
	Data RefreshAccessTokenRespData `json:"data"`
}

type RefreshAccessTokenRespData added in v0.1.9

type RefreshAccessTokenRespData struct {
	AccessToken      string `json:"access_token"`
	AvatarUrl        string `json:"avatar_url"`
	ExpiresIn        int64  `json:"expires_in"`
	Name             string `json:"name"`
	EnName           string `json:"en_name"`
	OpenId           string `json:"open_id"`
	TenantKey        string `json:"tenant_key"`
	RefreshExpiresIn int64  `json:"refresh_expires_in"`
	RefreshToken     string `json:"refresh_token"`
	TokenType        string `json:"token_type"`
}

type Role added in v0.0.3

type Role struct {
	Id   string `json:"id"`
	Name string `json:"name"`
}

type RoleListResp added in v0.0.3

type RoleListResp struct {
	CommonVo
	Data RoleListRespData `json:"data"`
}

type RoleListRespData added in v0.0.3

type RoleListRespData struct {
	RoleList []Role `json:"role_list"`
}

type RoleMemberListResp added in v0.0.3

type RoleMemberListResp struct {
	CommonVo
	Data RoleMemberListRespData `json:"data"`
}

type RoleMemberListRespData added in v0.0.3

type RoleMemberListRespData struct {
	HasMore   bool             `json:"has_more"`
	PageToken string           `json:"page_token"`
	UserList  []UserRestInfoVo `json:"user_list"`
}

type ScopeUser added in v0.1.4

type ScopeUser struct {
	OpenId string `json:"open_id"`
	UserId string `json:"user_id"`
}

type SearchDocsData added in v0.2.8

type SearchDocsData struct {
	HasMore      bool          `json:"has_more"`
	Total        int64         `json:"total"`
	DocsEntities []DocEntities `json:"docs_entities"`
}

type SearchDocsReqVo added in v0.2.8

type SearchDocsReqVo struct {
	SearchKey *string   `json:"search_key"`
	Count     *int      `json:"count"`
	Offset    *int      `json:"offset"`
	OwnerIds  *[]string `json:"owner_ids"`
	ChatIds   *[]string `json:"chat_ids"`
	DocsTypes *[]string `json:"docs_types"`
}

type SearchDocsRespVo added in v0.2.8

type SearchDocsRespVo struct {
	CommonVo
	Data SearchDocsData `json:"data"`
}

type SearchUserInfo added in v0.1.2

type SearchUserInfo struct {
	Avatar        UserAvatar `json:"avatar"`
	DepartmentIds []string   `json:"department_ids"`
	Name          string     `json:"name"`
	OpenId        string     `json:"open_id"`
	UserId        string     `json:"user_id"`
}

type SearchUserResp added in v0.1.2

type SearchUserResp struct {
	CommonVo
	Data *SearchUserRespData `json:"data"`
}

type SearchUserRespData added in v0.1.2

type SearchUserRespData struct {
	HasMore   bool             `json:"has_more"`
	PageToken string           `json:"page_token"`
	Users     []SearchUserInfo `json:"users"`
}

type TenantAccessTokenRespVo

type TenantAccessTokenRespVo struct {
	CommonVo
	TenantAccessToken string `json:"tenant_access_token"`
	Expire            int64  `json:"expire"`
}

type TimeFormat added in v0.0.3

type TimeFormat struct {
	Date      string `json:"date,omitempty"`
	TimeStamp int64  `json:"time_stamp,omitempty"`
	TimeZone  string `json:"time_zone,omitempty"`
}

type TokenLoginValidateResp added in v0.0.4

type TokenLoginValidateResp struct {
	Data TokenLoginValidateRespData `json:"data"`

	CommonVo
}

type TokenLoginValidateRespData added in v0.0.4

type TokenLoginValidateRespData struct {
	Uid          string `json:"uid"`
	OpenId       string `json:"open_id"`
	UnionId      string `json:"union_id"`
	SessionKey   string `json:"session_key"`
	TenantKey    string `json:"tenant_key"`
	EmployeeId   string `json:"employee_id"`
	TokenType    string `json:"token_type"`
	AccessToken  string `json:"access_token"`
	ExpiresIn    int64  `json:"expires_in"`
	RefreshToken string `json:"refresh_token"`
}

type UpdateCalendarEventAtendeesReq added in v0.0.3

type UpdateCalendarEventAtendeesReq struct {
	Attendees []AttendeesResp `json:"attendees"`
}

type UpdateCalendarEventAtendeesResp added in v0.0.3

type UpdateCalendarEventAtendeesResp struct {
	CommonVo
	Data []Attendees `json:"data"`
}

type UpdateCalendarReq added in v0.0.3

type UpdateCalendarReq struct {
	CalendarId        string `json:"calendarId,omitempty"`
	Summary           string `json:"summary,omitempty"`
	Description       string `json:"description,omitempty"`
	IsPrivate         bool   `json:"is_private,omitempty"`
	DefaultAccessRole string `json:"default_access_role,omitempty"`
}

type UpdateChatData added in v0.1.8

type UpdateChatData struct {
	ChatId string `json:"chat_id"`
}

type UpdateChatMemberReqVo added in v0.1.8

type UpdateChatMemberReqVo struct {
	ChatId  string   `json:"chat_id"`
	UserIds []string `json:"user_ids"`
	OpenIds []string `json:"open_ids"`
}

type UpdateChatMemberRespData added in v0.1.8

type UpdateChatMemberRespData struct {
	InvalidOpenIds []string `json:"invalid_open_ids"`
	InvalidUserIds []string `json:"invalid_user_ids"`
}

type UpdateChatMemberRespVo added in v0.1.8

type UpdateChatMemberRespVo struct {
	CommonVo
	Data UpdateChatMemberRespData `json:"data"`
}

type UpdateChatReqVo added in v0.1.8

type UpdateChatReqVo struct {
	ChatId      string            `json:"chat_id"`
	OwnerUserId string            `json:"owner_user_id,omitempty"`
	OwnerOpenId string            `json:"owner_open_id,omitempty"`
	Name        string            `json:"name,omitempty"`
	I18nNames   map[string]string `json:"i18n_names,omitempty"`
}

type UpdateChatRespVo added in v0.1.8

type UpdateChatRespVo struct {
	CommonVo
	Data UpdateChatData `json:"data"`
}

type UpdateImageVo added in v0.2.7

type UpdateImageVo struct {
	Image binary.ByteOrder
}

type UserAvatar added in v0.1.2

type UserAvatar struct {
	Avatar72     string `json:"avatar_72"`
	Avatar240    string `json:"avatar_240"`
	Avatar640    string `json:"avatar_640"`
	AvatarOrigin string `json:"avatar_origin"`
}

type UserDetailInfo

type UserDetailInfo struct {
	Name             string           `json:"name"`
	NamePy           string           `json:"name_py"`
	EnName           string           `json:"en_name"`
	EmployeeId       string           `json:"employee_id"`
	EmployeeNo       string           `json:"employee_no"`
	OpenId           string           `json:"open_id"`
	Status           int              `json:"status"`
	EmployeeType     int              `json:"employee_type"`
	Avatar71         string           `json:"avatar_71"`
	Avatar240        string           `json:"avatar_240"`
	Avatar640        string           `json:"avatar_640"`
	AvatarUrl        string           `json:"avatar_url"`
	Gender           int              `json:"gender"`
	Email            string           `json:"email"`
	Mobile           string           `json:"mobile"`
	Description      string           `json:"description"`
	Country          string           `json:"country"`
	City             string           `json:"city"`
	WorkStation      string           `json:"work_station"`
	IsTenantManager  bool             `json:"is_tenant_manager"`
	JoinTime         int64            `json:"join_time"`
	UpdateTime       int64            `json:"update_time"`
	LeaderEmployeeId string           `json:"leader_employee_id"`
	LeaderOpenId     string           `json:"leader_open_id"`
	Departments      []string         `json:"departments"`
	CustomAttr       map[string]Entry `json:"custom_attr"`
}

type UserDetailInfoV2 added in v0.1.4

type UserDetailInfoV2 struct {
	Name            string       `json:"name"`
	NamePy          string       `json:"name_py"`
	EnName          string       `json:"en_name"`
	EmployeeId      string       `json:"employee_id"`
	EmployeeNo      string       `json:"employee_no"`
	OpenId          string       `json:"open_id"`
	Status          UserStatus   `json:"status"`
	EmployeeType    int          `json:"employee_type"`
	Avatar          UserAvatar   `json:"avatar"`
	Gender          int          `json:"gender"`
	Email           string       `json:"email"`
	Mobile          string       `json:"mobile"`
	Description     string       `json:"description"`
	Country         string       `json:"country"`
	City            string       `json:"city"`
	WorkStation     string       `json:"work_station"`
	IsTenantManager bool         `json:"is_tenant_manager"`
	JoinTime        int64        `json:"join_time"`
	UpdateTime      int64        `json:"update_time"`
	Leader          Leader       `json:"leader"`
	Departments     []string     `json:"departments"`
	Positions       []Position   `json:"positions"`
	Orders          []Order      `json:"orders"`
	CustomAttrs     []CustomAttr `json:"custom_attrs"`
}

type UserGroupListData added in v0.1.8

type UserGroupListData struct {
	HasMore   bool        `json:"has_more"`
	PageToken string      `json:"page_token"`
	Groups    []GroupData `json:"groups"`
}

type UserRestInfoVo

type UserRestInfoVo struct {
	EmployeeId string `json:"employee_id"`
	OpenId     string `json:"open_id"`
	UserId     string `json:"user_id"`
	Name       string `json:"name"`
	EmployeeNo string `json:"employee_no"`
}

type UserStatus added in v0.1.4

type UserStatus struct {
	IsFrozen    bool `json:"is_frozen"`
	IsResigned  bool `json:"is_resigned"`
	IsActivated bool `json:"is_activated"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL