larkpersonal_settings

package
v3.4.6-beta.0 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: MIT Imports: 5 Imported by: 5

Documentation

Index

Constants

View Source
const (
	UserIdTypeUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypeBatchOpenSystemStatusUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeBatchOpenSystemStatusUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeBatchOpenSystemStatusOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	SystemStatusIconKeyGeneralDoNotDisturb      = "GeneralDoNotDisturb"      // GeneralDoNotDisturb
	SystemStatusIconKeyGeneralInMeetingBusy     = "GeneralInMeetingBusy"     // GeneralInMeetingBusy
	SystemStatusIconKeyCoffee                   = "Coffee"                   // Coffee
	SystemStatusIconKeyGeneralBusinessTrip      = "GeneralBusinessTrip"      // GeneralBusinessTrip
	SystemStatusIconKeyGeneralWorkFromHome      = "GeneralWorkFromHome"      // GeneralWorkFromHome
	SystemStatusIconKeyStatusEnjoyLife          = "StatusEnjoyLife"          // StatusEnjoyLife
	SystemStatusIconKeyGeneralTravellingCar     = "GeneralTravellingCar"     // GeneralTravellingCar
	SystemStatusIconKeyStatusBus                = "StatusBus"                // StatusBus
	SystemStatusIconKeyStatusInFlight           = "StatusInFlight"           // StatusInFlight
	SystemStatusIconKeyTyping                   = "Typing"                   // Typing
	SystemStatusIconKeyEatingFood               = "EatingFood"               // EatingFood
	SystemStatusIconKeySICK                     = "SICK"                     // SICK
	SystemStatusIconKeyGeneralSun               = "GeneralSun"               // GeneralSun
	SystemStatusIconKeyGeneralMoonRest          = "GeneralMoonRest"          // GeneralMoonRest
	SystemStatusIconKeyStatusReading            = "StatusReading"            // StatusReading
	SystemStatusIconKeyStatusPrivateMessage     = "Status_PrivateMessage"    // Status_PrivateMessage
	SystemStatusIconKeyStatusFlashOfInspiration = "StatusFlashOfInspiration" // StatusFlashOfInspiration
	SystemStatusIconKeyGeneralVacation          = "GeneralVacation"          // GeneralVacation
)
View Source
const (
	SystemStatusColorBLUE      = "BLUE"      // 蓝色
	SystemStatusColorGRAY      = "GRAY"      // 灰色
	SystemStatusColorINDIGO    = "INDIGO"    // 靛青色
	SystemStatusColorWATHET    = "WATHET"    // 浅蓝色
	SystemStatusColorGREEN     = "GREEN"     // 绿色
	SystemStatusColorTURQUOISE = "TURQUOISE" // 绿松石色
	SystemStatusColorYELLOW    = "YELLOW"    // 黄色
	SystemStatusColorLIME      = "LIME"      // 酸橙色
	SystemStatusColorRED       = "RED"       // 红色
	SystemStatusColorORANGE    = "ORANGE"    // 橙色
	SystemStatusColorPURPLE    = "PURPLE"    // 紫色
	SystemStatusColorVIOLET    = "VIOLET"    // 紫罗兰色
	SystemStatusColorCARMINE   = "CARMINE"   // 胭脂红色
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchCloseSystemStatusPathReqBodyBuilder

type BatchCloseSystemStatusPathReqBodyBuilder struct {
	// contains filtered or unexported fields
}

func NewBatchCloseSystemStatusPathReqBodyBuilder

func NewBatchCloseSystemStatusPathReqBodyBuilder() *BatchCloseSystemStatusPathReqBodyBuilder

func (*BatchCloseSystemStatusPathReqBodyBuilder) Build

func (*BatchCloseSystemStatusPathReqBodyBuilder) UserList

成员列表

示例值:ou_53edd3282dbc2fdbe5c593cfa5ce82ab

type BatchCloseSystemStatusReq

type BatchCloseSystemStatusReq struct {
	Body *BatchCloseSystemStatusReqBody `body:""`
	// contains filtered or unexported fields
}

type BatchCloseSystemStatusReqBody

type BatchCloseSystemStatusReqBody struct {
	UserList []string `json:"user_list,omitempty"` // 成员列表
}

type BatchCloseSystemStatusReqBodyBuilder

type BatchCloseSystemStatusReqBodyBuilder struct {
	// contains filtered or unexported fields
}

func NewBatchCloseSystemStatusReqBodyBuilder

func NewBatchCloseSystemStatusReqBodyBuilder() *BatchCloseSystemStatusReqBodyBuilder

func (*BatchCloseSystemStatusReqBodyBuilder) Build

func (*BatchCloseSystemStatusReqBodyBuilder) UserList

成员列表

示例值:ou_53edd3282dbc2fdbe5c593cfa5ce82ab

type BatchCloseSystemStatusReqBuilder

type BatchCloseSystemStatusReqBuilder struct {
	// contains filtered or unexported fields
}

func NewBatchCloseSystemStatusReqBuilder

func NewBatchCloseSystemStatusReqBuilder() *BatchCloseSystemStatusReqBuilder

func (*BatchCloseSystemStatusReqBuilder) Body

批量关闭用户系统状态可用

func (*BatchCloseSystemStatusReqBuilder) Build

func (*BatchCloseSystemStatusReqBuilder) SystemStatusId

func (builder *BatchCloseSystemStatusReqBuilder) SystemStatusId(systemStatusId string) *BatchCloseSystemStatusReqBuilder

系统状态ID;;[获取系统状态ID](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/personal_settings-v1/system_status/list)

示例值:7101214603622940671

func (*BatchCloseSystemStatusReqBuilder) UserIdType

用户id类型 open_id/user_id/union_id

示例值:open_id

type BatchCloseSystemStatusResp

type BatchCloseSystemStatusResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *BatchCloseSystemStatusRespData `json:"data"` // 业务数据
}

func (*BatchCloseSystemStatusResp) Success

func (resp *BatchCloseSystemStatusResp) Success() bool

type BatchCloseSystemStatusRespData

type BatchCloseSystemStatusRespData struct {
	ResultList []*SystemStatusUserCloseResultEntity `json:"result_list,omitempty"` // 关闭结果
}

type BatchOpenSystemStatusPathReqBodyBuilder

type BatchOpenSystemStatusPathReqBodyBuilder struct {
	// contains filtered or unexported fields
}

func NewBatchOpenSystemStatusPathReqBodyBuilder

func NewBatchOpenSystemStatusPathReqBodyBuilder() *BatchOpenSystemStatusPathReqBodyBuilder

func (*BatchOpenSystemStatusPathReqBodyBuilder) Build

func (*BatchOpenSystemStatusPathReqBodyBuilder) UserList

开启列表

示例值:

type BatchOpenSystemStatusReq

type BatchOpenSystemStatusReq struct {
	Body *BatchOpenSystemStatusReqBody `body:""`
	// contains filtered or unexported fields
}

type BatchOpenSystemStatusReqBody

type BatchOpenSystemStatusReqBody struct {
	UserList []*SystemStatusUserOpenParam `json:"user_list,omitempty"` // 开启列表
}

type BatchOpenSystemStatusReqBodyBuilder

type BatchOpenSystemStatusReqBodyBuilder struct {
	// contains filtered or unexported fields
}

func NewBatchOpenSystemStatusReqBodyBuilder

func NewBatchOpenSystemStatusReqBodyBuilder() *BatchOpenSystemStatusReqBodyBuilder

func (*BatchOpenSystemStatusReqBodyBuilder) Build

func (*BatchOpenSystemStatusReqBodyBuilder) UserList

开启列表

示例值:

type BatchOpenSystemStatusReqBuilder

type BatchOpenSystemStatusReqBuilder struct {
	// contains filtered or unexported fields
}

func NewBatchOpenSystemStatusReqBuilder

func NewBatchOpenSystemStatusReqBuilder() *BatchOpenSystemStatusReqBuilder

func (*BatchOpenSystemStatusReqBuilder) Body

批量开启用户系统状态可用

func (*BatchOpenSystemStatusReqBuilder) Build

func (*BatchOpenSystemStatusReqBuilder) SystemStatusId

func (builder *BatchOpenSystemStatusReqBuilder) SystemStatusId(systemStatusId string) *BatchOpenSystemStatusReqBuilder

系统状态ID;;[获取系统状态ID](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/personal_settings-v1/system_status/list)

示例值:7101214603622940672

func (*BatchOpenSystemStatusReqBuilder) UserIdType

用户id类型 open_id/user_id/union_id

示例值:open_id

type BatchOpenSystemStatusResp

type BatchOpenSystemStatusResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *BatchOpenSystemStatusRespData `json:"data"` // 业务数据
}

func (*BatchOpenSystemStatusResp) Success

func (resp *BatchOpenSystemStatusResp) Success() bool

type BatchOpenSystemStatusRespData

type BatchOpenSystemStatusRespData struct {
	ResultList []*SystemStatusUserOpenResultEntity `json:"result_list,omitempty"` // 开启结果
}

type CreateSystemStatusReq

type CreateSystemStatusReq struct {
	SystemStatus *SystemStatus `body:""`
	// contains filtered or unexported fields
}

type CreateSystemStatusReqBuilder

type CreateSystemStatusReqBuilder struct {
	// contains filtered or unexported fields
}

func NewCreateSystemStatusReqBuilder

func NewCreateSystemStatusReqBuilder() *CreateSystemStatusReqBuilder

func (*CreateSystemStatusReqBuilder) Build

func (*CreateSystemStatusReqBuilder) SystemStatus

func (builder *CreateSystemStatusReqBuilder) SystemStatus(systemStatus *SystemStatus) *CreateSystemStatusReqBuilder

创建租户维度的系统状态。

type CreateSystemStatusResp

type CreateSystemStatusResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *CreateSystemStatusRespData `json:"data"` // 业务数据
}

func (*CreateSystemStatusResp) Success

func (resp *CreateSystemStatusResp) Success() bool

type CreateSystemStatusRespData

type CreateSystemStatusRespData struct {
	SystemStatus *SystemStatus `json:"system_status,omitempty"` // 系统状态
}

type DeleteSystemStatusReq

type DeleteSystemStatusReq struct {
	// contains filtered or unexported fields
}

type DeleteSystemStatusReqBuilder

type DeleteSystemStatusReqBuilder struct {
	// contains filtered or unexported fields
}

func NewDeleteSystemStatusReqBuilder

func NewDeleteSystemStatusReqBuilder() *DeleteSystemStatusReqBuilder

func (*DeleteSystemStatusReqBuilder) Build

func (*DeleteSystemStatusReqBuilder) SystemStatusId

func (builder *DeleteSystemStatusReqBuilder) SystemStatusId(systemStatusId string) *DeleteSystemStatusReqBuilder

系统状态ID;;[获取系统状态ID](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/personal_settings-v1/system_status/list)

示例值:7101214603622940633

type DeleteSystemStatusResp

type DeleteSystemStatusResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
}

func (*DeleteSystemStatusResp) Success

func (resp *DeleteSystemStatusResp) Success() bool

type DepartmentId added in v3.0.29

type DepartmentId struct {
	DepartmentId *string `json:"department_id,omitempty"` //

	OpenDepartmentId *string `json:"open_department_id,omitempty"` //
}

type DepartmentIdBuilder added in v3.0.29

type DepartmentIdBuilder struct {
	// contains filtered or unexported fields
}

func NewDepartmentIdBuilder added in v3.0.29

func NewDepartmentIdBuilder() *DepartmentIdBuilder

func (*DepartmentIdBuilder) Build added in v3.0.29

func (builder *DepartmentIdBuilder) Build() *DepartmentId

func (*DepartmentIdBuilder) DepartmentId added in v3.0.29

func (builder *DepartmentIdBuilder) DepartmentId(departmentId string) *DepartmentIdBuilder

示例值:

func (*DepartmentIdBuilder) OpenDepartmentId added in v3.0.29

func (builder *DepartmentIdBuilder) OpenDepartmentId(openDepartmentId string) *DepartmentIdBuilder

示例值:

type ListSystemStatusIterator

type ListSystemStatusIterator struct {
	// contains filtered or unexported fields
}

func (*ListSystemStatusIterator) Next

func (iterator *ListSystemStatusIterator) Next() (bool, *SystemStatus, error)

func (*ListSystemStatusIterator) NextPageToken

func (iterator *ListSystemStatusIterator) NextPageToken() *string

type ListSystemStatusReq

type ListSystemStatusReq struct {
	Limit int // 最多返回多少记录,只有在使用迭代器访问时,才有效
	// contains filtered or unexported fields
}

type ListSystemStatusReqBuilder

type ListSystemStatusReqBuilder struct {
	// contains filtered or unexported fields
}

func NewListSystemStatusReqBuilder

func NewListSystemStatusReqBuilder() *ListSystemStatusReqBuilder

func (*ListSystemStatusReqBuilder) Build

func (*ListSystemStatusReqBuilder) Limit

最大返回多少记录,当使用迭代器访问时才有效

func (*ListSystemStatusReqBuilder) PageSize

func (builder *ListSystemStatusReqBuilder) PageSize(pageSize int) *ListSystemStatusReqBuilder

分页大小

示例值:50

func (*ListSystemStatusReqBuilder) PageToken

func (builder *ListSystemStatusReqBuilder) PageToken(pageToken string) *ListSystemStatusReqBuilder

分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果

示例值:GxmvlNRvP0NdQZpa7yIqf_Lv_QuBwTQ8tXkX7w-irAghVD_TvuYd1aoJ1LQph86O-XImC4X9j9FhUPhXQDvtrQ==

type ListSystemStatusResp

type ListSystemStatusResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *ListSystemStatusRespData `json:"data"` // 业务数据
}

func (*ListSystemStatusResp) Success

func (resp *ListSystemStatusResp) Success() bool

type ListSystemStatusRespData

type ListSystemStatusRespData struct {
	Items []*SystemStatus `json:"items,omitempty"` // 租户系统状态

	PageToken *string `json:"page_token,omitempty"` // 分页token

	HasMore *bool `json:"has_more,omitempty"` // 是否存在更多
}

type PatchSystemStatusPathReqBodyBuilder

type PatchSystemStatusPathReqBodyBuilder struct {
	// contains filtered or unexported fields
}

func NewPatchSystemStatusPathReqBodyBuilder

func NewPatchSystemStatusPathReqBodyBuilder() *PatchSystemStatusPathReqBodyBuilder

func (*PatchSystemStatusPathReqBodyBuilder) Build

func (*PatchSystemStatusPathReqBodyBuilder) SystemStatus

系统状态

示例值:

func (*PatchSystemStatusPathReqBodyBuilder) UpdateFields

需要更新的字段

示例值:['TITLE']

type PatchSystemStatusReq

type PatchSystemStatusReq struct {
	Body *PatchSystemStatusReqBody `body:""`
	// contains filtered or unexported fields
}

type PatchSystemStatusReqBody

type PatchSystemStatusReqBody struct {
	SystemStatus *SystemStatus `json:"system_status,omitempty"` // 系统状态

	UpdateFields []string `json:"update_fields,omitempty"` // 需要更新的字段
}

type PatchSystemStatusReqBodyBuilder

type PatchSystemStatusReqBodyBuilder struct {
	// contains filtered or unexported fields
}

func NewPatchSystemStatusReqBodyBuilder

func NewPatchSystemStatusReqBodyBuilder() *PatchSystemStatusReqBodyBuilder

func (*PatchSystemStatusReqBodyBuilder) Build

func (*PatchSystemStatusReqBodyBuilder) SystemStatus

系统状态

示例值:

func (*PatchSystemStatusReqBodyBuilder) UpdateFields

func (builder *PatchSystemStatusReqBodyBuilder) UpdateFields(updateFields []string) *PatchSystemStatusReqBodyBuilder

需要更新的字段

示例值:['TITLE']

type PatchSystemStatusReqBuilder

type PatchSystemStatusReqBuilder struct {
	// contains filtered or unexported fields
}

func NewPatchSystemStatusReqBuilder

func NewPatchSystemStatusReqBuilder() *PatchSystemStatusReqBuilder

func (*PatchSystemStatusReqBuilder) Body

修改租户维度系统状态。

func (*PatchSystemStatusReqBuilder) Build

func (*PatchSystemStatusReqBuilder) SystemStatusId

func (builder *PatchSystemStatusReqBuilder) SystemStatusId(systemStatusId string) *PatchSystemStatusReqBuilder

系统状态ID;;[获取系统状态ID](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/personal_settings-v1/system_status/list)

示例值:7101214603622940633

type PatchSystemStatusResp

type PatchSystemStatusResp struct {
	*larkcore.ApiResp `json:"-"`
	larkcore.CodeError
	Data *PatchSystemStatusRespData `json:"data"` // 业务数据
}

func (*PatchSystemStatusResp) Success

func (resp *PatchSystemStatusResp) Success() bool

type PatchSystemStatusRespData

type PatchSystemStatusRespData struct {
	SystemStatus *SystemStatus `json:"system_status,omitempty"` // 系统状态
}

type SystemStatus

type SystemStatus struct {
	SystemStatusId *string `json:"system_status_id,omitempty"` // 系统状态ID

	Title *string `json:"title,omitempty"` // 系统状态名称,名称字符数要在1到20范围内。不同系统状态的title不能重复。;; **注意:** ;- 1中文=2英文=2其他语言字符=2字符

	I18nTitle *SystemStatusI18nName `json:"i18n_title,omitempty"` // 系统状态国际化名称,名称字符数要在1到20范围内。不同系统状态之间i18n_title中任何一种title都不能重复。;; **注意:** ;- 1中文=2英文=2其他语言字符=2字符

	IconKey *string `json:"icon_key,omitempty"` // 图标;;[**了解icon_key可选值**](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/personal_settings-v1/system_status/overview)

	Color *string `json:"color,omitempty"` // 颜色

	Priority *int `json:"priority,omitempty"` // 优先级,数值越小,客户端展示的优先级越高。不同系统状态的优先级不能一样。

	SyncSetting *SystemStatusSyncSetting `json:"sync_setting,omitempty"` // 同步设置
}

type SystemStatusBuilder

type SystemStatusBuilder struct {
	// contains filtered or unexported fields
}

func NewSystemStatusBuilder

func NewSystemStatusBuilder() *SystemStatusBuilder

func (*SystemStatusBuilder) Build

func (builder *SystemStatusBuilder) Build() *SystemStatus

func (*SystemStatusBuilder) Color

func (builder *SystemStatusBuilder) Color(color string) *SystemStatusBuilder

颜色

示例值:BLUE

func (*SystemStatusBuilder) I18nTitle

func (builder *SystemStatusBuilder) I18nTitle(i18nTitle *SystemStatusI18nName) *SystemStatusBuilder

系统状态国际化名称,名称字符数要在1到20范围内。不同系统状态之间i18n_title中任何一种title都不能重复。;; **注意:** ;- 1中文=2英文=2其他语言字符=2字符

示例值:

func (*SystemStatusBuilder) IconKey

func (builder *SystemStatusBuilder) IconKey(iconKey string) *SystemStatusBuilder

图标;;[**了解icon_key可选值**](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/personal_settings-v1/system_status/overview)

示例值:GeneralBusinessTrip

func (*SystemStatusBuilder) Priority

func (builder *SystemStatusBuilder) Priority(priority int) *SystemStatusBuilder

优先级,数值越小,客户端展示的优先级越高。不同系统状态的优先级不能一样。

示例值:1

func (*SystemStatusBuilder) SyncSetting

func (builder *SystemStatusBuilder) SyncSetting(syncSetting *SystemStatusSyncSetting) *SystemStatusBuilder

同步设置

示例值:

func (*SystemStatusBuilder) SystemStatusId

func (builder *SystemStatusBuilder) SystemStatusId(systemStatusId string) *SystemStatusBuilder

系统状态ID

示例值:7101214603622940633

func (*SystemStatusBuilder) Title

func (builder *SystemStatusBuilder) Title(title string) *SystemStatusBuilder

系统状态名称,名称字符数要在1到20范围内。不同系统状态的title不能重复。;; **注意:** ;- 1中文=2英文=2其他语言字符=2字符

示例值:出差

type SystemStatusI18nName

type SystemStatusI18nName struct {
	ZhCn *string `json:"zh_cn,omitempty"` // 中文名

	EnUs *string `json:"en_us,omitempty"` // 英文名

	JaJp *string `json:"ja_jp,omitempty"` // 日文名
}

type SystemStatusI18nNameBuilder

type SystemStatusI18nNameBuilder struct {
	// contains filtered or unexported fields
}

func NewSystemStatusI18nNameBuilder

func NewSystemStatusI18nNameBuilder() *SystemStatusI18nNameBuilder

func (*SystemStatusI18nNameBuilder) Build

func (*SystemStatusI18nNameBuilder) EnUs

英文名

示例值:On business trip

func (*SystemStatusI18nNameBuilder) JaJp

日文名

示例值:出張中

func (*SystemStatusI18nNameBuilder) ZhCn

中文名

示例值:出差

type SystemStatusSyncI18nExplain

type SystemStatusSyncI18nExplain struct {
	ZhCn *string `json:"zh_cn,omitempty"` // 中文名

	EnUs *string `json:"en_us,omitempty"` // 英文名

	JaJp *string `json:"ja_jp,omitempty"` // 日文名
}

type SystemStatusSyncI18nExplainBuilder

type SystemStatusSyncI18nExplainBuilder struct {
	// contains filtered or unexported fields
}

func NewSystemStatusSyncI18nExplainBuilder

func NewSystemStatusSyncI18nExplainBuilder() *SystemStatusSyncI18nExplainBuilder

func (*SystemStatusSyncI18nExplainBuilder) Build

func (*SystemStatusSyncI18nExplainBuilder) EnUs

英文名

示例值:Auto-display after travel request is approved.

func (*SystemStatusSyncI18nExplainBuilder) JaJp

日文名

示例值:申請が承認されると、このステータスが優先的に表示されます

func (*SystemStatusSyncI18nExplainBuilder) ZhCn

中文名

示例值:出差审批通过后,该状态将自动开启并优先展示

type SystemStatusSyncI18nName

type SystemStatusSyncI18nName struct {
	ZhCn *string `json:"zh_cn,omitempty"` // 中文名

	EnUs *string `json:"en_us,omitempty"` // 英文名

	JaJp *string `json:"ja_jp,omitempty"` // 日文名
}

type SystemStatusSyncI18nNameBuilder

type SystemStatusSyncI18nNameBuilder struct {
	// contains filtered or unexported fields
}

func NewSystemStatusSyncI18nNameBuilder

func NewSystemStatusSyncI18nNameBuilder() *SystemStatusSyncI18nNameBuilder

func (*SystemStatusSyncI18nNameBuilder) Build

func (*SystemStatusSyncI18nNameBuilder) EnUs

英文名

示例值:Auto display Business Trip

func (*SystemStatusSyncI18nNameBuilder) JaJp

日文名

示例值:出張中に自動的にオンにする

func (*SystemStatusSyncI18nNameBuilder) ZhCn

中文名

示例值:出差期间自动开启

type SystemStatusSyncSetting

type SystemStatusSyncSetting struct {
	IsOpenByDefault *bool `json:"is_open_by_default,omitempty"` // 是否默认开启

	Title *string `json:"title,omitempty"` // 同步设置名称,名称字符数要在1到30范围内。;;**注意:** ;- 1中文=2英文=2其他语言字符=2字符

	I18nTitle *SystemStatusSyncI18nName `json:"i18n_title,omitempty"` // 同步设置国际化名称,名称字符数要在1到30范围内。;;**注意:** ;- 1中文=2英文=2其他语言字符=2字符

	Explain *string `json:"explain,omitempty"` // 同步设置解释文案,解释字符数要在1到60范围内。;;**注意:** ;- 1中文=2英文=2其他语言字符=2字符

	I18nExplain *SystemStatusSyncI18nExplain `json:"i18n_explain,omitempty"` // 同步设置国际化解释文案,解释字符数要在1到60范围内。;;**注意:** ;- 1中文=2英文=2其他语言字符=2字符
}

type SystemStatusSyncSettingBuilder

type SystemStatusSyncSettingBuilder struct {
	// contains filtered or unexported fields
}

func NewSystemStatusSyncSettingBuilder

func NewSystemStatusSyncSettingBuilder() *SystemStatusSyncSettingBuilder

func (*SystemStatusSyncSettingBuilder) Build

func (*SystemStatusSyncSettingBuilder) Explain

同步设置解释文案,解释字符数要在1到60范围内。;;**注意:** ;- 1中文=2英文=2其他语言字符=2字符

示例值:出差审批通过后,将自动开启并优先展示该状态。

func (*SystemStatusSyncSettingBuilder) I18nExplain

同步设置国际化解释文案,解释字符数要在1到60范围内。;;**注意:** ;- 1中文=2英文=2其他语言字符=2字符

示例值:

func (*SystemStatusSyncSettingBuilder) I18nTitle

同步设置国际化名称,名称字符数要在1到30范围内。;;**注意:** ;- 1中文=2英文=2其他语言字符=2字符

示例值:

func (*SystemStatusSyncSettingBuilder) IsOpenByDefault

func (builder *SystemStatusSyncSettingBuilder) IsOpenByDefault(isOpenByDefault bool) *SystemStatusSyncSettingBuilder

是否默认开启

示例值:true

func (*SystemStatusSyncSettingBuilder) Title

同步设置名称,名称字符数要在1到30范围内。;;**注意:** ;- 1中文=2英文=2其他语言字符=2字符

示例值:出差期间自动开启

type SystemStatusUserCloseResultEntity

type SystemStatusUserCloseResultEntity struct {
	UserId *string `json:"user_id,omitempty"` // 用户ID

	Result *string `json:"result,omitempty"` // 关闭结果
}

type SystemStatusUserCloseResultEntityBuilder

type SystemStatusUserCloseResultEntityBuilder struct {
	// contains filtered or unexported fields
}

func NewSystemStatusUserCloseResultEntityBuilder

func NewSystemStatusUserCloseResultEntityBuilder() *SystemStatusUserCloseResultEntityBuilder

func (*SystemStatusUserCloseResultEntityBuilder) Build

func (*SystemStatusUserCloseResultEntityBuilder) Result

关闭结果

示例值:success

func (*SystemStatusUserCloseResultEntityBuilder) UserId

用户ID

示例值:ou_53edd3282dbc2fdbe5c593cfa5ce82ab

type SystemStatusUserOpenParam

type SystemStatusUserOpenParam struct {
	UserId *string `json:"user_id,omitempty"` // 用户ID

	EndTime *string `json:"end_time,omitempty"` // 结束时间,传入的应为秒单位的时间戳,距当前的时间跨度不能超过365天。
}

type SystemStatusUserOpenParamBuilder

type SystemStatusUserOpenParamBuilder struct {
	// contains filtered or unexported fields
}

func NewSystemStatusUserOpenParamBuilder

func NewSystemStatusUserOpenParamBuilder() *SystemStatusUserOpenParamBuilder

func (*SystemStatusUserOpenParamBuilder) Build

func (*SystemStatusUserOpenParamBuilder) EndTime

结束时间,传入的应为秒单位的时间戳,距当前的时间跨度不能超过365天。

示例值:1665990378

func (*SystemStatusUserOpenParamBuilder) UserId

用户ID

示例值:ou_53edd3282dbc2fdbe5c593cfa5ce82ab

type SystemStatusUserOpenResultEntity

type SystemStatusUserOpenResultEntity struct {
	UserId *string `json:"user_id,omitempty"` // 用户ID

	EndTime *string `json:"end_time,omitempty"` // 结束时间,传入的应为秒单位的时间戳,距当前的时间跨度不能超过365天。

	Result *string `json:"result,omitempty"` // 开启结果
}

type SystemStatusUserOpenResultEntityBuilder

type SystemStatusUserOpenResultEntityBuilder struct {
	// contains filtered or unexported fields
}

func NewSystemStatusUserOpenResultEntityBuilder

func NewSystemStatusUserOpenResultEntityBuilder() *SystemStatusUserOpenResultEntityBuilder

func (*SystemStatusUserOpenResultEntityBuilder) Build

func (*SystemStatusUserOpenResultEntityBuilder) EndTime

结束时间,传入的应为秒单位的时间戳,距当前的时间跨度不能超过365天。

示例值:1665990378

func (*SystemStatusUserOpenResultEntityBuilder) Result

开启结果

示例值:success_show

func (*SystemStatusUserOpenResultEntityBuilder) UserId

用户ID

示例值:ou_53edd3282dbc2fdbe5c593cfa5ce82ab

type V1 added in v3.1.0

type V1 struct {
	SystemStatus *systemStatus // 系统状态
}

func New added in v3.1.0

func New(config *larkcore.Config) *V1

Jump to

Keyboard shortcuts

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