Documentation ¶
Index ¶
- Constants
- type AlignObjective
- type AlignObjectiveBuilder
- func (builder *AlignObjectiveBuilder) Build() *AlignObjective
- func (builder *AlignObjectiveBuilder) Id(id string) *AlignObjectiveBuilder
- func (builder *AlignObjectiveBuilder) OkrId(okrId string) *AlignObjectiveBuilder
- func (builder *AlignObjectiveBuilder) UserId(userId string) *AlignObjectiveBuilder
- type BatchGetOkrReq
- type BatchGetOkrReqBuilder
- func (builder *BatchGetOkrReqBuilder) Build() *BatchGetOkrReq
- func (builder *BatchGetOkrReqBuilder) Lang(lang string) *BatchGetOkrReqBuilder
- func (builder *BatchGetOkrReqBuilder) OkrIds(okrIds []string) *BatchGetOkrReqBuilder
- func (builder *BatchGetOkrReqBuilder) UserIdType(userIdType string) *BatchGetOkrReqBuilder
- type BatchGetOkrResp
- type BatchGetOkrRespData
- type BatchUpdateMetricSourceTableItemPathReqBodyBuilder
- type BatchUpdateMetricSourceTableItemReq
- type BatchUpdateMetricSourceTableItemReqBody
- type BatchUpdateMetricSourceTableItemReqBodyBuilder
- type BatchUpdateMetricSourceTableItemReqBuilder
- func (builder *BatchUpdateMetricSourceTableItemReqBuilder) Body(body *BatchUpdateMetricSourceTableItemReqBody) *BatchUpdateMetricSourceTableItemReqBuilder
- func (builder *BatchUpdateMetricSourceTableItemReqBuilder) Build() *BatchUpdateMetricSourceTableItemReq
- func (builder *BatchUpdateMetricSourceTableItemReqBuilder) MetricSourceId(metricSourceId string) *BatchUpdateMetricSourceTableItemReqBuilder
- func (builder *BatchUpdateMetricSourceTableItemReqBuilder) MetricTableId(metricTableId string) *BatchUpdateMetricSourceTableItemReqBuilder
- func (builder *BatchUpdateMetricSourceTableItemReqBuilder) UserIdType(userIdType string) *BatchUpdateMetricSourceTableItemReqBuilder
- type BatchUpdateMetricSourceTableItemResp
- type BatchUpdateMetricSourceTableItemRespData
- type ContentBlock
- type ContentBlockBuilder
- type ContentBlockElement
- type ContentBlockElementBuilder
- func (builder *ContentBlockElementBuilder) Build() *ContentBlockElement
- func (builder *ContentBlockElementBuilder) Gallery(gallery *ContentGallery) *ContentBlockElementBuilder
- func (builder *ContentBlockElementBuilder) Paragraph(paragraph *ContentParagraph) *ContentBlockElementBuilder
- func (builder *ContentBlockElementBuilder) Type(type_ string) *ContentBlockElementBuilder
- type ContentColor
- type ContentColorBuilder
- func (builder *ContentColorBuilder) Alpha(alpha float64) *ContentColorBuilder
- func (builder *ContentColorBuilder) Blue(blue int) *ContentColorBuilder
- func (builder *ContentColorBuilder) Build() *ContentColor
- func (builder *ContentColorBuilder) Green(green int) *ContentColorBuilder
- func (builder *ContentColorBuilder) Red(red int) *ContentColorBuilder
- type ContentDocsLink
- type ContentDocsLinkBuilder
- type ContentGallery
- type ContentGalleryBuilder
- type ContentImageItem
- type ContentImageItemBuilder
- func (builder *ContentImageItemBuilder) Build() *ContentImageItem
- func (builder *ContentImageItemBuilder) FileToken(fileToken string) *ContentImageItemBuilder
- func (builder *ContentImageItemBuilder) Height(height float64) *ContentImageItemBuilder
- func (builder *ContentImageItemBuilder) Src(src string) *ContentImageItemBuilder
- func (builder *ContentImageItemBuilder) Width(width float64) *ContentImageItemBuilder
- type ContentLink
- type ContentLinkBuilder
- type ContentList
- type ContentListBuilder
- type ContentParagraph
- type ContentParagraphBuilder
- type ContentParagraphElement
- type ContentParagraphElementBuilder
- func (builder *ContentParagraphElementBuilder) Build() *ContentParagraphElement
- func (builder *ContentParagraphElementBuilder) DocsLink(docsLink *ContentDocsLink) *ContentParagraphElementBuilder
- func (builder *ContentParagraphElementBuilder) Person(person *ContentPerson) *ContentParagraphElementBuilder
- func (builder *ContentParagraphElementBuilder) TextRun(textRun *ContentTextRun) *ContentParagraphElementBuilder
- func (builder *ContentParagraphElementBuilder) Type(type_ string) *ContentParagraphElementBuilder
- type ContentParagraphStyle
- type ContentParagraphStyleBuilder
- type ContentPerson
- type ContentPersonBuilder
- type ContentTextRun
- type ContentTextRunBuilder
- type ContentTextStyle
- type ContentTextStyleBuilder
- func (builder *ContentTextStyleBuilder) BackColor(backColor *ContentColor) *ContentTextStyleBuilder
- func (builder *ContentTextStyleBuilder) Bold(bold bool) *ContentTextStyleBuilder
- func (builder *ContentTextStyleBuilder) Build() *ContentTextStyle
- func (builder *ContentTextStyleBuilder) Link(link *ContentLink) *ContentTextStyleBuilder
- func (builder *ContentTextStyleBuilder) StrikeThrough(strikeThrough bool) *ContentTextStyleBuilder
- func (builder *ContentTextStyleBuilder) TextColor(textColor *ContentColor) *ContentTextStyleBuilder
- type CreateProgressRecordPathReqBodyBuilder
- func (builder *CreateProgressRecordPathReqBodyBuilder) Build() (*CreateProgressRecordReqBody, error)
- func (builder *CreateProgressRecordPathReqBodyBuilder) Content(content *ContentBlock) *CreateProgressRecordPathReqBodyBuilder
- func (builder *CreateProgressRecordPathReqBodyBuilder) SourceTitle(sourceTitle string) *CreateProgressRecordPathReqBodyBuilder
- func (builder *CreateProgressRecordPathReqBodyBuilder) SourceUrl(sourceUrl string) *CreateProgressRecordPathReqBodyBuilder
- func (builder *CreateProgressRecordPathReqBodyBuilder) SourceUrlMobile(sourceUrlMobile string) *CreateProgressRecordPathReqBodyBuilder
- func (builder *CreateProgressRecordPathReqBodyBuilder) SourceUrlPc(sourceUrlPc string) *CreateProgressRecordPathReqBodyBuilder
- func (builder *CreateProgressRecordPathReqBodyBuilder) TargetId(targetId string) *CreateProgressRecordPathReqBodyBuilder
- func (builder *CreateProgressRecordPathReqBodyBuilder) TargetType(targetType int) *CreateProgressRecordPathReqBodyBuilder
- type CreateProgressRecordReq
- type CreateProgressRecordReqBody
- type CreateProgressRecordReqBodyBuilder
- func (builder *CreateProgressRecordReqBodyBuilder) Build() *CreateProgressRecordReqBody
- func (builder *CreateProgressRecordReqBodyBuilder) Content(content *ContentBlock) *CreateProgressRecordReqBodyBuilder
- func (builder *CreateProgressRecordReqBodyBuilder) SourceTitle(sourceTitle string) *CreateProgressRecordReqBodyBuilder
- func (builder *CreateProgressRecordReqBodyBuilder) SourceUrl(sourceUrl string) *CreateProgressRecordReqBodyBuilder
- func (builder *CreateProgressRecordReqBodyBuilder) SourceUrlMobile(sourceUrlMobile string) *CreateProgressRecordReqBodyBuilder
- func (builder *CreateProgressRecordReqBodyBuilder) SourceUrlPc(sourceUrlPc string) *CreateProgressRecordReqBodyBuilder
- func (builder *CreateProgressRecordReqBodyBuilder) TargetId(targetId string) *CreateProgressRecordReqBodyBuilder
- func (builder *CreateProgressRecordReqBodyBuilder) TargetType(targetType int) *CreateProgressRecordReqBodyBuilder
- type CreateProgressRecordReqBuilder
- func (builder *CreateProgressRecordReqBuilder) Body(body *CreateProgressRecordReqBody) *CreateProgressRecordReqBuilder
- func (builder *CreateProgressRecordReqBuilder) Build() *CreateProgressRecordReq
- func (builder *CreateProgressRecordReqBuilder) UserIdType(userIdType string) *CreateProgressRecordReqBuilder
- type CreateProgressRecordResp
- type CreateProgressRecordRespData
- type CurrentOkrSimple
- type CurrentOkrSimpleBuilder
- type DeleteProgressRecordReq
- type DeleteProgressRecordReqBuilder
- type DeleteProgressRecordResp
- type Dummy
- type DummyBuilder
- type FailedMetricItem
- type FailedMetricItemBuilder
- type GetMetricSourceTableItemReq
- type GetMetricSourceTableItemReqBuilder
- func (builder *GetMetricSourceTableItemReqBuilder) Build() *GetMetricSourceTableItemReq
- func (builder *GetMetricSourceTableItemReqBuilder) MetricItemId(metricItemId string) *GetMetricSourceTableItemReqBuilder
- func (builder *GetMetricSourceTableItemReqBuilder) MetricSourceId(metricSourceId string) *GetMetricSourceTableItemReqBuilder
- func (builder *GetMetricSourceTableItemReqBuilder) MetricTableId(metricTableId string) *GetMetricSourceTableItemReqBuilder
- func (builder *GetMetricSourceTableItemReqBuilder) UserIdType(userIdType string) *GetMetricSourceTableItemReqBuilder
- type GetMetricSourceTableItemResp
- type GetMetricSourceTableItemRespData
- type GetProgressRecordReq
- type GetProgressRecordReqBuilder
- type GetProgressRecordResp
- type GetProgressRecordRespData
- type ImageInfo
- type ImageInfoBuilder
- type Kr
- type KrBuilder
- func (builder *KrBuilder) Build() *Kr
- func (builder *KrBuilder) Content(content *KrContent) *KrBuilder
- func (builder *KrBuilder) CreateTime(createTime int) *KrBuilder
- func (builder *KrBuilder) Id(id string) *KrBuilder
- func (builder *KrBuilder) ModifyTime(modifyTime int) *KrBuilder
- func (builder *KrBuilder) Pos(pos string) *KrBuilder
- func (builder *KrBuilder) Score(score string) *KrBuilder
- func (builder *KrBuilder) Weight(weight string) *KrBuilder
- type KrContent
- type KrContentBuilder
- type ListMetricSourceReq
- type ListMetricSourceReqBuilder
- type ListMetricSourceResp
- type ListMetricSourceRespData
- type ListMetricSourceTableItemReq
- type ListMetricSourceTableItemReqBuilder
- func (builder *ListMetricSourceTableItemReqBuilder) Build() *ListMetricSourceTableItemReq
- func (builder *ListMetricSourceTableItemReqBuilder) MetricSourceId(metricSourceId string) *ListMetricSourceTableItemReqBuilder
- func (builder *ListMetricSourceTableItemReqBuilder) MetricTableId(metricTableId string) *ListMetricSourceTableItemReqBuilder
- func (builder *ListMetricSourceTableItemReqBuilder) PageSize(pageSize string) *ListMetricSourceTableItemReqBuilder
- func (builder *ListMetricSourceTableItemReqBuilder) PageToken(pageToken string) *ListMetricSourceTableItemReqBuilder
- func (builder *ListMetricSourceTableItemReqBuilder) UserIdType(userIdType string) *ListMetricSourceTableItemReqBuilder
- type ListMetricSourceTableItemResp
- type ListMetricSourceTableItemRespData
- type ListMetricSourceTableReq
- type ListMetricSourceTableReqBuilder
- func (builder *ListMetricSourceTableReqBuilder) Build() *ListMetricSourceTableReq
- func (builder *ListMetricSourceTableReqBuilder) MetricSourceId(metricSourceId string) *ListMetricSourceTableReqBuilder
- func (builder *ListMetricSourceTableReqBuilder) PageSize(pageSize string) *ListMetricSourceTableReqBuilder
- func (builder *ListMetricSourceTableReqBuilder) PageToken(pageToken string) *ListMetricSourceTableReqBuilder
- type ListMetricSourceTableResp
- type ListMetricSourceTableRespData
- type ListPeriodReq
- type ListPeriodReqBuilder
- type ListPeriodResp
- type ListPeriodRespData
- type ListUserOkrReq
- type ListUserOkrReqBuilder
- func (builder *ListUserOkrReqBuilder) Build() *ListUserOkrReq
- func (builder *ListUserOkrReqBuilder) Lang(lang string) *ListUserOkrReqBuilder
- func (builder *ListUserOkrReqBuilder) Limit(limit string) *ListUserOkrReqBuilder
- func (builder *ListUserOkrReqBuilder) Offset(offset string) *ListUserOkrReqBuilder
- func (builder *ListUserOkrReqBuilder) PeriodIds(periodIds []string) *ListUserOkrReqBuilder
- func (builder *ListUserOkrReqBuilder) UserId(userId string) *ListUserOkrReqBuilder
- func (builder *ListUserOkrReqBuilder) UserIdType(userIdType string) *ListUserOkrReqBuilder
- type ListUserOkrResp
- type ListUserOkrRespData
- type MetricItem
- type MetricItemBuilder
- func (builder *MetricItemBuilder) Build() *MetricItem
- func (builder *MetricItemBuilder) KrId(krId string) *MetricItemBuilder
- func (builder *MetricItemBuilder) MetricCurrentValue(metricCurrentValue float64) *MetricItemBuilder
- func (builder *MetricItemBuilder) MetricInitialValue(metricInitialValue float64) *MetricItemBuilder
- func (builder *MetricItemBuilder) MetricItemId(metricItemId string) *MetricItemBuilder
- func (builder *MetricItemBuilder) MetricTargetValue(metricTargetValue float64) *MetricItemBuilder
- func (builder *MetricItemBuilder) MetricUnit(metricUnit *MetricUnit) *MetricItemBuilder
- func (builder *MetricItemBuilder) PeriodId(periodId string) *MetricItemBuilder
- func (builder *MetricItemBuilder) SupportedUserId(supportedUserId string) *MetricItemBuilder
- func (builder *MetricItemBuilder) UpdatedAt(updatedAt string) *MetricItemBuilder
- func (builder *MetricItemBuilder) UpdatedBy(updatedBy string) *MetricItemBuilder
- func (builder *MetricItemBuilder) UserId(userId string) *MetricItemBuilder
- type MetricItemRequest
- type MetricItemRequestBuilder
- func (builder *MetricItemRequestBuilder) Build() *MetricItemRequest
- func (builder *MetricItemRequestBuilder) MetricCurrentValue(metricCurrentValue float64) *MetricItemRequestBuilder
- func (builder *MetricItemRequestBuilder) MetricInitialValue(metricInitialValue float64) *MetricItemRequestBuilder
- func (builder *MetricItemRequestBuilder) MetricItemId(metricItemId string) *MetricItemRequestBuilder
- func (builder *MetricItemRequestBuilder) MetricTargetValue(metricTargetValue float64) *MetricItemRequestBuilder
- func (builder *MetricItemRequestBuilder) SupportedUserId(supportedUserId string) *MetricItemRequestBuilder
- type MetricSource
- type MetricSourceBuilder
- func (builder *MetricSourceBuilder) Build() *MetricSource
- func (builder *MetricSourceBuilder) MetricName(metricName string) *MetricSourceBuilder
- func (builder *MetricSourceBuilder) MetricSourceId(metricSourceId string) *MetricSourceBuilder
- func (builder *MetricSourceBuilder) MetricSourceName(metricSourceName string) *MetricSourceBuilder
- func (builder *MetricSourceBuilder) MetricUnit(metricUnit *MetricUnit) *MetricSourceBuilder
- type MetricTable
- type MetricTableBuilder
- func (builder *MetricTableBuilder) Build() *MetricTable
- func (builder *MetricTableBuilder) MetricTableId(metricTableId string) *MetricTableBuilder
- func (builder *MetricTableBuilder) MetricTableName(metricTableName string) *MetricTableBuilder
- func (builder *MetricTableBuilder) PeriodId(periodId string) *MetricTableBuilder
- type MetricUnit
- type MetricUnitBuilder
- type Objective
- type ObjectiveBuilder
- func (builder *ObjectiveBuilder) AlignedObjectiveList(alignedObjectiveList []*AlignObjective) *ObjectiveBuilder
- func (builder *ObjectiveBuilder) AligningObjectiveList(aligningObjectiveList []*AlignObjective) *ObjectiveBuilder
- func (builder *ObjectiveBuilder) Build() *Objective
- func (builder *ObjectiveBuilder) CreateTime(createTime int) *ObjectiveBuilder
- func (builder *ObjectiveBuilder) Id(id string) *ObjectiveBuilder
- func (builder *ObjectiveBuilder) KrList(krList []*Kr) *ObjectiveBuilder
- func (builder *ObjectiveBuilder) ModifyTime(modifyTime int) *ObjectiveBuilder
- func (builder *ObjectiveBuilder) Name(name *ObjectiveName) *ObjectiveBuilder
- func (builder *ObjectiveBuilder) OkrId(okrId string) *ObjectiveBuilder
- func (builder *ObjectiveBuilder) Pos(pos string) *ObjectiveBuilder
- func (builder *ObjectiveBuilder) Progress(progress *ObjectiveProgress) *ObjectiveBuilder
- func (builder *ObjectiveBuilder) Score(score string) *ObjectiveBuilder
- func (builder *ObjectiveBuilder) UserId(userId string) *ObjectiveBuilder
- type ObjectiveName
- type ObjectiveNameBuilder
- type ObjectiveProgress
- type ObjectiveProgressBuilder
- type Okr
- type OkrBatch
- type OkrBatchBuilder
- func (builder *OkrBatchBuilder) Build() *OkrBatch
- func (builder *OkrBatchBuilder) ConfirmStatus(confirmStatus int) *OkrBatchBuilder
- func (builder *OkrBatchBuilder) Id(id string) *OkrBatchBuilder
- func (builder *OkrBatchBuilder) Name(name string) *OkrBatchBuilder
- func (builder *OkrBatchBuilder) ObjectiveList(objectiveList []*OkrObjective) *OkrBatchBuilder
- func (builder *OkrBatchBuilder) PeriodId(periodId string) *OkrBatchBuilder
- func (builder *OkrBatchBuilder) Permission(permission int) *OkrBatchBuilder
- type OkrBuilder
- func (builder *OkrBuilder) Build() *Okr
- func (builder *OkrBuilder) CreateTime(createTime int) *OkrBuilder
- func (builder *OkrBuilder) ModifyTime(modifyTime int) *OkrBuilder
- func (builder *OkrBuilder) Name(name *OkrName) *OkrBuilder
- func (builder *OkrBuilder) ObjectiveList(objectiveList []*OkrDetailObjective) *OkrBuilder
- func (builder *OkrBuilder) OkrId(okrId string) *OkrBuilder
- func (builder *OkrBuilder) OkrScore(okrScore int) *OkrBuilder
- func (builder *OkrBuilder) PeriodId(periodId string) *OkrBuilder
- func (builder *OkrBuilder) PeriodType(periodType string) *OkrBuilder
- type OkrComment
- type OkrCommentBuilder
- func (builder *OkrCommentBuilder) Build() *OkrComment
- func (builder *OkrCommentBuilder) CommentTime(commentTime int) *OkrCommentBuilder
- func (builder *OkrCommentBuilder) Commentator(commentator *OkrObjectiveAlignedObjectiveOwner) *OkrCommentBuilder
- func (builder *OkrCommentBuilder) Content(content string) *OkrCommentBuilder
- func (builder *OkrCommentBuilder) ContentModifyTime(contentModifyTime int) *OkrCommentBuilder
- func (builder *OkrCommentBuilder) Id(id string) *OkrCommentBuilder
- func (builder *OkrCommentBuilder) LastModifier(lastModifier *OkrObjectiveAlignedObjectiveOwner) *OkrCommentBuilder
- func (builder *OkrCommentBuilder) SolvedTime(solvedTime int) *OkrCommentBuilder
- type OkrDetail
- type OkrDetailBuilder
- func (builder *OkrDetailBuilder) Build() *OkrDetail
- func (builder *OkrDetailBuilder) CreateTime(createTime int) *OkrDetailBuilder
- func (builder *OkrDetailBuilder) ModifyTime(modifyTime int) *OkrDetailBuilder
- func (builder *OkrDetailBuilder) Name(name *OkrName) *OkrDetailBuilder
- func (builder *OkrDetailBuilder) ObjectiveList(objectiveList []*OkrDetailObjective) *OkrDetailBuilder
- func (builder *OkrDetailBuilder) OkrId(okrId string) *OkrDetailBuilder
- func (builder *OkrDetailBuilder) OkrScore(okrScore int) *OkrDetailBuilder
- func (builder *OkrDetailBuilder) PeriodId(periodId string) *OkrDetailBuilder
- func (builder *OkrDetailBuilder) PeriodType(periodType string) *OkrDetailBuilder
- type OkrDetailObjective
- type OkrDetailObjectiveAlign
- type OkrDetailObjectiveAlignBuilder
- func (builder *OkrDetailObjectiveAlignBuilder) Build() *OkrDetailObjectiveAlign
- func (builder *OkrDetailObjectiveAlignBuilder) Id(id string) *OkrDetailObjectiveAlignBuilder
- func (builder *OkrDetailObjectiveAlignBuilder) OkrId(okrId string) *OkrDetailObjectiveAlignBuilder
- func (builder *OkrDetailObjectiveAlignBuilder) UserId(userId string) *OkrDetailObjectiveAlignBuilder
- type OkrDetailObjectiveBuilder
- func (builder *OkrDetailObjectiveBuilder) AlignedObjectiveList(alignedObjectiveList []*OkrDetailObjectiveAlign) *OkrDetailObjectiveBuilder
- func (builder *OkrDetailObjectiveBuilder) AligningObjectiveList(aligningObjectiveList []*OkrDetailObjectiveAlign) *OkrDetailObjectiveBuilder
- func (builder *OkrDetailObjectiveBuilder) Build() *OkrDetailObjective
- func (builder *OkrDetailObjectiveBuilder) CreateTime(createTime int) *OkrDetailObjectiveBuilder
- func (builder *OkrDetailObjectiveBuilder) Id(id string) *OkrDetailObjectiveBuilder
- func (builder *OkrDetailObjectiveBuilder) KrList(krList []*OkrDetailObjectiveKr) *OkrDetailObjectiveBuilder
- func (builder *OkrDetailObjectiveBuilder) ModifyTime(modifyTime int) *OkrDetailObjectiveBuilder
- func (builder *OkrDetailObjectiveBuilder) Name(name *OkrName) *OkrDetailObjectiveBuilder
- func (builder *OkrDetailObjectiveBuilder) OkrId(okrId string) *OkrDetailObjectiveBuilder
- func (builder *OkrDetailObjectiveBuilder) Pos(pos int) *OkrDetailObjectiveBuilder
- func (builder *OkrDetailObjectiveBuilder) Progress(progress *OkrName) *OkrDetailObjectiveBuilder
- func (builder *OkrDetailObjectiveBuilder) Score(score int) *OkrDetailObjectiveBuilder
- func (builder *OkrDetailObjectiveBuilder) UserId(userId string) *OkrDetailObjectiveBuilder
- func (builder *OkrDetailObjectiveBuilder) Weight(weight float64) *OkrDetailObjectiveBuilder
- type OkrDetailObjectiveKr
- type OkrDetailObjectiveKrBuilder
- func (builder *OkrDetailObjectiveKrBuilder) Build() *OkrDetailObjectiveKr
- func (builder *OkrDetailObjectiveKrBuilder) Content(content *OkrName) *OkrDetailObjectiveKrBuilder
- func (builder *OkrDetailObjectiveKrBuilder) CreateTime(createTime int) *OkrDetailObjectiveKrBuilder
- func (builder *OkrDetailObjectiveKrBuilder) Id(id string) *OkrDetailObjectiveKrBuilder
- func (builder *OkrDetailObjectiveKrBuilder) ModifyTime(modifyTime int) *OkrDetailObjectiveKrBuilder
- func (builder *OkrDetailObjectiveKrBuilder) Pos(pos int) *OkrDetailObjectiveKrBuilder
- func (builder *OkrDetailObjectiveKrBuilder) Score(score int) *OkrDetailObjectiveKrBuilder
- func (builder *OkrDetailObjectiveKrBuilder) Weight(weight float64) *OkrDetailObjectiveKrBuilder
- type OkrListInfo
- type OkrListInfoBuilder
- type OkrName
- type OkrNameBuilder
- type OkrObjective
- type OkrObjectiveAlignedObjective
- type OkrObjectiveAlignedObjectiveBuilder
- func (builder *OkrObjectiveAlignedObjectiveBuilder) Build() *OkrObjectiveAlignedObjective
- func (builder *OkrObjectiveAlignedObjectiveBuilder) Id(id string) *OkrObjectiveAlignedObjectiveBuilder
- func (builder *OkrObjectiveAlignedObjectiveBuilder) OkrId(okrId string) *OkrObjectiveAlignedObjectiveBuilder
- func (builder *OkrObjectiveAlignedObjectiveBuilder) Owner(owner *OkrObjectiveAlignedObjectiveOwner) *OkrObjectiveAlignedObjectiveBuilder
- type OkrObjectiveAlignedObjectiveOwner
- type OkrObjectiveAlignedObjectiveOwnerBuilder
- func (builder *OkrObjectiveAlignedObjectiveOwnerBuilder) Build() *OkrObjectiveAlignedObjectiveOwner
- func (builder *OkrObjectiveAlignedObjectiveOwnerBuilder) OpenId(openId string) *OkrObjectiveAlignedObjectiveOwnerBuilder
- func (builder *OkrObjectiveAlignedObjectiveOwnerBuilder) UserId(userId string) *OkrObjectiveAlignedObjectiveOwnerBuilder
- type OkrObjectiveAlignment
- type OkrObjectiveAlignmentBuilder
- func (builder *OkrObjectiveAlignmentBuilder) Build() *OkrObjectiveAlignment
- func (builder *OkrObjectiveAlignmentBuilder) Id(id string) *OkrObjectiveAlignmentBuilder
- func (builder *OkrObjectiveAlignmentBuilder) ToId(toId string) *OkrObjectiveAlignmentBuilder
- func (builder *OkrObjectiveAlignmentBuilder) ToType(toType int) *OkrObjectiveAlignmentBuilder
- type OkrObjectiveBuilder
- func (builder *OkrObjectiveBuilder) AlignedObjectiveList(alignedObjectiveList []*OkrObjectiveAlignedObjective) *OkrObjectiveBuilder
- func (builder *OkrObjectiveBuilder) AligningObjectiveList(aligningObjectiveList []*OkrObjectiveAlignedObjective) *OkrObjectiveBuilder
- func (builder *OkrObjectiveBuilder) Build() *OkrObjective
- func (builder *OkrObjectiveBuilder) Content(content string) *OkrObjectiveBuilder
- func (builder *OkrObjectiveBuilder) Deadline(deadline string) *OkrObjectiveBuilder
- func (builder *OkrObjectiveBuilder) Id(id string) *OkrObjectiveBuilder
- func (builder *OkrObjectiveBuilder) KrList(krList []*OkrObjectiveKr) *OkrObjectiveBuilder
- func (builder *OkrObjectiveBuilder) MentionedUserList(mentionedUserList []*OkrObjectiveAlignedObjectiveOwner) *OkrObjectiveBuilder
- func (builder *OkrObjectiveBuilder) Permission(permission int) *OkrObjectiveBuilder
- func (builder *OkrObjectiveBuilder) ProgressRate(progressRate *OkrObjectiveProgressRate) *OkrObjectiveBuilder
- func (builder *OkrObjectiveBuilder) ProgressRatePercentLastUpdatedTime(progressRatePercentLastUpdatedTime string) *OkrObjectiveBuilder
- func (builder *OkrObjectiveBuilder) ProgressRateStatusLastUpdatedTime(progressRateStatusLastUpdatedTime string) *OkrObjectiveBuilder
- func (builder *OkrObjectiveBuilder) ProgressRecordLastUpdatedTime(progressRecordLastUpdatedTime string) *OkrObjectiveBuilder
- func (builder *OkrObjectiveBuilder) ProgressRecordList(progressRecordList []*ProgressRecordSimplify) *OkrObjectiveBuilder
- func (builder *OkrObjectiveBuilder) ProgressReport(progressReport string) *OkrObjectiveBuilder
- func (builder *OkrObjectiveBuilder) ProgressReportLastUpdatedTime(progressReportLastUpdatedTime string) *OkrObjectiveBuilder
- func (builder *OkrObjectiveBuilder) Score(score int) *OkrObjectiveBuilder
- func (builder *OkrObjectiveBuilder) ScoreLastUpdatedTime(scoreLastUpdatedTime string) *OkrObjectiveBuilder
- func (builder *OkrObjectiveBuilder) Weight(weight float64) *OkrObjectiveBuilder
- type OkrObjectiveKr
- type OkrObjectiveKrBuilder
- func (builder *OkrObjectiveKrBuilder) Build() *OkrObjectiveKr
- func (builder *OkrObjectiveKrBuilder) Content(content string) *OkrObjectiveKrBuilder
- func (builder *OkrObjectiveKrBuilder) Deadline(deadline string) *OkrObjectiveKrBuilder
- func (builder *OkrObjectiveKrBuilder) Id(id string) *OkrObjectiveKrBuilder
- func (builder *OkrObjectiveKrBuilder) KrWeight(krWeight float64) *OkrObjectiveKrBuilder
- func (builder *OkrObjectiveKrBuilder) MentionedUserList(mentionedUserList []*OkrObjectiveAlignedObjectiveOwner) *OkrObjectiveKrBuilder
- func (builder *OkrObjectiveKrBuilder) ProgressRate(progressRate *OkrObjectiveProgressRate) *OkrObjectiveKrBuilder
- func (builder *OkrObjectiveKrBuilder) ProgressRatePercentLastUpdatedTime(progressRatePercentLastUpdatedTime string) *OkrObjectiveKrBuilder
- func (builder *OkrObjectiveKrBuilder) ProgressRateStatusLastUpdatedTime(progressRateStatusLastUpdatedTime string) *OkrObjectiveKrBuilder
- func (builder *OkrObjectiveKrBuilder) ProgressRecordLastUpdatedTime(progressRecordLastUpdatedTime string) *OkrObjectiveKrBuilder
- func (builder *OkrObjectiveKrBuilder) ProgressRecordList(progressRecordList []*ProgressRecordSimplify) *OkrObjectiveKrBuilder
- func (builder *OkrObjectiveKrBuilder) ProgressReportLastUpdatedTime(progressReportLastUpdatedTime string) *OkrObjectiveKrBuilder
- func (builder *OkrObjectiveKrBuilder) Score(score int) *OkrObjectiveKrBuilder
- func (builder *OkrObjectiveKrBuilder) ScoreLastUpdatedTime(scoreLastUpdatedTime string) *OkrObjectiveKrBuilder
- func (builder *OkrObjectiveKrBuilder) Weight(weight int) *OkrObjectiveKrBuilder
- type OkrObjectiveProgressRate
- type OkrObjectiveProgressRateBuilder
- type OkrReview
- type OkrReviewBuilder
- type OkrReviewPeriod
- type OkrReviewPeriodBuilder
- func (builder *OkrReviewPeriodBuilder) Build() *OkrReviewPeriod
- func (builder *OkrReviewPeriodBuilder) CycleReviewList(cycleReviewList []*OkrReviewPeriodUrl) *OkrReviewPeriodBuilder
- func (builder *OkrReviewPeriodBuilder) PeriodId(periodId string) *OkrReviewPeriodBuilder
- func (builder *OkrReviewPeriodBuilder) ProgressReportList(progressReportList []*OkrReviewPeriodUrl) *OkrReviewPeriodBuilder
- type OkrReviewPeriodUrl
- type OkrReviewPeriodUrlBuilder
- type OkrService
- type OkrSimple
- type OkrSimpleBuilder
- func (builder *OkrSimpleBuilder) Build() *OkrSimple
- func (builder *OkrSimpleBuilder) Name(name *OkrName) *OkrSimpleBuilder
- func (builder *OkrSimpleBuilder) OkrId(okrId string) *OkrSimpleBuilder
- func (builder *OkrSimpleBuilder) PeriodId(periodId string) *OkrSimpleBuilder
- func (builder *OkrSimpleBuilder) PeriodType(periodType string) *OkrSimpleBuilder
- type PatchMetricSourceTableItemPathReqBodyBuilder
- func (builder *PatchMetricSourceTableItemPathReqBodyBuilder) Build() (*PatchMetricSourceTableItemReqBody, error)
- func (builder *PatchMetricSourceTableItemPathReqBodyBuilder) MetricCurrentValue(metricCurrentValue float64) *PatchMetricSourceTableItemPathReqBodyBuilder
- func (builder *PatchMetricSourceTableItemPathReqBodyBuilder) MetricInitialValue(metricInitialValue float64) *PatchMetricSourceTableItemPathReqBodyBuilder
- func (builder *PatchMetricSourceTableItemPathReqBodyBuilder) MetricTargetValue(metricTargetValue float64) *PatchMetricSourceTableItemPathReqBodyBuilder
- func (builder *PatchMetricSourceTableItemPathReqBodyBuilder) SupportedUserId(supportedUserId string) *PatchMetricSourceTableItemPathReqBodyBuilder
- type PatchMetricSourceTableItemReq
- type PatchMetricSourceTableItemReqBody
- type PatchMetricSourceTableItemReqBodyBuilder
- func (builder *PatchMetricSourceTableItemReqBodyBuilder) Build() *PatchMetricSourceTableItemReqBody
- func (builder *PatchMetricSourceTableItemReqBodyBuilder) MetricCurrentValue(metricCurrentValue float64) *PatchMetricSourceTableItemReqBodyBuilder
- func (builder *PatchMetricSourceTableItemReqBodyBuilder) MetricInitialValue(metricInitialValue float64) *PatchMetricSourceTableItemReqBodyBuilder
- func (builder *PatchMetricSourceTableItemReqBodyBuilder) MetricTargetValue(metricTargetValue float64) *PatchMetricSourceTableItemReqBodyBuilder
- func (builder *PatchMetricSourceTableItemReqBodyBuilder) SupportedUserId(supportedUserId string) *PatchMetricSourceTableItemReqBodyBuilder
- type PatchMetricSourceTableItemReqBuilder
- func (builder *PatchMetricSourceTableItemReqBuilder) Body(body *PatchMetricSourceTableItemReqBody) *PatchMetricSourceTableItemReqBuilder
- func (builder *PatchMetricSourceTableItemReqBuilder) Build() *PatchMetricSourceTableItemReq
- func (builder *PatchMetricSourceTableItemReqBuilder) MetricItemId(metricItemId string) *PatchMetricSourceTableItemReqBuilder
- func (builder *PatchMetricSourceTableItemReqBuilder) MetricSourceId(metricSourceId string) *PatchMetricSourceTableItemReqBuilder
- func (builder *PatchMetricSourceTableItemReqBuilder) MetricTableId(metricTableId string) *PatchMetricSourceTableItemReqBuilder
- func (builder *PatchMetricSourceTableItemReqBuilder) UserIdType(userIdType string) *PatchMetricSourceTableItemReqBuilder
- type PatchMetricSourceTableItemResp
- type PatchMetricSourceTableItemRespData
- type Period
- type PeriodBuilder
- func (builder *PeriodBuilder) Build() *Period
- func (builder *PeriodBuilder) EnName(enName string) *PeriodBuilder
- func (builder *PeriodBuilder) Id(id string) *PeriodBuilder
- func (builder *PeriodBuilder) PeriodEndTime(periodEndTime string) *PeriodBuilder
- func (builder *PeriodBuilder) PeriodStartTime(periodStartTime string) *PeriodBuilder
- func (builder *PeriodBuilder) Status(status int) *PeriodBuilder
- func (builder *PeriodBuilder) ZhName(zhName string) *PeriodBuilder
- type PeriodRule
- type PeriodRuleBuilder
- func (builder *PeriodRuleBuilder) Build() *PeriodRule
- func (builder *PeriodRuleBuilder) FirstMonth(firstMonth int) *PeriodRuleBuilder
- func (builder *PeriodRuleBuilder) Length(length int) *PeriodRuleBuilder
- func (builder *PeriodRuleBuilder) PeriodRuleId(periodRuleId string) *PeriodRuleBuilder
- func (builder *PeriodRuleBuilder) Type(type_ string) *PeriodRuleBuilder
- type ProgressItem
- type ProgressItemBuilder
- func (builder *ProgressItemBuilder) Build() *ProgressItem
- func (builder *ProgressItemBuilder) Content(content string) *ProgressItemBuilder
- func (builder *ProgressItemBuilder) MentionList(mentionList []string) *ProgressItemBuilder
- func (builder *ProgressItemBuilder) Timestamp(timestamp string) *ProgressItemBuilder
- type ProgressRate
- type ProgressRateBuilder
- type ProgressRecord
- type ProgressRecordBuilder
- func (builder *ProgressRecordBuilder) Build() *ProgressRecord
- func (builder *ProgressRecordBuilder) Content(content *ContentBlock) *ProgressRecordBuilder
- func (builder *ProgressRecordBuilder) ModifyTime(modifyTime string) *ProgressRecordBuilder
- func (builder *ProgressRecordBuilder) ProgressId(progressId string) *ProgressRecordBuilder
- type ProgressRecordSimplify
- type ProgressRecordSimplifyBuilder
- type TaskInfo
- type TaskInfoBuilder
- func (builder *TaskInfoBuilder) AppToken(appToken string) *TaskInfoBuilder
- func (builder *TaskInfoBuilder) Build() *TaskInfo
- func (builder *TaskInfoBuilder) OkrId(okrId string) *TaskInfoBuilder
- func (builder *TaskInfoBuilder) PeriodId(periodId string) *TaskInfoBuilder
- func (builder *TaskInfoBuilder) TaskId(taskId string) *TaskInfoBuilder
- func (builder *TaskInfoBuilder) UserId(userId string) *TaskInfoBuilder
- type UpdateProgressRecordPathReqBodyBuilder
- type UpdateProgressRecordReq
- type UpdateProgressRecordReqBody
- type UpdateProgressRecordReqBodyBuilder
- type UpdateProgressRecordReqBuilder
- func (builder *UpdateProgressRecordReqBuilder) Body(body *UpdateProgressRecordReqBody) *UpdateProgressRecordReqBuilder
- func (builder *UpdateProgressRecordReqBuilder) Build() *UpdateProgressRecordReq
- func (builder *UpdateProgressRecordReqBuilder) ProgressId(progressId string) *UpdateProgressRecordReqBuilder
- func (builder *UpdateProgressRecordReqBuilder) UserIdType(userIdType string) *UpdateProgressRecordReqBuilder
- type UpdateProgressRecordResp
- type UpdateProgressRecordRespData
- type UploadImagePathReqBodyBuilder
- func (builder *UploadImagePathReqBodyBuilder) Build() (*UploadImageReqBody, error)
- func (builder *UploadImagePathReqBodyBuilder) DataPath(dataPath string) *UploadImagePathReqBodyBuilder
- func (builder *UploadImagePathReqBodyBuilder) TargetId(targetId string) *UploadImagePathReqBodyBuilder
- func (builder *UploadImagePathReqBodyBuilder) TargetType(targetType int) *UploadImagePathReqBodyBuilder
- type UploadImageReq
- type UploadImageReqBody
- type UploadImageReqBodyBuilder
- func (builder *UploadImageReqBodyBuilder) Build() *UploadImageReqBody
- func (builder *UploadImageReqBodyBuilder) Data(data io.Reader) *UploadImageReqBodyBuilder
- func (builder *UploadImageReqBodyBuilder) TargetId(targetId string) *UploadImageReqBodyBuilder
- func (builder *UploadImageReqBodyBuilder) TargetType(targetType int) *UploadImageReqBodyBuilder
- type UploadImageReqBuilder
- type UploadImageResp
- type UploadImageRespData
- type UpsertObjective
- type UpsertObjectiveBuilder
- func (builder *UpsertObjectiveBuilder) Build() *UpsertObjective
- func (builder *UpsertObjectiveBuilder) Content(content string) *UpsertObjectiveBuilder
- func (builder *UpsertObjectiveBuilder) KrList(krList []*UpsertObjectiveKr) *UpsertObjectiveBuilder
- func (builder *UpsertObjectiveBuilder) MentionList(mentionList []string) *UpsertObjectiveBuilder
- func (builder *UpsertObjectiveBuilder) ProgressList(progressList []*ProgressItem) *UpsertObjectiveBuilder
- func (builder *UpsertObjectiveBuilder) ProgressRate(progressRate *ProgressRate) *UpsertObjectiveBuilder
- func (builder *UpsertObjectiveBuilder) Weight(weight float64) *UpsertObjectiveBuilder
- type UpsertObjectiveKr
- type UpsertObjectiveKrBuilder
- func (builder *UpsertObjectiveKrBuilder) Build() *UpsertObjectiveKr
- func (builder *UpsertObjectiveKrBuilder) Content(content string) *UpsertObjectiveKrBuilder
- func (builder *UpsertObjectiveKrBuilder) MentionList(mentionList []string) *UpsertObjectiveKrBuilder
- func (builder *UpsertObjectiveKrBuilder) ProgressList(progressList []*ProgressItem) *UpsertObjectiveKrBuilder
- func (builder *UpsertObjectiveKrBuilder) ProgressRate(progressRate *ProgressRate) *UpsertObjectiveKrBuilder
- func (builder *UpsertObjectiveKrBuilder) Score(score int) *UpsertObjectiveKrBuilder
- func (builder *UpsertObjectiveKrBuilder) Weight(weight float64) *UpsertObjectiveKrBuilder
- type User
- type UserBuilder
- type UserOkr
- type UserOkrBuilder
- func (builder *UserOkrBuilder) Build() *UserOkr
- func (builder *UserOkrBuilder) Id(id string) *UserOkrBuilder
- func (builder *UserOkrBuilder) Name(name string) *UserOkrBuilder
- func (builder *UserOkrBuilder) ObjectiveList(objectiveList []*UserOkrObjective) *UserOkrBuilder
- func (builder *UserOkrBuilder) Permission(permission int) *UserOkrBuilder
- type UserOkrObjective
- type UserOkrObjectiveAlignedObjective
- type UserOkrObjectiveAlignedObjectiveBuilder
- func (builder *UserOkrObjectiveAlignedObjectiveBuilder) Build() *UserOkrObjectiveAlignedObjective
- func (builder *UserOkrObjectiveAlignedObjectiveBuilder) Id(id string) *UserOkrObjectiveAlignedObjectiveBuilder
- func (builder *UserOkrObjectiveAlignedObjectiveBuilder) OkrId(okrId string) *UserOkrObjectiveAlignedObjectiveBuilder
- func (builder *UserOkrObjectiveAlignedObjectiveBuilder) Owner(owner *UserOkrObjectiveAlignedObjectiveOwner) *UserOkrObjectiveAlignedObjectiveBuilder
- type UserOkrObjectiveAlignedObjectiveOwner
- type UserOkrObjectiveAlignedObjectiveOwnerBuilder
- func (builder *UserOkrObjectiveAlignedObjectiveOwnerBuilder) Build() *UserOkrObjectiveAlignedObjectiveOwner
- func (builder *UserOkrObjectiveAlignedObjectiveOwnerBuilder) EmployeeId(employeeId string) *UserOkrObjectiveAlignedObjectiveOwnerBuilder
- func (builder *UserOkrObjectiveAlignedObjectiveOwnerBuilder) EmployeeNo(employeeNo string) *UserOkrObjectiveAlignedObjectiveOwnerBuilder
- func (builder *UserOkrObjectiveAlignedObjectiveOwnerBuilder) Name(name string) *UserOkrObjectiveAlignedObjectiveOwnerBuilder
- func (builder *UserOkrObjectiveAlignedObjectiveOwnerBuilder) OpenId(openId string) *UserOkrObjectiveAlignedObjectiveOwnerBuilder
- func (builder *UserOkrObjectiveAlignedObjectiveOwnerBuilder) UnionId(unionId string) *UserOkrObjectiveAlignedObjectiveOwnerBuilder
- type UserOkrObjectiveBuilder
- func (builder *UserOkrObjectiveBuilder) AlignedObjectiveList(alignedObjectiveList []*UserOkrObjectiveAlignedObjective) *UserOkrObjectiveBuilder
- func (builder *UserOkrObjectiveBuilder) AligningObjectiveList(aligningObjectiveList []*UserOkrObjectiveAlignedObjective) *UserOkrObjectiveBuilder
- func (builder *UserOkrObjectiveBuilder) Build() *UserOkrObjective
- func (builder *UserOkrObjectiveBuilder) Content(content string) *UserOkrObjectiveBuilder
- func (builder *UserOkrObjectiveBuilder) Id(id string) *UserOkrObjectiveBuilder
- func (builder *UserOkrObjectiveBuilder) KrList(krList []*UserOkrObjectiveKr) *UserOkrObjectiveBuilder
- func (builder *UserOkrObjectiveBuilder) Permission(permission int) *UserOkrObjectiveBuilder
- func (builder *UserOkrObjectiveBuilder) ProgressRate(progressRate *UserOkrObjectiveProgressRate) *UserOkrObjectiveBuilder
- func (builder *UserOkrObjectiveBuilder) ProgressReport(progressReport string) *UserOkrObjectiveBuilder
- func (builder *UserOkrObjectiveBuilder) Score(score string) *UserOkrObjectiveBuilder
- type UserOkrObjectiveKr
- type UserOkrObjectiveKrBuilder
- func (builder *UserOkrObjectiveKrBuilder) Build() *UserOkrObjectiveKr
- func (builder *UserOkrObjectiveKrBuilder) Content(content string) *UserOkrObjectiveKrBuilder
- func (builder *UserOkrObjectiveKrBuilder) Id(id string) *UserOkrObjectiveKrBuilder
- func (builder *UserOkrObjectiveKrBuilder) ProgressRate(progressRate *UserOkrObjectiveProgressRate) *UserOkrObjectiveKrBuilder
- func (builder *UserOkrObjectiveKrBuilder) Score(score int) *UserOkrObjectiveKrBuilder
- func (builder *UserOkrObjectiveKrBuilder) Weight(weight int) *UserOkrObjectiveKrBuilder
- type UserOkrObjectiveProgressRate
- type UserOkrObjectiveProgressRateBuilder
- func (builder *UserOkrObjectiveProgressRateBuilder) Build() *UserOkrObjectiveProgressRate
- func (builder *UserOkrObjectiveProgressRateBuilder) Percent(percent int) *UserOkrObjectiveProgressRateBuilder
- func (builder *UserOkrObjectiveProgressRateBuilder) Status(status string) *UserOkrObjectiveProgressRateBuilder
Constants ¶
const ( TargetTypeObjective = 2 // okr的O TargetTypeKeyResult = 3 // okr的KR )
const ( UserIdTypeUserId = "user_id" // 以user_id来识别用户 UserIdTypeUnionId = "union_id" // 以union_id来识别用户 UserIdTypeOpenId = "open_id" // 以open_id来识别用户 )
const ( UserIdTypeGetMetricSourceTableItemUserId = "user_id" // 以user_id来识别用户 UserIdTypeGetMetricSourceTableItemUnionId = "union_id" // 以union_id来识别用户 UserIdTypeGetMetricSourceTableItemOpenId = "open_id" // 以open_id来识别用户 )
const ( UserIdTypeListMetricSourceTableItemUserId = "user_id" // 以user_id来识别用户 UserIdTypeListMetricSourceTableItemUnionId = "union_id" // 以union_id来识别用户 UserIdTypeListMetricSourceTableItemOpenId = "open_id" // 以open_id来识别用户 )
const ( UserIdTypePatchMetricSourceTableItemUserId = "user_id" // 以user_id来识别用户 UserIdTypePatchMetricSourceTableItemUnionId = "union_id" // 以union_id来识别用户 UserIdTypePatchMetricSourceTableItemOpenId = "open_id" // 以open_id来识别用户 )
const ( UserIdTypeBatchGetOkrUserId = "user_id" // 以user_id来识别用户 UserIdTypeBatchGetOkrUnionId = "union_id" // 以union_id来识别用户 UserIdTypeBatchGetOkrOpenId = "open_id" // 以open_id来识别用户 UserIdTypeBatchGetOkrPeopleAdminId = "people_admin_id" // 以people_admin_id来识别用户 )
const ( TargetTypeCreateProgressRecordObjective = 2 // okr的O TargetTypeCreateProgressRecordKeyResult = 3 // okr的KR )
const ( UserIdTypeCreateProgressRecordUserId = "user_id" // 以user_id来识别用户 UserIdTypeCreateProgressRecordUnionId = "union_id" // 以union_id来识别用户 UserIdTypeCreateProgressRecordOpenId = "open_id" // 以open_id来识别用户 )
const ( UserIdTypeGetProgressRecordUserId = "user_id" // 以user_id来识别用户 UserIdTypeGetProgressRecordUnionId = "union_id" // 以union_id来识别用户 UserIdTypeGetProgressRecordOpenId = "open_id" // 以open_id来识别用户 )
const ( UserIdTypeUpdateProgressRecordUserId = "user_id" // 以user_id来识别用户 UserIdTypeUpdateProgressRecordUnionId = "union_id" // 以union_id来识别用户 UserIdTypeUpdateProgressRecordOpenId = "open_id" // 以open_id来识别用户 )
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 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 ¶
func (builder *AlignObjectiveBuilder) Id(id string) *AlignObjectiveBuilder
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 (builder *BatchUpdateMetricSourceTableItemPathReqBodyBuilder) Build() (*BatchUpdateMetricSourceTableItemReqBody, error)
func (*BatchUpdateMetricSourceTableItemPathReqBodyBuilder) Items ¶ added in v3.0.10
func (builder *BatchUpdateMetricSourceTableItemPathReqBodyBuilder) Items(items []*MetricItemRequest) *BatchUpdateMetricSourceTableItemPathReqBodyBuilder
指标列表
示例值:
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 (builder *BatchUpdateMetricSourceTableItemReqBodyBuilder) Build() *BatchUpdateMetricSourceTableItemReqBody
func (*BatchUpdateMetricSourceTableItemReqBodyBuilder) Items ¶ added in v3.0.10
func (builder *BatchUpdateMetricSourceTableItemReqBodyBuilder) Items(items []*MetricItemRequest) *BatchUpdateMetricSourceTableItemReqBodyBuilder
指标列表
示例值:
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
func (builder *BatchUpdateMetricSourceTableItemReqBuilder) Body(body *BatchUpdateMetricSourceTableItemReqBody) *BatchUpdateMetricSourceTableItemReqBuilder
- 该接口用于批量更新多项指标,单次调用最多更新 100 条记录。接口仅限 OKR 企业版使用。;; 更新成功后 OKR 系统会给以下人员发送消息通知:;; - 首次更新目标值的人员 ;; - 已经将指标添加为 KR、且本次目标值/起始值/支撑的上级有变更的人员,不包含仅更新了进度值的人员
func (*BatchUpdateMetricSourceTableItemReqBuilder) Build ¶ added in v3.0.10
func (builder *BatchUpdateMetricSourceTableItemReqBuilder) Build() *BatchUpdateMetricSourceTableItemReq
func (*BatchUpdateMetricSourceTableItemReqBuilder) MetricSourceId ¶ added in v3.0.10
func (builder *BatchUpdateMetricSourceTableItemReqBuilder) MetricSourceId(metricSourceId string) *BatchUpdateMetricSourceTableItemReqBuilder
okr指标库id
示例值:7041857032248410131
func (*BatchUpdateMetricSourceTableItemReqBuilder) MetricTableId ¶ added in v3.0.10
func (builder *BatchUpdateMetricSourceTableItemReqBuilder) MetricTableId(metricTableId string) *BatchUpdateMetricSourceTableItemReqBuilder
okr指标表id
示例值:7041857032248410131
func (*BatchUpdateMetricSourceTableItemReqBuilder) UserIdType ¶ added in v3.0.10
func (builder *BatchUpdateMetricSourceTableItemReqBuilder) UserIdType(userIdType string) *BatchUpdateMetricSourceTableItemReqBuilder
此次调用中使用的用户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
func (resp *BatchUpdateMetricSourceTableItemResp) Success() bool
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 (builder *ContentBlockElementBuilder) Build() *ContentBlockElement
func (*ContentBlockElementBuilder) Gallery ¶
func (builder *ContentBlockElementBuilder) Gallery(gallery *ContentGallery) *ContentBlockElementBuilder
图片
示例值:
func (*ContentBlockElementBuilder) Paragraph ¶
func (builder *ContentBlockElementBuilder) Paragraph(paragraph *ContentParagraph) *ContentBlockElementBuilder
文本段落
示例值:
func (*ContentBlockElementBuilder) Type ¶
func (builder *ContentBlockElementBuilder) Type(type_ string) *ContentBlockElementBuilder
文档元素类型
示例值:paragraph
type ContentColor ¶
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 ¶
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 ¶
func (builder *ContentDocsLinkBuilder) Url(url string) *ContentDocsLinkBuilder
飞书云文档链接地址
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 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
func (builder *ContentImageItemBuilder) Src(src string) *ContentImageItemBuilder
图片链接
func (*ContentImageItemBuilder) Width ¶
func (builder *ContentImageItemBuilder) Width(width float64) *ContentImageItemBuilder
图片宽,单位px
示例值:458
type ContentLink ¶
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
链接地址
type ContentList ¶
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 (builder *ContentParagraphBuilder) Elements(elements []*ContentParagraphElement) *ContentParagraphBuilder
段落元素组成一个段落
示例值:
func (*ContentParagraphBuilder) Style ¶
func (builder *ContentParagraphBuilder) Style(style *ContentParagraphStyle) *ContentParagraphBuilder
段落样式
示例值:
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 (builder *ContentParagraphElementBuilder) Build() *ContentParagraphElement
func (*ContentParagraphElementBuilder) DocsLink ¶
func (builder *ContentParagraphElementBuilder) DocsLink(docsLink *ContentDocsLink) *ContentParagraphElementBuilder
飞书云文档
示例值:
func (*ContentParagraphElementBuilder) Person ¶
func (builder *ContentParagraphElementBuilder) Person(person *ContentPerson) *ContentParagraphElementBuilder
艾特用户
示例值:
func (*ContentParagraphElementBuilder) TextRun ¶
func (builder *ContentParagraphElementBuilder) TextRun(textRun *ContentTextRun) *ContentParagraphElementBuilder
文本
示例值:
func (*ContentParagraphElementBuilder) Type ¶
func (builder *ContentParagraphElementBuilder) Type(type_ string) *ContentParagraphElementBuilder
元素类型
示例值: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 (builder *ContentParagraphStyleBuilder) Build() *ContentParagraphStyle
func (*ContentParagraphStyleBuilder) List ¶
func (builder *ContentParagraphStyleBuilder) List(list *ContentList) *ContentParagraphStyleBuilder
有序列表/无序列表/任务列表
示例值:
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 ¶
func (builder *ContentTextRunBuilder) Style(style *ContentTextStyle) *ContentTextRunBuilder
文本内容的样式,支持 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 ¶
func (builder *ContentTextStyleBuilder) Bold(bold bool) *ContentTextStyleBuilder
是否加粗
示例值:true
func (*ContentTextStyleBuilder) Build ¶
func (builder *ContentTextStyleBuilder) Build() *ContentTextStyle
func (*ContentTextStyleBuilder) Link ¶
func (builder *ContentTextStyleBuilder) Link(link *ContentLink) *ContentTextStyleBuilder
链接地址
示例值:
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 (builder *CreateProgressRecordPathReqBodyBuilder) Build() (*CreateProgressRecordReqBody, error)
func (*CreateProgressRecordPathReqBodyBuilder) Content ¶
func (builder *CreateProgressRecordPathReqBodyBuilder) Content(content *ContentBlock) *CreateProgressRecordPathReqBodyBuilder
进展详情 富文本格式
示例值:
func (*CreateProgressRecordPathReqBodyBuilder) SourceTitle ¶
func (builder *CreateProgressRecordPathReqBodyBuilder) SourceTitle(sourceTitle string) *CreateProgressRecordPathReqBodyBuilder
进展来源
示例值:周报系统
func (*CreateProgressRecordPathReqBodyBuilder) SourceUrl ¶
func (builder *CreateProgressRecordPathReqBodyBuilder) SourceUrl(sourceUrl string) *CreateProgressRecordPathReqBodyBuilder
进展来源链接
func (*CreateProgressRecordPathReqBodyBuilder) SourceUrlMobile ¶ added in v3.0.19
func (builder *CreateProgressRecordPathReqBodyBuilder) SourceUrlMobile(sourceUrlMobile string) *CreateProgressRecordPathReqBodyBuilder
mobile进展来源链接
示例值:open.feishu.cn
func (*CreateProgressRecordPathReqBodyBuilder) SourceUrlPc ¶ added in v3.0.19
func (builder *CreateProgressRecordPathReqBodyBuilder) SourceUrlPc(sourceUrlPc string) *CreateProgressRecordPathReqBodyBuilder
pc进展来源链接
示例值:open.feishu.cn
func (*CreateProgressRecordPathReqBodyBuilder) TargetId ¶
func (builder *CreateProgressRecordPathReqBodyBuilder) TargetId(targetId string) *CreateProgressRecordPathReqBodyBuilder
目标id,与target_type对应
示例值:7041430377642082323
func (*CreateProgressRecordPathReqBodyBuilder) TargetType ¶
func (builder *CreateProgressRecordPathReqBodyBuilder) TargetType(targetType int) *CreateProgressRecordPathReqBodyBuilder
目标类型
示例值: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 (builder *CreateProgressRecordReqBodyBuilder) Build() *CreateProgressRecordReqBody
func (*CreateProgressRecordReqBodyBuilder) Content ¶
func (builder *CreateProgressRecordReqBodyBuilder) Content(content *ContentBlock) *CreateProgressRecordReqBodyBuilder
进展详情 富文本格式
示例值:
func (*CreateProgressRecordReqBodyBuilder) SourceTitle ¶
func (builder *CreateProgressRecordReqBodyBuilder) SourceTitle(sourceTitle string) *CreateProgressRecordReqBodyBuilder
进展来源
示例值:周报系统
func (*CreateProgressRecordReqBodyBuilder) SourceUrl ¶
func (builder *CreateProgressRecordReqBodyBuilder) SourceUrl(sourceUrl string) *CreateProgressRecordReqBodyBuilder
进展来源链接
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
func (builder *CreateProgressRecordReqBodyBuilder) SourceUrlPc(sourceUrlPc string) *CreateProgressRecordReqBodyBuilder
pc进展来源链接
示例值:open.feishu.cn
func (*CreateProgressRecordReqBodyBuilder) TargetId ¶
func (builder *CreateProgressRecordReqBodyBuilder) TargetId(targetId string) *CreateProgressRecordReqBodyBuilder
目标id,与target_type对应
示例值:7041430377642082323
func (*CreateProgressRecordReqBodyBuilder) TargetType ¶
func (builder *CreateProgressRecordReqBodyBuilder) TargetType(targetType int) *CreateProgressRecordReqBodyBuilder
目标类型
示例值:1
type CreateProgressRecordReqBuilder ¶
type CreateProgressRecordReqBuilder struct {
// contains filtered or unexported fields
}
func NewCreateProgressRecordReqBuilder ¶
func NewCreateProgressRecordReqBuilder() *CreateProgressRecordReqBuilder
func (*CreateProgressRecordReqBuilder) Body ¶
func (builder *CreateProgressRecordReqBuilder) Body(body *CreateProgressRecordReqBody) *CreateProgressRecordReqBuilder
创建OKR进展记录
func (*CreateProgressRecordReqBuilder) Build ¶
func (builder *CreateProgressRecordReqBuilder) Build() *CreateProgressRecordReq
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 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 ¶
func (builder *CurrentOkrSimpleBuilder) OkrId(okrId string) *CurrentOkrSimpleBuilder
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 (builder *DeleteProgressRecordReqBuilder) Build() *DeleteProgressRecordReq
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 DummyBuilder ¶
type DummyBuilder struct {
// contains filtered or unexported fields
}
func NewDummyBuilder ¶
func NewDummyBuilder() *DummyBuilder
func (*DummyBuilder) Build ¶
func (builder *DummyBuilder) Build() *Dummy
type FailedMetricItem ¶ added in v3.0.5
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 (builder *GetMetricSourceTableItemReqBuilder) Build() *GetMetricSourceTableItemReq
func (*GetMetricSourceTableItemReqBuilder) MetricItemId ¶ added in v3.0.10
func (builder *GetMetricSourceTableItemReqBuilder) MetricItemId(metricItemId string) *GetMetricSourceTableItemReqBuilder
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
func (builder *GetMetricSourceTableItemReqBuilder) UserIdType(userIdType string) *GetMetricSourceTableItemReqBuilder
此次调用中使用的用户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 (builder *GetProgressRecordReqBuilder) Build() *GetProgressRecordReq
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 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
图片下载链接
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
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 (builder *ListMetricSourceReqBuilder) Build() *ListMetricSourceReq
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 (builder *ListMetricSourceTableItemReqBuilder) Build() *ListMetricSourceTableItemReq
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
func (builder *ListMetricSourceTableItemReqBuilder) MetricTableId(metricTableId string) *ListMetricSourceTableItemReqBuilder
okr指标表id
示例值:7041857032248410131
func (*ListMetricSourceTableItemReqBuilder) PageSize ¶ added in v3.0.10
func (builder *ListMetricSourceTableItemReqBuilder) PageSize(pageSize string) *ListMetricSourceTableItemReqBuilder
每页获取记录数
示例值:10
func (*ListMetricSourceTableItemReqBuilder) PageToken ¶ added in v3.0.10
func (builder *ListMetricSourceTableItemReqBuilder) PageToken(pageToken string) *ListMetricSourceTableItemReqBuilder
页码标识,获取第一页传空,每次查询会返回下一页的page_token
示例值:6969864184272078374
func (*ListMetricSourceTableItemReqBuilder) UserIdType ¶ added in v3.0.10
func (builder *ListMetricSourceTableItemReqBuilder) UserIdType(userIdType string) *ListMetricSourceTableItemReqBuilder
此次调用中使用的用户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 (builder *ListMetricSourceTableReqBuilder) Build() *ListMetricSourceTableReq
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
func (builder *ListMetricSourceTableReqBuilder) PageSize(pageSize string) *ListMetricSourceTableReqBuilder
每页获取记录数
示例值:10
func (*ListMetricSourceTableReqBuilder) PageToken ¶ added in v3.0.10
func (builder *ListMetricSourceTableReqBuilder) PageToken(pageToken string) *ListMetricSourceTableReqBuilder
页码标识,获取第一页传空,每次查询会返回下一页的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 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 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 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 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 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 (builder *ObjectiveNameBuilder) En(en string) *ObjectiveNameBuilder
英文内容
示例值:
func (*ObjectiveNameBuilder) Zh ¶
func (builder *ObjectiveNameBuilder) Zh(zh string) *ObjectiveNameBuilder
中文内容
示例值:
type ObjectiveProgress ¶
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 (builder *ObjectiveProgressBuilder) En(en string) *ObjectiveProgressBuilder
英文内容
示例值:
func (*ObjectiveProgressBuilder) Zh ¶
func (builder *ObjectiveProgressBuilder) Zh(zh string) *ObjectiveProgressBuilder
中文内容
示例值:
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) 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 OkrDetailObjectiveAlignBuilder ¶
type OkrDetailObjectiveAlignBuilder struct {
// contains filtered or unexported fields
}
func NewOkrDetailObjectiveAlignBuilder ¶
func NewOkrDetailObjectiveAlignBuilder() *OkrDetailObjectiveAlignBuilder
func (*OkrDetailObjectiveAlignBuilder) Build ¶
func (builder *OkrDetailObjectiveAlignBuilder) Build() *OkrDetailObjectiveAlign
func (*OkrDetailObjectiveAlignBuilder) Id ¶
func (builder *OkrDetailObjectiveAlignBuilder) Id(id string) *OkrDetailObjectiveAlignBuilder
Objective的ID
示例值:6975871409026975276
func (*OkrDetailObjectiveAlignBuilder) OkrId ¶
func (builder *OkrDetailObjectiveAlignBuilder) OkrId(okrId string) *OkrDetailObjectiveAlignBuilder
OKR的ID
示例值:6975085709464143404
func (*OkrDetailObjectiveAlignBuilder) UserId ¶
func (builder *OkrDetailObjectiveAlignBuilder) UserId(userId string) *OkrDetailObjectiveAlignBuilder
该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 (builder *OkrDetailObjectiveBuilder) Build() *OkrDetailObjective
func (*OkrDetailObjectiveBuilder) CreateTime ¶
func (builder *OkrDetailObjectiveBuilder) CreateTime(createTime int) *OkrDetailObjectiveBuilder
创建时间 毫秒
示例值:1624327915435
func (*OkrDetailObjectiveBuilder) Id ¶
func (builder *OkrDetailObjectiveBuilder) Id(id string) *OkrDetailObjectiveBuilder
Objective ID
示例值:6976243668438730284
func (*OkrDetailObjectiveBuilder) KrList ¶
func (builder *OkrDetailObjectiveBuilder) KrList(krList []*OkrDetailObjectiveKr) *OkrDetailObjectiveBuilder
Kr list
示例值:
func (*OkrDetailObjectiveBuilder) ModifyTime ¶
func (builder *OkrDetailObjectiveBuilder) ModifyTime(modifyTime int) *OkrDetailObjectiveBuilder
修改时间 毫秒
示例值:1624329170551
func (*OkrDetailObjectiveBuilder) Name ¶
func (builder *OkrDetailObjectiveBuilder) Name(name *OkrName) *OkrDetailObjectiveBuilder
Objective 名称
示例值:
func (*OkrDetailObjectiveBuilder) OkrId ¶
func (builder *OkrDetailObjectiveBuilder) OkrId(okrId string) *OkrDetailObjectiveBuilder
所属okr id
示例值:6976173067307927084
func (*OkrDetailObjectiveBuilder) Pos ¶
func (builder *OkrDetailObjectiveBuilder) Pos(pos int) *OkrDetailObjectiveBuilder
pos
示例值:0
func (*OkrDetailObjectiveBuilder) Progress ¶
func (builder *OkrDetailObjectiveBuilder) Progress(progress *OkrName) *OkrDetailObjectiveBuilder
Objective 进度描述
示例值:
func (*OkrDetailObjectiveBuilder) Score ¶
func (builder *OkrDetailObjectiveBuilder) Score(score int) *OkrDetailObjectiveBuilder
得分
示例值:0
func (*OkrDetailObjectiveBuilder) UserId ¶
func (builder *OkrDetailObjectiveBuilder) UserId(userId string) *OkrDetailObjectiveBuilder
用户id
示例值:ou_186301103180d3469a0bfd6e80977ec9
func (*OkrDetailObjectiveBuilder) Weight ¶
func (builder *OkrDetailObjectiveBuilder) Weight(weight float64) *OkrDetailObjectiveBuilder
权重
示例值: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 (builder *OkrDetailObjectiveKrBuilder) Build() *OkrDetailObjectiveKr
func (*OkrDetailObjectiveKrBuilder) Content ¶
func (builder *OkrDetailObjectiveKrBuilder) Content(content *OkrName) *OkrDetailObjectiveKrBuilder
KeyResult 内容
示例值:
func (*OkrDetailObjectiveKrBuilder) CreateTime ¶
func (builder *OkrDetailObjectiveKrBuilder) CreateTime(createTime int) *OkrDetailObjectiveKrBuilder
创建时间 毫秒
示例值:1624327915448
func (*OkrDetailObjectiveKrBuilder) Id ¶
func (builder *OkrDetailObjectiveKrBuilder) Id(id string) *OkrDetailObjectiveKrBuilder
Key Result ID
示例值:6976243668438992428
func (*OkrDetailObjectiveKrBuilder) ModifyTime ¶
func (builder *OkrDetailObjectiveKrBuilder) ModifyTime(modifyTime int) *OkrDetailObjectiveKrBuilder
修改时间 毫秒
示例值:1624327915448
func (*OkrDetailObjectiveKrBuilder) Pos ¶
func (builder *OkrDetailObjectiveKrBuilder) Pos(pos int) *OkrDetailObjectiveKrBuilder
pos
示例值:100
func (*OkrDetailObjectiveKrBuilder) Score ¶
func (builder *OkrDetailObjectiveKrBuilder) Score(score int) *OkrDetailObjectiveKrBuilder
KeyResult打分(0 - 100)
示例值:100
func (*OkrDetailObjectiveKrBuilder) Weight ¶
func (builder *OkrDetailObjectiveKrBuilder) Weight(weight float64) *OkrDetailObjectiveKrBuilder
KeyResult的权重(0 - 100)(废弃)
示例值:100
type OkrListInfo ¶
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 OkrNameBuilder ¶
type OkrNameBuilder struct {
// contains filtered or unexported fields
}
func NewOkrNameBuilder ¶
func NewOkrNameBuilder() *OkrNameBuilder
func (*OkrNameBuilder) Build ¶
func (builder *OkrNameBuilder) Build() *OkrName
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 (builder *OkrObjectiveAlignedObjectiveBuilder) Build() *OkrObjectiveAlignedObjective
func (*OkrObjectiveAlignedObjectiveBuilder) Id ¶
func (builder *OkrObjectiveAlignedObjectiveBuilder) Id(id string) *OkrObjectiveAlignedObjectiveBuilder
Objective的ID
示例值:1231231231213
func (*OkrObjectiveAlignedObjectiveBuilder) OkrId ¶
func (builder *OkrObjectiveAlignedObjectiveBuilder) OkrId(okrId string) *OkrObjectiveAlignedObjectiveBuilder
OKR的ID
示例值:12323231231213
func (*OkrObjectiveAlignedObjectiveBuilder) Owner ¶
func (builder *OkrObjectiveAlignedObjectiveBuilder) Owner(owner *OkrObjectiveAlignedObjectiveOwner) *OkrObjectiveAlignedObjectiveBuilder
该Objective的Owner
示例值:
type OkrObjectiveAlignedObjectiveOwnerBuilder ¶
type OkrObjectiveAlignedObjectiveOwnerBuilder struct {
// contains filtered or unexported fields
}
func NewOkrObjectiveAlignedObjectiveOwnerBuilder ¶
func NewOkrObjectiveAlignedObjectiveOwnerBuilder() *OkrObjectiveAlignedObjectiveOwnerBuilder
func (*OkrObjectiveAlignedObjectiveOwnerBuilder) Build ¶
func (builder *OkrObjectiveAlignedObjectiveOwnerBuilder) Build() *OkrObjectiveAlignedObjectiveOwner
func (*OkrObjectiveAlignedObjectiveOwnerBuilder) OpenId ¶
func (builder *OkrObjectiveAlignedObjectiveOwnerBuilder) OpenId(openId string) *OkrObjectiveAlignedObjectiveOwnerBuilder
用户的 open_id
示例值:od-asd2dasdasd
func (*OkrObjectiveAlignedObjectiveOwnerBuilder) UserId ¶
func (builder *OkrObjectiveAlignedObjectiveOwnerBuilder) UserId(userId string) *OkrObjectiveAlignedObjectiveOwnerBuilder
用户的 user_id
示例值:ou-ux987dsf6x
type OkrObjectiveAlignment ¶
type OkrObjectiveAlignmentBuilder ¶
type OkrObjectiveAlignmentBuilder struct {
// contains filtered or unexported fields
}
func NewOkrObjectiveAlignmentBuilder ¶
func NewOkrObjectiveAlignmentBuilder() *OkrObjectiveAlignmentBuilder
func (*OkrObjectiveAlignmentBuilder) Build ¶
func (builder *OkrObjectiveAlignmentBuilder) Build() *OkrObjectiveAlignment
func (*OkrObjectiveAlignmentBuilder) Id ¶
func (builder *OkrObjectiveAlignmentBuilder) Id(id string) *OkrObjectiveAlignmentBuilder
ID
示例值:
func (*OkrObjectiveAlignmentBuilder) ToId ¶
func (builder *OkrObjectiveAlignmentBuilder) ToId(toId string) *OkrObjectiveAlignmentBuilder
目标id
示例值:
func (*OkrObjectiveAlignmentBuilder) ToType ¶
func (builder *OkrObjectiveAlignmentBuilder) ToType(toType int) *OkrObjectiveAlignmentBuilder
目标类型
示例值:
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 ¶
func (builder *OkrObjectiveBuilder) Id(id string) *OkrObjectiveBuilder
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 ¶
func (builder *OkrObjectiveKrBuilder) Id(id string) *OkrObjectiveKrBuilder
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 OkrObjectiveProgressRateBuilder ¶
type OkrObjectiveProgressRateBuilder struct {
// contains filtered or unexported fields
}
func NewOkrObjectiveProgressRateBuilder ¶
func NewOkrObjectiveProgressRateBuilder() *OkrObjectiveProgressRateBuilder
func (*OkrObjectiveProgressRateBuilder) Build ¶
func (builder *OkrObjectiveProgressRateBuilder) Build() *OkrObjectiveProgressRate
func (*OkrObjectiveProgressRateBuilder) Percent ¶
func (builder *OkrObjectiveProgressRateBuilder) Percent(percent int) *OkrObjectiveProgressRateBuilder
Objective 进度百分比 >= 0
示例值:50
func (*OkrObjectiveProgressRateBuilder) Status ¶
func (builder *OkrObjectiveProgressRateBuilder) Status(status string) *OkrObjectiveProgressRateBuilder
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 ¶
func (builder *OkrReviewBuilder) UserId(userId *OkrObjectiveAlignedObjectiveOwner) *OkrReviewBuilder
复盘的用户
示例值:
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 OkrReviewPeriodUrlBuilder ¶
type OkrReviewPeriodUrlBuilder struct {
// contains filtered or unexported fields
}
func NewOkrReviewPeriodUrlBuilder ¶
func NewOkrReviewPeriodUrlBuilder() *OkrReviewPeriodUrlBuilder
func (*OkrReviewPeriodUrlBuilder) Build ¶
func (builder *OkrReviewPeriodUrlBuilder) Build() *OkrReviewPeriodUrl
func (*OkrReviewPeriodUrlBuilder) CreateTime ¶
func (builder *OkrReviewPeriodUrlBuilder) CreateTime(createTime string) *OkrReviewPeriodUrlBuilder
创建时间 毫秒
示例值:1618500278663
func (*OkrReviewPeriodUrlBuilder) Url ¶
func (builder *OkrReviewPeriodUrlBuilder) Url(url string) *OkrReviewPeriodUrlBuilder
文档链接
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 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 (builder *PatchMetricSourceTableItemPathReqBodyBuilder) Build() (*PatchMetricSourceTableItemReqBody, error)
func (*PatchMetricSourceTableItemPathReqBodyBuilder) MetricCurrentValue ¶ added in v3.0.10
func (builder *PatchMetricSourceTableItemPathReqBodyBuilder) MetricCurrentValue(metricCurrentValue float64) *PatchMetricSourceTableItemPathReqBodyBuilder
指标进度值
示例值:2.0
func (*PatchMetricSourceTableItemPathReqBodyBuilder) MetricInitialValue ¶ added in v3.0.10
func (builder *PatchMetricSourceTableItemPathReqBodyBuilder) MetricInitialValue(metricInitialValue float64) *PatchMetricSourceTableItemPathReqBodyBuilder
指标起始值
示例值:1.0
func (*PatchMetricSourceTableItemPathReqBodyBuilder) MetricTargetValue ¶ added in v3.0.10
func (builder *PatchMetricSourceTableItemPathReqBodyBuilder) MetricTargetValue(metricTargetValue float64) *PatchMetricSourceTableItemPathReqBodyBuilder
指标目标值
示例值:3.0
func (*PatchMetricSourceTableItemPathReqBodyBuilder) SupportedUserId ¶ added in v3.0.10
func (builder *PatchMetricSourceTableItemPathReqBodyBuilder) SupportedUserId(supportedUserId string) *PatchMetricSourceTableItemPathReqBodyBuilder
指标支撑的上级人员 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 (builder *PatchMetricSourceTableItemReqBodyBuilder) Build() *PatchMetricSourceTableItemReqBody
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
func (builder *PatchMetricSourceTableItemReqBodyBuilder) SupportedUserId(supportedUserId string) *PatchMetricSourceTableItemReqBodyBuilder
指标支撑的上级人员 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
func (builder *PatchMetricSourceTableItemReqBuilder) Body(body *PatchMetricSourceTableItemReqBody) *PatchMetricSourceTableItemReqBuilder
- 该接口用于更新某项指标,接口仅限 OKR 企业版使用。;; 更新成功后 OKR 系统会给以下人员发送消息通知:;; - 首次更新目标值的人员 ;; - 已经将指标添加为 KR、且本次目标值/起始值/支撑的上级有变更的人员,不包含仅更新了进度值的人员
func (*PatchMetricSourceTableItemReqBuilder) Build ¶ added in v3.0.10
func (builder *PatchMetricSourceTableItemReqBuilder) Build() *PatchMetricSourceTableItemReq
func (*PatchMetricSourceTableItemReqBuilder) MetricItemId ¶ added in v3.0.10
func (builder *PatchMetricSourceTableItemReqBuilder) MetricItemId(metricItemId string) *PatchMetricSourceTableItemReqBuilder
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
func (builder *PatchMetricSourceTableItemReqBuilder) MetricTableId(metricTableId string) *PatchMetricSourceTableItemReqBuilder
okr指标表id
示例值:7041857032248410131
func (*PatchMetricSourceTableItemReqBuilder) UserIdType ¶ added in v3.0.10
func (builder *PatchMetricSourceTableItemReqBuilder) UserIdType(userIdType string) *PatchMetricSourceTableItemReqBuilder
此次调用中使用的用户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"` // 启用状态 PeriodStartTime *string `json:"period_start_time,omitempty"` // 周期开始时间 PeriodEndTime *string `json:"period_end_time,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) PeriodEndTime ¶ added in v3.0.24
func (builder *PeriodBuilder) PeriodEndTime(periodEndTime string) *PeriodBuilder
周期结束时间
示例值:1686740948123
func (*PeriodBuilder) PeriodStartTime ¶ added in v3.0.24
func (builder *PeriodBuilder) PeriodStartTime(periodStartTime string) *PeriodBuilder
周期开始时间
示例值:1686740948123
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 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 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 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 (builder *ProgressRecordSimplifyBuilder) Build() *ProgressRecordSimplify
func (*ProgressRecordSimplifyBuilder) Id ¶
func (builder *ProgressRecordSimplifyBuilder) Id(id string) *ProgressRecordSimplifyBuilder
OKR 进展记录ID
示例值:7041469619902693396
type TaskInfo ¶ added in v3.0.24
type TaskInfo struct { TaskId *string `json:"task_id,omitempty"` // 任务管理多维表格的 id AppToken *string `json:"app_token,omitempty"` // 多维表格作为文档的 token UserId *string `json:"user_id,omitempty"` // 用户 id OkrId *string `json:"okr_id,omitempty"` // OKR 内容 id PeriodId *string `json:"period_id,omitempty"` // OKR 周期 id }
type TaskInfoBuilder ¶ added in v3.0.24
type TaskInfoBuilder struct {
// contains filtered or unexported fields
}
func NewTaskInfoBuilder ¶ added in v3.0.24
func NewTaskInfoBuilder() *TaskInfoBuilder
func (*TaskInfoBuilder) AppToken ¶ added in v3.0.24
func (builder *TaskInfoBuilder) AppToken(appToken string) *TaskInfoBuilder
多维表格作为文档的 token
示例值:fdhjaskfhasdfhlkasdhfldkshgh
func (*TaskInfoBuilder) Build ¶ added in v3.0.24
func (builder *TaskInfoBuilder) Build() *TaskInfo
func (*TaskInfoBuilder) OkrId ¶ added in v3.0.24
func (builder *TaskInfoBuilder) OkrId(okrId string) *TaskInfoBuilder
OKR 内容 id
示例值:1234454545656575
func (*TaskInfoBuilder) PeriodId ¶ added in v3.0.24
func (builder *TaskInfoBuilder) PeriodId(periodId string) *TaskInfoBuilder
OKR 周期 id
示例值:1234454545656575
func (*TaskInfoBuilder) TaskId ¶ added in v3.0.24
func (builder *TaskInfoBuilder) TaskId(taskId string) *TaskInfoBuilder
任务管理多维表格的 id
示例值:1234454545656575
func (*TaskInfoBuilder) UserId ¶ added in v3.0.24
func (builder *TaskInfoBuilder) UserId(userId string) *TaskInfoBuilder
用户 id
示例值:ou-ux987dsf6x
type UpdateProgressRecordPathReqBodyBuilder ¶
type UpdateProgressRecordPathReqBodyBuilder struct {
// contains filtered or unexported fields
}
func NewUpdateProgressRecordPathReqBodyBuilder ¶
func NewUpdateProgressRecordPathReqBodyBuilder() *UpdateProgressRecordPathReqBodyBuilder
func (*UpdateProgressRecordPathReqBodyBuilder) Build ¶
func (builder *UpdateProgressRecordPathReqBodyBuilder) Build() (*UpdateProgressRecordReqBody, error)
func (*UpdateProgressRecordPathReqBodyBuilder) Content ¶
func (builder *UpdateProgressRecordPathReqBodyBuilder) Content(content *ContentBlock) *UpdateProgressRecordPathReqBodyBuilder
进展详情 富文本格式
示例值:
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 (builder *UpdateProgressRecordReqBodyBuilder) Build() *UpdateProgressRecordReqBody
func (*UpdateProgressRecordReqBodyBuilder) Content ¶
func (builder *UpdateProgressRecordReqBodyBuilder) Content(content *ContentBlock) *UpdateProgressRecordReqBodyBuilder
进展详情 富文本格式
示例值:
type UpdateProgressRecordReqBuilder ¶
type UpdateProgressRecordReqBuilder struct {
// contains filtered or unexported fields
}
func NewUpdateProgressRecordReqBuilder ¶
func NewUpdateProgressRecordReqBuilder() *UpdateProgressRecordReqBuilder
func (*UpdateProgressRecordReqBuilder) Body ¶
func (builder *UpdateProgressRecordReqBuilder) Body(body *UpdateProgressRecordReqBody) *UpdateProgressRecordReqBuilder
根据OKR进展记录ID更新进展详情
func (*UpdateProgressRecordReqBuilder) Build ¶
func (builder *UpdateProgressRecordReqBuilder) Build() *UpdateProgressRecordReq
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 (builder *UploadImagePathReqBodyBuilder) Build() (*UploadImageReqBody, error)
func (*UploadImagePathReqBodyBuilder) DataPath ¶
func (builder *UploadImagePathReqBodyBuilder) DataPath(dataPath string) *UploadImagePathReqBodyBuilder
图片
示例值:file binary
func (*UploadImagePathReqBodyBuilder) TargetId ¶
func (builder *UploadImagePathReqBodyBuilder) TargetId(targetId string) *UploadImagePathReqBodyBuilder
图片的目标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 UploadImageReqBodyBuilder ¶
type UploadImageReqBodyBuilder struct {
// contains filtered or unexported fields
}
func NewUploadImageReqBodyBuilder ¶
func NewUploadImageReqBodyBuilder() *UploadImageReqBodyBuilder
func (*UploadImageReqBodyBuilder) Build ¶
func (builder *UploadImageReqBodyBuilder) Build() *UploadImageReqBody
func (*UploadImageReqBodyBuilder) Data ¶
func (builder *UploadImageReqBodyBuilder) Data(data io.Reader) *UploadImageReqBodyBuilder
图片
示例值: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 (builder *UploadImageReqBuilder) Body(body *UploadImageReqBody) *UploadImageReqBuilder
上传图片
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 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 ¶
func (builder *UpsertObjectiveBuilder) KrList(krList []*UpsertObjectiveKr) *UpsertObjectiveBuilder
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 ¶
func (builder *UpsertObjectiveKrBuilder) Weight(weight float64) *UpsertObjectiveKrBuilder
OKR权重
示例值:100
type UserBuilder ¶
type UserBuilder struct {
// contains filtered or unexported fields
}
func NewUserBuilder ¶
func NewUserBuilder() *UserBuilder
func (*UserBuilder) Build ¶
func (builder *UserBuilder) Build() *User
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 (builder *UserOkrObjectiveAlignedObjectiveBuilder) Build() *UserOkrObjectiveAlignedObjective
func (*UserOkrObjectiveAlignedObjectiveBuilder) Id ¶
func (builder *UserOkrObjectiveAlignedObjectiveBuilder) Id(id string) *UserOkrObjectiveAlignedObjectiveBuilder
Objective的ID
示例值:
func (*UserOkrObjectiveAlignedObjectiveBuilder) OkrId ¶
func (builder *UserOkrObjectiveAlignedObjectiveBuilder) OkrId(okrId string) *UserOkrObjectiveAlignedObjectiveBuilder
OKR的ID
示例值:
func (*UserOkrObjectiveAlignedObjectiveBuilder) Owner ¶
func (builder *UserOkrObjectiveAlignedObjectiveBuilder) Owner(owner *UserOkrObjectiveAlignedObjectiveOwner) *UserOkrObjectiveAlignedObjectiveBuilder
该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 (builder *UserOkrObjectiveAlignedObjectiveOwnerBuilder) Build() *UserOkrObjectiveAlignedObjectiveOwner
func (*UserOkrObjectiveAlignedObjectiveOwnerBuilder) EmployeeId ¶
func (builder *UserOkrObjectiveAlignedObjectiveOwnerBuilder) EmployeeId(employeeId string) *UserOkrObjectiveAlignedObjectiveOwnerBuilder
用户的 employee_id
示例值:
func (*UserOkrObjectiveAlignedObjectiveOwnerBuilder) EmployeeNo ¶
func (builder *UserOkrObjectiveAlignedObjectiveOwnerBuilder) EmployeeNo(employeeNo string) *UserOkrObjectiveAlignedObjectiveOwnerBuilder
工号
示例值:
func (*UserOkrObjectiveAlignedObjectiveOwnerBuilder) Name ¶
func (builder *UserOkrObjectiveAlignedObjectiveOwnerBuilder) Name(name string) *UserOkrObjectiveAlignedObjectiveOwnerBuilder
用户名
示例值:
func (*UserOkrObjectiveAlignedObjectiveOwnerBuilder) OpenId ¶
func (builder *UserOkrObjectiveAlignedObjectiveOwnerBuilder) OpenId(openId string) *UserOkrObjectiveAlignedObjectiveOwnerBuilder
用户的 open_id
示例值:
func (*UserOkrObjectiveAlignedObjectiveOwnerBuilder) UnionId ¶
func (builder *UserOkrObjectiveAlignedObjectiveOwnerBuilder) UnionId(unionId string) *UserOkrObjectiveAlignedObjectiveOwnerBuilder
用户的 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 ¶
func (builder *UserOkrObjectiveBuilder) Id(id string) *UserOkrObjectiveBuilder
Objective ID
示例值:
func (*UserOkrObjectiveBuilder) KrList ¶
func (builder *UserOkrObjectiveBuilder) KrList(krList []*UserOkrObjectiveKr) *UserOkrObjectiveBuilder
Objective KeyResult 列表
示例值:
func (*UserOkrObjectiveBuilder) Permission ¶
func (builder *UserOkrObjectiveBuilder) Permission(permission int) *UserOkrObjectiveBuilder
权限,0无权限,1有权限
示例值:
func (*UserOkrObjectiveBuilder) ProgressRate ¶
func (builder *UserOkrObjectiveBuilder) ProgressRate(progressRate *UserOkrObjectiveProgressRate) *UserOkrObjectiveBuilder
Objective进度
示例值:
func (*UserOkrObjectiveBuilder) ProgressReport ¶
func (builder *UserOkrObjectiveBuilder) ProgressReport(progressReport string) *UserOkrObjectiveBuilder
Objective 进度记录内容
示例值:
func (*UserOkrObjectiveBuilder) Score ¶
func (builder *UserOkrObjectiveBuilder) Score(score string) *UserOkrObjectiveBuilder
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 (builder *UserOkrObjectiveKrBuilder) Build() *UserOkrObjectiveKr
func (*UserOkrObjectiveKrBuilder) Content ¶
func (builder *UserOkrObjectiveKrBuilder) Content(content string) *UserOkrObjectiveKrBuilder
KeyResult 内容
示例值:
func (*UserOkrObjectiveKrBuilder) Id ¶
func (builder *UserOkrObjectiveKrBuilder) Id(id string) *UserOkrObjectiveKrBuilder
Key Result ID
示例值:
func (*UserOkrObjectiveKrBuilder) ProgressRate ¶
func (builder *UserOkrObjectiveKrBuilder) ProgressRate(progressRate *UserOkrObjectiveProgressRate) *UserOkrObjectiveKrBuilder
Objective进度
示例值:
func (*UserOkrObjectiveKrBuilder) Score ¶
func (builder *UserOkrObjectiveKrBuilder) Score(score int) *UserOkrObjectiveKrBuilder
KeyResult打分(0 - 100)
示例值:
func (*UserOkrObjectiveKrBuilder) Weight ¶
func (builder *UserOkrObjectiveKrBuilder) Weight(weight int) *UserOkrObjectiveKrBuilder
KeyResult权重(0 - 100)
示例值:
type UserOkrObjectiveProgressRateBuilder ¶
type UserOkrObjectiveProgressRateBuilder struct {
// contains filtered or unexported fields
}
func NewUserOkrObjectiveProgressRateBuilder ¶
func NewUserOkrObjectiveProgressRateBuilder() *UserOkrObjectiveProgressRateBuilder
func (*UserOkrObjectiveProgressRateBuilder) Build ¶
func (builder *UserOkrObjectiveProgressRateBuilder) Build() *UserOkrObjectiveProgressRate
func (*UserOkrObjectiveProgressRateBuilder) Percent ¶
func (builder *UserOkrObjectiveProgressRateBuilder) Percent(percent int) *UserOkrObjectiveProgressRateBuilder
Objective 进度百分比 >= 0
示例值:
func (*UserOkrObjectiveProgressRateBuilder) Status ¶
func (builder *UserOkrObjectiveProgressRateBuilder) Status(status string) *UserOkrObjectiveProgressRateBuilder
Objective 进度状态,undefined 未更新,normal 正常,risky 有风险,overdue 已延期
示例值: