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 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) Url(url 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) 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) TargetId(targetId string) *CreateProgressRecordReqBodyBuilder
- func (builder *CreateProgressRecordReqBodyBuilder) TargetType(targetType int) *CreateProgressRecordReqBodyBuilder
- type CreateProgressRecordReqBuilder
- type CreateProgressRecordResp
- type CreateProgressRecordRespData
- type CurrentOkrSimple
- type CurrentOkrSimpleBuilder
- type DeleteProgressRecordReq
- type DeleteProgressRecordReqBuilder
- type DeleteProgressRecordResp
- type Dummy
- type DummyBuilder
- 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 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 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 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) Status(status int) *PeriodBuilder
- func (builder *PeriodBuilder) ZhName(zhName string) *PeriodBuilder
- 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 int) *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 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
- 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 ( TargetTypeOkr的O = 2 // okr的O TargetTypeOkr的KR = 3 // okr的KR )
const ( UserIdTypeUserId = "user_id" // 以user_id来识别用户 UserIdTypeUnionId = "union_id" // 以union_id来识别用户 UserIdTypeOpenId = "open_id" // 以open_id来识别用户 UserIdTypePeopleAdminId = "people_admin_id" // 以people_admin_id来识别用户 )
const ( TargetTypeCreateProgressRecordOkr的O = 2 // okr的O TargetTypeCreateProgressRecordOkr的KR = 3 // okr的KR )
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 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) Url ¶
func (builder *ContentImageItemBuilder) Url(url string) *ContentImageItemBuilder
图片链接,通过上传图片接口获取
示例值:https://internal-api-okr.feishu-boe.cn/stream/api/downloadFile/?file_token=boxbcMTBQO9ofLjWkDuPxkxOA2c\&ticket=eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJ0YXJnZXRfaWQiOiI3MDQxNDMwMzc3NjQyMDgyMzIzIiwidGFyZ2V0X3R5cGUiOjMsImFjdGlvbiI6MiwiZmlsZV90b2tlbiI6ImJveGJjTVRCUU85b2ZMaldrRHVQeGt4T0EyYyIsInVzZXJfaWQiOiI2OTY5ODU1NTAxNzQ0ODM0MDkyIiwidGVuYW50X2lkIjoiNjg3NzUwMjY4NzYwOTQwNjk5MCIsImV4cCI6MTY0MDE1NTk2M30.yc4qV2pkGUVwSO53-N_XGgeMucjmDn9iso1Ez_8vpghFz8YdeSDf4NHQpxOHYHc8RURvwI0a5UTNKKJ9CWagTQ
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) 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"` // 进展详情 富文本格式 }
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) 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
type CreateProgressRecordResp ¶
type CreateProgressRecordResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError Data *CreateProgressRecordRespData `json:"data"` // 业务数据 }
func (*CreateProgressRecordResp) Success ¶
func (resp *CreateProgressRecordResp) Success() bool
type CreateProgressRecordRespData ¶
type CreateProgressRecordRespData struct {
Data *ProgressRecord `json:"data,omitempty"` // 成功创建的进展详情
}
type CurrentOkrSimple ¶
type 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 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
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 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 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
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
文档链接
示例值:https://okr-boe1.feishu-boe.cn/docs/docbc0cvt2wT0Yq34Tn7YemH5Qb
type OkrService ¶
type OkrService struct { Image *image // 图片 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 PeriodBuilder ¶
type PeriodBuilder struct {
// contains filtered or unexported fields
}
func NewPeriodBuilder ¶
func NewPeriodBuilder() *PeriodBuilder
func (*PeriodBuilder) Build ¶
func (builder *PeriodBuilder) Build() *Period
func (*PeriodBuilder) EnName ¶
func (builder *PeriodBuilder) EnName(enName string) *PeriodBuilder
英文名称
示例值:english period
func (*PeriodBuilder) Id ¶
func (builder *PeriodBuilder) Id(id string) *PeriodBuilder
id
示例值:635782378412311
func (*PeriodBuilder) Status ¶
func (builder *PeriodBuilder) Status(status int) *PeriodBuilder
启用状态
示例值:0
func (*PeriodBuilder) ZhName ¶
func (builder *PeriodBuilder) ZhName(zhName string) *PeriodBuilder
中文名称
示例值:中文周期
type 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 int) *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 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
type UpdateProgressRecordResp ¶
type UpdateProgressRecordResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError Data *UpdateProgressRecordRespData `json:"data"` // 业务数据 }
func (*UpdateProgressRecordResp) Success ¶
func (resp *UpdateProgressRecordResp) Success() bool
type UpdateProgressRecordRespData ¶
type UpdateProgressRecordRespData struct {
Data *ProgressRecord `json:"data,omitempty"` // 更新后的进行详情
}
type UploadImagePathReqBodyBuilder ¶
type UploadImagePathReqBodyBuilder struct {
// contains filtered or unexported fields
}
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 UploadImageRespData struct {
Data *ImageInfo `json:"data,omitempty"` // 图片url和token信息
}
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 已延期
示例值: