larkokr

package
v3.0.20 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2023 License: MIT Imports: 6 Imported by: 8

Documentation

Index

Constants

View Source
const (
	TargetTypeObjective = 2 // okr的O
	TargetTypeKeyResult = 3 // okr的KR

)
View Source
const (
	UserIdTypeUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypeGetMetricSourceTableItemUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeGetMetricSourceTableItemUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeGetMetricSourceTableItemOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypeListMetricSourceTableItemUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeListMetricSourceTableItemUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeListMetricSourceTableItemOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypePatchMetricSourceTableItemUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypePatchMetricSourceTableItemUnionId = "union_id" // 以union_id来识别用户
	UserIdTypePatchMetricSourceTableItemOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypeBatchGetOkrUserId        = "user_id"         // 以user_id来识别用户
	UserIdTypeBatchGetOkrUnionId       = "union_id"        // 以union_id来识别用户
	UserIdTypeBatchGetOkrOpenId        = "open_id"         // 以open_id来识别用户
	UserIdTypeBatchGetOkrPeopleAdminId = "people_admin_id" // 以people_admin_id来识别用户
)
View Source
const (
	TargetTypeCreateProgressRecordObjective = 2 // okr的O
	TargetTypeCreateProgressRecordKeyResult = 3 // okr的KR

)
View Source
const (
	UserIdTypeCreateProgressRecordUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeCreateProgressRecordUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeCreateProgressRecordOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypeGetProgressRecordUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeGetProgressRecordUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeGetProgressRecordOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypeUpdateProgressRecordUserId  = "user_id"  // 以user_id来识别用户
	UserIdTypeUpdateProgressRecordUnionId = "union_id" // 以union_id来识别用户
	UserIdTypeUpdateProgressRecordOpenId  = "open_id"  // 以open_id来识别用户
)
View Source
const (
	UserIdTypeListUserOkrUserId        = "user_id"         // 以user_id来识别用户
	UserIdTypeListUserOkrUnionId       = "union_id"        // 以union_id来识别用户
	UserIdTypeListUserOkrOpenId        = "open_id"         // 以open_id来识别用户
	UserIdTypeListUserOkrPeopleAdminId = "people_admin_id" // 以people_admin_id来识别用户
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AlignObjective

type AlignObjective struct {
	Id     *string `json:"id,omitempty"`      // Objective ID
	OkrId  *string `json:"okr_id,omitempty"`  // OKR ID
	UserId *string `json:"user_id,omitempty"` // 用户 UUID
}

type AlignObjectiveBuilder

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

func NewAlignObjectiveBuilder

func NewAlignObjectiveBuilder() *AlignObjectiveBuilder

func (*AlignObjectiveBuilder) Build

func (builder *AlignObjectiveBuilder) Build() *AlignObjective

func (*AlignObjectiveBuilder) Id

Objective ID

示例值:

func (*AlignObjectiveBuilder) OkrId

func (builder *AlignObjectiveBuilder) OkrId(okrId string) *AlignObjectiveBuilder

OKR ID

示例值:

func (*AlignObjectiveBuilder) UserId

func (builder *AlignObjectiveBuilder) UserId(userId string) *AlignObjectiveBuilder

用户 UUID

示例值:

type BatchGetOkrReq

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

type BatchGetOkrReqBuilder

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

func NewBatchGetOkrReqBuilder

func NewBatchGetOkrReqBuilder() *BatchGetOkrReqBuilder

func (*BatchGetOkrReqBuilder) Build

func (builder *BatchGetOkrReqBuilder) Build() *BatchGetOkrReq

func (*BatchGetOkrReqBuilder) Lang

func (builder *BatchGetOkrReqBuilder) Lang(lang string) *BatchGetOkrReqBuilder

请求OKR的语言版本(比如@的人名),lang=en_us/zh_cn,请求 Query中

示例值:zh_cn

func (*BatchGetOkrReqBuilder) OkrIds

func (builder *BatchGetOkrReqBuilder) OkrIds(okrIds []string) *BatchGetOkrReqBuilder

OKR ID 列表,最多10个

示例值:7043693679567028244

func (*BatchGetOkrReqBuilder) UserIdType

func (builder *BatchGetOkrReqBuilder) UserIdType(userIdType string) *BatchGetOkrReqBuilder

此次调用中使用的用户ID的类型

示例值:

type BatchGetOkrResp

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

func (*BatchGetOkrResp) Success

func (resp *BatchGetOkrResp) Success() bool

type BatchGetOkrRespData

type BatchGetOkrRespData struct {
	OkrList []*OkrBatch `json:"okr_list,omitempty"` // OKR 列表
}

type BatchUpdateMetricSourceTableItemPathReqBodyBuilder added in v3.0.10

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

func NewBatchUpdateMetricSourceTableItemPathReqBodyBuilder added in v3.0.10

func NewBatchUpdateMetricSourceTableItemPathReqBodyBuilder() *BatchUpdateMetricSourceTableItemPathReqBodyBuilder

func (*BatchUpdateMetricSourceTableItemPathReqBodyBuilder) Build added in v3.0.10

func (*BatchUpdateMetricSourceTableItemPathReqBodyBuilder) Items added in v3.0.10

指标列表

示例值:

type BatchUpdateMetricSourceTableItemReq added in v3.0.10

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

type BatchUpdateMetricSourceTableItemReqBody added in v3.0.10

type BatchUpdateMetricSourceTableItemReqBody struct {
	Items []*MetricItemRequest `json:"items,omitempty"` // 指标列表
}

type BatchUpdateMetricSourceTableItemReqBodyBuilder added in v3.0.10

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

func NewBatchUpdateMetricSourceTableItemReqBodyBuilder added in v3.0.10

func NewBatchUpdateMetricSourceTableItemReqBodyBuilder() *BatchUpdateMetricSourceTableItemReqBodyBuilder

func (*BatchUpdateMetricSourceTableItemReqBodyBuilder) Build added in v3.0.10

func (*BatchUpdateMetricSourceTableItemReqBodyBuilder) Items added in v3.0.10

指标列表

示例值:

type BatchUpdateMetricSourceTableItemReqBuilder added in v3.0.10

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

func NewBatchUpdateMetricSourceTableItemReqBuilder added in v3.0.10

func NewBatchUpdateMetricSourceTableItemReqBuilder() *BatchUpdateMetricSourceTableItemReqBuilder

func (*BatchUpdateMetricSourceTableItemReqBuilder) Body added in v3.0.10

- 该接口用于批量更新多项指标,单次调用最多更新 100 条记录。接口仅限 OKR 企业版使用。;; 更新成功后 OKR 系统会给以下人员发送消息通知:;; - 首次更新目标值的人员 ;; - 已经将指标添加为 KR、且本次目标值/起始值/支撑的上级有变更的人员,不包含仅更新了进度值的人员

func (*BatchUpdateMetricSourceTableItemReqBuilder) Build added in v3.0.10

func (*BatchUpdateMetricSourceTableItemReqBuilder) MetricSourceId added in v3.0.10

okr指标库id

示例值:7041857032248410131

func (*BatchUpdateMetricSourceTableItemReqBuilder) MetricTableId added in v3.0.10

okr指标表id

示例值:7041857032248410131

func (*BatchUpdateMetricSourceTableItemReqBuilder) UserIdType added in v3.0.10

此次调用中使用的用户ID的类型

示例值:

type BatchUpdateMetricSourceTableItemResp added in v3.0.10

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

func (*BatchUpdateMetricSourceTableItemResp) Success added in v3.0.10

type BatchUpdateMetricSourceTableItemRespData added in v3.0.10

type BatchUpdateMetricSourceTableItemRespData struct {
	Items       []*MetricItem       `json:"items,omitempty"`        // 指标项列表
	FailedItems []*FailedMetricItem `json:"failed_items,omitempty"` // 更新失败列表
}

type ContentBlock

type ContentBlock struct {
	Blocks []*ContentBlockElement `json:"blocks,omitempty"` // 文档结构是按行排列的,每行内容是一个 Block
}

type ContentBlockBuilder

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

func NewContentBlockBuilder

func NewContentBlockBuilder() *ContentBlockBuilder

func (*ContentBlockBuilder) Blocks

func (builder *ContentBlockBuilder) Blocks(blocks []*ContentBlockElement) *ContentBlockBuilder

文档结构是按行排列的,每行内容是一个 Block

示例值:

func (*ContentBlockBuilder) Build

func (builder *ContentBlockBuilder) Build() *ContentBlock

type ContentBlockElement

type ContentBlockElement struct {
	Type      *string           `json:"type,omitempty"`      // 文档元素类型
	Paragraph *ContentParagraph `json:"paragraph,omitempty"` // 文本段落
	Gallery   *ContentGallery   `json:"gallery,omitempty"`   // 图片
}

type ContentBlockElementBuilder

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

func NewContentBlockElementBuilder

func NewContentBlockElementBuilder() *ContentBlockElementBuilder

func (*ContentBlockElementBuilder) Build

func (*ContentBlockElementBuilder) Gallery

图片

示例值:

func (*ContentBlockElementBuilder) Paragraph

文本段落

示例值:

func (*ContentBlockElementBuilder) Type

文档元素类型

示例值:paragraph

type ContentColor

type ContentColor struct {
	Red   *int     `json:"red,omitempty"`   // 红 取值范围[0,255]
	Green *int     `json:"green,omitempty"` // 绿 取值范围[0,255]
	Blue  *int     `json:"blue,omitempty"`  // 蓝 取值范围[0,255]
	Alpha *float64 `json:"alpha,omitempty"` // 透明度 取值范围[0,1]
}

type ContentColorBuilder

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

func NewContentColorBuilder

func NewContentColorBuilder() *ContentColorBuilder

func (*ContentColorBuilder) Alpha

func (builder *ContentColorBuilder) Alpha(alpha float64) *ContentColorBuilder

透明度 取值范围[0,1]

示例值:0.1

func (*ContentColorBuilder) Blue

func (builder *ContentColorBuilder) Blue(blue int) *ContentColorBuilder

蓝 取值范围[0,255]

示例值:188

func (*ContentColorBuilder) Build

func (builder *ContentColorBuilder) Build() *ContentColor

func (*ContentColorBuilder) Green

func (builder *ContentColorBuilder) Green(green int) *ContentColorBuilder

绿 取值范围[0,255]

示例值:191

func (*ContentColorBuilder) Red

func (builder *ContentColorBuilder) Red(red int) *ContentColorBuilder

红 取值范围[0,255]

示例值:216

type ContentDocsLink struct {
	Url   *string `json:"url,omitempty"`   // 飞书云文档链接地址
	Title *string `json:"title,omitempty"` // 飞书云文档标题
}

type ContentDocsLinkBuilder

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

func NewContentDocsLinkBuilder

func NewContentDocsLinkBuilder() *ContentDocsLinkBuilder

func (*ContentDocsLinkBuilder) Build

func (builder *ContentDocsLinkBuilder) Build() *ContentDocsLink

func (*ContentDocsLinkBuilder) Title

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

飞书云文档标题

示例值:项目说明文档

func (*ContentDocsLinkBuilder) Url

飞书云文档链接地址

示例值:https://xxx.feishu.cn/docx/xxxxxxxx

type ContentGallery

type ContentGallery struct {
	ImageList []*ContentImageItem `json:"imageList,omitempty"` // 图片元素
}

type ContentGalleryBuilder

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

func NewContentGalleryBuilder

func NewContentGalleryBuilder() *ContentGalleryBuilder

func (*ContentGalleryBuilder) Build

func (builder *ContentGalleryBuilder) Build() *ContentGallery

func (*ContentGalleryBuilder) ImageList

func (builder *ContentGalleryBuilder) ImageList(imageList []*ContentImageItem) *ContentGalleryBuilder

图片元素

示例值:

type ContentImageItem

type ContentImageItem struct {
	FileToken *string  `json:"fileToken,omitempty"` // 图片 token,通过上传图片接口获取
	Src       *string  `json:"src,omitempty"`       // 图片链接
	Width     *float64 `json:"width,omitempty"`     // 图片宽,单位px
	Height    *float64 `json:"height,omitempty"`    // 图片高,单位px
}

type ContentImageItemBuilder

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

func NewContentImageItemBuilder

func NewContentImageItemBuilder() *ContentImageItemBuilder

func (*ContentImageItemBuilder) Build

func (builder *ContentImageItemBuilder) Build() *ContentImageItem

func (*ContentImageItemBuilder) FileToken

func (builder *ContentImageItemBuilder) FileToken(fileToken string) *ContentImageItemBuilder

图片 token,通过上传图片接口获取

示例值:boxcnOj88GDkmWGm2zsTyCBqoLb

func (*ContentImageItemBuilder) Height

func (builder *ContentImageItemBuilder) Height(height float64) *ContentImageItemBuilder

图片高,单位px

示例值:372

func (*ContentImageItemBuilder) Src added in v3.0.10

图片链接

示例值:https://bytedance.feishu.cn/drive/home/

func (*ContentImageItemBuilder) Width

图片宽,单位px

示例值:458

type ContentLink struct {
	Url *string `json:"url,omitempty"` // 链接地址
}

type ContentLinkBuilder

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

func NewContentLinkBuilder

func NewContentLinkBuilder() *ContentLinkBuilder

func (*ContentLinkBuilder) Build

func (builder *ContentLinkBuilder) Build() *ContentLink

func (*ContentLinkBuilder) Url

func (builder *ContentLinkBuilder) Url(url string) *ContentLinkBuilder

链接地址

示例值:https://www.xxxxx.com/

type ContentList

type ContentList struct {
	Type        *string `json:"type,omitempty"`        // 列表类型
	IndentLevel *int    `json:"indentLevel,omitempty"` // 列表的缩进级别,支持指定一行的缩进 除代码块以外的列表都支持设置缩进,支持 1-16 级缩进,取值范围:[1,16]
	Number      *int    `json:"number,omitempty"`      // 用于指定列表的行号,仅对有序列表和代码块生效 如果为有序列表设置了缩进,行号可能会显示为字母或者罗马数字
}

type ContentListBuilder

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

func NewContentListBuilder

func NewContentListBuilder() *ContentListBuilder

func (*ContentListBuilder) Build

func (builder *ContentListBuilder) Build() *ContentList

func (*ContentListBuilder) IndentLevel

func (builder *ContentListBuilder) IndentLevel(indentLevel int) *ContentListBuilder

列表的缩进级别,支持指定一行的缩进 除代码块以外的列表都支持设置缩进,支持 1-16 级缩进,取值范围:[1,16]

示例值:1

func (*ContentListBuilder) Number

func (builder *ContentListBuilder) Number(number int) *ContentListBuilder

用于指定列表的行号,仅对有序列表和代码块生效 如果为有序列表设置了缩进,行号可能会显示为字母或者罗马数字

示例值:1

func (*ContentListBuilder) Type

func (builder *ContentListBuilder) Type(type_ string) *ContentListBuilder

列表类型

示例值:number

type ContentParagraph

type ContentParagraph struct {
	Style    *ContentParagraphStyle     `json:"style,omitempty"`    // 段落样式
	Elements []*ContentParagraphElement `json:"elements,omitempty"` // 段落元素组成一个段落
}

type ContentParagraphBuilder

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

func NewContentParagraphBuilder

func NewContentParagraphBuilder() *ContentParagraphBuilder

func (*ContentParagraphBuilder) Build

func (builder *ContentParagraphBuilder) Build() *ContentParagraph

func (*ContentParagraphBuilder) Elements

段落元素组成一个段落

示例值:

func (*ContentParagraphBuilder) Style

段落样式

示例值:

type ContentParagraphElement

type ContentParagraphElement struct {
	Type     *string          `json:"type,omitempty"`     // 元素类型
	TextRun  *ContentTextRun  `json:"textRun,omitempty"`  // 文本
	DocsLink *ContentDocsLink `json:"docsLink,omitempty"` // 飞书云文档
	Person   *ContentPerson   `json:"person,omitempty"`   // 艾特用户
}

type ContentParagraphElementBuilder

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

func NewContentParagraphElementBuilder

func NewContentParagraphElementBuilder() *ContentParagraphElementBuilder

func (*ContentParagraphElementBuilder) Build

飞书云文档

示例值:

func (*ContentParagraphElementBuilder) Person

艾特用户

示例值:

func (*ContentParagraphElementBuilder) TextRun

文本

示例值:

func (*ContentParagraphElementBuilder) Type

元素类型

示例值:textRun

type ContentParagraphStyle

type ContentParagraphStyle struct {
	List *ContentList `json:"list,omitempty"` // 有序列表/无序列表/任务列表
}

type ContentParagraphStyleBuilder

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

func NewContentParagraphStyleBuilder

func NewContentParagraphStyleBuilder() *ContentParagraphStyleBuilder

func (*ContentParagraphStyleBuilder) Build

func (*ContentParagraphStyleBuilder) List

有序列表/无序列表/任务列表

示例值:

type ContentPerson

type ContentPerson struct {
	OpenId *string `json:"openId,omitempty"` // 员工的OpenID
}

type ContentPersonBuilder

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

func NewContentPersonBuilder

func NewContentPersonBuilder() *ContentPersonBuilder

func (*ContentPersonBuilder) Build

func (builder *ContentPersonBuilder) Build() *ContentPerson

func (*ContentPersonBuilder) OpenId

func (builder *ContentPersonBuilder) OpenId(openId string) *ContentPersonBuilder

员工的OpenID

示例值:ou_3bbe8a09c20e89cce9bff989ed840674

type ContentTextRun

type ContentTextRun struct {
	Text  *string           `json:"text,omitempty"`  // 具体的文本内容
	Style *ContentTextStyle `json:"style,omitempty"` // 文本内容的样式,支持 BIUS、颜色等
}

type ContentTextRunBuilder

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

func NewContentTextRunBuilder

func NewContentTextRunBuilder() *ContentTextRunBuilder

func (*ContentTextRunBuilder) Build

func (builder *ContentTextRunBuilder) Build() *ContentTextRun

func (*ContentTextRunBuilder) Style

文本内容的样式,支持 BIUS、颜色等

示例值:

func (*ContentTextRunBuilder) Text

func (builder *ContentTextRunBuilder) Text(text string) *ContentTextRunBuilder

具体的文本内容

示例值:周报内容

type ContentTextStyle

type ContentTextStyle struct {
	Bold          *bool         `json:"bold,omitempty"`          // 是否加粗
	StrikeThrough *bool         `json:"strikeThrough,omitempty"` // 是否删除
	BackColor     *ContentColor `json:"backColor,omitempty"`     // 背景颜色
	TextColor     *ContentColor `json:"textColor,omitempty"`     // 字体颜色
	Link          *ContentLink  `json:"link,omitempty"`          // 链接地址
}

type ContentTextStyleBuilder

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

func NewContentTextStyleBuilder

func NewContentTextStyleBuilder() *ContentTextStyleBuilder

func (*ContentTextStyleBuilder) BackColor

func (builder *ContentTextStyleBuilder) BackColor(backColor *ContentColor) *ContentTextStyleBuilder

背景颜色

示例值:

func (*ContentTextStyleBuilder) Bold

是否加粗

示例值:true

func (*ContentTextStyleBuilder) Build

func (builder *ContentTextStyleBuilder) Build() *ContentTextStyle

链接地址

示例值:

func (*ContentTextStyleBuilder) StrikeThrough

func (builder *ContentTextStyleBuilder) StrikeThrough(strikeThrough bool) *ContentTextStyleBuilder

是否删除

示例值:true

func (*ContentTextStyleBuilder) TextColor

func (builder *ContentTextStyleBuilder) TextColor(textColor *ContentColor) *ContentTextStyleBuilder

字体颜色

示例值:

type CreateProgressRecordPathReqBodyBuilder

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

func NewCreateProgressRecordPathReqBodyBuilder

func NewCreateProgressRecordPathReqBodyBuilder() *CreateProgressRecordPathReqBodyBuilder

func (*CreateProgressRecordPathReqBodyBuilder) Build

func (*CreateProgressRecordPathReqBodyBuilder) Content

进展详情 富文本格式

示例值:

func (*CreateProgressRecordPathReqBodyBuilder) SourceTitle

进展来源

示例值:周报系统

func (*CreateProgressRecordPathReqBodyBuilder) SourceUrl

进展来源链接

示例值:https://www.zhoubao.com

func (*CreateProgressRecordPathReqBodyBuilder) SourceUrlMobile added in v3.0.19

mobile进展来源链接

示例值:open.feishu.cn

func (*CreateProgressRecordPathReqBodyBuilder) SourceUrlPc added in v3.0.19

pc进展来源链接

示例值:open.feishu.cn

func (*CreateProgressRecordPathReqBodyBuilder) TargetId

目标id,与target_type对应

示例值:7041430377642082323

func (*CreateProgressRecordPathReqBodyBuilder) TargetType

目标类型

示例值:1

type CreateProgressRecordReq

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

type CreateProgressRecordReqBody

type CreateProgressRecordReqBody struct {
	SourceTitle     *string       `json:"source_title,omitempty"`      // 进展来源
	SourceUrl       *string       `json:"source_url,omitempty"`        // 进展来源链接
	TargetId        *string       `json:"target_id,omitempty"`         // 目标id,与target_type对应
	TargetType      *int          `json:"target_type,omitempty"`       // 目标类型
	Content         *ContentBlock `json:"content,omitempty"`           // 进展详情 富文本格式
	SourceUrlPc     *string       `json:"source_url_pc,omitempty"`     // pc进展来源链接
	SourceUrlMobile *string       `json:"source_url_mobile,omitempty"` // mobile进展来源链接
}

type CreateProgressRecordReqBodyBuilder

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

func NewCreateProgressRecordReqBodyBuilder

func NewCreateProgressRecordReqBodyBuilder() *CreateProgressRecordReqBodyBuilder

func (*CreateProgressRecordReqBodyBuilder) Build

func (*CreateProgressRecordReqBodyBuilder) Content

进展详情 富文本格式

示例值:

func (*CreateProgressRecordReqBodyBuilder) SourceTitle

进展来源

示例值:周报系统

func (*CreateProgressRecordReqBodyBuilder) SourceUrl

进展来源链接

示例值:https://www.zhoubao.com

func (*CreateProgressRecordReqBodyBuilder) SourceUrlMobile added in v3.0.19

func (builder *CreateProgressRecordReqBodyBuilder) SourceUrlMobile(sourceUrlMobile string) *CreateProgressRecordReqBodyBuilder

mobile进展来源链接

示例值:open.feishu.cn

func (*CreateProgressRecordReqBodyBuilder) SourceUrlPc added in v3.0.19

pc进展来源链接

示例值:open.feishu.cn

func (*CreateProgressRecordReqBodyBuilder) TargetId

目标id,与target_type对应

示例值:7041430377642082323

func (*CreateProgressRecordReqBodyBuilder) TargetType

目标类型

示例值:1

type CreateProgressRecordReqBuilder

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

func NewCreateProgressRecordReqBuilder

func NewCreateProgressRecordReqBuilder() *CreateProgressRecordReqBuilder

func (*CreateProgressRecordReqBuilder) Body

创建OKR进展记录

func (*CreateProgressRecordReqBuilder) Build

func (*CreateProgressRecordReqBuilder) UserIdType added in v3.0.10

func (builder *CreateProgressRecordReqBuilder) UserIdType(userIdType string) *CreateProgressRecordReqBuilder

此次调用中使用的用户ID的类型

示例值:

type CreateProgressRecordResp

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

func (*CreateProgressRecordResp) Success

func (resp *CreateProgressRecordResp) Success() bool

type CreateProgressRecordRespData

type CreateProgressRecordRespData struct {
	ProgressId *string       `json:"progress_id,omitempty"` // OKR 进展ID
	ModifyTime *string       `json:"modify_time,omitempty"` // 进展更新时间 毫秒
	Content    *ContentBlock `json:"content,omitempty"`     // 进展 对应的 Content 详细内容
}

type CurrentOkrSimple

type CurrentOkrSimple struct {
	OkrId    *string `json:"okr_id,omitempty"`    // OKR ID
	PeriodId *string `json:"period_id,omitempty"` // 周期 ID
}

type CurrentOkrSimpleBuilder

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

func NewCurrentOkrSimpleBuilder

func NewCurrentOkrSimpleBuilder() *CurrentOkrSimpleBuilder

func (*CurrentOkrSimpleBuilder) Build

func (builder *CurrentOkrSimpleBuilder) Build() *CurrentOkrSimple

func (*CurrentOkrSimpleBuilder) OkrId

OKR ID

示例值:

func (*CurrentOkrSimpleBuilder) PeriodId

func (builder *CurrentOkrSimpleBuilder) PeriodId(periodId string) *CurrentOkrSimpleBuilder

周期 ID

示例值:

type DeleteProgressRecordReq

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

type DeleteProgressRecordReqBuilder

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

func NewDeleteProgressRecordReqBuilder

func NewDeleteProgressRecordReqBuilder() *DeleteProgressRecordReqBuilder

func (*DeleteProgressRecordReqBuilder) Build

func (*DeleteProgressRecordReqBuilder) ProgressId

func (builder *DeleteProgressRecordReqBuilder) ProgressId(progressId string) *DeleteProgressRecordReqBuilder

待删除的 OKR进展记录 ID

示例值:7041857032248410131

type DeleteProgressRecordResp

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

func (*DeleteProgressRecordResp) Success

func (resp *DeleteProgressRecordResp) Success() bool

type Dummy

type Dummy struct {
	Id *string `json:"id,omitempty"` // id
}

type DummyBuilder

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

func NewDummyBuilder

func NewDummyBuilder() *DummyBuilder

func (*DummyBuilder) Build

func (builder *DummyBuilder) Build() *Dummy

func (*DummyBuilder) Id

func (builder *DummyBuilder) Id(id string) *DummyBuilder

id

示例值:

type FailedMetricItem added in v3.0.5

type FailedMetricItem struct {
	MetricItemId *string `json:"metric_item_id,omitempty"` // 指标项ID
	Reason       *string `json:"reason,omitempty"`         // 失败原因
}

type FailedMetricItemBuilder added in v3.0.5

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

func NewFailedMetricItemBuilder added in v3.0.5

func NewFailedMetricItemBuilder() *FailedMetricItemBuilder

func (*FailedMetricItemBuilder) Build added in v3.0.5

func (builder *FailedMetricItemBuilder) Build() *FailedMetricItem

func (*FailedMetricItemBuilder) MetricItemId added in v3.0.5

func (builder *FailedMetricItemBuilder) MetricItemId(metricItemId string) *FailedMetricItemBuilder

指标项ID

示例值:7139040982003302420

func (*FailedMetricItemBuilder) Reason added in v3.0.5

func (builder *FailedMetricItemBuilder) Reason(reason string) *FailedMetricItemBuilder

失败原因

示例值:start value equals target value

type GetMetricSourceTableItemReq added in v3.0.10

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

type GetMetricSourceTableItemReqBuilder added in v3.0.10

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

func NewGetMetricSourceTableItemReqBuilder added in v3.0.10

func NewGetMetricSourceTableItemReqBuilder() *GetMetricSourceTableItemReqBuilder

func (*GetMetricSourceTableItemReqBuilder) Build added in v3.0.10

func (*GetMetricSourceTableItemReqBuilder) MetricItemId added in v3.0.10

okr指标项id

示例值:7041857032248410131

func (*GetMetricSourceTableItemReqBuilder) MetricSourceId added in v3.0.10

func (builder *GetMetricSourceTableItemReqBuilder) MetricSourceId(metricSourceId string) *GetMetricSourceTableItemReqBuilder

okr指标库id

示例值:7041857032248410131

func (*GetMetricSourceTableItemReqBuilder) MetricTableId added in v3.0.10

func (builder *GetMetricSourceTableItemReqBuilder) MetricTableId(metricTableId string) *GetMetricSourceTableItemReqBuilder

okr指标表id

示例值:7041857032248410131

func (*GetMetricSourceTableItemReqBuilder) UserIdType added in v3.0.10

此次调用中使用的用户ID的类型

示例值:

type GetMetricSourceTableItemResp added in v3.0.10

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

func (*GetMetricSourceTableItemResp) Success added in v3.0.10

func (resp *GetMetricSourceTableItemResp) Success() bool

type GetMetricSourceTableItemRespData added in v3.0.10

type GetMetricSourceTableItemRespData struct {
	MetricItemId       *string     `json:"metric_item_id,omitempty"`       // 指标表id
	UserId             *string     `json:"user_id,omitempty"`              // 指标承接人员id
	PeriodId           *string     `json:"period_id,omitempty"`            // 指标的okr周期
	MetricUnit         *MetricUnit `json:"metric_unit,omitempty"`          // 指标单位
	MetricInitialValue *float64    `json:"metric_initial_value,omitempty"` // 指标起始值
	MetricTargetValue  *float64    `json:"metric_target_value,omitempty"`  // 指标目标值
	MetricCurrentValue *float64    `json:"metric_current_value,omitempty"` // 指标进度值
	SupportedUserId    *string     `json:"supported_user_id,omitempty"`    // 指标支撑的上级人员id
	KrId               *string     `json:"kr_id,omitempty"`                // 指标关联的kr
	UpdatedAt          *string     `json:"updated_at,omitempty"`           // 更新时间
	UpdatedBy          *string     `json:"updated_by,omitempty"`           // 更新人
}

type GetProgressRecordReq

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

type GetProgressRecordReqBuilder

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

func NewGetProgressRecordReqBuilder

func NewGetProgressRecordReqBuilder() *GetProgressRecordReqBuilder

func (*GetProgressRecordReqBuilder) Build

func (*GetProgressRecordReqBuilder) ProgressId

func (builder *GetProgressRecordReqBuilder) ProgressId(progressId string) *GetProgressRecordReqBuilder

待查询的 OKR进展记录 ID

示例值:7041857032248410131

func (*GetProgressRecordReqBuilder) UserIdType added in v3.0.10

func (builder *GetProgressRecordReqBuilder) UserIdType(userIdType string) *GetProgressRecordReqBuilder

此次调用中使用的用户ID的类型

示例值:

type GetProgressRecordResp

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

func (*GetProgressRecordResp) Success

func (resp *GetProgressRecordResp) Success() bool

type GetProgressRecordRespData

type GetProgressRecordRespData struct {
	ProgressId *string       `json:"progress_id,omitempty"` // OKR 进展ID
	ModifyTime *string       `json:"modify_time,omitempty"` // 进展更新时间 毫秒
	Content    *ContentBlock `json:"content,omitempty"`     // 进展 对应的 Content 详细内容
}

type ImageInfo

type ImageInfo struct {
	FileToken *string `json:"file_token,omitempty"` // 图片token
	Url       *string `json:"url,omitempty"`        // 图片下载链接
}

type ImageInfoBuilder

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

func NewImageInfoBuilder

func NewImageInfoBuilder() *ImageInfoBuilder

func (*ImageInfoBuilder) Build

func (builder *ImageInfoBuilder) Build() *ImageInfo

func (*ImageInfoBuilder) FileToken

func (builder *ImageInfoBuilder) FileToken(fileToken string) *ImageInfoBuilder

图片token

示例值:boxbcLxEnhUE3REJSAwAbVFZwPf

func (*ImageInfoBuilder) Url

func (builder *ImageInfoBuilder) Url(url string) *ImageInfoBuilder

图片下载链接

示例值:https://bytedance.feishu.cn/drive/home/

type Kr

type Kr struct {
	Id         *string    `json:"id,omitempty"`          // KeyResult ID
	Pos        *string    `json:"pos,omitempty"`         // KeyResult 在所属 Objective 中的排序
	Score      *string    `json:"score,omitempty"`       // KeyResult 评分,返回值为百分制分数,需要除以 100 以获得 OKR 页面上显示的 1 分制分数
	Weight     *string    `json:"weight,omitempty"`      // KeyResult 的权重
	Content    *KrContent `json:"content,omitempty"`     // KeyResult 对应的 Content 详细内容
	CreateTime *int       `json:"create_time,omitempty"` // KeyResult 的创建时间 毫秒
	ModifyTime *int       `json:"modify_time,omitempty"` // KeyResult 的最后修改时间 毫秒
}

type KrBuilder

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

func NewKrBuilder

func NewKrBuilder() *KrBuilder

func (*KrBuilder) Build

func (builder *KrBuilder) Build() *Kr

func (*KrBuilder) Content

func (builder *KrBuilder) Content(content *KrContent) *KrBuilder

KeyResult 对应的 Content 详细内容

示例值:

func (*KrBuilder) CreateTime

func (builder *KrBuilder) CreateTime(createTime int) *KrBuilder

KeyResult 的创建时间 毫秒

示例值:

func (*KrBuilder) Id

func (builder *KrBuilder) Id(id string) *KrBuilder

KeyResult ID

示例值:

func (*KrBuilder) ModifyTime

func (builder *KrBuilder) ModifyTime(modifyTime int) *KrBuilder

KeyResult 的最后修改时间 毫秒

示例值:

func (*KrBuilder) Pos

func (builder *KrBuilder) Pos(pos string) *KrBuilder

KeyResult 在所属 Objective 中的排序

示例值:

func (*KrBuilder) Score

func (builder *KrBuilder) Score(score string) *KrBuilder

KeyResult 评分,返回值为百分制分数,需要除以 100 以获得 OKR 页面上显示的 1 分制分数

示例值:

func (*KrBuilder) Weight

func (builder *KrBuilder) Weight(weight string) *KrBuilder

KeyResult 的权重

示例值:

type KrContent

type KrContent struct {
	Zh *string `json:"zh,omitempty"` // 中文内容
	En *string `json:"en,omitempty"` // 英文内容
}

type KrContentBuilder

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

func NewKrContentBuilder

func NewKrContentBuilder() *KrContentBuilder

func (*KrContentBuilder) Build

func (builder *KrContentBuilder) Build() *KrContent

func (*KrContentBuilder) En

func (builder *KrContentBuilder) En(en string) *KrContentBuilder

英文内容

示例值:

func (*KrContentBuilder) Zh

func (builder *KrContentBuilder) Zh(zh string) *KrContentBuilder

中文内容

示例值:

type ListMetricSourceReq added in v3.0.10

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

type ListMetricSourceReqBuilder added in v3.0.10

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

func NewListMetricSourceReqBuilder added in v3.0.10

func NewListMetricSourceReqBuilder() *ListMetricSourceReqBuilder

func (*ListMetricSourceReqBuilder) Build added in v3.0.10

func (*ListMetricSourceReqBuilder) PageSize added in v3.0.10

func (builder *ListMetricSourceReqBuilder) PageSize(pageSize string) *ListMetricSourceReqBuilder

每页获取记录数

示例值:10

func (*ListMetricSourceReqBuilder) PageToken added in v3.0.10

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

页码标识,获取第一页传空,每次查询会返回下一页的page_token

示例值:6969864184272078374

type ListMetricSourceResp added in v3.0.10

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

func (*ListMetricSourceResp) Success added in v3.0.10

func (resp *ListMetricSourceResp) Success() bool

type ListMetricSourceRespData added in v3.0.10

type ListMetricSourceRespData struct {
	Total     *int            `json:"total,omitempty"`      // 符合条件的记录总数
	HasMore   *bool           `json:"has_more,omitempty"`   // 是否有下一页
	PageToken *string         `json:"page_token,omitempty"` // 下一页页码
	Items     []*MetricSource `json:"items,omitempty"`      // 指标库列表
}

type ListMetricSourceTableItemReq added in v3.0.10

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

type ListMetricSourceTableItemReqBuilder added in v3.0.10

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

func NewListMetricSourceTableItemReqBuilder added in v3.0.10

func NewListMetricSourceTableItemReqBuilder() *ListMetricSourceTableItemReqBuilder

func (*ListMetricSourceTableItemReqBuilder) Build added in v3.0.10

func (*ListMetricSourceTableItemReqBuilder) MetricSourceId added in v3.0.10

func (builder *ListMetricSourceTableItemReqBuilder) MetricSourceId(metricSourceId string) *ListMetricSourceTableItemReqBuilder

okr指标库id

示例值:7041857032248410131

func (*ListMetricSourceTableItemReqBuilder) MetricTableId added in v3.0.10

okr指标表id

示例值:7041857032248410131

func (*ListMetricSourceTableItemReqBuilder) PageSize added in v3.0.10

每页获取记录数

示例值:10

func (*ListMetricSourceTableItemReqBuilder) PageToken added in v3.0.10

页码标识,获取第一页传空,每次查询会返回下一页的page_token

示例值:6969864184272078374

func (*ListMetricSourceTableItemReqBuilder) UserIdType added in v3.0.10

此次调用中使用的用户ID的类型

示例值:

type ListMetricSourceTableItemResp added in v3.0.10

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

func (*ListMetricSourceTableItemResp) Success added in v3.0.10

func (resp *ListMetricSourceTableItemResp) Success() bool

type ListMetricSourceTableItemRespData added in v3.0.10

type ListMetricSourceTableItemRespData struct {
	Total     *int          `json:"total,omitempty"`      // 符合条件的记录总数
	HasMore   *bool         `json:"has_more,omitempty"`   // 是否有下一页
	PageToken *string       `json:"page_token,omitempty"` // 下一页页码
	Items     []*MetricItem `json:"items,omitempty"`      // 指标项列表
}

type ListMetricSourceTableReq added in v3.0.10

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

type ListMetricSourceTableReqBuilder added in v3.0.10

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

func NewListMetricSourceTableReqBuilder added in v3.0.10

func NewListMetricSourceTableReqBuilder() *ListMetricSourceTableReqBuilder

func (*ListMetricSourceTableReqBuilder) Build added in v3.0.10

func (*ListMetricSourceTableReqBuilder) MetricSourceId added in v3.0.10

func (builder *ListMetricSourceTableReqBuilder) MetricSourceId(metricSourceId string) *ListMetricSourceTableReqBuilder

okr指标库id

示例值:7041857032248410131

func (*ListMetricSourceTableReqBuilder) PageSize added in v3.0.10

每页获取记录数

示例值:10

func (*ListMetricSourceTableReqBuilder) PageToken added in v3.0.10

页码标识,获取第一页传空,每次查询会返回下一页的page_token

示例值:6969864184272078374

type ListMetricSourceTableResp added in v3.0.10

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

func (*ListMetricSourceTableResp) Success added in v3.0.10

func (resp *ListMetricSourceTableResp) Success() bool

type ListMetricSourceTableRespData added in v3.0.10

type ListMetricSourceTableRespData struct {
	Total     *int           `json:"total,omitempty"`      // 符合条件的记录总数
	HasMore   *bool          `json:"has_more,omitempty"`   // 是否有下一页
	PageToken *string        `json:"page_token,omitempty"` // 下一页页码
	Items     []*MetricTable `json:"items,omitempty"`      // 指标表列表
}

type ListPeriodReq

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

type ListPeriodReqBuilder

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

func NewListPeriodReqBuilder

func NewListPeriodReqBuilder() *ListPeriodReqBuilder

func (*ListPeriodReqBuilder) Build

func (builder *ListPeriodReqBuilder) Build() *ListPeriodReq

func (*ListPeriodReqBuilder) PageSize

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

分页大小,默认10

示例值:10

func (*ListPeriodReqBuilder) PageToken

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

分页标志page_token

示例值:xaasdasdax

type ListPeriodResp

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

func (*ListPeriodResp) Success

func (resp *ListPeriodResp) Success() bool

type ListPeriodRespData

type ListPeriodRespData struct {
	PageToken *string   `json:"page_token,omitempty"` // 分页标志
	HasMore   *bool     `json:"has_more,omitempty"`   // 是否有更多
	Items     []*Period `json:"items,omitempty"`      // 数据项
}

type ListUserOkrReq

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

type ListUserOkrReqBuilder

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

func NewListUserOkrReqBuilder

func NewListUserOkrReqBuilder() *ListUserOkrReqBuilder

func (*ListUserOkrReqBuilder) Build

func (builder *ListUserOkrReqBuilder) Build() *ListUserOkrReq

func (*ListUserOkrReqBuilder) Lang

func (builder *ListUserOkrReqBuilder) Lang(lang string) *ListUserOkrReqBuilder

请求OKR的语言版本(比如@的人名),lang=en_us/zh_cn

示例值:zh_cn

func (*ListUserOkrReqBuilder) Limit

func (builder *ListUserOkrReqBuilder) Limit(limit string) *ListUserOkrReqBuilder

列表长度,0-10

示例值:5

func (*ListUserOkrReqBuilder) Offset

func (builder *ListUserOkrReqBuilder) Offset(offset string) *ListUserOkrReqBuilder

请求列表的偏移,offset>=0

示例值:0

func (*ListUserOkrReqBuilder) PeriodIds

func (builder *ListUserOkrReqBuilder) PeriodIds(periodIds []string) *ListUserOkrReqBuilder

period_id列表,最多10个

示例值:["6951461264858777132"]

func (*ListUserOkrReqBuilder) UserId

func (builder *ListUserOkrReqBuilder) UserId(userId string) *ListUserOkrReqBuilder

目标用户id

示例值:ou-asdasdasdasdasd

func (*ListUserOkrReqBuilder) UserIdType

func (builder *ListUserOkrReqBuilder) UserIdType(userIdType string) *ListUserOkrReqBuilder

此次调用中使用的用户ID的类型

示例值:

type ListUserOkrResp

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

func (*ListUserOkrResp) Success

func (resp *ListUserOkrResp) Success() bool

type ListUserOkrRespData

type ListUserOkrRespData struct {
	Total   *int        `json:"total,omitempty"`    // OKR周期总数
	OkrList []*OkrBatch `json:"okr_list,omitempty"` // OKR 列表
}

type MetricItem added in v3.0.5

type MetricItem struct {
	MetricItemId       *string     `json:"metric_item_id,omitempty"`       // 指标项id
	UserId             *string     `json:"user_id,omitempty"`              // 指标承接人员id
	PeriodId           *string     `json:"period_id,omitempty"`            // 指标的okr周期
	MetricUnit         *MetricUnit `json:"metric_unit,omitempty"`          // 指标单位
	MetricInitialValue *float64    `json:"metric_initial_value,omitempty"` // 指标起始值
	MetricTargetValue  *float64    `json:"metric_target_value,omitempty"`  // 指标目标值
	MetricCurrentValue *float64    `json:"metric_current_value,omitempty"` // 指标进度值
	SupportedUserId    *string     `json:"supported_user_id,omitempty"`    // 指标支撑的上级人员id
	KrId               *string     `json:"kr_id,omitempty"`                // 指标关联的kr
	UpdatedAt          *string     `json:"updated_at,omitempty"`           // 更新时间
	UpdatedBy          *string     `json:"updated_by,omitempty"`           // 更新人
}

type MetricItemBuilder added in v3.0.5

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

func NewMetricItemBuilder added in v3.0.5

func NewMetricItemBuilder() *MetricItemBuilder

func (*MetricItemBuilder) Build added in v3.0.5

func (builder *MetricItemBuilder) Build() *MetricItem

func (*MetricItemBuilder) KrId added in v3.0.5

func (builder *MetricItemBuilder) KrId(krId string) *MetricItemBuilder

指标关联的kr

示例值:7139040982003302420

func (*MetricItemBuilder) MetricCurrentValue added in v3.0.5

func (builder *MetricItemBuilder) MetricCurrentValue(metricCurrentValue float64) *MetricItemBuilder

指标进度值

示例值:10.01

func (*MetricItemBuilder) MetricInitialValue added in v3.0.5

func (builder *MetricItemBuilder) MetricInitialValue(metricInitialValue float64) *MetricItemBuilder

指标起始值

示例值:10.01

func (*MetricItemBuilder) MetricItemId added in v3.0.5

func (builder *MetricItemBuilder) MetricItemId(metricItemId string) *MetricItemBuilder

指标项id

示例值:635782378412311

func (*MetricItemBuilder) MetricTargetValue added in v3.0.5

func (builder *MetricItemBuilder) MetricTargetValue(metricTargetValue float64) *MetricItemBuilder

指标目标值

示例值:10.01

func (*MetricItemBuilder) MetricUnit added in v3.0.5

func (builder *MetricItemBuilder) MetricUnit(metricUnit *MetricUnit) *MetricItemBuilder

指标单位

示例值:

func (*MetricItemBuilder) PeriodId added in v3.0.5

func (builder *MetricItemBuilder) PeriodId(periodId string) *MetricItemBuilder

指标的okr周期

示例值:635782378412311

func (*MetricItemBuilder) SupportedUserId added in v3.0.5

func (builder *MetricItemBuilder) SupportedUserId(supportedUserId string) *MetricItemBuilder

指标支撑的上级人员id

示例值:ou_8e7d79ca2327bf4f0b3c37899d6abbd5

func (*MetricItemBuilder) UpdatedAt added in v3.0.5

func (builder *MetricItemBuilder) UpdatedAt(updatedAt string) *MetricItemBuilder

更新时间

示例值:1663145941129

func (*MetricItemBuilder) UpdatedBy added in v3.0.5

func (builder *MetricItemBuilder) UpdatedBy(updatedBy string) *MetricItemBuilder

更新人

示例值:ou_8e7d79ca2327bf4f0b3c37899d6abbd5

func (*MetricItemBuilder) UserId added in v3.0.5

func (builder *MetricItemBuilder) UserId(userId string) *MetricItemBuilder

指标承接人员id

示例值:635782378412311

type MetricItemRequest added in v3.0.5

type MetricItemRequest struct {
	MetricItemId       *string  `json:"metric_item_id,omitempty"`       // 指标表id
	MetricInitialValue *float64 `json:"metric_initial_value,omitempty"` // 指标起始值
	MetricTargetValue  *float64 `json:"metric_target_value,omitempty"`  // 指标目标值
	MetricCurrentValue *float64 `json:"metric_current_value,omitempty"` // 指标进度值
	SupportedUserId    *string  `json:"supported_user_id,omitempty"`    // 指标支撑的上级人员 id
}

type MetricItemRequestBuilder added in v3.0.5

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

func NewMetricItemRequestBuilder added in v3.0.5

func NewMetricItemRequestBuilder() *MetricItemRequestBuilder

func (*MetricItemRequestBuilder) Build added in v3.0.5

func (builder *MetricItemRequestBuilder) Build() *MetricItemRequest

func (*MetricItemRequestBuilder) MetricCurrentValue added in v3.0.5

func (builder *MetricItemRequestBuilder) MetricCurrentValue(metricCurrentValue float64) *MetricItemRequestBuilder

指标进度值

示例值:2.0

func (*MetricItemRequestBuilder) MetricInitialValue added in v3.0.5

func (builder *MetricItemRequestBuilder) MetricInitialValue(metricInitialValue float64) *MetricItemRequestBuilder

指标起始值

示例值:1.0

func (*MetricItemRequestBuilder) MetricItemId added in v3.0.5

func (builder *MetricItemRequestBuilder) MetricItemId(metricItemId string) *MetricItemRequestBuilder

指标表id

示例值:635782378412311

func (*MetricItemRequestBuilder) MetricTargetValue added in v3.0.5

func (builder *MetricItemRequestBuilder) MetricTargetValue(metricTargetValue float64) *MetricItemRequestBuilder

指标目标值

示例值:3.0

func (*MetricItemRequestBuilder) SupportedUserId added in v3.0.5

func (builder *MetricItemRequestBuilder) SupportedUserId(supportedUserId string) *MetricItemRequestBuilder

指标支撑的上级人员 id

示例值:7041857032248410131

type MetricSource added in v3.0.5

type MetricSource struct {
	MetricSourceId   *string     `json:"metric_source_id,omitempty"`   // 指标库 id
	MetricSourceName *string     `json:"metric_source_name,omitempty"` // 指标库名称
	MetricName       *string     `json:"metric_name,omitempty"`        // 指标名称
	MetricUnit       *MetricUnit `json:"metric_unit,omitempty"`        // 指标单位
}

type MetricSourceBuilder added in v3.0.5

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

func NewMetricSourceBuilder added in v3.0.5

func NewMetricSourceBuilder() *MetricSourceBuilder

func (*MetricSourceBuilder) Build added in v3.0.5

func (builder *MetricSourceBuilder) Build() *MetricSource

func (*MetricSourceBuilder) MetricName added in v3.0.5

func (builder *MetricSourceBuilder) MetricName(metricName string) *MetricSourceBuilder

指标名称

示例值:指标A

func (*MetricSourceBuilder) MetricSourceId added in v3.0.5

func (builder *MetricSourceBuilder) MetricSourceId(metricSourceId string) *MetricSourceBuilder

指标库 id

示例值:7139040982003302420

func (*MetricSourceBuilder) MetricSourceName added in v3.0.5

func (builder *MetricSourceBuilder) MetricSourceName(metricSourceName string) *MetricSourceBuilder

指标库名称

示例值:指标库A

func (*MetricSourceBuilder) MetricUnit added in v3.0.5

func (builder *MetricSourceBuilder) MetricUnit(metricUnit *MetricUnit) *MetricSourceBuilder

指标单位

示例值:

type MetricTable added in v3.0.5

type MetricTable struct {
	MetricTableId   *string `json:"metric_table_id,omitempty"`   // 指标表 id
	MetricTableName *string `json:"metric_table_name,omitempty"` // 指标表名称
	PeriodId        *string `json:"period_id,omitempty"`         // okr周期
}

type MetricTableBuilder added in v3.0.5

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

func NewMetricTableBuilder added in v3.0.5

func NewMetricTableBuilder() *MetricTableBuilder

func (*MetricTableBuilder) Build added in v3.0.5

func (builder *MetricTableBuilder) Build() *MetricTable

func (*MetricTableBuilder) MetricTableId added in v3.0.5

func (builder *MetricTableBuilder) MetricTableId(metricTableId string) *MetricTableBuilder

指标表 id

示例值:635782378412311

func (*MetricTableBuilder) MetricTableName added in v3.0.5

func (builder *MetricTableBuilder) MetricTableName(metricTableName string) *MetricTableBuilder

指标表名称

示例值:指标表a

func (*MetricTableBuilder) PeriodId added in v3.0.5

func (builder *MetricTableBuilder) PeriodId(periodId string) *MetricTableBuilder

okr周期

示例值:635782378221221

type MetricUnit added in v3.0.5

type MetricUnit struct {
	ZhCn *string `json:"zh_cn,omitempty"` // 指标单位中文
	EnUs *string `json:"en_us,omitempty"` // 指标单位英文
	JaJp *string `json:"ja_jp,omitempty"` // 指标单位日文
}

type MetricUnitBuilder added in v3.0.5

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

func NewMetricUnitBuilder added in v3.0.5

func NewMetricUnitBuilder() *MetricUnitBuilder

func (*MetricUnitBuilder) Build added in v3.0.5

func (builder *MetricUnitBuilder) Build() *MetricUnit

func (*MetricUnitBuilder) EnUs added in v3.0.5

func (builder *MetricUnitBuilder) EnUs(enUs string) *MetricUnitBuilder

指标单位英文

示例值:jack

func (*MetricUnitBuilder) JaJp added in v3.0.5

func (builder *MetricUnitBuilder) JaJp(jaJp string) *MetricUnitBuilder

指标单位日文

示例值:シャオ・ミン

func (*MetricUnitBuilder) ZhCn added in v3.0.5

func (builder *MetricUnitBuilder) ZhCn(zhCn string) *MetricUnitBuilder

指标单位中文

示例值:小明

type Objective

type Objective struct {
	Id                    *string            `json:"id,omitempty"`                      // 目标的ID
	OkrId                 *string            `json:"okr_id,omitempty"`                  // 所属的OKR ID
	UserId                *string            `json:"user_id,omitempty"`                 // 拥有者的用户 UUID
	Pos                   *string            `json:"pos,omitempty"`                     // Objective 在所属 OKR 中的排序
	Score                 *string            `json:"score,omitempty"`                   // Objective 评分,返回值为百分制分数,需要除以 100 以获得 OKR 页面上显示的 1 分制分数
	Name                  *ObjectiveName     `json:"name,omitempty"`                    // Objective 的详细内容
	Progress              *ObjectiveProgress `json:"progress,omitempty"`                // Objective 对应的 Progress 详细内容
	CreateTime            *int               `json:"create_time,omitempty"`             // Objective 的创建时间
	ModifyTime            *int               `json:"modify_time,omitempty"`             // Objective 的最后修改时间
	KrList                []*Kr              `json:"kr_list,omitempty"`                 // Objective 下的 KeyResult 列表
	AligningObjectiveList []*AlignObjective  `json:"aligning_objective_list,omitempty"` // Objective 对齐别人的 Objective 列表
	AlignedObjectiveList  []*AlignObjective  `json:"aligned_objective_list,omitempty"`  // 被别人对齐的 Objective 列表
}

type ObjectiveBuilder

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

func NewObjectiveBuilder

func NewObjectiveBuilder() *ObjectiveBuilder

func (*ObjectiveBuilder) AlignedObjectiveList

func (builder *ObjectiveBuilder) AlignedObjectiveList(alignedObjectiveList []*AlignObjective) *ObjectiveBuilder

被别人对齐的 Objective 列表

示例值:

func (*ObjectiveBuilder) AligningObjectiveList

func (builder *ObjectiveBuilder) AligningObjectiveList(aligningObjectiveList []*AlignObjective) *ObjectiveBuilder

Objective 对齐别人的 Objective 列表

示例值:

func (*ObjectiveBuilder) Build

func (builder *ObjectiveBuilder) Build() *Objective

func (*ObjectiveBuilder) CreateTime

func (builder *ObjectiveBuilder) CreateTime(createTime int) *ObjectiveBuilder

Objective 的创建时间

示例值:

func (*ObjectiveBuilder) Id

func (builder *ObjectiveBuilder) Id(id string) *ObjectiveBuilder

目标的ID

示例值:

func (*ObjectiveBuilder) KrList

func (builder *ObjectiveBuilder) KrList(krList []*Kr) *ObjectiveBuilder

Objective 下的 KeyResult 列表

示例值:

func (*ObjectiveBuilder) ModifyTime

func (builder *ObjectiveBuilder) ModifyTime(modifyTime int) *ObjectiveBuilder

Objective 的最后修改时间

示例值:

func (*ObjectiveBuilder) Name

func (builder *ObjectiveBuilder) Name(name *ObjectiveName) *ObjectiveBuilder

Objective 的详细内容

示例值:

func (*ObjectiveBuilder) OkrId

func (builder *ObjectiveBuilder) OkrId(okrId string) *ObjectiveBuilder

所属的OKR ID

示例值:

func (*ObjectiveBuilder) Pos

func (builder *ObjectiveBuilder) Pos(pos string) *ObjectiveBuilder

Objective 在所属 OKR 中的排序

示例值:

func (*ObjectiveBuilder) Progress

func (builder *ObjectiveBuilder) Progress(progress *ObjectiveProgress) *ObjectiveBuilder

Objective 对应的 Progress 详细内容

示例值:

func (*ObjectiveBuilder) Score

func (builder *ObjectiveBuilder) Score(score string) *ObjectiveBuilder

Objective 评分,返回值为百分制分数,需要除以 100 以获得 OKR 页面上显示的 1 分制分数

示例值:

func (*ObjectiveBuilder) UserId

func (builder *ObjectiveBuilder) UserId(userId string) *ObjectiveBuilder

拥有者的用户 UUID

示例值:

type ObjectiveName

type ObjectiveName struct {
	Zh *string `json:"zh,omitempty"` // 中文内容
	En *string `json:"en,omitempty"` // 英文内容
}

type ObjectiveNameBuilder

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

func NewObjectiveNameBuilder

func NewObjectiveNameBuilder() *ObjectiveNameBuilder

func (*ObjectiveNameBuilder) Build

func (builder *ObjectiveNameBuilder) Build() *ObjectiveName

func (*ObjectiveNameBuilder) En

英文内容

示例值:

func (*ObjectiveNameBuilder) Zh

中文内容

示例值:

type ObjectiveProgress

type ObjectiveProgress struct {
	Zh *string `json:"zh,omitempty"` // 中文内容
	En *string `json:"en,omitempty"` // 英文内容
}

type ObjectiveProgressBuilder

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

func NewObjectiveProgressBuilder

func NewObjectiveProgressBuilder() *ObjectiveProgressBuilder

func (*ObjectiveProgressBuilder) Build

func (builder *ObjectiveProgressBuilder) Build() *ObjectiveProgress

func (*ObjectiveProgressBuilder) En

英文内容

示例值:

func (*ObjectiveProgressBuilder) Zh

中文内容

示例值:

type Okr

type Okr struct {
	OkrId         *string               `json:"okr_id,omitempty"`         // OKR ID
	PeriodId      *string               `json:"period_id,omitempty"`      // 周期 ID
	PeriodType    *string               `json:"period_type,omitempty"`    // 周期类型:1、月周期;2、年周期
	Name          *OkrName              `json:"name,omitempty"`           // 周期展示名称
	CreateTime    *int                  `json:"create_time,omitempty"`    // 创建时间 毫秒
	ModifyTime    *int                  `json:"modify_time,omitempty"`    // 修改时间 毫秒
	ObjectiveList []*OkrDetailObjective `json:"objective_list,omitempty"` // objective 列表
	OkrScore      *int                  `json:"okr_score,omitempty"`      // 打分
}

type OkrBatch

type OkrBatch struct {
	Id            *string         `json:"id,omitempty"`             // id
	Permission    *int            `json:"permission,omitempty"`     // OKR的访问权限
	PeriodId      *string         `json:"period_id,omitempty"`      // period_id
	Name          *string         `json:"name,omitempty"`           // 名称
	ObjectiveList []*OkrObjective `json:"objective_list,omitempty"` // Objective列表
	ConfirmStatus *int            `json:"confirm_status,omitempty"` // OKR确认状态
}

type OkrBatchBuilder

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

func NewOkrBatchBuilder

func NewOkrBatchBuilder() *OkrBatchBuilder

func (*OkrBatchBuilder) Build

func (builder *OkrBatchBuilder) Build() *OkrBatch

func (*OkrBatchBuilder) ConfirmStatus

func (builder *OkrBatchBuilder) ConfirmStatus(confirmStatus int) *OkrBatchBuilder

OKR确认状态

示例值:0

func (*OkrBatchBuilder) Id

func (builder *OkrBatchBuilder) Id(id string) *OkrBatchBuilder

id

示例值:11123123123123

func (*OkrBatchBuilder) Name

func (builder *OkrBatchBuilder) Name(name string) *OkrBatchBuilder

名称

示例值:My OKR

func (*OkrBatchBuilder) ObjectiveList

func (builder *OkrBatchBuilder) ObjectiveList(objectiveList []*OkrObjective) *OkrBatchBuilder

Objective列表

示例值:

func (*OkrBatchBuilder) PeriodId

func (builder *OkrBatchBuilder) PeriodId(periodId string) *OkrBatchBuilder

period_id

示例值:11123123123123

func (*OkrBatchBuilder) Permission

func (builder *OkrBatchBuilder) Permission(permission int) *OkrBatchBuilder

OKR的访问权限

示例值:0

type OkrBuilder

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

func NewOkrBuilder

func NewOkrBuilder() *OkrBuilder

func (*OkrBuilder) Build

func (builder *OkrBuilder) Build() *Okr

func (*OkrBuilder) CreateTime

func (builder *OkrBuilder) CreateTime(createTime int) *OkrBuilder

创建时间 毫秒

示例值:1624267575928

func (*OkrBuilder) ModifyTime

func (builder *OkrBuilder) ModifyTime(modifyTime int) *OkrBuilder

修改时间 毫秒

示例值:1624329170463

func (*OkrBuilder) Name

func (builder *OkrBuilder) Name(name *OkrName) *OkrBuilder

周期展示名称

示例值:

func (*OkrBuilder) ObjectiveList

func (builder *OkrBuilder) ObjectiveList(objectiveList []*OkrDetailObjective) *OkrBuilder

objective 列表

示例值:

func (*OkrBuilder) OkrId

func (builder *OkrBuilder) OkrId(okrId string) *OkrBuilder

OKR ID

示例值:6976173067307927084

func (*OkrBuilder) OkrScore

func (builder *OkrBuilder) OkrScore(okrScore int) *OkrBuilder

打分

示例值:0.5

func (*OkrBuilder) PeriodId

func (builder *OkrBuilder) PeriodId(periodId string) *OkrBuilder

周期 ID

示例值:6974586812973581868

func (*OkrBuilder) PeriodType

func (builder *OkrBuilder) PeriodType(periodType string) *OkrBuilder

周期类型:1、月周期;2、年周期

示例值:1

type OkrComment

type OkrComment struct {
	Id                *string                            `json:"id,omitempty"`                  // 全局评论ID
	Content           *string                            `json:"content,omitempty"`             // 全局评论内容
	CommentTime       *int                               `json:"comment_time,omitempty"`        // 全局评论时间 毫秒
	Commentator       *OkrObjectiveAlignedObjectiveOwner `json:"commentator,omitempty"`         // 评论人员
	LastModifier      *OkrObjectiveAlignedObjectiveOwner `json:"last_modifier,omitempty"`       // 修改评论的用户
	ContentModifyTime *int                               `json:"content_modify_time,omitempty"` // 评论的被修改时间  0 表示未被修改过, ms级别时间戳
	SolvedTime        *int                               `json:"solved_time,omitempty"`         // 评论被解决的时间   0 表示未解决过, ms级别时间戳
}

type OkrCommentBuilder

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

func NewOkrCommentBuilder

func NewOkrCommentBuilder() *OkrCommentBuilder

func (*OkrCommentBuilder) Build

func (builder *OkrCommentBuilder) Build() *OkrComment

func (*OkrCommentBuilder) CommentTime

func (builder *OkrCommentBuilder) CommentTime(commentTime int) *OkrCommentBuilder

全局评论时间 毫秒

示例值:1624267575928

func (*OkrCommentBuilder) Commentator

func (builder *OkrCommentBuilder) Commentator(commentator *OkrObjectiveAlignedObjectiveOwner) *OkrCommentBuilder

评论人员

示例值:

func (*OkrCommentBuilder) Content

func (builder *OkrCommentBuilder) Content(content string) *OkrCommentBuilder

全局评论内容

示例值:well done

func (*OkrCommentBuilder) ContentModifyTime

func (builder *OkrCommentBuilder) ContentModifyTime(contentModifyTime int) *OkrCommentBuilder

评论的被修改时间 0 表示未被修改过, ms级别时间戳

示例值:1624267575928

func (*OkrCommentBuilder) Id

func (builder *OkrCommentBuilder) Id(id string) *OkrCommentBuilder

全局评论ID

示例值:6976173067307927084

func (*OkrCommentBuilder) LastModifier

func (builder *OkrCommentBuilder) LastModifier(lastModifier *OkrObjectiveAlignedObjectiveOwner) *OkrCommentBuilder

修改评论的用户

示例值:

func (*OkrCommentBuilder) SolvedTime

func (builder *OkrCommentBuilder) SolvedTime(solvedTime int) *OkrCommentBuilder

评论被解决的时间 0 表示未解决过, ms级别时间戳

示例值:1624267575928

type OkrDetail

type OkrDetail struct {
	OkrId         *string               `json:"okr_id,omitempty"`         // OKR ID
	PeriodId      *string               `json:"period_id,omitempty"`      // 周期 ID
	PeriodType    *string               `json:"period_type,omitempty"`    // 周期类型:1、月周期;2、年周期
	Name          *OkrName              `json:"name,omitempty"`           // 周期展示名称
	CreateTime    *int                  `json:"create_time,omitempty"`    // 创建时间
	ModifyTime    *int                  `json:"modify_time,omitempty"`    // 修改时间
	ObjectiveList []*OkrDetailObjective `json:"objective_list,omitempty"` // objective 列表
	OkrScore      *int                  `json:"okr_score,omitempty"`      // 打分
}

type OkrDetailBuilder

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

func NewOkrDetailBuilder

func NewOkrDetailBuilder() *OkrDetailBuilder

func (*OkrDetailBuilder) Build

func (builder *OkrDetailBuilder) Build() *OkrDetail

func (*OkrDetailBuilder) CreateTime

func (builder *OkrDetailBuilder) CreateTime(createTime int) *OkrDetailBuilder

创建时间

示例值:1624267575928

func (*OkrDetailBuilder) ModifyTime

func (builder *OkrDetailBuilder) ModifyTime(modifyTime int) *OkrDetailBuilder

修改时间

示例值:1624329170463

func (*OkrDetailBuilder) Name

func (builder *OkrDetailBuilder) Name(name *OkrName) *OkrDetailBuilder

周期展示名称

示例值:

func (*OkrDetailBuilder) ObjectiveList

func (builder *OkrDetailBuilder) ObjectiveList(objectiveList []*OkrDetailObjective) *OkrDetailBuilder

objective 列表

示例值:

func (*OkrDetailBuilder) OkrId

func (builder *OkrDetailBuilder) OkrId(okrId string) *OkrDetailBuilder

OKR ID

示例值:6976173067307927084

func (*OkrDetailBuilder) OkrScore

func (builder *OkrDetailBuilder) OkrScore(okrScore int) *OkrDetailBuilder

打分

示例值:0.5

func (*OkrDetailBuilder) PeriodId

func (builder *OkrDetailBuilder) PeriodId(periodId string) *OkrDetailBuilder

周期 ID

示例值:6974586812973581868

func (*OkrDetailBuilder) PeriodType

func (builder *OkrDetailBuilder) PeriodType(periodType string) *OkrDetailBuilder

周期类型:1、月周期;2、年周期

示例值:1

type OkrDetailObjective

type OkrDetailObjective struct {
	Id                    *string                    `json:"id,omitempty"`                      // Objective ID
	OkrId                 *string                    `json:"okr_id,omitempty"`                  // 所属okr id
	UserId                *string                    `json:"user_id,omitempty"`                 // 用户id
	Pos                   *int                       `json:"pos,omitempty"`                     // pos
	Score                 *int                       `json:"score,omitempty"`                   // 得分
	Name                  *OkrName                   `json:"name,omitempty"`                    // Objective 名称
	Progress              *OkrName                   `json:"progress,omitempty"`                // Objective 进度描述
	CreateTime            *int                       `json:"create_time,omitempty"`             // 创建时间 毫秒
	ModifyTime            *int                       `json:"modify_time,omitempty"`             // 修改时间 毫秒
	KrList                []*OkrDetailObjectiveKr    `json:"kr_list,omitempty"`                 // Kr list
	AligningObjectiveList []*OkrDetailObjectiveAlign `json:"aligning_objective_list,omitempty"` // aligning_objective_list list
	AlignedObjectiveList  []*OkrDetailObjectiveAlign `json:"aligned_objective_list,omitempty"`  // aligned_objective_list list
	Weight                *float64                   `json:"weight,omitempty"`                  // 权重
}

type OkrDetailObjectiveAlign

type OkrDetailObjectiveAlign struct {
	Id     *string `json:"id,omitempty"`      // Objective的ID
	OkrId  *string `json:"okr_id,omitempty"`  // OKR的ID
	UserId *string `json:"user_id,omitempty"` // 该Objective的Owner
}

type OkrDetailObjectiveAlignBuilder

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

func NewOkrDetailObjectiveAlignBuilder

func NewOkrDetailObjectiveAlignBuilder() *OkrDetailObjectiveAlignBuilder

func (*OkrDetailObjectiveAlignBuilder) Build

func (*OkrDetailObjectiveAlignBuilder) Id

Objective的ID

示例值:6975871409026975276

func (*OkrDetailObjectiveAlignBuilder) OkrId

OKR的ID

示例值:6975085709464143404

func (*OkrDetailObjectiveAlignBuilder) UserId

该Objective的Owner

示例值:6975085709464143404

type OkrDetailObjectiveBuilder

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

func NewOkrDetailObjectiveBuilder

func NewOkrDetailObjectiveBuilder() *OkrDetailObjectiveBuilder

func (*OkrDetailObjectiveBuilder) AlignedObjectiveList

func (builder *OkrDetailObjectiveBuilder) AlignedObjectiveList(alignedObjectiveList []*OkrDetailObjectiveAlign) *OkrDetailObjectiveBuilder

aligned_objective_list list

示例值:

func (*OkrDetailObjectiveBuilder) AligningObjectiveList

func (builder *OkrDetailObjectiveBuilder) AligningObjectiveList(aligningObjectiveList []*OkrDetailObjectiveAlign) *OkrDetailObjectiveBuilder

aligning_objective_list list

示例值:

func (*OkrDetailObjectiveBuilder) Build

func (*OkrDetailObjectiveBuilder) CreateTime

func (builder *OkrDetailObjectiveBuilder) CreateTime(createTime int) *OkrDetailObjectiveBuilder

创建时间 毫秒

示例值:1624327915435

func (*OkrDetailObjectiveBuilder) Id

Objective ID

示例值:6976243668438730284

func (*OkrDetailObjectiveBuilder) KrList

Kr list

示例值:

func (*OkrDetailObjectiveBuilder) ModifyTime

func (builder *OkrDetailObjectiveBuilder) ModifyTime(modifyTime int) *OkrDetailObjectiveBuilder

修改时间 毫秒

示例值:1624329170551

func (*OkrDetailObjectiveBuilder) Name

Objective 名称

示例值:

func (*OkrDetailObjectiveBuilder) OkrId

所属okr id

示例值:6976173067307927084

func (*OkrDetailObjectiveBuilder) Pos

pos

示例值:0

func (*OkrDetailObjectiveBuilder) Progress

func (builder *OkrDetailObjectiveBuilder) Progress(progress *OkrName) *OkrDetailObjectiveBuilder

Objective 进度描述

示例值:

func (*OkrDetailObjectiveBuilder) Score

得分

示例值:0

func (*OkrDetailObjectiveBuilder) UserId

用户id

示例值:ou_186301103180d3469a0bfd6e80977ec9

func (*OkrDetailObjectiveBuilder) Weight

权重

示例值:100

type OkrDetailObjectiveKr

type OkrDetailObjectiveKr struct {
	Id         *string  `json:"id,omitempty"`          // Key Result ID
	Pos        *int     `json:"pos,omitempty"`         // pos
	Score      *int     `json:"score,omitempty"`       // KeyResult打分(0 - 100)
	Weight     *float64 `json:"weight,omitempty"`      // KeyResult的权重(0 - 100)(废弃)
	Content    *OkrName `json:"content,omitempty"`     // KeyResult 内容
	CreateTime *int     `json:"create_time,omitempty"` // 创建时间 毫秒
	ModifyTime *int     `json:"modify_time,omitempty"` // 修改时间 毫秒
}

type OkrDetailObjectiveKrBuilder

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

func NewOkrDetailObjectiveKrBuilder

func NewOkrDetailObjectiveKrBuilder() *OkrDetailObjectiveKrBuilder

func (*OkrDetailObjectiveKrBuilder) Build

func (*OkrDetailObjectiveKrBuilder) Content

KeyResult 内容

示例值:

func (*OkrDetailObjectiveKrBuilder) CreateTime

func (builder *OkrDetailObjectiveKrBuilder) CreateTime(createTime int) *OkrDetailObjectiveKrBuilder

创建时间 毫秒

示例值:1624327915448

func (*OkrDetailObjectiveKrBuilder) Id

Key Result ID

示例值:6976243668438992428

func (*OkrDetailObjectiveKrBuilder) ModifyTime

func (builder *OkrDetailObjectiveKrBuilder) ModifyTime(modifyTime int) *OkrDetailObjectiveKrBuilder

修改时间 毫秒

示例值:1624327915448

func (*OkrDetailObjectiveKrBuilder) Pos

pos

示例值:100

func (*OkrDetailObjectiveKrBuilder) Score

KeyResult打分(0 - 100)

示例值:100

func (*OkrDetailObjectiveKrBuilder) Weight

KeyResult的权重(0 - 100)(废弃)

示例值:100

type OkrListInfo

type OkrListInfo struct {
	CurrentOkr *Okr   `json:"current_okr,omitempty"` // 中文内容
	OkrList    []*Okr `json:"okr_list,omitempty"`    // 英文内容
}

type OkrListInfoBuilder

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

func NewOkrListInfoBuilder

func NewOkrListInfoBuilder() *OkrListInfoBuilder

func (*OkrListInfoBuilder) Build

func (builder *OkrListInfoBuilder) Build() *OkrListInfo

func (*OkrListInfoBuilder) CurrentOkr

func (builder *OkrListInfoBuilder) CurrentOkr(currentOkr *Okr) *OkrListInfoBuilder

中文内容

示例值:

func (*OkrListInfoBuilder) OkrList

func (builder *OkrListInfoBuilder) OkrList(okrList []*Okr) *OkrListInfoBuilder

英文内容

示例值:

type OkrName

type OkrName struct {
	Zh *string `json:"zh,omitempty"` // 中文内容
	En *string `json:"en,omitempty"` // 英文内容
}

type OkrNameBuilder

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

func NewOkrNameBuilder

func NewOkrNameBuilder() *OkrNameBuilder

func (*OkrNameBuilder) Build

func (builder *OkrNameBuilder) Build() *OkrName

func (*OkrNameBuilder) En

func (builder *OkrNameBuilder) En(en string) *OkrNameBuilder

英文内容

示例值:

func (*OkrNameBuilder) Zh

func (builder *OkrNameBuilder) Zh(zh string) *OkrNameBuilder

中文内容

示例值:

type OkrObjective

type OkrObjective struct {
	Id                                 *string                              `json:"id,omitempty"`                                      // Objective ID
	Permission                         *int                                 `json:"permission,omitempty"`                              // 权限
	Content                            *string                              `json:"content,omitempty"`                                 // Objective 内容
	ProgressReport                     *string                              `json:"progress_report,omitempty"`                         // Objective 备注内容
	Score                              *int                                 `json:"score,omitempty"`                                   // Objective 分数(0 - 100)
	Weight                             *float64                             `json:"weight,omitempty"`                                  // Objective的权重(0 - 100)
	ProgressRate                       *OkrObjectiveProgressRate            `json:"progress_rate,omitempty"`                           // Objective进度
	KrList                             []*OkrObjectiveKr                    `json:"kr_list,omitempty"`                                 // Objective KeyResult 列表
	AlignedObjectiveList               []*OkrObjectiveAlignedObjective      `json:"aligned_objective_list,omitempty"`                  // 对齐到该Objective的Objective列表
	AligningObjectiveList              []*OkrObjectiveAlignedObjective      `json:"aligning_objective_list,omitempty"`                 // 该Objective对齐到的Objective列表
	ProgressRecordList                 []*ProgressRecordSimplify            `json:"progress_record_list,omitempty"`                    // 该Objective的进度列表
	ProgressRatePercentLastUpdatedTime *string                              `json:"progress_rate_percent_last_updated_time,omitempty"` // 最后一次进度百分比更新时间 毫秒
	ProgressRateStatusLastUpdatedTime  *string                              `json:"progress_rate_status_last_updated_time,omitempty"`  // 最后一次状态更新时间 毫秒
	ProgressRecordLastUpdatedTime      *string                              `json:"progress_record_last_updated_time,omitempty"`       // 最后一次在侧边栏新增或者编辑进展的时间 毫秒
	ProgressReportLastUpdatedTime      *string                              `json:"progress_report_last_updated_time,omitempty"`       // 最后一次编辑备注的时间 毫秒
	ScoreLastUpdatedTime               *string                              `json:"score_last_updated_time,omitempty"`                 // 最后一次打分更新时间 毫秒
	Deadline                           *string                              `json:"deadline,omitempty"`                                // 截止时间 毫秒
	MentionedUserList                  []*OkrObjectiveAlignedObjectiveOwner `json:"mentioned_user_list,omitempty"`                     // 该Objective提到的人员列表
}

type OkrObjectiveAlignedObjective

type OkrObjectiveAlignedObjective struct {
	Id    *string                            `json:"id,omitempty"`     // Objective的ID
	OkrId *string                            `json:"okr_id,omitempty"` // OKR的ID
	Owner *OkrObjectiveAlignedObjectiveOwner `json:"owner,omitempty"`  // 该Objective的Owner
}

type OkrObjectiveAlignedObjectiveBuilder

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

func NewOkrObjectiveAlignedObjectiveBuilder

func NewOkrObjectiveAlignedObjectiveBuilder() *OkrObjectiveAlignedObjectiveBuilder

func (*OkrObjectiveAlignedObjectiveBuilder) Build

func (*OkrObjectiveAlignedObjectiveBuilder) Id

Objective的ID

示例值:1231231231213

func (*OkrObjectiveAlignedObjectiveBuilder) OkrId

OKR的ID

示例值:12323231231213

func (*OkrObjectiveAlignedObjectiveBuilder) Owner

该Objective的Owner

示例值:

type OkrObjectiveAlignedObjectiveOwner

type OkrObjectiveAlignedObjectiveOwner struct {
	OpenId *string `json:"open_id,omitempty"` // 用户的 open_id
	UserId *string `json:"user_id,omitempty"` // 用户的 user_id
}

type OkrObjectiveAlignedObjectiveOwnerBuilder

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

func NewOkrObjectiveAlignedObjectiveOwnerBuilder

func NewOkrObjectiveAlignedObjectiveOwnerBuilder() *OkrObjectiveAlignedObjectiveOwnerBuilder

func (*OkrObjectiveAlignedObjectiveOwnerBuilder) Build

func (*OkrObjectiveAlignedObjectiveOwnerBuilder) OpenId

用户的 open_id

示例值:od-asd2dasdasd

func (*OkrObjectiveAlignedObjectiveOwnerBuilder) UserId

用户的 user_id

示例值:ou-ux987dsf6x

type OkrObjectiveAlignment

type OkrObjectiveAlignment struct {
	Id     *string `json:"id,omitempty"`      // ID
	ToId   *string `json:"to_id,omitempty"`   // 目标id
	ToType *int    `json:"to_type,omitempty"` // 目标类型
}

type OkrObjectiveAlignmentBuilder

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

func NewOkrObjectiveAlignmentBuilder

func NewOkrObjectiveAlignmentBuilder() *OkrObjectiveAlignmentBuilder

func (*OkrObjectiveAlignmentBuilder) Build

func (*OkrObjectiveAlignmentBuilder) Id

ID

示例值:

func (*OkrObjectiveAlignmentBuilder) ToId

目标id

示例值:

func (*OkrObjectiveAlignmentBuilder) ToType

目标类型

示例值:

type OkrObjectiveBuilder

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

func NewOkrObjectiveBuilder

func NewOkrObjectiveBuilder() *OkrObjectiveBuilder

func (*OkrObjectiveBuilder) AlignedObjectiveList

func (builder *OkrObjectiveBuilder) AlignedObjectiveList(alignedObjectiveList []*OkrObjectiveAlignedObjective) *OkrObjectiveBuilder

对齐到该Objective的Objective列表

示例值:

func (*OkrObjectiveBuilder) AligningObjectiveList

func (builder *OkrObjectiveBuilder) AligningObjectiveList(aligningObjectiveList []*OkrObjectiveAlignedObjective) *OkrObjectiveBuilder

该Objective对齐到的Objective列表

示例值:

func (*OkrObjectiveBuilder) Build

func (builder *OkrObjectiveBuilder) Build() *OkrObjective

func (*OkrObjectiveBuilder) Content

func (builder *OkrObjectiveBuilder) Content(content string) *OkrObjectiveBuilder

Objective 内容

示例值:Objective 内容

func (*OkrObjectiveBuilder) Deadline

func (builder *OkrObjectiveBuilder) Deadline(deadline string) *OkrObjectiveBuilder

截止时间 毫秒

示例值:1618500278663

func (*OkrObjectiveBuilder) Id

Objective ID

示例值:1231231231231

func (*OkrObjectiveBuilder) KrList

func (builder *OkrObjectiveBuilder) KrList(krList []*OkrObjectiveKr) *OkrObjectiveBuilder

Objective KeyResult 列表

示例值:

func (*OkrObjectiveBuilder) MentionedUserList

func (builder *OkrObjectiveBuilder) MentionedUserList(mentionedUserList []*OkrObjectiveAlignedObjectiveOwner) *OkrObjectiveBuilder

该Objective提到的人员列表

示例值:

func (*OkrObjectiveBuilder) Permission

func (builder *OkrObjectiveBuilder) Permission(permission int) *OkrObjectiveBuilder

权限

示例值:0

func (*OkrObjectiveBuilder) ProgressRate

func (builder *OkrObjectiveBuilder) ProgressRate(progressRate *OkrObjectiveProgressRate) *OkrObjectiveBuilder

Objective进度

示例值:

func (*OkrObjectiveBuilder) ProgressRatePercentLastUpdatedTime

func (builder *OkrObjectiveBuilder) ProgressRatePercentLastUpdatedTime(progressRatePercentLastUpdatedTime string) *OkrObjectiveBuilder

最后一次进度百分比更新时间 毫秒

示例值:1618500278663

func (*OkrObjectiveBuilder) ProgressRateStatusLastUpdatedTime

func (builder *OkrObjectiveBuilder) ProgressRateStatusLastUpdatedTime(progressRateStatusLastUpdatedTime string) *OkrObjectiveBuilder

最后一次状态更新时间 毫秒

示例值:1618500278663

func (*OkrObjectiveBuilder) ProgressRecordLastUpdatedTime

func (builder *OkrObjectiveBuilder) ProgressRecordLastUpdatedTime(progressRecordLastUpdatedTime string) *OkrObjectiveBuilder

最后一次在侧边栏新增或者编辑进展的时间 毫秒

示例值:1618500278663

func (*OkrObjectiveBuilder) ProgressRecordList

func (builder *OkrObjectiveBuilder) ProgressRecordList(progressRecordList []*ProgressRecordSimplify) *OkrObjectiveBuilder

该Objective的进度列表

示例值:

func (*OkrObjectiveBuilder) ProgressReport

func (builder *OkrObjectiveBuilder) ProgressReport(progressReport string) *OkrObjectiveBuilder

Objective 备注内容

示例值:Objective 进度记录内容

func (*OkrObjectiveBuilder) ProgressReportLastUpdatedTime

func (builder *OkrObjectiveBuilder) ProgressReportLastUpdatedTime(progressReportLastUpdatedTime string) *OkrObjectiveBuilder

最后一次编辑备注的时间 毫秒

示例值:1618500278663

func (*OkrObjectiveBuilder) Score

func (builder *OkrObjectiveBuilder) Score(score int) *OkrObjectiveBuilder

Objective 分数(0 - 100)

示例值:100

func (*OkrObjectiveBuilder) ScoreLastUpdatedTime

func (builder *OkrObjectiveBuilder) ScoreLastUpdatedTime(scoreLastUpdatedTime string) *OkrObjectiveBuilder

最后一次打分更新时间 毫秒

示例值:1618500278663

func (*OkrObjectiveBuilder) Weight

func (builder *OkrObjectiveBuilder) Weight(weight float64) *OkrObjectiveBuilder

Objective的权重(0 - 100)

示例值:33.33

type OkrObjectiveKr

type OkrObjectiveKr struct {
	Id                                 *string                              `json:"id,omitempty"`                                      // Key Result ID
	Content                            *string                              `json:"content,omitempty"`                                 // KeyResult 内容
	Score                              *int                                 `json:"score,omitempty"`                                   // KeyResult打分(0 - 100)
	Weight                             *int                                 `json:"weight,omitempty"`                                  // KeyResult权重(0 - 100)(废弃)
	KrWeight                           *float64                             `json:"kr_weight,omitempty"`                               // KeyResult的权重(0 - 100)
	ProgressRate                       *OkrObjectiveProgressRate            `json:"progress_rate,omitempty"`                           // KR进度
	ProgressRecordList                 []*ProgressRecordSimplify            `json:"progress_record_list,omitempty"`                    // 该KR的进度列表
	ProgressRatePercentLastUpdatedTime *string                              `json:"progress_rate_percent_last_updated_time,omitempty"` // 最后一次进度百分比更新时间 毫秒
	ProgressRateStatusLastUpdatedTime  *string                              `json:"progress_rate_status_last_updated_time,omitempty"`  // 最后一次状态更新时间 毫秒
	ProgressRecordLastUpdatedTime      *string                              `json:"progress_record_last_updated_time,omitempty"`       // 最后一次在侧边栏新增或者编辑进展的时间 毫秒
	ProgressReportLastUpdatedTime      *string                              `json:"progress_report_last_updated_time,omitempty"`       // 最后一次编辑备注的时间 毫秒
	ScoreLastUpdatedTime               *string                              `json:"score_last_updated_time,omitempty"`                 // 最后一次打分更新时间 毫秒
	Deadline                           *string                              `json:"deadline,omitempty"`                                // 截止时间 毫秒
	MentionedUserList                  []*OkrObjectiveAlignedObjectiveOwner `json:"mentioned_user_list,omitempty"`                     // 该Objective提到的人员列表
}

type OkrObjectiveKrBuilder

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

func NewOkrObjectiveKrBuilder

func NewOkrObjectiveKrBuilder() *OkrObjectiveKrBuilder

func (*OkrObjectiveKrBuilder) Build

func (builder *OkrObjectiveKrBuilder) Build() *OkrObjectiveKr

func (*OkrObjectiveKrBuilder) Content

func (builder *OkrObjectiveKrBuilder) Content(content string) *OkrObjectiveKrBuilder

KeyResult 内容

示例值:KeyResult 内容

func (*OkrObjectiveKrBuilder) Deadline

func (builder *OkrObjectiveKrBuilder) Deadline(deadline string) *OkrObjectiveKrBuilder

截止时间 毫秒

示例值:1618500278663

func (*OkrObjectiveKrBuilder) Id

Key Result ID

示例值:1231231223

func (*OkrObjectiveKrBuilder) KrWeight

func (builder *OkrObjectiveKrBuilder) KrWeight(krWeight float64) *OkrObjectiveKrBuilder

KeyResult的权重(0 - 100)

示例值:33.33

func (*OkrObjectiveKrBuilder) MentionedUserList

func (builder *OkrObjectiveKrBuilder) MentionedUserList(mentionedUserList []*OkrObjectiveAlignedObjectiveOwner) *OkrObjectiveKrBuilder

该Objective提到的人员列表

示例值:

func (*OkrObjectiveKrBuilder) ProgressRate

func (builder *OkrObjectiveKrBuilder) ProgressRate(progressRate *OkrObjectiveProgressRate) *OkrObjectiveKrBuilder

KR进度

示例值:

func (*OkrObjectiveKrBuilder) ProgressRatePercentLastUpdatedTime

func (builder *OkrObjectiveKrBuilder) ProgressRatePercentLastUpdatedTime(progressRatePercentLastUpdatedTime string) *OkrObjectiveKrBuilder

最后一次进度百分比更新时间 毫秒

示例值:1618500278663

func (*OkrObjectiveKrBuilder) ProgressRateStatusLastUpdatedTime

func (builder *OkrObjectiveKrBuilder) ProgressRateStatusLastUpdatedTime(progressRateStatusLastUpdatedTime string) *OkrObjectiveKrBuilder

最后一次状态更新时间 毫秒

示例值:1618500278663

func (*OkrObjectiveKrBuilder) ProgressRecordLastUpdatedTime

func (builder *OkrObjectiveKrBuilder) ProgressRecordLastUpdatedTime(progressRecordLastUpdatedTime string) *OkrObjectiveKrBuilder

最后一次在侧边栏新增或者编辑进展的时间 毫秒

示例值:1618500278663

func (*OkrObjectiveKrBuilder) ProgressRecordList

func (builder *OkrObjectiveKrBuilder) ProgressRecordList(progressRecordList []*ProgressRecordSimplify) *OkrObjectiveKrBuilder

该KR的进度列表

示例值:

func (*OkrObjectiveKrBuilder) ProgressReportLastUpdatedTime

func (builder *OkrObjectiveKrBuilder) ProgressReportLastUpdatedTime(progressReportLastUpdatedTime string) *OkrObjectiveKrBuilder

最后一次编辑备注的时间 毫秒

示例值:1618500278663

func (*OkrObjectiveKrBuilder) Score

func (builder *OkrObjectiveKrBuilder) Score(score int) *OkrObjectiveKrBuilder

KeyResult打分(0 - 100)

示例值:100

func (*OkrObjectiveKrBuilder) ScoreLastUpdatedTime

func (builder *OkrObjectiveKrBuilder) ScoreLastUpdatedTime(scoreLastUpdatedTime string) *OkrObjectiveKrBuilder

最后一次打分更新时间 毫秒

示例值:1618500278663

func (*OkrObjectiveKrBuilder) Weight

func (builder *OkrObjectiveKrBuilder) Weight(weight int) *OkrObjectiveKrBuilder

KeyResult权重(0 - 100)(废弃)

示例值:100

type OkrObjectiveProgressRate

type OkrObjectiveProgressRate struct {
	Percent *int    `json:"percent,omitempty"` // Objective 进度百分比 >= 0
	Status  *string `json:"status,omitempty"`  // Objective 进度状态:;- "-1" 暂无;- "0" 正常;- "1" 风险;- "2" 延期
}

type OkrObjectiveProgressRateBuilder

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

func NewOkrObjectiveProgressRateBuilder

func NewOkrObjectiveProgressRateBuilder() *OkrObjectiveProgressRateBuilder

func (*OkrObjectiveProgressRateBuilder) Build

func (*OkrObjectiveProgressRateBuilder) Percent

Objective 进度百分比 >= 0

示例值:50

func (*OkrObjectiveProgressRateBuilder) Status

Objective 进度状态:;- "-1" 暂无;- "0" 正常;- "1" 风险;- "2" 延期

示例值:1

type OkrReview

type OkrReview struct {
	UserId           *OkrObjectiveAlignedObjectiveOwner `json:"user_id,omitempty"`            // 复盘的用户
	ReviewPeriodList []*OkrReviewPeriod                 `json:"review_period_list,omitempty"` // 用户对应的OKR复盘列表
}

type OkrReviewBuilder

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

func NewOkrReviewBuilder

func NewOkrReviewBuilder() *OkrReviewBuilder

func (*OkrReviewBuilder) Build

func (builder *OkrReviewBuilder) Build() *OkrReview

func (*OkrReviewBuilder) ReviewPeriodList

func (builder *OkrReviewBuilder) ReviewPeriodList(reviewPeriodList []*OkrReviewPeriod) *OkrReviewBuilder

用户对应的OKR复盘列表

示例值:

func (*OkrReviewBuilder) UserId

复盘的用户

示例值:

type OkrReviewPeriod

type OkrReviewPeriod struct {
	PeriodId           *string               `json:"period_id,omitempty"`            // 周期ID
	CycleReviewList    []*OkrReviewPeriodUrl `json:"cycle_review_list,omitempty"`    // 复盘文档
	ProgressReportList []*OkrReviewPeriodUrl `json:"progress_report_list,omitempty"` // 进展报告
}

type OkrReviewPeriodBuilder

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

func NewOkrReviewPeriodBuilder

func NewOkrReviewPeriodBuilder() *OkrReviewPeriodBuilder

func (*OkrReviewPeriodBuilder) Build

func (builder *OkrReviewPeriodBuilder) Build() *OkrReviewPeriod

func (*OkrReviewPeriodBuilder) CycleReviewList

func (builder *OkrReviewPeriodBuilder) CycleReviewList(cycleReviewList []*OkrReviewPeriodUrl) *OkrReviewPeriodBuilder

复盘文档

示例值:

func (*OkrReviewPeriodBuilder) PeriodId

func (builder *OkrReviewPeriodBuilder) PeriodId(periodId string) *OkrReviewPeriodBuilder

周期ID

示例值:6951461264858777132

func (*OkrReviewPeriodBuilder) ProgressReportList

func (builder *OkrReviewPeriodBuilder) ProgressReportList(progressReportList []*OkrReviewPeriodUrl) *OkrReviewPeriodBuilder

进展报告

示例值:

type OkrReviewPeriodUrl

type OkrReviewPeriodUrl struct {
	Url        *string `json:"url,omitempty"`         // 文档链接
	CreateTime *string `json:"create_time,omitempty"` // 创建时间 毫秒
}

type OkrReviewPeriodUrlBuilder

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

func NewOkrReviewPeriodUrlBuilder

func NewOkrReviewPeriodUrlBuilder() *OkrReviewPeriodUrlBuilder

func (*OkrReviewPeriodUrlBuilder) Build

func (*OkrReviewPeriodUrlBuilder) CreateTime

func (builder *OkrReviewPeriodUrlBuilder) CreateTime(createTime string) *OkrReviewPeriodUrlBuilder

创建时间 毫秒

示例值:1618500278663

func (*OkrReviewPeriodUrlBuilder) Url

文档链接

示例值:https://bytedance.feishu.cn/drive/home/

type OkrService

type OkrService struct {
	Image                 *image                 // 图片
	MetricSource          *metricSource          // 指标库
	MetricSourceTable     *metricSourceTable     // 指标表
	MetricSourceTableItem *metricSourceTableItem // 指标项
	Okr                   *okr                   // OKR
	Period                *period                // OKR周期
	ProgressRecord        *progressRecord        // OKR进展记录
	UserOkr               *userOkr               // 用户OKR
	// contains filtered or unexported fields
}

func NewService

func NewService(config *larkcore.Config) *OkrService

type OkrSimple

type OkrSimple struct {
	Name       *OkrName `json:"name,omitempty"`        // 周期展示名称
	OkrId      *string  `json:"okr_id,omitempty"`      // OKR ID
	PeriodId   *string  `json:"period_id,omitempty"`   // 周期 ID
	PeriodType *string  `json:"period_type,omitempty"` // 周期类型:1、月周期;2、年周期
}

type OkrSimpleBuilder

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

func NewOkrSimpleBuilder

func NewOkrSimpleBuilder() *OkrSimpleBuilder

func (*OkrSimpleBuilder) Build

func (builder *OkrSimpleBuilder) Build() *OkrSimple

func (*OkrSimpleBuilder) Name

func (builder *OkrSimpleBuilder) Name(name *OkrName) *OkrSimpleBuilder

周期展示名称

示例值:

func (*OkrSimpleBuilder) OkrId

func (builder *OkrSimpleBuilder) OkrId(okrId string) *OkrSimpleBuilder

OKR ID

示例值:

func (*OkrSimpleBuilder) PeriodId

func (builder *OkrSimpleBuilder) PeriodId(periodId string) *OkrSimpleBuilder

周期 ID

示例值:

func (*OkrSimpleBuilder) PeriodType

func (builder *OkrSimpleBuilder) PeriodType(periodType string) *OkrSimpleBuilder

周期类型:1、月周期;2、年周期

示例值:

type PatchMetricSourceTableItemPathReqBodyBuilder added in v3.0.10

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

func NewPatchMetricSourceTableItemPathReqBodyBuilder added in v3.0.10

func NewPatchMetricSourceTableItemPathReqBodyBuilder() *PatchMetricSourceTableItemPathReqBodyBuilder

func (*PatchMetricSourceTableItemPathReqBodyBuilder) Build added in v3.0.10

func (*PatchMetricSourceTableItemPathReqBodyBuilder) MetricCurrentValue added in v3.0.10

指标进度值

示例值:2.0

func (*PatchMetricSourceTableItemPathReqBodyBuilder) MetricInitialValue added in v3.0.10

指标起始值

示例值:1.0

func (*PatchMetricSourceTableItemPathReqBodyBuilder) MetricTargetValue added in v3.0.10

指标目标值

示例值:3.0

func (*PatchMetricSourceTableItemPathReqBodyBuilder) SupportedUserId added in v3.0.10

指标支撑的上级人员 id

示例值:7041857032248410131

type PatchMetricSourceTableItemReq added in v3.0.10

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

type PatchMetricSourceTableItemReqBody added in v3.0.10

type PatchMetricSourceTableItemReqBody struct {
	MetricInitialValue *float64 `json:"metric_initial_value,omitempty"` // 指标起始值
	MetricTargetValue  *float64 `json:"metric_target_value,omitempty"`  // 指标目标值
	MetricCurrentValue *float64 `json:"metric_current_value,omitempty"` // 指标进度值
	SupportedUserId    *string  `json:"supported_user_id,omitempty"`    // 指标支撑的上级人员 id
}

type PatchMetricSourceTableItemReqBodyBuilder added in v3.0.10

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

func NewPatchMetricSourceTableItemReqBodyBuilder added in v3.0.10

func NewPatchMetricSourceTableItemReqBodyBuilder() *PatchMetricSourceTableItemReqBodyBuilder

func (*PatchMetricSourceTableItemReqBodyBuilder) Build added in v3.0.10

func (*PatchMetricSourceTableItemReqBodyBuilder) MetricCurrentValue added in v3.0.10

func (builder *PatchMetricSourceTableItemReqBodyBuilder) MetricCurrentValue(metricCurrentValue float64) *PatchMetricSourceTableItemReqBodyBuilder

指标进度值

示例值:2.0

func (*PatchMetricSourceTableItemReqBodyBuilder) MetricInitialValue added in v3.0.10

func (builder *PatchMetricSourceTableItemReqBodyBuilder) MetricInitialValue(metricInitialValue float64) *PatchMetricSourceTableItemReqBodyBuilder

指标起始值

示例值:1.0

func (*PatchMetricSourceTableItemReqBodyBuilder) MetricTargetValue added in v3.0.10

func (builder *PatchMetricSourceTableItemReqBodyBuilder) MetricTargetValue(metricTargetValue float64) *PatchMetricSourceTableItemReqBodyBuilder

指标目标值

示例值:3.0

func (*PatchMetricSourceTableItemReqBodyBuilder) SupportedUserId added in v3.0.10

指标支撑的上级人员 id

示例值:7041857032248410131

type PatchMetricSourceTableItemReqBuilder added in v3.0.10

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

func NewPatchMetricSourceTableItemReqBuilder added in v3.0.10

func NewPatchMetricSourceTableItemReqBuilder() *PatchMetricSourceTableItemReqBuilder

func (*PatchMetricSourceTableItemReqBuilder) Body added in v3.0.10

- 该接口用于更新某项指标,接口仅限 OKR 企业版使用。;; 更新成功后 OKR 系统会给以下人员发送消息通知:;; - 首次更新目标值的人员 ;; - 已经将指标添加为 KR、且本次目标值/起始值/支撑的上级有变更的人员,不包含仅更新了进度值的人员

func (*PatchMetricSourceTableItemReqBuilder) Build added in v3.0.10

func (*PatchMetricSourceTableItemReqBuilder) MetricItemId added in v3.0.10

okr指标项id

示例值:7041857032248410131

func (*PatchMetricSourceTableItemReqBuilder) MetricSourceId added in v3.0.10

func (builder *PatchMetricSourceTableItemReqBuilder) MetricSourceId(metricSourceId string) *PatchMetricSourceTableItemReqBuilder

okr指标库id

示例值:7041857032248410131

func (*PatchMetricSourceTableItemReqBuilder) MetricTableId added in v3.0.10

okr指标表id

示例值:7041857032248410131

func (*PatchMetricSourceTableItemReqBuilder) UserIdType added in v3.0.10

此次调用中使用的用户ID的类型

示例值:

type PatchMetricSourceTableItemResp added in v3.0.10

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

func (*PatchMetricSourceTableItemResp) Success added in v3.0.10

func (resp *PatchMetricSourceTableItemResp) Success() bool

type PatchMetricSourceTableItemRespData added in v3.0.10

type PatchMetricSourceTableItemRespData struct {
	MetricItemId       *string     `json:"metric_item_id,omitempty"`       // 指标表id
	UserId             *string     `json:"user_id,omitempty"`              // 指标承接人员id
	PeriodId           *string     `json:"period_id,omitempty"`            // 指标的okr周期
	MetricUnit         *MetricUnit `json:"metric_unit,omitempty"`          // 指标单位
	MetricInitialValue *float64    `json:"metric_initial_value,omitempty"` // 指标起始值
	MetricTargetValue  *float64    `json:"metric_target_value,omitempty"`  // 指标目标值
	MetricCurrentValue *float64    `json:"metric_current_value,omitempty"` // 指标进度值
	SupportedUserId    *string     `json:"supported_user_id,omitempty"`    // 指标支撑的上级人员id
	KrId               *string     `json:"kr_id,omitempty"`                // 指标关联的kr
	UpdatedAt          *string     `json:"updated_at,omitempty"`           // 更新时间
	UpdatedBy          *string     `json:"updated_by,omitempty"`           // 更新人
}

type Period

type Period struct {
	Id     *string `json:"id,omitempty"`      // id
	ZhName *string `json:"zh_name,omitempty"` // 中文名称
	EnName *string `json:"en_name,omitempty"` // 英文名称
	Status *int    `json:"status,omitempty"`  // 启用状态
}

type PeriodBuilder

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

func NewPeriodBuilder

func NewPeriodBuilder() *PeriodBuilder

func (*PeriodBuilder) Build

func (builder *PeriodBuilder) Build() *Period

func (*PeriodBuilder) EnName

func (builder *PeriodBuilder) EnName(enName string) *PeriodBuilder

英文名称

示例值:english period

func (*PeriodBuilder) Id

func (builder *PeriodBuilder) Id(id string) *PeriodBuilder

id

示例值:635782378412311

func (*PeriodBuilder) Status

func (builder *PeriodBuilder) Status(status int) *PeriodBuilder

启用状态

示例值:0

func (*PeriodBuilder) ZhName

func (builder *PeriodBuilder) ZhName(zhName string) *PeriodBuilder

中文名称

示例值:中文周期

type PeriodRule added in v3.0.12

type PeriodRule struct {
	PeriodRuleId *string `json:"period_rule_id,omitempty"` // 周期规则ID
	Type         *string `json:"type,omitempty"`           // 周期类型;- year: 年度周期;- month: 月度周期
	Length       *int    `json:"length,omitempty"`         // 周期长度(月)
	FirstMonth   *int    `json:"first_month,omitempty"`    // 每年首个开始月份
}

type PeriodRuleBuilder added in v3.0.12

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

func NewPeriodRuleBuilder added in v3.0.12

func NewPeriodRuleBuilder() *PeriodRuleBuilder

func (*PeriodRuleBuilder) Build added in v3.0.12

func (builder *PeriodRuleBuilder) Build() *PeriodRule

func (*PeriodRuleBuilder) FirstMonth added in v3.0.12

func (builder *PeriodRuleBuilder) FirstMonth(firstMonth int) *PeriodRuleBuilder

每年首个开始月份

示例值:12

func (*PeriodRuleBuilder) Length added in v3.0.12

func (builder *PeriodRuleBuilder) Length(length int) *PeriodRuleBuilder

周期长度(月)

示例值:12

func (*PeriodRuleBuilder) PeriodRuleId added in v3.0.12

func (builder *PeriodRuleBuilder) PeriodRuleId(periodRuleId string) *PeriodRuleBuilder

周期规则ID

示例值:134

func (*PeriodRuleBuilder) Type added in v3.0.12

func (builder *PeriodRuleBuilder) Type(type_ string) *PeriodRuleBuilder

周期类型;- year: 年度周期;- month: 月度周期

示例值:year

type ProgressItem

type ProgressItem struct {
	Content     *string  `json:"content,omitempty"`      // 进度内容
	Timestamp   *string  `json:"timestamp,omitempty"`    // 更新时间
	MentionList []string `json:"mention_list,omitempty"` // 负责人
}

type ProgressItemBuilder

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

func NewProgressItemBuilder

func NewProgressItemBuilder() *ProgressItemBuilder

func (*ProgressItemBuilder) Build

func (builder *ProgressItemBuilder) Build() *ProgressItem

func (*ProgressItemBuilder) Content

func (builder *ProgressItemBuilder) Content(content string) *ProgressItemBuilder

进度内容

示例值:

func (*ProgressItemBuilder) MentionList

func (builder *ProgressItemBuilder) MentionList(mentionList []string) *ProgressItemBuilder

负责人

示例值:

func (*ProgressItemBuilder) Timestamp

func (builder *ProgressItemBuilder) Timestamp(timestamp string) *ProgressItemBuilder

更新时间

示例值:

type ProgressRate

type ProgressRate struct {
	Percent *int `json:"percent,omitempty"` // 进度百分比
	Status  *int `json:"status,omitempty"`  // 状态
}

type ProgressRateBuilder

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

func NewProgressRateBuilder

func NewProgressRateBuilder() *ProgressRateBuilder

func (*ProgressRateBuilder) Build

func (builder *ProgressRateBuilder) Build() *ProgressRate

func (*ProgressRateBuilder) Percent

func (builder *ProgressRateBuilder) Percent(percent int) *ProgressRateBuilder

进度百分比

示例值:

func (*ProgressRateBuilder) Status

func (builder *ProgressRateBuilder) Status(status int) *ProgressRateBuilder

状态

示例值:

type ProgressRecord

type ProgressRecord struct {
	ProgressId *string       `json:"progress_id,omitempty"` // OKR 进展ID
	ModifyTime *string       `json:"modify_time,omitempty"` // 进展更新时间 毫秒
	Content    *ContentBlock `json:"content,omitempty"`     // 进展 对应的 Content 详细内容
}

type ProgressRecordBuilder

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

func NewProgressRecordBuilder

func NewProgressRecordBuilder() *ProgressRecordBuilder

func (*ProgressRecordBuilder) Build

func (builder *ProgressRecordBuilder) Build() *ProgressRecord

func (*ProgressRecordBuilder) Content

func (builder *ProgressRecordBuilder) Content(content *ContentBlock) *ProgressRecordBuilder

进展 对应的 Content 详细内容

示例值:

func (*ProgressRecordBuilder) ModifyTime

func (builder *ProgressRecordBuilder) ModifyTime(modifyTime string) *ProgressRecordBuilder

进展更新时间 毫秒

示例值:1618500278663

func (*ProgressRecordBuilder) ProgressId

func (builder *ProgressRecordBuilder) ProgressId(progressId string) *ProgressRecordBuilder

OKR 进展ID

示例值:7041469619902693396

type ProgressRecordSimplify

type ProgressRecordSimplify struct {
	Id *string `json:"id,omitempty"` // OKR 进展记录ID
}

type ProgressRecordSimplifyBuilder

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

func NewProgressRecordSimplifyBuilder

func NewProgressRecordSimplifyBuilder() *ProgressRecordSimplifyBuilder

func (*ProgressRecordSimplifyBuilder) Build

func (*ProgressRecordSimplifyBuilder) Id

OKR 进展记录ID

示例值:7041469619902693396

type UpdateProgressRecordPathReqBodyBuilder

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

func NewUpdateProgressRecordPathReqBodyBuilder

func NewUpdateProgressRecordPathReqBodyBuilder() *UpdateProgressRecordPathReqBodyBuilder

func (*UpdateProgressRecordPathReqBodyBuilder) Build

func (*UpdateProgressRecordPathReqBodyBuilder) Content

进展详情 富文本格式

示例值:

type UpdateProgressRecordReq

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

type UpdateProgressRecordReqBody

type UpdateProgressRecordReqBody struct {
	Content *ContentBlock `json:"content,omitempty"` // 进展详情 富文本格式
}

type UpdateProgressRecordReqBodyBuilder

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

func NewUpdateProgressRecordReqBodyBuilder

func NewUpdateProgressRecordReqBodyBuilder() *UpdateProgressRecordReqBodyBuilder

func (*UpdateProgressRecordReqBodyBuilder) Build

func (*UpdateProgressRecordReqBodyBuilder) Content

进展详情 富文本格式

示例值:

type UpdateProgressRecordReqBuilder

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

func NewUpdateProgressRecordReqBuilder

func NewUpdateProgressRecordReqBuilder() *UpdateProgressRecordReqBuilder

func (*UpdateProgressRecordReqBuilder) Body

根据OKR进展记录ID更新进展详情

func (*UpdateProgressRecordReqBuilder) Build

func (*UpdateProgressRecordReqBuilder) ProgressId

func (builder *UpdateProgressRecordReqBuilder) ProgressId(progressId string) *UpdateProgressRecordReqBuilder

待更新的 OKR进展记录 ID

示例值:7041857032248410131

func (*UpdateProgressRecordReqBuilder) UserIdType added in v3.0.10

func (builder *UpdateProgressRecordReqBuilder) UserIdType(userIdType string) *UpdateProgressRecordReqBuilder

此次调用中使用的用户ID的类型

示例值:

type UpdateProgressRecordResp

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

func (*UpdateProgressRecordResp) Success

func (resp *UpdateProgressRecordResp) Success() bool

type UpdateProgressRecordRespData

type UpdateProgressRecordRespData struct {
	ProgressId *string       `json:"progress_id,omitempty"` // OKR 进展ID
	ModifyTime *string       `json:"modify_time,omitempty"` // 进展更新时间 毫秒
	Content    *ContentBlock `json:"content,omitempty"`     // 进展 对应的 Content 详细内容
}

type UploadImagePathReqBodyBuilder

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

func NewUploadImagePathReqBodyBuilder

func NewUploadImagePathReqBodyBuilder() *UploadImagePathReqBodyBuilder

func (*UploadImagePathReqBodyBuilder) Build

func (*UploadImagePathReqBodyBuilder) DataPath

图片

示例值:file binary

func (*UploadImagePathReqBodyBuilder) TargetId

图片的目标ID

示例值:6974586812998174252

func (*UploadImagePathReqBodyBuilder) TargetType

func (builder *UploadImagePathReqBodyBuilder) TargetType(targetType int) *UploadImagePathReqBodyBuilder

图片使用的目标类型

示例值:1

type UploadImageReq

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

type UploadImageReqBody

type UploadImageReqBody struct {
	Data       io.Reader `json:"data,omitempty"`        // 图片
	TargetId   *string   `json:"target_id,omitempty"`   // 图片的目标ID
	TargetType *int      `json:"target_type,omitempty"` // 图片使用的目标类型
}

type UploadImageReqBodyBuilder

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

func NewUploadImageReqBodyBuilder

func NewUploadImageReqBodyBuilder() *UploadImageReqBodyBuilder

func (*UploadImageReqBodyBuilder) Build

func (*UploadImageReqBodyBuilder) Data

图片

示例值:file binary

func (*UploadImageReqBodyBuilder) TargetId

func (builder *UploadImageReqBodyBuilder) TargetId(targetId string) *UploadImageReqBodyBuilder

图片的目标ID

示例值:6974586812998174252

func (*UploadImageReqBodyBuilder) TargetType

func (builder *UploadImageReqBodyBuilder) TargetType(targetType int) *UploadImageReqBodyBuilder

图片使用的目标类型

示例值:1

type UploadImageReqBuilder

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

func NewUploadImageReqBuilder

func NewUploadImageReqBuilder() *UploadImageReqBuilder

func (*UploadImageReqBuilder) Body

上传图片

func (*UploadImageReqBuilder) Build

func (builder *UploadImageReqBuilder) Build() *UploadImageReq

type UploadImageResp

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

func (*UploadImageResp) Success

func (resp *UploadImageResp) Success() bool

type UploadImageRespData

type UploadImageRespData struct {
	FileToken *string `json:"file_token,omitempty"` // 图片token
	Url       *string `json:"url,omitempty"`        // 图片下载链接
}

type UpsertObjective

type UpsertObjective struct {
	Content      *string              `json:"content,omitempty"`       // OKR内容
	MentionList  []string             `json:"mention_list,omitempty"`  // 负责人列表
	KrList       []*UpsertObjectiveKr `json:"kr_list,omitempty"`       // KR列表
	ProgressRate *ProgressRate        `json:"progress_rate,omitempty"` // Objective进度状态
	ProgressList []*ProgressItem      `json:"progress_list,omitempty"` // Objective进度列表
	Weight       *float64             `json:"weight,omitempty"`        // OKR权重
}

type UpsertObjectiveBuilder

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

func NewUpsertObjectiveBuilder

func NewUpsertObjectiveBuilder() *UpsertObjectiveBuilder

func (*UpsertObjectiveBuilder) Build

func (builder *UpsertObjectiveBuilder) Build() *UpsertObjective

func (*UpsertObjectiveBuilder) Content

func (builder *UpsertObjectiveBuilder) Content(content string) *UpsertObjectiveBuilder

OKR内容

示例值:okr

func (*UpsertObjectiveBuilder) KrList

KR列表

示例值:

func (*UpsertObjectiveBuilder) MentionList

func (builder *UpsertObjectiveBuilder) MentionList(mentionList []string) *UpsertObjectiveBuilder

负责人列表

示例值:

func (*UpsertObjectiveBuilder) ProgressList

func (builder *UpsertObjectiveBuilder) ProgressList(progressList []*ProgressItem) *UpsertObjectiveBuilder

Objective进度列表

示例值:

func (*UpsertObjectiveBuilder) ProgressRate

func (builder *UpsertObjectiveBuilder) ProgressRate(progressRate *ProgressRate) *UpsertObjectiveBuilder

Objective进度状态

示例值:

func (*UpsertObjectiveBuilder) Weight

func (builder *UpsertObjectiveBuilder) Weight(weight float64) *UpsertObjectiveBuilder

OKR权重

示例值:100

type UpsertObjectiveKr

type UpsertObjectiveKr struct {
	Content      *string         `json:"content,omitempty"`       // OKR内容
	MentionList  []string        `json:"mention_list,omitempty"`  // 负责人列表
	Score        *int            `json:"score,omitempty"`         // 得分
	ProgressRate *ProgressRate   `json:"progress_rate,omitempty"` // Objective进度状态
	ProgressList []*ProgressItem `json:"progress_list,omitempty"` // Objective进度列表
	Weight       *float64        `json:"weight,omitempty"`        // OKR权重
}

type UpsertObjectiveKrBuilder

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

func NewUpsertObjectiveKrBuilder

func NewUpsertObjectiveKrBuilder() *UpsertObjectiveKrBuilder

func (*UpsertObjectiveKrBuilder) Build

func (builder *UpsertObjectiveKrBuilder) Build() *UpsertObjectiveKr

func (*UpsertObjectiveKrBuilder) Content

func (builder *UpsertObjectiveKrBuilder) Content(content string) *UpsertObjectiveKrBuilder

OKR内容

示例值:okr

func (*UpsertObjectiveKrBuilder) MentionList

func (builder *UpsertObjectiveKrBuilder) MentionList(mentionList []string) *UpsertObjectiveKrBuilder

负责人列表

示例值:

func (*UpsertObjectiveKrBuilder) ProgressList

func (builder *UpsertObjectiveKrBuilder) ProgressList(progressList []*ProgressItem) *UpsertObjectiveKrBuilder

Objective进度列表

示例值:

func (*UpsertObjectiveKrBuilder) ProgressRate

func (builder *UpsertObjectiveKrBuilder) ProgressRate(progressRate *ProgressRate) *UpsertObjectiveKrBuilder

Objective进度状态

示例值:

func (*UpsertObjectiveKrBuilder) Score

func (builder *UpsertObjectiveKrBuilder) Score(score int) *UpsertObjectiveKrBuilder

得分

示例值:100

func (*UpsertObjectiveKrBuilder) Weight

OKR权重

示例值:100

type User

type User struct {
	Id *string `json:"id,omitempty"` // id
}

type UserBuilder

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

func NewUserBuilder

func NewUserBuilder() *UserBuilder

func (*UserBuilder) Build

func (builder *UserBuilder) Build() *User

func (*UserBuilder) Id

func (builder *UserBuilder) Id(id string) *UserBuilder

id

示例值:

type UserOkr

type UserOkr struct {
	Id            *string             `json:"id,omitempty"`             // OKR ID
	Name          *string             `json:"name,omitempty"`           // OKR周期名称(lang指定中英文)
	Permission    *int                `json:"permission,omitempty"`     // 权限,0无权限,1有权限
	ObjectiveList []*UserOkrObjective `json:"objective_list,omitempty"` // OKR的Objective 列表
}

type UserOkrBuilder

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

func NewUserOkrBuilder

func NewUserOkrBuilder() *UserOkrBuilder

func (*UserOkrBuilder) Build

func (builder *UserOkrBuilder) Build() *UserOkr

func (*UserOkrBuilder) Id

func (builder *UserOkrBuilder) Id(id string) *UserOkrBuilder

OKR ID

示例值:

func (*UserOkrBuilder) Name

func (builder *UserOkrBuilder) Name(name string) *UserOkrBuilder

OKR周期名称(lang指定中英文)

示例值:

func (*UserOkrBuilder) ObjectiveList

func (builder *UserOkrBuilder) ObjectiveList(objectiveList []*UserOkrObjective) *UserOkrBuilder

OKR的Objective 列表

示例值:

func (*UserOkrBuilder) Permission

func (builder *UserOkrBuilder) Permission(permission int) *UserOkrBuilder

权限,0无权限,1有权限

示例值:

type UserOkrObjective

type UserOkrObjective struct {
	Id                    *string                             `json:"id,omitempty"`                      // Objective ID
	Permission            *int                                `json:"permission,omitempty"`              // 权限,0无权限,1有权限
	Content               *string                             `json:"content,omitempty"`                 // Objective 内容
	ProgressReport        *string                             `json:"progress_report,omitempty"`         // Objective 进度记录内容
	Score                 *string                             `json:"score,omitempty"`                   // Objective 分数(0 - 100)
	ProgressRate          *UserOkrObjectiveProgressRate       `json:"progress_rate,omitempty"`           // Objective进度
	KrList                []*UserOkrObjectiveKr               `json:"kr_list,omitempty"`                 // Objective KeyResult 列表
	AlignedObjectiveList  []*UserOkrObjectiveAlignedObjective `json:"aligned_objective_list,omitempty"`  // 对齐到该Objective的Objective列表
	AligningObjectiveList []*UserOkrObjectiveAlignedObjective `json:"aligning_objective_list,omitempty"` // 该Objective对齐到的Objective列表
}

type UserOkrObjectiveAlignedObjective

type UserOkrObjectiveAlignedObjective struct {
	Id    *string                                `json:"id,omitempty"`     // Objective的ID
	OkrId *string                                `json:"okr_id,omitempty"` // OKR的ID
	Owner *UserOkrObjectiveAlignedObjectiveOwner `json:"owner,omitempty"`  // 该Objective的Owner
}

type UserOkrObjectiveAlignedObjectiveBuilder

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

func NewUserOkrObjectiveAlignedObjectiveBuilder

func NewUserOkrObjectiveAlignedObjectiveBuilder() *UserOkrObjectiveAlignedObjectiveBuilder

func (*UserOkrObjectiveAlignedObjectiveBuilder) Build

func (*UserOkrObjectiveAlignedObjectiveBuilder) Id

Objective的ID

示例值:

func (*UserOkrObjectiveAlignedObjectiveBuilder) OkrId

OKR的ID

示例值:

func (*UserOkrObjectiveAlignedObjectiveBuilder) Owner

该Objective的Owner

示例值:

type UserOkrObjectiveAlignedObjectiveOwner

type UserOkrObjectiveAlignedObjectiveOwner struct {
	OpenId     *string `json:"open_id,omitempty"`     // 用户的 open_id
	EmployeeId *string `json:"employee_id,omitempty"` // 用户的 employee_id
	EmployeeNo *string `json:"employee_no,omitempty"` // 工号
	UnionId    *string `json:"union_id,omitempty"`    // 用户的 union_id
	Name       *string `json:"name,omitempty"`        // 用户名
}

type UserOkrObjectiveAlignedObjectiveOwnerBuilder

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

func NewUserOkrObjectiveAlignedObjectiveOwnerBuilder

func NewUserOkrObjectiveAlignedObjectiveOwnerBuilder() *UserOkrObjectiveAlignedObjectiveOwnerBuilder

func (*UserOkrObjectiveAlignedObjectiveOwnerBuilder) Build

func (*UserOkrObjectiveAlignedObjectiveOwnerBuilder) EmployeeId

用户的 employee_id

示例值:

func (*UserOkrObjectiveAlignedObjectiveOwnerBuilder) EmployeeNo

工号

示例值:

func (*UserOkrObjectiveAlignedObjectiveOwnerBuilder) Name

用户名

示例值:

func (*UserOkrObjectiveAlignedObjectiveOwnerBuilder) OpenId

用户的 open_id

示例值:

func (*UserOkrObjectiveAlignedObjectiveOwnerBuilder) UnionId

用户的 union_id

示例值:

type UserOkrObjectiveBuilder

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

func NewUserOkrObjectiveBuilder

func NewUserOkrObjectiveBuilder() *UserOkrObjectiveBuilder

func (*UserOkrObjectiveBuilder) AlignedObjectiveList

func (builder *UserOkrObjectiveBuilder) AlignedObjectiveList(alignedObjectiveList []*UserOkrObjectiveAlignedObjective) *UserOkrObjectiveBuilder

对齐到该Objective的Objective列表

示例值:

func (*UserOkrObjectiveBuilder) AligningObjectiveList

func (builder *UserOkrObjectiveBuilder) AligningObjectiveList(aligningObjectiveList []*UserOkrObjectiveAlignedObjective) *UserOkrObjectiveBuilder

该Objective对齐到的Objective列表

示例值:

func (*UserOkrObjectiveBuilder) Build

func (builder *UserOkrObjectiveBuilder) Build() *UserOkrObjective

func (*UserOkrObjectiveBuilder) Content

func (builder *UserOkrObjectiveBuilder) Content(content string) *UserOkrObjectiveBuilder

Objective 内容

示例值:

func (*UserOkrObjectiveBuilder) Id

Objective ID

示例值:

func (*UserOkrObjectiveBuilder) KrList

Objective KeyResult 列表

示例值:

func (*UserOkrObjectiveBuilder) Permission

func (builder *UserOkrObjectiveBuilder) Permission(permission int) *UserOkrObjectiveBuilder

权限,0无权限,1有权限

示例值:

func (*UserOkrObjectiveBuilder) ProgressRate

Objective进度

示例值:

func (*UserOkrObjectiveBuilder) ProgressReport

func (builder *UserOkrObjectiveBuilder) ProgressReport(progressReport string) *UserOkrObjectiveBuilder

Objective 进度记录内容

示例值:

func (*UserOkrObjectiveBuilder) Score

Objective 分数(0 - 100)

示例值:

type UserOkrObjectiveKr

type UserOkrObjectiveKr struct {
	Id           *string                       `json:"id,omitempty"`            // Key Result ID
	Content      *string                       `json:"content,omitempty"`       // KeyResult 内容
	Score        *int                          `json:"score,omitempty"`         // KeyResult打分(0 - 100)
	Weight       *int                          `json:"weight,omitempty"`        // KeyResult权重(0 - 100)
	ProgressRate *UserOkrObjectiveProgressRate `json:"progress_rate,omitempty"` // Objective进度
}

type UserOkrObjectiveKrBuilder

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

func NewUserOkrObjectiveKrBuilder

func NewUserOkrObjectiveKrBuilder() *UserOkrObjectiveKrBuilder

func (*UserOkrObjectiveKrBuilder) Build

func (*UserOkrObjectiveKrBuilder) Content

func (builder *UserOkrObjectiveKrBuilder) Content(content string) *UserOkrObjectiveKrBuilder

KeyResult 内容

示例值:

func (*UserOkrObjectiveKrBuilder) Id

Key Result ID

示例值:

func (*UserOkrObjectiveKrBuilder) ProgressRate

Objective进度

示例值:

func (*UserOkrObjectiveKrBuilder) Score

KeyResult打分(0 - 100)

示例值:

func (*UserOkrObjectiveKrBuilder) Weight

func (builder *UserOkrObjectiveKrBuilder) Weight(weight int) *UserOkrObjectiveKrBuilder

KeyResult权重(0 - 100)

示例值:

type UserOkrObjectiveProgressRate

type UserOkrObjectiveProgressRate struct {
	Percent *int    `json:"percent,omitempty"` // Objective 进度百分比 >= 0
	Status  *string `json:"status,omitempty"`  // Objective 进度状态,undefined 未更新,normal 正常,risky 有风险,overdue 已延期
}

type UserOkrObjectiveProgressRateBuilder

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

func NewUserOkrObjectiveProgressRateBuilder

func NewUserOkrObjectiveProgressRateBuilder() *UserOkrObjectiveProgressRateBuilder

func (*UserOkrObjectiveProgressRateBuilder) Build

func (*UserOkrObjectiveProgressRateBuilder) Percent

Objective 进度百分比 >= 0

示例值:

func (*UserOkrObjectiveProgressRateBuilder) Status

Objective 进度状态,undefined 未更新,normal 正常,risky 有风险,overdue 已延期

示例值:

Jump to

Keyboard shortcuts

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