larkokr

package
v3.0.0-beta-4 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2022 License: MIT Imports: 6 Imported by: 8

Documentation

Index

Constants

View Source
const (
	TargetTypeOkr的O  = 2
	TargetTypeOkr的KR = 3
)
View Source
const (
	UserIdTypeUserId        = "user_id"
	UserIdTypeUnionId       = "union_id"
	UserIdTypeOpenId        = "open_id"
	UserIdTypePeopleAdminId = "people_admin_id"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AlignObjective

type AlignObjective struct {
	Id     *int64  `json:"id,omitempty,string"`
	OkrId  *int64  `json:"okr_id,omitempty,string"`
	UserId *string `json:"user_id,omitempty"`
}

type AlignObjectiveBuilder

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

builder开始

func NewAlignObjectiveBuilder

func NewAlignObjectiveBuilder() *AlignObjectiveBuilder

func (*AlignObjectiveBuilder) Build

func (builder *AlignObjectiveBuilder) Build() *AlignObjective

func (*AlignObjectiveBuilder) Id

func (*AlignObjectiveBuilder) OkrId

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

func (*AlignObjectiveBuilder) UserId

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

type BatchGetOkrReq

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

type BatchGetOkrReqBuilder

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

1.4 生成请求的builder结构体

func NewBatchGetOkrReqBuilder

func NewBatchGetOkrReqBuilder() *BatchGetOkrReqBuilder

生成请求的New构造器

func (*BatchGetOkrReqBuilder) Build

func (builder *BatchGetOkrReqBuilder) Build() *BatchGetOkrReq

1.5 生成请求的builder的build方法

func (*BatchGetOkrReqBuilder) Lang

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

func (*BatchGetOkrReqBuilder) OkrIds

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

func (*BatchGetOkrReqBuilder) UserIdType

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

1.5 生成请求的builder属性方法

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"`
}

type ContentBlock

type ContentBlock struct {
	Blocks []*ContentBlockElement `json:"blocks,omitempty"`
}

type ContentBlockBuilder

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

builder开始

func NewContentBlockBuilder

func NewContentBlockBuilder() *ContentBlockBuilder

func (*ContentBlockBuilder) Blocks

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

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
}

builder开始

func NewContentBlockElementBuilder

func NewContentBlockElementBuilder() *ContentBlockElementBuilder

func (*ContentBlockElementBuilder) Build

func (*ContentBlockElementBuilder) Gallery

func (*ContentBlockElementBuilder) Paragraph

func (*ContentBlockElementBuilder) Type

type ContentColor

type ContentColor struct {
	Red   *int     `json:"red,omitempty"`
	Green *int     `json:"green,omitempty"`
	Blue  *int     `json:"blue,omitempty"`
	Alpha *float64 `json:"alpha,omitempty"`
}

type ContentColorBuilder

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

builder开始

func NewContentColorBuilder

func NewContentColorBuilder() *ContentColorBuilder

func (*ContentColorBuilder) Alpha

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

func (*ContentColorBuilder) Blue

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

func (*ContentColorBuilder) Build

func (builder *ContentColorBuilder) Build() *ContentColor

func (*ContentColorBuilder) Green

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

func (*ContentColorBuilder) Red

func (builder *ContentColorBuilder) Red(red int) *ContentColorBuilder
type ContentDocsLink struct {
	Url   *string `json:"url,omitempty"`
	Title *string `json:"title,omitempty"`
}

type ContentDocsLinkBuilder

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

builder开始

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

type ContentGallery

type ContentGallery struct {
	ImageList []*ContentImageItem `json:"imageList,omitempty"`
}

type ContentGalleryBuilder

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

builder开始

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"`
	Url       *string  `json:"url,omitempty"`
	Width     *float64 `json:"width,omitempty"`
	Height    *float64 `json:"height,omitempty"`
}

type ContentImageItemBuilder

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

builder开始

func NewContentImageItemBuilder

func NewContentImageItemBuilder() *ContentImageItemBuilder

func (*ContentImageItemBuilder) Build

func (builder *ContentImageItemBuilder) Build() *ContentImageItem

func (*ContentImageItemBuilder) FileToken

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

func (*ContentImageItemBuilder) Height

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

func (*ContentImageItemBuilder) Url

func (*ContentImageItemBuilder) Width

type ContentLink struct {
	Url *string `json:"url,omitempty"`
}

type ContentLinkBuilder

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

builder开始

func NewContentLinkBuilder

func NewContentLinkBuilder() *ContentLinkBuilder

func (*ContentLinkBuilder) Build

func (builder *ContentLinkBuilder) Build() *ContentLink

func (*ContentLinkBuilder) Url

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

type ContentList

type ContentList struct {
	Type        *string `json:"type,omitempty"`
	IndentLevel *int    `json:"indentLevel,omitempty"`
	Number      *int    `json:"number,omitempty"`
}

type ContentListBuilder

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

builder开始

func NewContentListBuilder

func NewContentListBuilder() *ContentListBuilder

func (*ContentListBuilder) Build

func (builder *ContentListBuilder) Build() *ContentList

func (*ContentListBuilder) IndentLevel

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

func (*ContentListBuilder) Number

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

func (*ContentListBuilder) Type

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

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
}

builder开始

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
}

builder开始

func NewContentParagraphElementBuilder

func NewContentParagraphElementBuilder() *ContentParagraphElementBuilder

func (*ContentParagraphElementBuilder) Build

func (*ContentParagraphElementBuilder) Person

func (*ContentParagraphElementBuilder) TextRun

func (*ContentParagraphElementBuilder) Type

type ContentParagraphStyle

type ContentParagraphStyle struct {
	List []*ContentList `json:"list,omitempty"`
}

type ContentParagraphStyleBuilder

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

builder开始

func NewContentParagraphStyleBuilder

func NewContentParagraphStyleBuilder() *ContentParagraphStyleBuilder

func (*ContentParagraphStyleBuilder) Build

func (*ContentParagraphStyleBuilder) List

type ContentPerson

type ContentPerson struct {
	OpenId *string `json:"openId,omitempty"`
}

type ContentPersonBuilder

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

builder开始

func NewContentPersonBuilder

func NewContentPersonBuilder() *ContentPersonBuilder

func (*ContentPersonBuilder) Build

func (builder *ContentPersonBuilder) Build() *ContentPerson

func (*ContentPersonBuilder) OpenId

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

type ContentTextRun

type ContentTextRun struct {
	Text  *string           `json:"text,omitempty"`
	Style *ContentTextStyle `json:"style,omitempty"`
}

type ContentTextRunBuilder

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

builder开始

func NewContentTextRunBuilder

func NewContentTextRunBuilder() *ContentTextRunBuilder

func (*ContentTextRunBuilder) Build

func (builder *ContentTextRunBuilder) Build() *ContentTextRun

func (*ContentTextRunBuilder) Style

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
}

builder开始

func NewContentTextStyleBuilder

func NewContentTextStyleBuilder() *ContentTextStyleBuilder

func (*ContentTextStyleBuilder) BackColor

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

func (*ContentTextStyleBuilder) Bold

func (*ContentTextStyleBuilder) Build

func (builder *ContentTextStyleBuilder) Build() *ContentTextStyle

func (*ContentTextStyleBuilder) StrikeThrough

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

func (*ContentTextStyleBuilder) TextColor

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

type CreateProgressRecordPathReqBodyBuilder

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

上传文件path开始

func NewCreateProgressRecordPathReqBodyBuilder

func NewCreateProgressRecordPathReqBodyBuilder() *CreateProgressRecordPathReqBodyBuilder

func (*CreateProgressRecordPathReqBodyBuilder) Build

func (*CreateProgressRecordPathReqBodyBuilder) Content

func (*CreateProgressRecordPathReqBodyBuilder) SourceTitle

func (*CreateProgressRecordPathReqBodyBuilder) SourceUrl

func (*CreateProgressRecordPathReqBodyBuilder) TargetId

func (*CreateProgressRecordPathReqBodyBuilder) TargetType

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    *int64        `json:"target_id,omitempty,string"`
	TargetType  *int          `json:"target_type,omitempty"`
	Content     *ContentBlock `json:"content,omitempty"`
}

type CreateProgressRecordReqBodyBuilder

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

func NewCreateProgressRecordReqBodyBuilder

func NewCreateProgressRecordReqBodyBuilder() *CreateProgressRecordReqBodyBuilder

生成body的New构造器

func (*CreateProgressRecordReqBodyBuilder) Build

1.3 生成body的build方法

func (*CreateProgressRecordReqBodyBuilder) Content

func (*CreateProgressRecordReqBodyBuilder) SourceTitle

1.2 生成body的builder属性方法

func (*CreateProgressRecordReqBodyBuilder) SourceUrl

func (*CreateProgressRecordReqBodyBuilder) TargetId

func (*CreateProgressRecordReqBodyBuilder) TargetType

type CreateProgressRecordReqBuilder

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

1.4 生成请求的builder结构体

func NewCreateProgressRecordReqBuilder

func NewCreateProgressRecordReqBuilder() *CreateProgressRecordReqBuilder

生成请求的New构造器

func (*CreateProgressRecordReqBuilder) Body

1.5 生成请求的builder属性方法

func (*CreateProgressRecordReqBuilder) Build

1.5 生成请求的builder的build方法

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 {
	Data *ProgressRecord `json:"data,omitempty"`
}

type CurrentOkrSimple

type CurrentOkrSimple struct {
	OkrId    *string `json:"okr_id,omitempty"`
	PeriodId *string `json:"period_id,omitempty"`
}

type CurrentOkrSimpleBuilder

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

builder开始

func NewCurrentOkrSimpleBuilder

func NewCurrentOkrSimpleBuilder() *CurrentOkrSimpleBuilder

func (*CurrentOkrSimpleBuilder) Build

func (builder *CurrentOkrSimpleBuilder) Build() *CurrentOkrSimple

func (*CurrentOkrSimpleBuilder) OkrId

func (*CurrentOkrSimpleBuilder) PeriodId

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

type DeleteProgressRecordReq

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

type DeleteProgressRecordReqBuilder

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

1.4 生成请求的builder结构体

func NewDeleteProgressRecordReqBuilder

func NewDeleteProgressRecordReqBuilder() *DeleteProgressRecordReqBuilder

生成请求的New构造器

func (*DeleteProgressRecordReqBuilder) Build

1.5 生成请求的builder的build方法

func (*DeleteProgressRecordReqBuilder) ProgressId

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

1.5 生成请求的builder属性方法

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"`
}

type DummyBuilder

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

builder开始

func NewDummyBuilder

func NewDummyBuilder() *DummyBuilder

func (*DummyBuilder) Build

func (builder *DummyBuilder) Build() *Dummy

func (*DummyBuilder) Id

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

type GetProgressRecordReq

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

type GetProgressRecordReqBuilder

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

1.4 生成请求的builder结构体

func NewGetProgressRecordReqBuilder

func NewGetProgressRecordReqBuilder() *GetProgressRecordReqBuilder

生成请求的New构造器

func (*GetProgressRecordReqBuilder) Build

1.5 生成请求的builder的build方法

func (*GetProgressRecordReqBuilder) ProgressId

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

1.5 生成请求的builder属性方法

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 *int64        `json:"progress_id,omitempty,string"`
	ModifyTime *int64        `json:"modify_time,omitempty,string"`
	Content    *ContentBlock `json:"content,omitempty"`
}

type ImageInfo

type ImageInfo struct {
	FileToken *string `json:"file_token,omitempty"`
	Url       *string `json:"url,omitempty"`
}

type ImageInfoBuilder

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

builder开始

func NewImageInfoBuilder

func NewImageInfoBuilder() *ImageInfoBuilder

func (*ImageInfoBuilder) Build

func (builder *ImageInfoBuilder) Build() *ImageInfo

func (*ImageInfoBuilder) FileToken

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

func (*ImageInfoBuilder) Url

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

type Kr

type Kr struct {
	Id         *int64     `json:"id,omitempty,string"`
	Pos        *string    `json:"pos,omitempty"`
	Score      *string    `json:"score,omitempty"`
	Weight     *string    `json:"weight,omitempty"`
	Content    *KrContent `json:"content,omitempty"`
	CreateTime *int       `json:"create_time,omitempty"`
	ModifyTime *int       `json:"modify_time,omitempty"`
}

type KrBuilder

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

builder开始

func NewKrBuilder

func NewKrBuilder() *KrBuilder

func (*KrBuilder) Build

func (builder *KrBuilder) Build() *Kr

func (*KrBuilder) Content

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

func (*KrBuilder) CreateTime

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

func (*KrBuilder) Id

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

func (*KrBuilder) ModifyTime

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

func (*KrBuilder) Pos

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

func (*KrBuilder) Score

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

func (*KrBuilder) Weight

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

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
}

builder开始

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 ListPeriodReq

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

type ListPeriodReqBuilder

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

1.4 生成请求的builder结构体

func NewListPeriodReqBuilder

func NewListPeriodReqBuilder() *ListPeriodReqBuilder

生成请求的New构造器

func (*ListPeriodReqBuilder) Build

func (builder *ListPeriodReqBuilder) Build() *ListPeriodReq

1.5 生成请求的builder的build方法

func (*ListPeriodReqBuilder) PageSize

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

func (*ListPeriodReqBuilder) PageToken

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

1.5 生成请求的builder属性方法

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
}

1.4 生成请求的builder结构体

func NewListUserOkrReqBuilder

func NewListUserOkrReqBuilder() *ListUserOkrReqBuilder

生成请求的New构造器

func (*ListUserOkrReqBuilder) Build

func (builder *ListUserOkrReqBuilder) Build() *ListUserOkrReq

1.5 生成请求的builder的build方法

func (*ListUserOkrReqBuilder) Lang

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

func (*ListUserOkrReqBuilder) Limit

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

func (*ListUserOkrReqBuilder) Offset

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

func (*ListUserOkrReqBuilder) PeriodIds

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

func (*ListUserOkrReqBuilder) UserId

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

1.5 生成请求的builder属性方法

func (*ListUserOkrReqBuilder) UserIdType

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

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"`
	OkrList []*OkrBatch `json:"okr_list,omitempty"`
}

type Objective

type Objective struct {
	Id                    *string            `json:"id,omitempty"`
	OkrId                 *string            `json:"okr_id,omitempty"`
	UserId                *string            `json:"user_id,omitempty"`
	Pos                   *string            `json:"pos,omitempty"`
	Score                 *string            `json:"score,omitempty"`
	Name                  *ObjectiveName     `json:"name,omitempty"`
	Progress              *ObjectiveProgress `json:"progress,omitempty"`
	CreateTime            *int               `json:"create_time,omitempty"`
	ModifyTime            *int               `json:"modify_time,omitempty"`
	KrList                []*Kr              `json:"kr_list,omitempty"`
	AligningObjectiveList []*AlignObjective  `json:"aligning_objective_list,omitempty"`
	AlignedObjectiveList  []*AlignObjective  `json:"aligned_objective_list,omitempty"`
}

type ObjectiveBuilder

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

builder开始

func NewObjectiveBuilder

func NewObjectiveBuilder() *ObjectiveBuilder

func (*ObjectiveBuilder) AlignedObjectiveList

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

func (*ObjectiveBuilder) AligningObjectiveList

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

func (*ObjectiveBuilder) Build

func (builder *ObjectiveBuilder) Build() *Objective

func (*ObjectiveBuilder) CreateTime

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

func (*ObjectiveBuilder) Id

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

func (*ObjectiveBuilder) KrList

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

func (*ObjectiveBuilder) ModifyTime

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

func (*ObjectiveBuilder) Name

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

func (*ObjectiveBuilder) OkrId

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

func (*ObjectiveBuilder) Pos

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

func (*ObjectiveBuilder) Progress

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

func (*ObjectiveBuilder) Score

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

func (*ObjectiveBuilder) UserId

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

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
}

builder开始

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
}

builder开始

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         *int64                `json:"okr_id,omitempty,string"`
	PeriodId      *int64                `json:"period_id,omitempty,string"`
	PeriodType    *string               `json:"period_type,omitempty"`
	Name          *OkrName              `json:"name,omitempty"`
	CreateTime    *int                  `json:"create_time,omitempty"`
	ModifyTime    *int                  `json:"modify_time,omitempty"`
	ObjectiveList []*OkrDetailObjective `json:"objective_list,omitempty"`
	OkrScore      *int                  `json:"okr_score,omitempty"`
}

type OkrBatch

type OkrBatch struct {
	Id            *int64          `json:"id,omitempty,string"`
	Permission    *int            `json:"permission,omitempty"`
	PeriodId      *int64          `json:"period_id,omitempty,string"`
	Name          *string         `json:"name,omitempty"`
	ObjectiveList []*OkrObjective `json:"objective_list,omitempty"`
	ConfirmStatus *int            `json:"confirm_status,omitempty"`
}

type OkrBatchBuilder

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

builder开始

func NewOkrBatchBuilder

func NewOkrBatchBuilder() *OkrBatchBuilder

func (*OkrBatchBuilder) Build

func (builder *OkrBatchBuilder) Build() *OkrBatch

func (*OkrBatchBuilder) ConfirmStatus

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

func (*OkrBatchBuilder) Id

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

func (*OkrBatchBuilder) Name

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

func (*OkrBatchBuilder) ObjectiveList

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

func (*OkrBatchBuilder) PeriodId

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

func (*OkrBatchBuilder) Permission

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

type OkrBuilder

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

builder开始

func NewOkrBuilder

func NewOkrBuilder() *OkrBuilder

func (*OkrBuilder) Build

func (builder *OkrBuilder) Build() *Okr

func (*OkrBuilder) CreateTime

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

func (*OkrBuilder) ModifyTime

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

func (*OkrBuilder) Name

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

func (*OkrBuilder) ObjectiveList

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

func (*OkrBuilder) OkrId

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

func (*OkrBuilder) OkrScore

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

func (*OkrBuilder) PeriodId

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

func (*OkrBuilder) PeriodType

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

type OkrComment

type OkrComment struct {
	Id                *int64                             `json:"id,omitempty,string"`
	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"`
	SolvedTime        *int                               `json:"solved_time,omitempty"`
}

type OkrCommentBuilder

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

builder开始

func NewOkrCommentBuilder

func NewOkrCommentBuilder() *OkrCommentBuilder

func (*OkrCommentBuilder) Build

func (builder *OkrCommentBuilder) Build() *OkrComment

func (*OkrCommentBuilder) CommentTime

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

func (*OkrCommentBuilder) Commentator

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

func (*OkrCommentBuilder) Content

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

func (*OkrCommentBuilder) ContentModifyTime

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

func (*OkrCommentBuilder) Id

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

func (*OkrCommentBuilder) LastModifier

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

func (*OkrCommentBuilder) SolvedTime

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

type OkrDetail

type OkrDetail struct {
	OkrId         *string               `json:"okr_id,omitempty"`
	PeriodId      *string               `json:"period_id,omitempty"`
	PeriodType    *string               `json:"period_type,omitempty"`
	Name          *OkrName              `json:"name,omitempty"`
	CreateTime    *int                  `json:"create_time,omitempty"`
	ModifyTime    *int                  `json:"modify_time,omitempty"`
	ObjectiveList []*OkrDetailObjective `json:"objective_list,omitempty"`
	OkrScore      *int                  `json:"okr_score,omitempty"`
}

type OkrDetailBuilder

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

builder开始

func NewOkrDetailBuilder

func NewOkrDetailBuilder() *OkrDetailBuilder

func (*OkrDetailBuilder) Build

func (builder *OkrDetailBuilder) Build() *OkrDetail

func (*OkrDetailBuilder) CreateTime

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

func (*OkrDetailBuilder) ModifyTime

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

func (*OkrDetailBuilder) Name

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

func (*OkrDetailBuilder) ObjectiveList

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

func (*OkrDetailBuilder) OkrId

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

func (*OkrDetailBuilder) OkrScore

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

func (*OkrDetailBuilder) PeriodId

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

func (*OkrDetailBuilder) PeriodType

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

type OkrDetailObjective

type OkrDetailObjective struct {
	Id                    *int64                     `json:"id,omitempty,string"`
	OkrId                 *int64                     `json:"okr_id,omitempty,string"`
	UserId                *string                    `json:"user_id,omitempty"`
	Pos                   *int                       `json:"pos,omitempty"`
	Score                 *int                       `json:"score,omitempty"`
	Name                  *OkrName                   `json:"name,omitempty"`
	Progress              *OkrName                   `json:"progress,omitempty"`
	CreateTime            *int                       `json:"create_time,omitempty"`
	ModifyTime            *int                       `json:"modify_time,omitempty"`
	KrList                []*OkrDetailObjectiveKr    `json:"kr_list,omitempty"`
	AligningObjectiveList []*OkrDetailObjectiveAlign `json:"aligning_objective_list,omitempty"`
	AlignedObjectiveList  []*OkrDetailObjectiveAlign `json:"aligned_objective_list,omitempty"`
	Weight                *float64                   `json:"weight,omitempty"`
}

type OkrDetailObjectiveAlign

type OkrDetailObjectiveAlign struct {
	Id     *int64  `json:"id,omitempty,string"`
	OkrId  *int64  `json:"okr_id,omitempty,string"`
	UserId *string `json:"user_id,omitempty"`
}

type OkrDetailObjectiveAlignBuilder

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

builder开始

func NewOkrDetailObjectiveAlignBuilder

func NewOkrDetailObjectiveAlignBuilder() *OkrDetailObjectiveAlignBuilder

func (*OkrDetailObjectiveAlignBuilder) Build

func (*OkrDetailObjectiveAlignBuilder) Id

func (*OkrDetailObjectiveAlignBuilder) OkrId

func (*OkrDetailObjectiveAlignBuilder) UserId

type OkrDetailObjectiveBuilder

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

builder开始

func NewOkrDetailObjectiveBuilder

func NewOkrDetailObjectiveBuilder() *OkrDetailObjectiveBuilder

func (*OkrDetailObjectiveBuilder) AlignedObjectiveList

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

func (*OkrDetailObjectiveBuilder) AligningObjectiveList

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

func (*OkrDetailObjectiveBuilder) Build

func (*OkrDetailObjectiveBuilder) CreateTime

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

func (*OkrDetailObjectiveBuilder) Id

func (*OkrDetailObjectiveBuilder) KrList

func (*OkrDetailObjectiveBuilder) ModifyTime

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

func (*OkrDetailObjectiveBuilder) Name

func (*OkrDetailObjectiveBuilder) OkrId

func (*OkrDetailObjectiveBuilder) Pos

func (*OkrDetailObjectiveBuilder) Progress

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

func (*OkrDetailObjectiveBuilder) Score

func (*OkrDetailObjectiveBuilder) UserId

func (*OkrDetailObjectiveBuilder) Weight

type OkrDetailObjectiveKr

type OkrDetailObjectiveKr struct {
	Id         *int64   `json:"id,omitempty,string"`
	Pos        *int     `json:"pos,omitempty"`
	Score      *int     `json:"score,omitempty"`
	Weight     *float64 `json:"weight,omitempty"`
	Content    *OkrName `json:"content,omitempty"`
	CreateTime *int     `json:"create_time,omitempty"`
	ModifyTime *int     `json:"modify_time,omitempty"`
}

type OkrDetailObjectiveKrBuilder

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

builder开始

func NewOkrDetailObjectiveKrBuilder

func NewOkrDetailObjectiveKrBuilder() *OkrDetailObjectiveKrBuilder

func (*OkrDetailObjectiveKrBuilder) Build

func (*OkrDetailObjectiveKrBuilder) Content

func (*OkrDetailObjectiveKrBuilder) CreateTime

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

func (*OkrDetailObjectiveKrBuilder) Id

func (*OkrDetailObjectiveKrBuilder) ModifyTime

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

func (*OkrDetailObjectiveKrBuilder) Pos

func (*OkrDetailObjectiveKrBuilder) Score

func (*OkrDetailObjectiveKrBuilder) Weight

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
}

builder开始

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
}

builder开始

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                                 *int64                               `json:"id,omitempty,string"`
	Permission                         *int                                 `json:"permission,omitempty"`
	Content                            *string                              `json:"content,omitempty"`
	ProgressReport                     *string                              `json:"progress_report,omitempty"`
	Score                              *int                                 `json:"score,omitempty"`
	Weight                             *float64                             `json:"weight,omitempty"`
	ProgressRate                       *OkrObjectiveProgressRate            `json:"progress_rate,omitempty"`
	KrList                             []*OkrObjectiveKr                    `json:"kr_list,omitempty"`
	AlignedObjectiveList               []*OkrObjectiveAlignedObjective      `json:"aligned_objective_list,omitempty"`
	AligningObjectiveList              []*OkrObjectiveAlignedObjective      `json:"aligning_objective_list,omitempty"`
	ProgressRecordList                 []*ProgressRecordSimplify            `json:"progress_record_list,omitempty"`
	ProgressRatePercentLastUpdatedTime *int64                               `json:"progress_rate_percent_last_updated_time,omitempty,string"`
	ProgressRateStatusLastUpdatedTime  *int64                               `json:"progress_rate_status_last_updated_time,omitempty,string"`
	ProgressRecordLastUpdatedTime      *int64                               `json:"progress_record_last_updated_time,omitempty,string"`
	ProgressReportLastUpdatedTime      *int64                               `json:"progress_report_last_updated_time,omitempty,string"`
	ScoreLastUpdatedTime               *int64                               `json:"score_last_updated_time,omitempty,string"`
	Deadline                           *int64                               `json:"deadline,omitempty,string"`
	MentionedUserList                  []*OkrObjectiveAlignedObjectiveOwner `json:"mentioned_user_list,omitempty"`
}

type OkrObjectiveAlignedObjective

type OkrObjectiveAlignedObjective struct {
	Id    *int64                             `json:"id,omitempty,string"`
	OkrId *int64                             `json:"okr_id,omitempty,string"`
	Owner *OkrObjectiveAlignedObjectiveOwner `json:"owner,omitempty"`
}

type OkrObjectiveAlignedObjectiveBuilder

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

builder开始

func NewOkrObjectiveAlignedObjectiveBuilder

func NewOkrObjectiveAlignedObjectiveBuilder() *OkrObjectiveAlignedObjectiveBuilder

func (*OkrObjectiveAlignedObjectiveBuilder) Build

func (*OkrObjectiveAlignedObjectiveBuilder) Id

func (*OkrObjectiveAlignedObjectiveBuilder) OkrId

func (*OkrObjectiveAlignedObjectiveBuilder) Owner

type OkrObjectiveAlignedObjectiveOwner

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

type OkrObjectiveAlignedObjectiveOwnerBuilder

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

builder开始

func NewOkrObjectiveAlignedObjectiveOwnerBuilder

func NewOkrObjectiveAlignedObjectiveOwnerBuilder() *OkrObjectiveAlignedObjectiveOwnerBuilder

func (*OkrObjectiveAlignedObjectiveOwnerBuilder) Build

func (*OkrObjectiveAlignedObjectiveOwnerBuilder) OpenId

func (*OkrObjectiveAlignedObjectiveOwnerBuilder) UserId

type OkrObjectiveAlignment

type OkrObjectiveAlignment struct {
	Id     *int64 `json:"id,omitempty,string"`
	ToId   *int64 `json:"to_id,omitempty,string"`
	ToType *int   `json:"to_type,omitempty"`
}

type OkrObjectiveAlignmentBuilder

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

builder开始

func NewOkrObjectiveAlignmentBuilder

func NewOkrObjectiveAlignmentBuilder() *OkrObjectiveAlignmentBuilder

func (*OkrObjectiveAlignmentBuilder) Build

func (*OkrObjectiveAlignmentBuilder) Id

func (*OkrObjectiveAlignmentBuilder) ToId

func (*OkrObjectiveAlignmentBuilder) ToType

type OkrObjectiveBuilder

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

builder开始

func NewOkrObjectiveBuilder

func NewOkrObjectiveBuilder() *OkrObjectiveBuilder

func (*OkrObjectiveBuilder) AlignedObjectiveList

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

func (*OkrObjectiveBuilder) AligningObjectiveList

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

func (*OkrObjectiveBuilder) Build

func (builder *OkrObjectiveBuilder) Build() *OkrObjective

func (*OkrObjectiveBuilder) Content

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

func (*OkrObjectiveBuilder) Deadline

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

func (*OkrObjectiveBuilder) Id

func (*OkrObjectiveBuilder) KrList

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

func (*OkrObjectiveBuilder) MentionedUserList

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

func (*OkrObjectiveBuilder) Permission

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

func (*OkrObjectiveBuilder) ProgressRate

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

func (*OkrObjectiveBuilder) ProgressRatePercentLastUpdatedTime

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

func (*OkrObjectiveBuilder) ProgressRateStatusLastUpdatedTime

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

func (*OkrObjectiveBuilder) ProgressRecordLastUpdatedTime

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

func (*OkrObjectiveBuilder) ProgressRecordList

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

func (*OkrObjectiveBuilder) ProgressReport

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

func (*OkrObjectiveBuilder) ProgressReportLastUpdatedTime

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

func (*OkrObjectiveBuilder) Score

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

func (*OkrObjectiveBuilder) ScoreLastUpdatedTime

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

func (*OkrObjectiveBuilder) Weight

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

type OkrObjectiveKr

type OkrObjectiveKr struct {
	Id                                 *int64                               `json:"id,omitempty,string"`
	Content                            *string                              `json:"content,omitempty"`
	Score                              *int                                 `json:"score,omitempty"`
	Weight                             *int                                 `json:"weight,omitempty"`
	KrWeight                           *float64                             `json:"kr_weight,omitempty"`
	ProgressRate                       *OkrObjectiveProgressRate            `json:"progress_rate,omitempty"`
	ProgressRecordList                 []*ProgressRecordSimplify            `json:"progress_record_list,omitempty"`
	ProgressRatePercentLastUpdatedTime *int64                               `json:"progress_rate_percent_last_updated_time,omitempty,string"`
	ProgressRateStatusLastUpdatedTime  *int64                               `json:"progress_rate_status_last_updated_time,omitempty,string"`
	ProgressRecordLastUpdatedTime      *int64                               `json:"progress_record_last_updated_time,omitempty,string"`
	ProgressReportLastUpdatedTime      *int64                               `json:"progress_report_last_updated_time,omitempty,string"`
	ScoreLastUpdatedTime               *int64                               `json:"score_last_updated_time,omitempty,string"`
	Deadline                           *int64                               `json:"deadline,omitempty,string"`
	MentionedUserList                  []*OkrObjectiveAlignedObjectiveOwner `json:"mentioned_user_list,omitempty"`
}

type OkrObjectiveKrBuilder

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

builder开始

func NewOkrObjectiveKrBuilder

func NewOkrObjectiveKrBuilder() *OkrObjectiveKrBuilder

func (*OkrObjectiveKrBuilder) Build

func (builder *OkrObjectiveKrBuilder) Build() *OkrObjectiveKr

func (*OkrObjectiveKrBuilder) Content

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

func (*OkrObjectiveKrBuilder) Deadline

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

func (*OkrObjectiveKrBuilder) Id

func (*OkrObjectiveKrBuilder) KrWeight

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

func (*OkrObjectiveKrBuilder) MentionedUserList

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

func (*OkrObjectiveKrBuilder) ProgressRate

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

func (*OkrObjectiveKrBuilder) ProgressRatePercentLastUpdatedTime

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

func (*OkrObjectiveKrBuilder) ProgressRateStatusLastUpdatedTime

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

func (*OkrObjectiveKrBuilder) ProgressRecordLastUpdatedTime

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

func (*OkrObjectiveKrBuilder) ProgressRecordList

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

func (*OkrObjectiveKrBuilder) ProgressReportLastUpdatedTime

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

func (*OkrObjectiveKrBuilder) Score

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

func (*OkrObjectiveKrBuilder) ScoreLastUpdatedTime

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

func (*OkrObjectiveKrBuilder) Weight

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

type OkrObjectiveProgressRate

type OkrObjectiveProgressRate struct {
	Percent *int    `json:"percent,omitempty"`
	Status  *string `json:"status,omitempty"`
}

type OkrObjectiveProgressRateBuilder

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

builder开始

func NewOkrObjectiveProgressRateBuilder

func NewOkrObjectiveProgressRateBuilder() *OkrObjectiveProgressRateBuilder

func (*OkrObjectiveProgressRateBuilder) Build

func (*OkrObjectiveProgressRateBuilder) Percent

func (*OkrObjectiveProgressRateBuilder) Status

type OkrReview

type OkrReview struct {
	UserId           *OkrObjectiveAlignedObjectiveOwner `json:"user_id,omitempty"`
	ReviewPeriodList []*OkrReviewPeriod                 `json:"review_period_list,omitempty"`
}

type OkrReviewBuilder

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

builder开始

func NewOkrReviewBuilder

func NewOkrReviewBuilder() *OkrReviewBuilder

func (*OkrReviewBuilder) Build

func (builder *OkrReviewBuilder) Build() *OkrReview

func (*OkrReviewBuilder) ReviewPeriodList

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

func (*OkrReviewBuilder) UserId

type OkrReviewPeriod

type OkrReviewPeriod struct {
	PeriodId           *int64                `json:"period_id,omitempty,string"`
	CycleReviewList    []*OkrReviewPeriodUrl `json:"cycle_review_list,omitempty"`
	ProgressReportList []*OkrReviewPeriodUrl `json:"progress_report_list,omitempty"`
}

type OkrReviewPeriodBuilder

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

builder开始

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 int64) *OkrReviewPeriodBuilder

func (*OkrReviewPeriodBuilder) ProgressReportList

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

type OkrReviewPeriodUrl

type OkrReviewPeriodUrl struct {
	Url        *string `json:"url,omitempty"`
	CreateTime *int64  `json:"create_time,omitempty,string"`
}

type OkrReviewPeriodUrlBuilder

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

builder开始

func NewOkrReviewPeriodUrlBuilder

func NewOkrReviewPeriodUrlBuilder() *OkrReviewPeriodUrlBuilder

func (*OkrReviewPeriodUrlBuilder) Build

func (*OkrReviewPeriodUrlBuilder) CreateTime

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

func (*OkrReviewPeriodUrlBuilder) Url

type OkrService

type OkrService struct {
	Image          *image
	Okr            *okr
	Period         *period
	ProgressRecord *progressRecord
	UserOkr        *userOkr
	// 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"`
	PeriodId   *string  `json:"period_id,omitempty"`
	PeriodType *string  `json:"period_type,omitempty"`
}

type OkrSimpleBuilder

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

builder开始

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

func (*OkrSimpleBuilder) PeriodId

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

func (*OkrSimpleBuilder) PeriodType

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

type Period

type Period struct {
	Id     *int64  `json:"id,omitempty,string"`
	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
}

builder开始

func NewPeriodBuilder

func NewPeriodBuilder() *PeriodBuilder

func (*PeriodBuilder) Build

func (builder *PeriodBuilder) Build() *Period

func (*PeriodBuilder) EnName

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

func (*PeriodBuilder) Id

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

func (*PeriodBuilder) Status

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

func (*PeriodBuilder) ZhName

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

type ProgressItem

type ProgressItem struct {
	Content     *string  `json:"content,omitempty"`
	Timestamp   *int     `json:"timestamp,omitempty"`
	MentionList []string `json:"mention_list,omitempty"`
}

type ProgressItemBuilder

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

builder开始

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 int) *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
}

builder开始

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 *int64        `json:"progress_id,omitempty,string"`
	ModifyTime *int64        `json:"modify_time,omitempty,string"`
	Content    *ContentBlock `json:"content,omitempty"`
}

type ProgressRecordBuilder

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

builder开始

func NewProgressRecordBuilder

func NewProgressRecordBuilder() *ProgressRecordBuilder

func (*ProgressRecordBuilder) Build

func (builder *ProgressRecordBuilder) Build() *ProgressRecord

func (*ProgressRecordBuilder) Content

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

func (*ProgressRecordBuilder) ModifyTime

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

func (*ProgressRecordBuilder) ProgressId

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

type ProgressRecordSimplify

type ProgressRecordSimplify struct {
	Id *int64 `json:"id,omitempty,string"`
}

type ProgressRecordSimplifyBuilder

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

builder开始

func NewProgressRecordSimplifyBuilder

func NewProgressRecordSimplifyBuilder() *ProgressRecordSimplifyBuilder

func (*ProgressRecordSimplifyBuilder) Build

func (*ProgressRecordSimplifyBuilder) Id

type UpdateProgressRecordPathReqBodyBuilder

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

上传文件path开始

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

生成body的New构造器

func (*UpdateProgressRecordReqBodyBuilder) Build

1.3 生成body的build方法

func (*UpdateProgressRecordReqBodyBuilder) Content

1.2 生成body的builder属性方法

type UpdateProgressRecordReqBuilder

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

1.4 生成请求的builder结构体

func NewUpdateProgressRecordReqBuilder

func NewUpdateProgressRecordReqBuilder() *UpdateProgressRecordReqBuilder

生成请求的New构造器

func (*UpdateProgressRecordReqBuilder) Body

func (*UpdateProgressRecordReqBuilder) Build

1.5 生成请求的builder的build方法

func (*UpdateProgressRecordReqBuilder) ProgressId

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

1.5 生成请求的builder属性方法

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 {
	Data *ProgressRecord `json:"data,omitempty"`
}

type UploadImagePathReqBodyBuilder

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

上传文件path开始

func NewUploadImagePathReqBodyBuilder

func NewUploadImagePathReqBodyBuilder() *UploadImagePathReqBodyBuilder

func (*UploadImagePathReqBodyBuilder) Build

func (*UploadImagePathReqBodyBuilder) DataPath

func (*UploadImagePathReqBodyBuilder) TargetId

func (*UploadImagePathReqBodyBuilder) TargetType

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

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   *int64    `json:"target_id,omitempty,string"`
	TargetType *int      `json:"target_type,omitempty"`
}

type UploadImageReqBodyBuilder

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

func NewUploadImageReqBodyBuilder

func NewUploadImageReqBodyBuilder() *UploadImageReqBodyBuilder

生成body的New构造器

func (*UploadImageReqBodyBuilder) Build

1.3 生成body的build方法

func (*UploadImageReqBodyBuilder) Data

1.2 生成body的builder属性方法

func (*UploadImageReqBodyBuilder) TargetId

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

func (*UploadImageReqBodyBuilder) TargetType

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

type UploadImageReqBuilder

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

1.4 生成请求的builder结构体

func NewUploadImageReqBuilder

func NewUploadImageReqBuilder() *UploadImageReqBuilder

生成请求的New构造器

func (*UploadImageReqBuilder) Body

1.5 生成请求的builder属性方法

func (*UploadImageReqBuilder) Build

func (builder *UploadImageReqBuilder) Build() *UploadImageReq

1.5 生成请求的builder的build方法

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 {
	Data *ImageInfo `json:"data,omitempty"`
}

type UpsertObjective

type UpsertObjective struct {
	Content      *string              `json:"content,omitempty"`
	MentionList  []string             `json:"mention_list,omitempty"`
	KrList       []*UpsertObjectiveKr `json:"kr_list,omitempty"`
	ProgressRate *ProgressRate        `json:"progress_rate,omitempty"`
	ProgressList []*ProgressItem      `json:"progress_list,omitempty"`
	Weight       *float64             `json:"weight,omitempty"`
}

type UpsertObjectiveBuilder

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

builder开始

func NewUpsertObjectiveBuilder

func NewUpsertObjectiveBuilder() *UpsertObjectiveBuilder

func (*UpsertObjectiveBuilder) Build

func (builder *UpsertObjectiveBuilder) Build() *UpsertObjective

func (*UpsertObjectiveBuilder) Content

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

func (*UpsertObjectiveBuilder) KrList

func (*UpsertObjectiveBuilder) MentionList

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

func (*UpsertObjectiveBuilder) ProgressList

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

func (*UpsertObjectiveBuilder) ProgressRate

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

func (*UpsertObjectiveBuilder) Weight

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

type UpsertObjectiveKr

type UpsertObjectiveKr struct {
	Content      *string         `json:"content,omitempty"`
	MentionList  []string        `json:"mention_list,omitempty"`
	Score        *int            `json:"score,omitempty"`
	ProgressRate *ProgressRate   `json:"progress_rate,omitempty"`
	ProgressList []*ProgressItem `json:"progress_list,omitempty"`
	Weight       *float64        `json:"weight,omitempty"`
}

type UpsertObjectiveKrBuilder

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

builder开始

func NewUpsertObjectiveKrBuilder

func NewUpsertObjectiveKrBuilder() *UpsertObjectiveKrBuilder

func (*UpsertObjectiveKrBuilder) Build

func (builder *UpsertObjectiveKrBuilder) Build() *UpsertObjectiveKr

func (*UpsertObjectiveKrBuilder) Content

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

func (*UpsertObjectiveKrBuilder) MentionList

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

func (*UpsertObjectiveKrBuilder) ProgressList

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

func (*UpsertObjectiveKrBuilder) ProgressRate

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

func (*UpsertObjectiveKrBuilder) Score

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

func (*UpsertObjectiveKrBuilder) Weight

type User

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

type UserBuilder

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

builder开始

func NewUserBuilder

func NewUserBuilder() *UserBuilder

func (*UserBuilder) Build

func (builder *UserBuilder) Build() *User

func (*UserBuilder) Id

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

type UserOkr

type UserOkr struct {
	Id            *int64              `json:"id,omitempty,string"`
	Name          *string             `json:"name,omitempty"`
	Permission    *int                `json:"permission,omitempty"`
	ObjectiveList []*UserOkrObjective `json:"objective_list,omitempty"`
}

type UserOkrBuilder

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

builder开始

func NewUserOkrBuilder

func NewUserOkrBuilder() *UserOkrBuilder

func (*UserOkrBuilder) Build

func (builder *UserOkrBuilder) Build() *UserOkr

func (*UserOkrBuilder) Id

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

func (*UserOkrBuilder) Name

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

func (*UserOkrBuilder) ObjectiveList

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

func (*UserOkrBuilder) Permission

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

type UserOkrObjective

type UserOkrObjective struct {
	Id                    *string                             `json:"id,omitempty"`
	Permission            *int                                `json:"permission,omitempty"`
	Content               *string                             `json:"content,omitempty"`
	ProgressReport        *string                             `json:"progress_report,omitempty"`
	Score                 *string                             `json:"score,omitempty"`
	ProgressRate          *UserOkrObjectiveProgressRate       `json:"progress_rate,omitempty"`
	KrList                []*UserOkrObjectiveKr               `json:"kr_list,omitempty"`
	AlignedObjectiveList  []*UserOkrObjectiveAlignedObjective `json:"aligned_objective_list,omitempty"`
	AligningObjectiveList []*UserOkrObjectiveAlignedObjective `json:"aligning_objective_list,omitempty"`
}

type UserOkrObjectiveAlignedObjective

type UserOkrObjectiveAlignedObjective struct {
	Id    *string                                `json:"id,omitempty"`
	OkrId *string                                `json:"okr_id,omitempty"`
	Owner *UserOkrObjectiveAlignedObjectiveOwner `json:"owner,omitempty"`
}

type UserOkrObjectiveAlignedObjectiveBuilder

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

builder开始

func NewUserOkrObjectiveAlignedObjectiveBuilder

func NewUserOkrObjectiveAlignedObjectiveBuilder() *UserOkrObjectiveAlignedObjectiveBuilder

func (*UserOkrObjectiveAlignedObjectiveBuilder) Build

func (*UserOkrObjectiveAlignedObjectiveBuilder) Id

func (*UserOkrObjectiveAlignedObjectiveBuilder) OkrId

func (*UserOkrObjectiveAlignedObjectiveBuilder) Owner

type UserOkrObjectiveAlignedObjectiveOwner

type UserOkrObjectiveAlignedObjectiveOwner struct {
	OpenId     *string `json:"open_id,omitempty"`
	EmployeeId *string `json:"employee_id,omitempty"`
	EmployeeNo *string `json:"employee_no,omitempty"`
	UnionId    *string `json:"union_id,omitempty"`
	Name       *string `json:"name,omitempty"`
}

type UserOkrObjectiveAlignedObjectiveOwnerBuilder

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

builder开始

func NewUserOkrObjectiveAlignedObjectiveOwnerBuilder

func NewUserOkrObjectiveAlignedObjectiveOwnerBuilder() *UserOkrObjectiveAlignedObjectiveOwnerBuilder

func (*UserOkrObjectiveAlignedObjectiveOwnerBuilder) Build

func (*UserOkrObjectiveAlignedObjectiveOwnerBuilder) EmployeeId

func (*UserOkrObjectiveAlignedObjectiveOwnerBuilder) EmployeeNo

func (*UserOkrObjectiveAlignedObjectiveOwnerBuilder) Name

func (*UserOkrObjectiveAlignedObjectiveOwnerBuilder) OpenId

func (*UserOkrObjectiveAlignedObjectiveOwnerBuilder) UnionId

type UserOkrObjectiveBuilder

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

builder开始

func NewUserOkrObjectiveBuilder

func NewUserOkrObjectiveBuilder() *UserOkrObjectiveBuilder

func (*UserOkrObjectiveBuilder) AlignedObjectiveList

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

func (*UserOkrObjectiveBuilder) AligningObjectiveList

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

func (*UserOkrObjectiveBuilder) Build

func (builder *UserOkrObjectiveBuilder) Build() *UserOkrObjective

func (*UserOkrObjectiveBuilder) Content

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

func (*UserOkrObjectiveBuilder) Id

func (*UserOkrObjectiveBuilder) KrList

func (*UserOkrObjectiveBuilder) Permission

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

func (*UserOkrObjectiveBuilder) ProgressRate

func (*UserOkrObjectiveBuilder) ProgressReport

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

func (*UserOkrObjectiveBuilder) Score

type UserOkrObjectiveKr

type UserOkrObjectiveKr struct {
	Id           *string                       `json:"id,omitempty"`
	Content      *string                       `json:"content,omitempty"`
	Score        *int                          `json:"score,omitempty"`
	Weight       *int                          `json:"weight,omitempty"`
	ProgressRate *UserOkrObjectiveProgressRate `json:"progress_rate,omitempty"`
}

type UserOkrObjectiveKrBuilder

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

builder开始

func NewUserOkrObjectiveKrBuilder

func NewUserOkrObjectiveKrBuilder() *UserOkrObjectiveKrBuilder

func (*UserOkrObjectiveKrBuilder) Build

func (*UserOkrObjectiveKrBuilder) Content

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

func (*UserOkrObjectiveKrBuilder) Id

func (*UserOkrObjectiveKrBuilder) ProgressRate

func (*UserOkrObjectiveKrBuilder) Score

func (*UserOkrObjectiveKrBuilder) Weight

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

type UserOkrObjectiveProgressRate

type UserOkrObjectiveProgressRate struct {
	Percent *int    `json:"percent,omitempty"`
	Status  *string `json:"status,omitempty"`
}

type UserOkrObjectiveProgressRateBuilder

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

builder开始

func NewUserOkrObjectiveProgressRateBuilder

func NewUserOkrObjectiveProgressRateBuilder() *UserOkrObjectiveProgressRateBuilder

func (*UserOkrObjectiveProgressRateBuilder) Build

func (*UserOkrObjectiveProgressRateBuilder) Percent

func (*UserOkrObjectiveProgressRateBuilder) Status

Jump to

Keyboard shortcuts

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