Documentation ¶
Index ¶
- Constants
- type ActionConfig
- type ActionConfigBuilder
- func (builder *ActionConfigBuilder) ActionName(actionName string) *ActionConfigBuilder
- func (builder *ActionConfigBuilder) ActionType(actionType string) *ActionConfigBuilder
- func (builder *ActionConfigBuilder) Build() *ActionConfig
- func (builder *ActionConfigBuilder) IsNeedAttachment(isNeedAttachment bool) *ActionConfigBuilder
- func (builder *ActionConfigBuilder) IsNeedReason(isNeedReason bool) *ActionConfigBuilder
- func (builder *ActionConfigBuilder) IsReasonRequired(isReasonRequired bool) *ActionConfigBuilder
- type AddSignInstancePathReqBodyBuilder
- func (builder *AddSignInstancePathReqBodyBuilder) AddSignType(addSignType int) *AddSignInstancePathReqBodyBuilder
- func (builder *AddSignInstancePathReqBodyBuilder) AddSignUserIds(addSignUserIds []string) *AddSignInstancePathReqBodyBuilder
- func (builder *AddSignInstancePathReqBodyBuilder) ApprovalCode(approvalCode string) *AddSignInstancePathReqBodyBuilder
- func (builder *AddSignInstancePathReqBodyBuilder) ApprovalMethod(approvalMethod int) *AddSignInstancePathReqBodyBuilder
- func (builder *AddSignInstancePathReqBodyBuilder) Build() (*AddSignInstanceReqBody, error)
- func (builder *AddSignInstancePathReqBodyBuilder) Comment(comment string) *AddSignInstancePathReqBodyBuilder
- func (builder *AddSignInstancePathReqBodyBuilder) InstanceCode(instanceCode string) *AddSignInstancePathReqBodyBuilder
- func (builder *AddSignInstancePathReqBodyBuilder) TaskId(taskId string) *AddSignInstancePathReqBodyBuilder
- func (builder *AddSignInstancePathReqBodyBuilder) UserId(userId string) *AddSignInstancePathReqBodyBuilder
- type AddSignInstanceReq
- type AddSignInstanceReqBody
- type AddSignInstanceReqBodyBuilder
- func (builder *AddSignInstanceReqBodyBuilder) AddSignType(addSignType int) *AddSignInstanceReqBodyBuilder
- func (builder *AddSignInstanceReqBodyBuilder) AddSignUserIds(addSignUserIds []string) *AddSignInstanceReqBodyBuilder
- func (builder *AddSignInstanceReqBodyBuilder) ApprovalCode(approvalCode string) *AddSignInstanceReqBodyBuilder
- func (builder *AddSignInstanceReqBodyBuilder) ApprovalMethod(approvalMethod int) *AddSignInstanceReqBodyBuilder
- func (builder *AddSignInstanceReqBodyBuilder) Build() *AddSignInstanceReqBody
- func (builder *AddSignInstanceReqBodyBuilder) Comment(comment string) *AddSignInstanceReqBodyBuilder
- func (builder *AddSignInstanceReqBodyBuilder) InstanceCode(instanceCode string) *AddSignInstanceReqBodyBuilder
- func (builder *AddSignInstanceReqBodyBuilder) TaskId(taskId string) *AddSignInstanceReqBodyBuilder
- func (builder *AddSignInstanceReqBodyBuilder) UserId(userId string) *AddSignInstanceReqBodyBuilder
- type AddSignInstanceReqBuilder
- type AddSignInstanceResp
- type Approval
- type ApprovalApproverCcer
- type ApprovalApproverCcerBuilder
- func (builder *ApprovalApproverCcerBuilder) Build() *ApprovalApproverCcer
- func (builder *ApprovalApproverCcerBuilder) Level(level string) *ApprovalApproverCcerBuilder
- func (builder *ApprovalApproverCcerBuilder) Type(type_ string) *ApprovalApproverCcerBuilder
- func (builder *ApprovalApproverCcerBuilder) UserId(userId string) *ApprovalApproverCcerBuilder
- type ApprovalBuilder
- type ApprovalConfig
- type ApprovalConfigBuilder
- func (builder *ApprovalConfigBuilder) Build() *ApprovalConfig
- func (builder *ApprovalConfigBuilder) CanUpdateForm(canUpdateForm bool) *ApprovalConfigBuilder
- func (builder *ApprovalConfigBuilder) CanUpdateProcess(canUpdateProcess bool) *ApprovalConfigBuilder
- func (builder *ApprovalConfigBuilder) CanUpdateRevert(canUpdateRevert bool) *ApprovalConfigBuilder
- func (builder *ApprovalConfigBuilder) CanUpdateViewer(canUpdateViewer bool) *ApprovalConfigBuilder
- func (builder *ApprovalConfigBuilder) HelpUrl(helpUrl string) *ApprovalConfigBuilder
- type ApprovalCreate
- type ApprovalCreateBuilder
- func (builder *ApprovalCreateBuilder) ApprovalCode(approvalCode string) *ApprovalCreateBuilder
- func (builder *ApprovalCreateBuilder) ApprovalName(approvalName string) *ApprovalCreateBuilder
- func (builder *ApprovalCreateBuilder) Build() *ApprovalCreate
- func (builder *ApprovalCreateBuilder) Config(config *ApprovalConfig) *ApprovalCreateBuilder
- func (builder *ApprovalCreateBuilder) Description(description string) *ApprovalCreateBuilder
- func (builder *ApprovalCreateBuilder) Form(form *ApprovalForm) *ApprovalCreateBuilder
- func (builder *ApprovalCreateBuilder) I18nResources(i18nResources []*I18nResource) *ApprovalCreateBuilder
- func (builder *ApprovalCreateBuilder) Icon(icon int) *ApprovalCreateBuilder
- func (builder *ApprovalCreateBuilder) NodeList(nodeList []*ApprovalNode) *ApprovalCreateBuilder
- func (builder *ApprovalCreateBuilder) ProcessManagerIds(processManagerIds []string) *ApprovalCreateBuilder
- func (builder *ApprovalCreateBuilder) Settings(settings *ApprovalSetting) *ApprovalCreateBuilder
- func (builder *ApprovalCreateBuilder) Viewers(viewers []*ApprovalCreateViewers) *ApprovalCreateBuilder
- type ApprovalCreateExternal
- type ApprovalCreateExternalBuilder
- func (builder *ApprovalCreateExternalBuilder) ActionCallbackKey(actionCallbackKey string) *ApprovalCreateExternalBuilder
- func (builder *ApprovalCreateExternalBuilder) ActionCallbackToken(actionCallbackToken string) *ApprovalCreateExternalBuilder
- func (builder *ApprovalCreateExternalBuilder) ActionCallbackUrl(actionCallbackUrl string) *ApprovalCreateExternalBuilder
- func (builder *ApprovalCreateExternalBuilder) AllowBatchOperate(allowBatchOperate bool) *ApprovalCreateExternalBuilder
- func (builder *ApprovalCreateExternalBuilder) BizName(bizName string) *ApprovalCreateExternalBuilder
- func (builder *ApprovalCreateExternalBuilder) BizType(bizType string) *ApprovalCreateExternalBuilder
- func (builder *ApprovalCreateExternalBuilder) Build() *ApprovalCreateExternal
- func (builder *ApprovalCreateExternalBuilder) CreateLinkMobile(createLinkMobile string) *ApprovalCreateExternalBuilder
- func (builder *ApprovalCreateExternalBuilder) CreateLinkPc(createLinkPc string) *ApprovalCreateExternalBuilder
- func (builder *ApprovalCreateExternalBuilder) EnableMarkReaded(enableMarkReaded bool) *ApprovalCreateExternalBuilder
- func (builder *ApprovalCreateExternalBuilder) EnableQuickOperate(enableQuickOperate bool) *ApprovalCreateExternalBuilder
- func (builder *ApprovalCreateExternalBuilder) ExcludeEfficiencyStatistics(excludeEfficiencyStatistics bool) *ApprovalCreateExternalBuilder
- func (builder *ApprovalCreateExternalBuilder) SupportBatchRead(supportBatchRead bool) *ApprovalCreateExternalBuilder
- func (builder *ApprovalCreateExternalBuilder) SupportMobile(supportMobile bool) *ApprovalCreateExternalBuilder
- func (builder *ApprovalCreateExternalBuilder) SupportPc(supportPc bool) *ApprovalCreateExternalBuilder
- type ApprovalCreateViewers
- type ApprovalCreateViewersBuilder
- func (builder *ApprovalCreateViewersBuilder) Build() *ApprovalCreateViewers
- func (builder *ApprovalCreateViewersBuilder) ViewerDepartmentId(viewerDepartmentId string) *ApprovalCreateViewersBuilder
- func (builder *ApprovalCreateViewersBuilder) ViewerType(viewerType string) *ApprovalCreateViewersBuilder
- func (builder *ApprovalCreateViewersBuilder) ViewerUserId(viewerUserId string) *ApprovalCreateViewersBuilder
- type ApprovalEvent
- type ApprovalEventBuilder
- func (builder *ApprovalEventBuilder) ApprovalCode(approvalCode string) *ApprovalEventBuilder
- func (builder *ApprovalEventBuilder) ApprovalId(approvalId string) *ApprovalEventBuilder
- func (builder *ApprovalEventBuilder) Build() *ApprovalEvent
- func (builder *ApprovalEventBuilder) Extra(extra string) *ApprovalEventBuilder
- func (builder *ApprovalEventBuilder) FormDefinitionId(formDefinitionId string) *ApprovalEventBuilder
- func (builder *ApprovalEventBuilder) ProcessObj(processObj string) *ApprovalEventBuilder
- func (builder *ApprovalEventBuilder) Timestamp(timestamp string) *ApprovalEventBuilder
- func (builder *ApprovalEventBuilder) VersionId(versionId string) *ApprovalEventBuilder
- func (builder *ApprovalEventBuilder) WidgetGroupType(widgetGroupType int) *ApprovalEventBuilder
- type ApprovalForm
- type ApprovalFormBuilder
- type ApprovalNode
- type ApprovalNodeBuilder
- func (builder *ApprovalNodeBuilder) Approver(approver []*ApprovalApproverCcer) *ApprovalNodeBuilder
- func (builder *ApprovalNodeBuilder) ApproverChosenMulti(approverChosenMulti bool) *ApprovalNodeBuilder
- func (builder *ApprovalNodeBuilder) ApproverChosenRange(approverChosenRange []*ApproverRange) *ApprovalNodeBuilder
- func (builder *ApprovalNodeBuilder) Build() *ApprovalNode
- func (builder *ApprovalNodeBuilder) Ccer(ccer []*ApprovalApproverCcer) *ApprovalNodeBuilder
- func (builder *ApprovalNodeBuilder) Id(id string) *ApprovalNodeBuilder
- func (builder *ApprovalNodeBuilder) Name(name string) *ApprovalNodeBuilder
- func (builder *ApprovalNodeBuilder) NodeType(nodeType string) *ApprovalNodeBuilder
- func (builder *ApprovalNodeBuilder) PrivilegeField(privilegeField *FieldGroup) *ApprovalNodeBuilder
- func (builder *ApprovalNodeBuilder) StarterAssignee(starterAssignee string) *ApprovalNodeBuilder
- type ApprovalNodeInfo
- type ApprovalNodeInfoBuilder
- func (builder *ApprovalNodeInfoBuilder) ApproverChosenMulti(approverChosenMulti bool) *ApprovalNodeInfoBuilder
- func (builder *ApprovalNodeInfoBuilder) ApproverChosenRange(approverChosenRange []*ApproverChosenRange) *ApprovalNodeInfoBuilder
- func (builder *ApprovalNodeInfoBuilder) Build() *ApprovalNodeInfo
- func (builder *ApprovalNodeInfoBuilder) CustomNodeId(customNodeId string) *ApprovalNodeInfoBuilder
- func (builder *ApprovalNodeInfoBuilder) Name(name string) *ApprovalNodeInfoBuilder
- func (builder *ApprovalNodeInfoBuilder) NeedApprover(needApprover bool) *ApprovalNodeInfoBuilder
- func (builder *ApprovalNodeInfoBuilder) NodeId(nodeId string) *ApprovalNodeInfoBuilder
- func (builder *ApprovalNodeInfoBuilder) NodeType(nodeType string) *ApprovalNodeInfoBuilder
- func (builder *ApprovalNodeInfoBuilder) RequireSignature(requireSignature bool) *ApprovalNodeInfoBuilder
- type ApprovalService
- type ApprovalSetting
- type ApprovalSettingBuilder
- func (builder *ApprovalSettingBuilder) Build() *ApprovalSetting
- func (builder *ApprovalSettingBuilder) QuickApprovalOption(quickApprovalOption int) *ApprovalSettingBuilder
- func (builder *ApprovalSettingBuilder) RejectOption(rejectOption int) *ApprovalSettingBuilder
- func (builder *ApprovalSettingBuilder) RevertInterval(revertInterval int) *ApprovalSettingBuilder
- func (builder *ApprovalSettingBuilder) RevertOption(revertOption int) *ApprovalSettingBuilder
- type ApprovalViewer
- type ApprovalViewerBuilder
- func (builder *ApprovalViewerBuilder) Build() *ApprovalViewer
- func (builder *ApprovalViewerBuilder) OpenId(openId string) *ApprovalViewerBuilder
- func (builder *ApprovalViewerBuilder) Type(type_ string) *ApprovalViewerBuilder
- func (builder *ApprovalViewerBuilder) UnionId(unionId string) *ApprovalViewerBuilder
- func (builder *ApprovalViewerBuilder) UserId(userId string) *ApprovalViewerBuilder
- type ApprovalViewerInfo
- type ApprovalViewerInfoBuilder
- func (builder *ApprovalViewerInfoBuilder) Build() *ApprovalViewerInfo
- func (builder *ApprovalViewerInfoBuilder) Id(id string) *ApprovalViewerInfoBuilder
- func (builder *ApprovalViewerInfoBuilder) Type(type_ string) *ApprovalViewerInfoBuilder
- func (builder *ApprovalViewerInfoBuilder) UserId(userId string) *ApprovalViewerInfoBuilder
- type ApproveTaskReq
- type ApproveTaskReqBuilder
- type ApproveTaskResp
- type ApproverChosenRange
- type ApproverChosenRangeBuilder
- type ApproverRange
- type ApproverRangeBuilder
- type CancelInstanceReq
- type CancelInstanceReqBuilder
- type CancelInstanceResp
- type CcInstanceReq
- type CcInstanceReqBuilder
- type CcInstanceResp
- type CcNode
- type CcNodeBuilder
- func (builder *CcNodeBuilder) Build() *CcNode
- func (builder *CcNodeBuilder) CcId(ccId string) *CcNodeBuilder
- func (builder *CcNodeBuilder) CreateTime(createTime string) *CcNodeBuilder
- func (builder *CcNodeBuilder) DisplayMethod(displayMethod string) *CcNodeBuilder
- func (builder *CcNodeBuilder) Extra(extra string) *CcNodeBuilder
- func (builder *CcNodeBuilder) Links(links *ExternalInstanceLink) *CcNodeBuilder
- func (builder *CcNodeBuilder) OpenId(openId string) *CcNodeBuilder
- func (builder *CcNodeBuilder) ReadStatus(readStatus string) *CcNodeBuilder
- func (builder *CcNodeBuilder) Title(title string) *CcNodeBuilder
- func (builder *CcNodeBuilder) UpdateTime(updateTime string) *CcNodeBuilder
- func (builder *CcNodeBuilder) UserId(userId string) *CcNodeBuilder
- type CcSearch
- type CcSearchBuilder
- func (builder *CcSearchBuilder) ApprovalCode(approvalCode string) *CcSearchBuilder
- func (builder *CcSearchBuilder) Build() *CcSearch
- func (builder *CcSearchBuilder) CcCreateTimeFrom(ccCreateTimeFrom string) *CcSearchBuilder
- func (builder *CcSearchBuilder) CcCreateTimeTo(ccCreateTimeTo string) *CcSearchBuilder
- func (builder *CcSearchBuilder) CcTitle(ccTitle string) *CcSearchBuilder
- func (builder *CcSearchBuilder) GroupExternalId(groupExternalId string) *CcSearchBuilder
- func (builder *CcSearchBuilder) InstanceCode(instanceCode string) *CcSearchBuilder
- func (builder *CcSearchBuilder) InstanceExternalId(instanceExternalId string) *CcSearchBuilder
- func (builder *CcSearchBuilder) Locale(locale string) *CcSearchBuilder
- func (builder *CcSearchBuilder) ReadStatus(readStatus string) *CcSearchBuilder
- func (builder *CcSearchBuilder) UserId(userId string) *CcSearchBuilder
- type CcSearchItem
- type CcSearchItemBuilder
- func (builder *CcSearchItemBuilder) Approval(approval *InstanceSearchApproval) *CcSearchItemBuilder
- func (builder *CcSearchItemBuilder) Build() *CcSearchItem
- func (builder *CcSearchItemBuilder) Cc(cc *CcSearchNode) *CcSearchItemBuilder
- func (builder *CcSearchItemBuilder) Group(group *InstanceSearchGroup) *CcSearchItemBuilder
- func (builder *CcSearchItemBuilder) Instance(instance *InstanceSearchNode) *CcSearchItemBuilder
- type CcSearchNode
- type CcSearchNodeBuilder
- func (builder *CcSearchNodeBuilder) Build() *CcSearchNode
- func (builder *CcSearchNodeBuilder) CreateTime(createTime string) *CcSearchNodeBuilder
- func (builder *CcSearchNodeBuilder) Extra(extra string) *CcSearchNodeBuilder
- func (builder *CcSearchNodeBuilder) Link(link *InstanceSearchLink) *CcSearchNodeBuilder
- func (builder *CcSearchNodeBuilder) ReadStatus(readStatus string) *CcSearchNodeBuilder
- func (builder *CcSearchNodeBuilder) Title(title string) *CcSearchNodeBuilder
- func (builder *CcSearchNodeBuilder) UserId(userId string) *CcSearchNodeBuilder
- type CheckExternalInstancePathReqBodyBuilder
- type CheckExternalInstanceReq
- type CheckExternalInstanceReqBody
- type CheckExternalInstanceReqBodyBuilder
- type CheckExternalInstanceReqBuilder
- type CheckExternalInstanceResp
- type CheckExternalInstanceRespData
- type Comment
- type CommentAtInfo
- type CommentAtInfoBuilder
- type CommentBuilder
- func (builder *CommentBuilder) AtInfoList(atInfoList []*CommentAtInfo) *CommentBuilder
- func (builder *CommentBuilder) Build() *Comment
- func (builder *CommentBuilder) Commentator(commentator string) *CommentBuilder
- func (builder *CommentBuilder) Content(content string) *CommentBuilder
- func (builder *CommentBuilder) CreateTime(createTime string) *CommentBuilder
- func (builder *CommentBuilder) Extra(extra string) *CommentBuilder
- func (builder *CommentBuilder) Id(id string) *CommentBuilder
- func (builder *CommentBuilder) IsDelete(isDelete int) *CommentBuilder
- func (builder *CommentBuilder) Replies(replies []*CommentReply) *CommentBuilder
- func (builder *CommentBuilder) UpdateTime(updateTime string) *CommentBuilder
- type CommentReply
- type CommentReplyBuilder
- func (builder *CommentReplyBuilder) AtInfoList(atInfoList []*CommentAtInfo) *CommentReplyBuilder
- func (builder *CommentReplyBuilder) Build() *CommentReply
- func (builder *CommentReplyBuilder) Commentator(commentator string) *CommentReplyBuilder
- func (builder *CommentReplyBuilder) Content(content string) *CommentReplyBuilder
- func (builder *CommentReplyBuilder) CreateTime(createTime string) *CommentReplyBuilder
- func (builder *CommentReplyBuilder) Extra(extra string) *CommentReplyBuilder
- func (builder *CommentReplyBuilder) Id(id string) *CommentReplyBuilder
- func (builder *CommentReplyBuilder) IsDelete(isDelete int) *CommentReplyBuilder
- func (builder *CommentReplyBuilder) UpdateTime(updateTime string) *CommentReplyBuilder
- type CommentRequest
- type CommentRequestBuilder
- func (builder *CommentRequestBuilder) AtInfoList(atInfoList []*CommentAtInfo) *CommentRequestBuilder
- func (builder *CommentRequestBuilder) Build() *CommentRequest
- func (builder *CommentRequestBuilder) CommentId(commentId string) *CommentRequestBuilder
- func (builder *CommentRequestBuilder) Content(content string) *CommentRequestBuilder
- func (builder *CommentRequestBuilder) DisableBot(disableBot bool) *CommentRequestBuilder
- func (builder *CommentRequestBuilder) Extra(extra string) *CommentRequestBuilder
- func (builder *CommentRequestBuilder) ParentCommentId(parentCommentId string) *CommentRequestBuilder
- type ConnectorLog
- type ConnectorLogBuilder
- type ConnectorLogData
- type ConnectorLogDataBuilder
- func (builder *ConnectorLogDataBuilder) Build() *ConnectorLogData
- func (builder *ConnectorLogDataBuilder) Data(data string) *ConnectorLogDataBuilder
- func (builder *ConnectorLogDataBuilder) DateTime(dateTime string) *ConnectorLogDataBuilder
- func (builder *ConnectorLogDataBuilder) Level(level string) *ConnectorLogDataBuilder
- func (builder *ConnectorLogDataBuilder) Location(location string) *ConnectorLogDataBuilder
- func (builder *ConnectorLogDataBuilder) Pod(pod string) *ConnectorLogDataBuilder
- func (builder *ConnectorLogDataBuilder) Type(type_ string) *ConnectorLogDataBuilder
- func (builder *ConnectorLogDataBuilder) Version(version string) *ConnectorLogDataBuilder
- type Count
- type CountBuilder
- type CreateApprovalReq
- type CreateApprovalReqBuilder
- func (builder *CreateApprovalReqBuilder) ApprovalCreate(approvalCreate *ApprovalCreate) *CreateApprovalReqBuilder
- func (builder *CreateApprovalReqBuilder) Build() *CreateApprovalReq
- func (builder *CreateApprovalReqBuilder) DepartmentIdType(departmentIdType string) *CreateApprovalReqBuilder
- func (builder *CreateApprovalReqBuilder) UserIdType(userIdType string) *CreateApprovalReqBuilder
- type CreateApprovalResp
- type CreateApprovalRespData
- type CreateExternalApprovalReq
- type CreateExternalApprovalReqBuilder
- func (builder *CreateExternalApprovalReqBuilder) Build() *CreateExternalApprovalReq
- func (builder *CreateExternalApprovalReqBuilder) DepartmentIdType(departmentIdType string) *CreateExternalApprovalReqBuilder
- func (builder *CreateExternalApprovalReqBuilder) ExternalApproval(externalApproval *ExternalApproval) *CreateExternalApprovalReqBuilder
- func (builder *CreateExternalApprovalReqBuilder) UserIdType(userIdType string) *CreateExternalApprovalReqBuilder
- type CreateExternalApprovalResp
- type CreateExternalApprovalRespData
- type CreateExternalInstanceReq
- type CreateExternalInstanceReqBuilder
- type CreateExternalInstanceResp
- type CreateExternalInstanceRespData
- type CreateInstanceCommentReq
- type CreateInstanceCommentReqBuilder
- func (builder *CreateInstanceCommentReqBuilder) Build() *CreateInstanceCommentReq
- func (builder *CreateInstanceCommentReqBuilder) CommentRequest(commentRequest *CommentRequest) *CreateInstanceCommentReqBuilder
- func (builder *CreateInstanceCommentReqBuilder) InstanceId(instanceId string) *CreateInstanceCommentReqBuilder
- func (builder *CreateInstanceCommentReqBuilder) UserId(userId string) *CreateInstanceCommentReqBuilder
- func (builder *CreateInstanceCommentReqBuilder) UserIdType(userIdType string) *CreateInstanceCommentReqBuilder
- type CreateInstanceCommentResp
- type CreateInstanceCommentRespData
- type CreateInstanceReq
- type CreateInstanceReqBuilder
- type CreateInstanceResp
- type CreateInstanceRespData
- type Definition
- type DefinitionBuilder
- func (builder *DefinitionBuilder) ApprovalCode(approvalCode string) *DefinitionBuilder
- func (builder *DefinitionBuilder) ApprovalName(approvalName string) *DefinitionBuilder
- func (builder *DefinitionBuilder) Build() *Definition
- func (builder *DefinitionBuilder) CreateLinkMobile(createLinkMobile string) *DefinitionBuilder
- func (builder *DefinitionBuilder) CreateLinkPc(createLinkPc string) *DefinitionBuilder
- func (builder *DefinitionBuilder) Description(description string) *DefinitionBuilder
- func (builder *DefinitionBuilder) GroupCode(groupCode string) *DefinitionBuilder
- func (builder *DefinitionBuilder) GroupName(groupName string) *DefinitionBuilder
- func (builder *DefinitionBuilder) IconUrl(iconUrl string) *DefinitionBuilder
- func (builder *DefinitionBuilder) IsExternal(isExternal bool) *DefinitionBuilder
- type DeleteInstanceCommentReq
- type DeleteInstanceCommentReqBuilder
- func (builder *DeleteInstanceCommentReqBuilder) Build() *DeleteInstanceCommentReq
- func (builder *DeleteInstanceCommentReqBuilder) CommentId(commentId string) *DeleteInstanceCommentReqBuilder
- func (builder *DeleteInstanceCommentReqBuilder) InstanceId(instanceId string) *DeleteInstanceCommentReqBuilder
- func (builder *DeleteInstanceCommentReqBuilder) UserId(userId string) *DeleteInstanceCommentReqBuilder
- func (builder *DeleteInstanceCommentReqBuilder) UserIdType(userIdType string) *DeleteInstanceCommentReqBuilder
- type DeleteInstanceCommentResp
- type DeleteInstanceCommentRespData
- type DepartmentId
- type DepartmentIdBuilder
- type ExteranlInstanceCheck
- type ExteranlInstanceCheckBuilder
- func (builder *ExteranlInstanceCheckBuilder) Build() *ExteranlInstanceCheck
- func (builder *ExteranlInstanceCheckBuilder) InstanceId(instanceId string) *ExteranlInstanceCheckBuilder
- func (builder *ExteranlInstanceCheckBuilder) Tasks(tasks []*ExternalInstanceTask) *ExteranlInstanceCheckBuilder
- func (builder *ExteranlInstanceCheckBuilder) UpdateTime(updateTime string) *ExteranlInstanceCheckBuilder
- type ExteranlInstanceCheckResponse
- type ExteranlInstanceCheckResponseBuilder
- func (builder *ExteranlInstanceCheckResponseBuilder) Build() *ExteranlInstanceCheckResponse
- func (builder *ExteranlInstanceCheckResponseBuilder) InstanceId(instanceId string) *ExteranlInstanceCheckResponseBuilder
- func (builder *ExteranlInstanceCheckResponseBuilder) Tasks(tasks []*ExternalInstanceTask) *ExteranlInstanceCheckResponseBuilder
- func (builder *ExteranlInstanceCheckResponseBuilder) UpdateTime(updateTime string) *ExteranlInstanceCheckResponseBuilder
- type ExternalApproval
- type ExternalApprovalBuilder
- func (builder *ExternalApprovalBuilder) ApprovalCode(approvalCode string) *ExternalApprovalBuilder
- func (builder *ExternalApprovalBuilder) ApprovalName(approvalName string) *ExternalApprovalBuilder
- func (builder *ExternalApprovalBuilder) Build() *ExternalApproval
- func (builder *ExternalApprovalBuilder) Description(description string) *ExternalApprovalBuilder
- func (builder *ExternalApprovalBuilder) External(external *ApprovalCreateExternal) *ExternalApprovalBuilder
- func (builder *ExternalApprovalBuilder) GroupCode(groupCode string) *ExternalApprovalBuilder
- func (builder *ExternalApprovalBuilder) GroupName(groupName string) *ExternalApprovalBuilder
- func (builder *ExternalApprovalBuilder) I18nResources(i18nResources []*I18nResource) *ExternalApprovalBuilder
- func (builder *ExternalApprovalBuilder) Managers(managers []string) *ExternalApprovalBuilder
- func (builder *ExternalApprovalBuilder) Viewers(viewers []*ApprovalCreateViewers) *ExternalApprovalBuilder
- type ExternalInstance
- type ExternalInstanceBuilder
- func (builder *ExternalInstanceBuilder) ApprovalCode(approvalCode string) *ExternalInstanceBuilder
- func (builder *ExternalInstanceBuilder) Build() *ExternalInstance
- func (builder *ExternalInstanceBuilder) CcList(ccList []*CcNode) *ExternalInstanceBuilder
- func (builder *ExternalInstanceBuilder) DepartmentId(departmentId string) *ExternalInstanceBuilder
- func (builder *ExternalInstanceBuilder) DepartmentName(departmentName string) *ExternalInstanceBuilder
- func (builder *ExternalInstanceBuilder) DisplayMethod(displayMethod string) *ExternalInstanceBuilder
- func (builder *ExternalInstanceBuilder) EndTime(endTime string) *ExternalInstanceBuilder
- func (builder *ExternalInstanceBuilder) Extra(extra string) *ExternalInstanceBuilder
- func (builder *ExternalInstanceBuilder) Form(form []*ExternalInstanceForm) *ExternalInstanceBuilder
- func (builder *ExternalInstanceBuilder) I18nResources(i18nResources []*I18nResource) *ExternalInstanceBuilder
- func (builder *ExternalInstanceBuilder) InstanceId(instanceId string) *ExternalInstanceBuilder
- func (builder *ExternalInstanceBuilder) Links(links *ExternalInstanceLink) *ExternalInstanceBuilder
- func (builder *ExternalInstanceBuilder) OpenId(openId string) *ExternalInstanceBuilder
- func (builder *ExternalInstanceBuilder) StartTime(startTime string) *ExternalInstanceBuilder
- func (builder *ExternalInstanceBuilder) Status(status string) *ExternalInstanceBuilder
- func (builder *ExternalInstanceBuilder) TaskList(taskList []*ExternalInstanceTaskNode) *ExternalInstanceBuilder
- func (builder *ExternalInstanceBuilder) Title(title string) *ExternalInstanceBuilder
- func (builder *ExternalInstanceBuilder) TrusteeshipCacheConfig(trusteeshipCacheConfig *TrusteeshipInstanceCacheConfig) *ExternalInstanceBuilder
- func (builder *ExternalInstanceBuilder) TrusteeshipUrlToken(trusteeshipUrlToken string) *ExternalInstanceBuilder
- func (builder *ExternalInstanceBuilder) TrusteeshipUrls(trusteeshipUrls *TrusteeshipUrls) *ExternalInstanceBuilder
- func (builder *ExternalInstanceBuilder) TrusteeshipUserIdType(trusteeshipUserIdType string) *ExternalInstanceBuilder
- func (builder *ExternalInstanceBuilder) UpdateMode(updateMode string) *ExternalInstanceBuilder
- func (builder *ExternalInstanceBuilder) UpdateTime(updateTime string) *ExternalInstanceBuilder
- func (builder *ExternalInstanceBuilder) UserId(userId string) *ExternalInstanceBuilder
- func (builder *ExternalInstanceBuilder) UserName(userName string) *ExternalInstanceBuilder
- type ExternalInstanceForm
- type ExternalInstanceFormBuilder
- type ExternalInstanceLink
- type ExternalInstanceLinkBuilder
- type ExternalInstanceTask
- type ExternalInstanceTaskBuilder
- type ExternalInstanceTaskNode
- type ExternalInstanceTaskNodeBuilder
- func (builder *ExternalInstanceTaskNodeBuilder) ActionConfigs(actionConfigs []*ActionConfig) *ExternalInstanceTaskNodeBuilder
- func (builder *ExternalInstanceTaskNodeBuilder) ActionContext(actionContext string) *ExternalInstanceTaskNodeBuilder
- func (builder *ExternalInstanceTaskNodeBuilder) Build() *ExternalInstanceTaskNode
- func (builder *ExternalInstanceTaskNodeBuilder) CreateTime(createTime string) *ExternalInstanceTaskNodeBuilder
- func (builder *ExternalInstanceTaskNodeBuilder) DisplayMethod(displayMethod string) *ExternalInstanceTaskNodeBuilder
- func (builder *ExternalInstanceTaskNodeBuilder) EndTime(endTime string) *ExternalInstanceTaskNodeBuilder
- func (builder *ExternalInstanceTaskNodeBuilder) ExcludeStatistics(excludeStatistics bool) *ExternalInstanceTaskNodeBuilder
- func (builder *ExternalInstanceTaskNodeBuilder) Extra(extra string) *ExternalInstanceTaskNodeBuilder
- func (builder *ExternalInstanceTaskNodeBuilder) Links(links *ExternalInstanceLink) *ExternalInstanceTaskNodeBuilder
- func (builder *ExternalInstanceTaskNodeBuilder) NodeId(nodeId string) *ExternalInstanceTaskNodeBuilder
- func (builder *ExternalInstanceTaskNodeBuilder) NodeName(nodeName string) *ExternalInstanceTaskNodeBuilder
- func (builder *ExternalInstanceTaskNodeBuilder) OpenId(openId string) *ExternalInstanceTaskNodeBuilder
- func (builder *ExternalInstanceTaskNodeBuilder) Status(status string) *ExternalInstanceTaskNodeBuilder
- func (builder *ExternalInstanceTaskNodeBuilder) TaskId(taskId string) *ExternalInstanceTaskNodeBuilder
- func (builder *ExternalInstanceTaskNodeBuilder) Title(title string) *ExternalInstanceTaskNodeBuilder
- func (builder *ExternalInstanceTaskNodeBuilder) UpdateTime(updateTime string) *ExternalInstanceTaskNodeBuilder
- func (builder *ExternalInstanceTaskNodeBuilder) UserId(userId string) *ExternalInstanceTaskNodeBuilder
- type ExternalTaskItem
- type ExternalTaskItemBuilder
- func (builder *ExternalTaskItemBuilder) Build() *ExternalTaskItem
- func (builder *ExternalTaskItemBuilder) Id(id string) *ExternalTaskItemBuilder
- func (builder *ExternalTaskItemBuilder) Status(status string) *ExternalTaskItemBuilder
- func (builder *ExternalTaskItemBuilder) UpdateTime(updateTime string) *ExternalTaskItemBuilder
- type ExternalTaskList
- type ExternalTaskListBuilder
- func (builder *ExternalTaskListBuilder) ApprovalCode(approvalCode string) *ExternalTaskListBuilder
- func (builder *ExternalTaskListBuilder) ApprovalId(approvalId string) *ExternalTaskListBuilder
- func (builder *ExternalTaskListBuilder) Build() *ExternalTaskList
- func (builder *ExternalTaskListBuilder) InstanceId(instanceId string) *ExternalTaskListBuilder
- func (builder *ExternalTaskListBuilder) Status(status string) *ExternalTaskListBuilder
- func (builder *ExternalTaskListBuilder) Tasks(tasks []*ExternalTaskItem) *ExternalTaskListBuilder
- func (builder *ExternalTaskListBuilder) UpdateTime(updateTime string) *ExternalTaskListBuilder
- type FieldGroup
- type FieldGroupBuilder
- type File
- type FileBuilder
- type FileUrl
- type FileUrlBuilder
- type GetApprovalReq
- type GetApprovalReqBuilder
- func (builder *GetApprovalReqBuilder) ApprovalCode(approvalCode string) *GetApprovalReqBuilder
- func (builder *GetApprovalReqBuilder) Build() *GetApprovalReq
- func (builder *GetApprovalReqBuilder) Locale(locale string) *GetApprovalReqBuilder
- func (builder *GetApprovalReqBuilder) UserIdType(userIdType string) *GetApprovalReqBuilder
- func (builder *GetApprovalReqBuilder) WithAdminId(withAdminId bool) *GetApprovalReqBuilder
- type GetApprovalResp
- type GetApprovalRespData
- type GetExternalApprovalReq
- type GetExternalApprovalReqBuilder
- type GetExternalApprovalResp
- type GetExternalApprovalRespData
- type GetInstanceReq
- type GetInstanceReqBuilder
- func (builder *GetInstanceReqBuilder) Build() *GetInstanceReq
- func (builder *GetInstanceReqBuilder) InstanceId(instanceId string) *GetInstanceReqBuilder
- func (builder *GetInstanceReqBuilder) Locale(locale string) *GetInstanceReqBuilder
- func (builder *GetInstanceReqBuilder) UserId(userId string) *GetInstanceReqBuilder
- func (builder *GetInstanceReqBuilder) UserIdType(userIdType string) *GetInstanceReqBuilder
- type GetInstanceResp
- type GetInstanceRespData
- type I18nResource
- type I18nResourceBuilder
- func (builder *I18nResourceBuilder) Build() *I18nResource
- func (builder *I18nResourceBuilder) IsDefault(isDefault bool) *I18nResourceBuilder
- func (builder *I18nResourceBuilder) Locale(locale string) *I18nResourceBuilder
- func (builder *I18nResourceBuilder) Texts(texts []*I18nResourceText) *I18nResourceBuilder
- type I18nResourceText
- type I18nResourceTextBuilder
- type Instance
- type InstanceBuilder
- func (builder *InstanceBuilder) ApprovalName(approvalName string) *InstanceBuilder
- func (builder *InstanceBuilder) Build() *Instance
- func (builder *InstanceBuilder) EndTime(endTime string) *InstanceBuilder
- func (builder *InstanceBuilder) InstanceCode(instanceCode string) *InstanceBuilder
- func (builder *InstanceBuilder) SerialId(serialId string) *InstanceBuilder
- func (builder *InstanceBuilder) StartTime(startTime string) *InstanceBuilder
- func (builder *InstanceBuilder) UserId(userId string) *InstanceBuilder
- type InstanceCancel
- type InstanceCancelBuilder
- func (builder *InstanceCancelBuilder) ApprovalCode(approvalCode string) *InstanceCancelBuilder
- func (builder *InstanceCancelBuilder) Build() *InstanceCancel
- func (builder *InstanceCancelBuilder) InstanceCode(instanceCode string) *InstanceCancelBuilder
- func (builder *InstanceCancelBuilder) UserId(userId string) *InstanceCancelBuilder
- type InstanceCc
- type InstanceCcBuilder
- func (builder *InstanceCcBuilder) ApprovalCode(approvalCode string) *InstanceCcBuilder
- func (builder *InstanceCcBuilder) Build() *InstanceCc
- func (builder *InstanceCcBuilder) CcUserIds(ccUserIds []string) *InstanceCcBuilder
- func (builder *InstanceCcBuilder) Comment(comment string) *InstanceCcBuilder
- func (builder *InstanceCcBuilder) InstanceCode(instanceCode string) *InstanceCcBuilder
- func (builder *InstanceCcBuilder) UserId(userId string) *InstanceCcBuilder
- type InstanceCcUser
- type InstanceCcUserBuilder
- func (builder *InstanceCcUserBuilder) Build() *InstanceCcUser
- func (builder *InstanceCcUserBuilder) CcId(ccId string) *InstanceCcUserBuilder
- func (builder *InstanceCcUserBuilder) OpenId(openId string) *InstanceCcUserBuilder
- func (builder *InstanceCcUserBuilder) UserId(userId string) *InstanceCcUserBuilder
- type InstanceComment
- type InstanceCommentBuilder
- func (builder *InstanceCommentBuilder) Build() *InstanceComment
- func (builder *InstanceCommentBuilder) Comment(comment string) *InstanceCommentBuilder
- func (builder *InstanceCommentBuilder) CreateTime(createTime string) *InstanceCommentBuilder
- func (builder *InstanceCommentBuilder) Files(files []*File) *InstanceCommentBuilder
- func (builder *InstanceCommentBuilder) Id(id string) *InstanceCommentBuilder
- func (builder *InstanceCommentBuilder) OpenId(openId string) *InstanceCommentBuilder
- func (builder *InstanceCommentBuilder) UserId(userId string) *InstanceCommentBuilder
- type InstanceCreate
- type InstanceCreateBuilder
- func (builder *InstanceCreateBuilder) AllowResubmit(allowResubmit bool) *InstanceCreateBuilder
- func (builder *InstanceCreateBuilder) AllowSubmitAgain(allowSubmitAgain bool) *InstanceCreateBuilder
- func (builder *InstanceCreateBuilder) ApprovalCode(approvalCode string) *InstanceCreateBuilder
- func (builder *InstanceCreateBuilder) Build() *InstanceCreate
- func (builder *InstanceCreateBuilder) CancelBotNotification(cancelBotNotification string) *InstanceCreateBuilder
- func (builder *InstanceCreateBuilder) DepartmentId(departmentId string) *InstanceCreateBuilder
- func (builder *InstanceCreateBuilder) ForbidRevoke(forbidRevoke bool) *InstanceCreateBuilder
- func (builder *InstanceCreateBuilder) Form(form string) *InstanceCreateBuilder
- func (builder *InstanceCreateBuilder) I18nResources(i18nResources []*I18nResource) *InstanceCreateBuilder
- func (builder *InstanceCreateBuilder) NodeApproverOpenIdList(nodeApproverOpenIdList []*NodeApprover) *InstanceCreateBuilder
- func (builder *InstanceCreateBuilder) NodeApproverUserIdList(nodeApproverUserIdList []*NodeApprover) *InstanceCreateBuilder
- func (builder *InstanceCreateBuilder) NodeCcOpenIdList(nodeCcOpenIdList []*NodeCc) *InstanceCreateBuilder
- func (builder *InstanceCreateBuilder) NodeCcUserIdList(nodeCcUserIdList []*NodeCc) *InstanceCreateBuilder
- func (builder *InstanceCreateBuilder) OpenId(openId string) *InstanceCreateBuilder
- func (builder *InstanceCreateBuilder) Title(title string) *InstanceCreateBuilder
- func (builder *InstanceCreateBuilder) TitleDisplayMethod(titleDisplayMethod int) *InstanceCreateBuilder
- func (builder *InstanceCreateBuilder) UserId(userId string) *InstanceCreateBuilder
- func (builder *InstanceCreateBuilder) Uuid(uuid string) *InstanceCreateBuilder
- type InstanceSearch
- type InstanceSearchApproval
- type InstanceSearchApprovalBuilder
- func (builder *InstanceSearchApprovalBuilder) ApprovalId(approvalId string) *InstanceSearchApprovalBuilder
- func (builder *InstanceSearchApprovalBuilder) Build() *InstanceSearchApproval
- func (builder *InstanceSearchApprovalBuilder) Code(code string) *InstanceSearchApprovalBuilder
- func (builder *InstanceSearchApprovalBuilder) External(external *InstanceSearchApprovalExternal) *InstanceSearchApprovalBuilder
- func (builder *InstanceSearchApprovalBuilder) Icon(icon string) *InstanceSearchApprovalBuilder
- func (builder *InstanceSearchApprovalBuilder) IsExternal(isExternal bool) *InstanceSearchApprovalBuilder
- func (builder *InstanceSearchApprovalBuilder) Name(name string) *InstanceSearchApprovalBuilder
- type InstanceSearchApprovalExternal
- type InstanceSearchApprovalExternalBuilder
- type InstanceSearchBuilder
- func (builder *InstanceSearchBuilder) ApprovalCode(approvalCode string) *InstanceSearchBuilder
- func (builder *InstanceSearchBuilder) Build() *InstanceSearch
- func (builder *InstanceSearchBuilder) GroupExternalId(groupExternalId string) *InstanceSearchBuilder
- func (builder *InstanceSearchBuilder) InstanceCode(instanceCode string) *InstanceSearchBuilder
- func (builder *InstanceSearchBuilder) InstanceExternalId(instanceExternalId string) *InstanceSearchBuilder
- func (builder *InstanceSearchBuilder) InstanceStartTimeFrom(instanceStartTimeFrom string) *InstanceSearchBuilder
- func (builder *InstanceSearchBuilder) InstanceStartTimeTo(instanceStartTimeTo string) *InstanceSearchBuilder
- func (builder *InstanceSearchBuilder) InstanceStatus(instanceStatus string) *InstanceSearchBuilder
- func (builder *InstanceSearchBuilder) InstanceTitle(instanceTitle string) *InstanceSearchBuilder
- func (builder *InstanceSearchBuilder) Locale(locale string) *InstanceSearchBuilder
- func (builder *InstanceSearchBuilder) UserId(userId string) *InstanceSearchBuilder
- type InstanceSearchGroup
- type InstanceSearchGroupBuilder
- type InstanceSearchItem
- type InstanceSearchItemBuilder
- func (builder *InstanceSearchItemBuilder) Approval(approval *InstanceSearchApproval) *InstanceSearchItemBuilder
- func (builder *InstanceSearchItemBuilder) Build() *InstanceSearchItem
- func (builder *InstanceSearchItemBuilder) Group(group *InstanceSearchGroup) *InstanceSearchItemBuilder
- func (builder *InstanceSearchItemBuilder) Instance(instance *InstanceSearchNode) *InstanceSearchItemBuilder
- type InstanceSearchLink
- type InstanceSearchLinkBuilder
- type InstanceSearchNode
- type InstanceSearchNodeBuilder
- func (builder *InstanceSearchNodeBuilder) Build() *InstanceSearchNode
- func (builder *InstanceSearchNodeBuilder) Code(code string) *InstanceSearchNodeBuilder
- func (builder *InstanceSearchNodeBuilder) EndTime(endTime string) *InstanceSearchNodeBuilder
- func (builder *InstanceSearchNodeBuilder) ExternalId(externalId string) *InstanceSearchNodeBuilder
- func (builder *InstanceSearchNodeBuilder) Extra(extra string) *InstanceSearchNodeBuilder
- func (builder *InstanceSearchNodeBuilder) Link(link *InstanceSearchLink) *InstanceSearchNodeBuilder
- func (builder *InstanceSearchNodeBuilder) SerialId(serialId string) *InstanceSearchNodeBuilder
- func (builder *InstanceSearchNodeBuilder) StartTime(startTime string) *InstanceSearchNodeBuilder
- func (builder *InstanceSearchNodeBuilder) Status(status string) *InstanceSearchNodeBuilder
- func (builder *InstanceSearchNodeBuilder) Title(title string) *InstanceSearchNodeBuilder
- func (builder *InstanceSearchNodeBuilder) UserId(userId string) *InstanceSearchNodeBuilder
- type InstanceTask
- type InstanceTaskBuilder
- func (builder *InstanceTaskBuilder) Build() *InstanceTask
- func (builder *InstanceTaskBuilder) CustomNodeId(customNodeId string) *InstanceTaskBuilder
- func (builder *InstanceTaskBuilder) EndTime(endTime string) *InstanceTaskBuilder
- func (builder *InstanceTaskBuilder) Id(id string) *InstanceTaskBuilder
- func (builder *InstanceTaskBuilder) NodeId(nodeId string) *InstanceTaskBuilder
- func (builder *InstanceTaskBuilder) NodeName(nodeName string) *InstanceTaskBuilder
- func (builder *InstanceTaskBuilder) OpenId(openId string) *InstanceTaskBuilder
- func (builder *InstanceTaskBuilder) StartTime(startTime string) *InstanceTaskBuilder
- func (builder *InstanceTaskBuilder) Status(status string) *InstanceTaskBuilder
- func (builder *InstanceTaskBuilder) Type(type_ string) *InstanceTaskBuilder
- func (builder *InstanceTaskBuilder) UserId(userId string) *InstanceTaskBuilder
- type InstanceTimeline
- type InstanceTimelineBuilder
- func (builder *InstanceTimelineBuilder) Build() *InstanceTimeline
- func (builder *InstanceTimelineBuilder) CcUserList(ccUserList []*InstanceCcUser) *InstanceTimelineBuilder
- func (builder *InstanceTimelineBuilder) Comment(comment string) *InstanceTimelineBuilder
- func (builder *InstanceTimelineBuilder) CreateTime(createTime string) *InstanceTimelineBuilder
- func (builder *InstanceTimelineBuilder) Ext(ext string) *InstanceTimelineBuilder
- func (builder *InstanceTimelineBuilder) Files(files []*File) *InstanceTimelineBuilder
- func (builder *InstanceTimelineBuilder) NodeKey(nodeKey string) *InstanceTimelineBuilder
- func (builder *InstanceTimelineBuilder) OpenId(openId string) *InstanceTimelineBuilder
- func (builder *InstanceTimelineBuilder) OpenIdList(openIdList []string) *InstanceTimelineBuilder
- func (builder *InstanceTimelineBuilder) TaskId(taskId string) *InstanceTimelineBuilder
- func (builder *InstanceTimelineBuilder) Type(type_ string) *InstanceTimelineBuilder
- func (builder *InstanceTimelineBuilder) UserId(userId string) *InstanceTimelineBuilder
- func (builder *InstanceTimelineBuilder) UserIdList(userIdList []string) *InstanceTimelineBuilder
- type ListExternalTaskIterator
- type ListExternalTaskPathReqBodyBuilder
- func (builder *ListExternalTaskPathReqBodyBuilder) ApprovalCodes(approvalCodes []string) *ListExternalTaskPathReqBodyBuilder
- func (builder *ListExternalTaskPathReqBodyBuilder) Build() (*ListExternalTaskReqBody, error)
- func (builder *ListExternalTaskPathReqBodyBuilder) InstanceIds(instanceIds []string) *ListExternalTaskPathReqBodyBuilder
- func (builder *ListExternalTaskPathReqBodyBuilder) Status(status string) *ListExternalTaskPathReqBodyBuilder
- func (builder *ListExternalTaskPathReqBodyBuilder) UserIds(userIds []string) *ListExternalTaskPathReqBodyBuilder
- type ListExternalTaskReq
- type ListExternalTaskReqBody
- type ListExternalTaskReqBodyBuilder
- func (builder *ListExternalTaskReqBodyBuilder) ApprovalCodes(approvalCodes []string) *ListExternalTaskReqBodyBuilder
- func (builder *ListExternalTaskReqBodyBuilder) Build() *ListExternalTaskReqBody
- func (builder *ListExternalTaskReqBodyBuilder) InstanceIds(instanceIds []string) *ListExternalTaskReqBodyBuilder
- func (builder *ListExternalTaskReqBodyBuilder) Status(status string) *ListExternalTaskReqBodyBuilder
- func (builder *ListExternalTaskReqBodyBuilder) UserIds(userIds []string) *ListExternalTaskReqBodyBuilder
- type ListExternalTaskReqBuilder
- func (builder *ListExternalTaskReqBuilder) Body(body *ListExternalTaskReqBody) *ListExternalTaskReqBuilder
- func (builder *ListExternalTaskReqBuilder) Build() *ListExternalTaskReq
- func (builder *ListExternalTaskReqBuilder) Limit(limit int) *ListExternalTaskReqBuilder
- func (builder *ListExternalTaskReqBuilder) PageSize(pageSize int) *ListExternalTaskReqBuilder
- func (builder *ListExternalTaskReqBuilder) PageToken(pageToken string) *ListExternalTaskReqBuilder
- type ListExternalTaskResp
- type ListExternalTaskRespData
- type ListInstanceCommentReq
- type ListInstanceCommentReqBuilder
- func (builder *ListInstanceCommentReqBuilder) Build() *ListInstanceCommentReq
- func (builder *ListInstanceCommentReqBuilder) InstanceId(instanceId string) *ListInstanceCommentReqBuilder
- func (builder *ListInstanceCommentReqBuilder) PageSize(pageSize int) *ListInstanceCommentReqBuilder
- func (builder *ListInstanceCommentReqBuilder) PageToken(pageToken string) *ListInstanceCommentReqBuilder
- func (builder *ListInstanceCommentReqBuilder) UserId(userId string) *ListInstanceCommentReqBuilder
- func (builder *ListInstanceCommentReqBuilder) UserIdType(userIdType string) *ListInstanceCommentReqBuilder
- type ListInstanceCommentResp
- type ListInstanceCommentRespData
- type ListInstanceIterator
- type ListInstanceReq
- type ListInstanceReqBuilder
- func (builder *ListInstanceReqBuilder) ApprovalCode(approvalCode string) *ListInstanceReqBuilder
- func (builder *ListInstanceReqBuilder) Build() *ListInstanceReq
- func (builder *ListInstanceReqBuilder) EndTime(endTime string) *ListInstanceReqBuilder
- func (builder *ListInstanceReqBuilder) Limit(limit int) *ListInstanceReqBuilder
- func (builder *ListInstanceReqBuilder) PageSize(pageSize int) *ListInstanceReqBuilder
- func (builder *ListInstanceReqBuilder) PageToken(pageToken string) *ListInstanceReqBuilder
- func (builder *ListInstanceReqBuilder) StartTime(startTime string) *ListInstanceReqBuilder
- type ListInstanceResp
- type ListInstanceRespData
- type ManageableDefinition
- type ManageableDefinitionBuilder
- func (builder *ManageableDefinitionBuilder) ApprovalAdminIds(approvalAdminIds []string) *ManageableDefinitionBuilder
- func (builder *ManageableDefinitionBuilder) ApprovalCode(approvalCode string) *ManageableDefinitionBuilder
- func (builder *ManageableDefinitionBuilder) ApprovalName(approvalName string) *ManageableDefinitionBuilder
- func (builder *ManageableDefinitionBuilder) ApprovalStatus(approvalStatus string) *ManageableDefinitionBuilder
- func (builder *ManageableDefinitionBuilder) Build() *ManageableDefinition
- type ManageableInstanceItem
- type ManageableInstanceItemBuilder
- type ManageableInstanceNode
- type ManageableInstanceNodeBuilder
- func (builder *ManageableInstanceNodeBuilder) Build() *ManageableInstanceNode
- func (builder *ManageableInstanceNodeBuilder) Code(code string) *ManageableInstanceNodeBuilder
- func (builder *ManageableInstanceNodeBuilder) CurrentUserIds(currentUserIds []string) *ManageableInstanceNodeBuilder
- func (builder *ManageableInstanceNodeBuilder) DepartmentId(departmentId string) *ManageableInstanceNodeBuilder
- func (builder *ManageableInstanceNodeBuilder) EndTime(endTime string) *ManageableInstanceNodeBuilder
- func (builder *ManageableInstanceNodeBuilder) Form(form string) *ManageableInstanceNodeBuilder
- func (builder *ManageableInstanceNodeBuilder) NodeName(nodeName string) *ManageableInstanceNodeBuilder
- func (builder *ManageableInstanceNodeBuilder) SerialId(serialId string) *ManageableInstanceNodeBuilder
- func (builder *ManageableInstanceNodeBuilder) StartTime(startTime string) *ManageableInstanceNodeBuilder
- func (builder *ManageableInstanceNodeBuilder) StartUserId(startUserId string) *ManageableInstanceNodeBuilder
- func (builder *ManageableInstanceNodeBuilder) Status(status string) *ManageableInstanceNodeBuilder
- func (builder *ManageableInstanceNodeBuilder) StatusDisplay(statusDisplay string) *ManageableInstanceNodeBuilder
- func (builder *ManageableInstanceNodeBuilder) Version(version string) *ManageableInstanceNodeBuilder
- type Message
- type MessageBuilder
- func (builder *MessageBuilder) Build() *Message
- func (builder *MessageBuilder) Config(config string) *MessageBuilder
- func (builder *MessageBuilder) Content(content string) *MessageBuilder
- func (builder *MessageBuilder) Extra(extra string) *MessageBuilder
- func (builder *MessageBuilder) Id(id string) *MessageBuilder
- func (builder *MessageBuilder) MsgType(msgType string) *MessageBuilder
- func (builder *MessageBuilder) ReceiveId(receiveId string) *MessageBuilder
- func (builder *MessageBuilder) Uuid(uuid string) *MessageBuilder
- type NodeApprover
- type NodeApproverBuilder
- type NodeCc
- type NodeCcBuilder
- type P1LeaveApprovalI18nResourceV4
- type P1LeaveApprovalV4
- type P1LeaveApprovalV4Data
- type P1LeaveApprovalV4Handler
- type P1OutApprovalI18nResourceV4
- type P1OutApprovalV4
- type P1OutApprovalV4Data
- type P1OutApprovalV4Handler
- type P1RemedyApprovalV4
- type P1RemedyApprovalV4Data
- type P1RemedyApprovalV4Handler
- type P1ShiftApprovalV4
- type P1ShiftApprovalV4Data
- type P1ShiftApprovalV4Handler
- type P1TripApprovalScheduleV4
- type P1TripApprovalTripPeerV4
- type P1TripApprovalV4
- type P1TripApprovalV4Data
- type P1TripApprovalV4Handler
- type P1WorkApprovalV4
- type P1WorkApprovalV4Data
- type P1WorkApprovalV4Handler
- type P2ApprovalUpdatedV4
- type P2ApprovalUpdatedV4Data
- type P2ApprovalUpdatedV4Handler
- type PreviewInstancePathReqBodyBuilder
- func (builder *PreviewInstancePathReqBodyBuilder) ApprovalCode(approvalCode string) *PreviewInstancePathReqBodyBuilder
- func (builder *PreviewInstancePathReqBodyBuilder) Build() (*PreviewInstanceReqBody, error)
- func (builder *PreviewInstancePathReqBodyBuilder) DepartmentId(departmentId string) *PreviewInstancePathReqBodyBuilder
- func (builder *PreviewInstancePathReqBodyBuilder) Form(form string) *PreviewInstancePathReqBodyBuilder
- func (builder *PreviewInstancePathReqBodyBuilder) InstanceCode(instanceCode string) *PreviewInstancePathReqBodyBuilder
- func (builder *PreviewInstancePathReqBodyBuilder) Locale(locale string) *PreviewInstancePathReqBodyBuilder
- func (builder *PreviewInstancePathReqBodyBuilder) TaskId(taskId string) *PreviewInstancePathReqBodyBuilder
- func (builder *PreviewInstancePathReqBodyBuilder) UserId(userId string) *PreviewInstancePathReqBodyBuilder
- type PreviewInstanceReq
- type PreviewInstanceReqBody
- type PreviewInstanceReqBodyBuilder
- func (builder *PreviewInstanceReqBodyBuilder) ApprovalCode(approvalCode string) *PreviewInstanceReqBodyBuilder
- func (builder *PreviewInstanceReqBodyBuilder) Build() *PreviewInstanceReqBody
- func (builder *PreviewInstanceReqBodyBuilder) DepartmentId(departmentId string) *PreviewInstanceReqBodyBuilder
- func (builder *PreviewInstanceReqBodyBuilder) Form(form string) *PreviewInstanceReqBodyBuilder
- func (builder *PreviewInstanceReqBodyBuilder) InstanceCode(instanceCode string) *PreviewInstanceReqBodyBuilder
- func (builder *PreviewInstanceReqBodyBuilder) Locale(locale string) *PreviewInstanceReqBodyBuilder
- func (builder *PreviewInstanceReqBodyBuilder) TaskId(taskId string) *PreviewInstanceReqBodyBuilder
- func (builder *PreviewInstanceReqBodyBuilder) UserId(userId string) *PreviewInstanceReqBodyBuilder
- type PreviewInstanceReqBuilder
- type PreviewInstanceResp
- type PreviewInstanceRespData
- type PreviewNode
- type PreviewNodeBuilder
- func (builder *PreviewNodeBuilder) Build() *PreviewNode
- func (builder *PreviewNodeBuilder) Comments(comments []string) *PreviewNodeBuilder
- func (builder *PreviewNodeBuilder) CustomNodeId(customNodeId string) *PreviewNodeBuilder
- func (builder *PreviewNodeBuilder) EndCcIdList(endCcIdList []string) *PreviewNodeBuilder
- func (builder *PreviewNodeBuilder) HasCcTypeFree(hasCcTypeFree bool) *PreviewNodeBuilder
- func (builder *PreviewNodeBuilder) IsApproverTypeFree(isApproverTypeFree bool) *PreviewNodeBuilder
- func (builder *PreviewNodeBuilder) IsEmptyLogic(isEmptyLogic bool) *PreviewNodeBuilder
- func (builder *PreviewNodeBuilder) NodeId(nodeId string) *PreviewNodeBuilder
- func (builder *PreviewNodeBuilder) NodeName(nodeName string) *PreviewNodeBuilder
- func (builder *PreviewNodeBuilder) NodeType(nodeType string) *PreviewNodeBuilder
- func (builder *PreviewNodeBuilder) UserIdList(userIdList []string) *PreviewNodeBuilder
- type QueryInstanceIterator
- type QueryInstanceReq
- type QueryInstanceReqBuilder
- func (builder *QueryInstanceReqBuilder) Build() *QueryInstanceReq
- func (builder *QueryInstanceReqBuilder) InstanceSearch(instanceSearch *InstanceSearch) *QueryInstanceReqBuilder
- func (builder *QueryInstanceReqBuilder) Limit(limit int) *QueryInstanceReqBuilder
- func (builder *QueryInstanceReqBuilder) PageSize(pageSize int) *QueryInstanceReqBuilder
- func (builder *QueryInstanceReqBuilder) PageToken(pageToken string) *QueryInstanceReqBuilder
- func (builder *QueryInstanceReqBuilder) UserIdType(userIdType string) *QueryInstanceReqBuilder
- type QueryInstanceResp
- type QueryInstanceRespData
- type QueryTaskIterator
- type QueryTaskReq
- type QueryTaskReqBuilder
- func (builder *QueryTaskReqBuilder) Build() *QueryTaskReq
- func (builder *QueryTaskReqBuilder) Limit(limit int) *QueryTaskReqBuilder
- func (builder *QueryTaskReqBuilder) PageSize(pageSize int) *QueryTaskReqBuilder
- func (builder *QueryTaskReqBuilder) PageToken(pageToken string) *QueryTaskReqBuilder
- func (builder *QueryTaskReqBuilder) Topic(topic string) *QueryTaskReqBuilder
- func (builder *QueryTaskReqBuilder) UserId(userId string) *QueryTaskReqBuilder
- func (builder *QueryTaskReqBuilder) UserIdType(userIdType string) *QueryTaskReqBuilder
- type QueryTaskResp
- type QueryTaskRespData
- type Reason
- type ReasonBuilder
- type RejectTaskReq
- type RejectTaskReqBuilder
- type RejectTaskResp
- type RemedyGroup
- type RemedyGroupBuilder
- func (builder *RemedyGroupBuilder) Build() *RemedyGroup
- func (builder *RemedyGroupBuilder) EmployeeId(employeeId string) *RemedyGroupBuilder
- func (builder *RemedyGroupBuilder) EndTime(endTime int) *RemedyGroupBuilder
- func (builder *RemedyGroupBuilder) InstanceCode(instanceCode string) *RemedyGroupBuilder
- func (builder *RemedyGroupBuilder) RemedyReason(remedyReason string) *RemedyGroupBuilder
- func (builder *RemedyGroupBuilder) RemedyTime(remedyTime int) *RemedyGroupBuilder
- func (builder *RemedyGroupBuilder) StartTime(startTime int) *RemedyGroupBuilder
- func (builder *RemedyGroupBuilder) Status(status string) *RemedyGroupBuilder
- func (builder *RemedyGroupBuilder) Type(type_ string) *RemedyGroupBuilder
- type RemoveInstanceCommentReq
- type RemoveInstanceCommentReqBuilder
- func (builder *RemoveInstanceCommentReqBuilder) Build() *RemoveInstanceCommentReq
- func (builder *RemoveInstanceCommentReqBuilder) InstanceId(instanceId string) *RemoveInstanceCommentReqBuilder
- func (builder *RemoveInstanceCommentReqBuilder) UserId(userId string) *RemoveInstanceCommentReqBuilder
- func (builder *RemoveInstanceCommentReqBuilder) UserIdType(userIdType string) *RemoveInstanceCommentReqBuilder
- type RemoveInstanceCommentResp
- type RemoveInstanceCommentRespData
- type ResubmitTaskReq
- type ResubmitTaskReqBuilder
- type ResubmitTaskResp
- type RevertEvent
- type RevertEventBuilder
- func (builder *RevertEventBuilder) Build() *RevertEvent
- func (builder *RevertEventBuilder) InstanceCode(instanceCode string) *RevertEventBuilder
- func (builder *RevertEventBuilder) OperateTime(operateTime string) *RevertEventBuilder
- func (builder *RevertEventBuilder) Status(status string) *RevertEventBuilder
- func (builder *RevertEventBuilder) Type(type_ string) *RevertEventBuilder
- type RollbackNode
- type RollbackNodeBuilder
- func (builder *RollbackNodeBuilder) Build() *RollbackNode
- func (builder *RollbackNodeBuilder) CustomNodeId(customNodeId string) *RollbackNodeBuilder
- func (builder *RollbackNodeBuilder) NodeId(nodeId string) *RollbackNodeBuilder
- func (builder *RollbackNodeBuilder) NodeKey(nodeKey string) *RollbackNodeBuilder
- func (builder *RollbackNodeBuilder) NodeName(nodeName string) *RollbackNodeBuilder
- type SearchCcInstanceReq
- type SearchCcInstanceReqBuilder
- func (builder *SearchCcInstanceReqBuilder) Build() *SearchCcInstanceReq
- func (builder *SearchCcInstanceReqBuilder) CcSearch(ccSearch *CcSearch) *SearchCcInstanceReqBuilder
- func (builder *SearchCcInstanceReqBuilder) PageSize(pageSize int) *SearchCcInstanceReqBuilder
- func (builder *SearchCcInstanceReqBuilder) PageToken(pageToken string) *SearchCcInstanceReqBuilder
- func (builder *SearchCcInstanceReqBuilder) UserIdType(userIdType string) *SearchCcInstanceReqBuilder
- type SearchCcInstanceResp
- type SearchCcInstanceRespData
- type SearchTaskReq
- type SearchTaskReqBuilder
- func (builder *SearchTaskReqBuilder) Build() *SearchTaskReq
- func (builder *SearchTaskReqBuilder) PageSize(pageSize int) *SearchTaskReqBuilder
- func (builder *SearchTaskReqBuilder) PageToken(pageToken string) *SearchTaskReqBuilder
- func (builder *SearchTaskReqBuilder) TaskSearch(taskSearch *TaskSearch) *SearchTaskReqBuilder
- func (builder *SearchTaskReqBuilder) UserIdType(userIdType string) *SearchTaskReqBuilder
- type SearchTaskResp
- type SearchTaskRespData
- type SignGroup
- type SignGroupBuilder
- func (builder *SignGroupBuilder) AccountCode(accountCode string) *SignGroupBuilder
- func (builder *SignGroupBuilder) BoilerplateUniqueCode(boilerplateUniqueCode string) *SignGroupBuilder
- func (builder *SignGroupBuilder) Build() *SignGroup
- func (builder *SignGroupBuilder) EndTime(endTime int) *SignGroupBuilder
- func (builder *SignGroupBuilder) InstanceCode(instanceCode string) *SignGroupBuilder
- func (builder *SignGroupBuilder) StartTime(startTime int) *SignGroupBuilder
- func (builder *SignGroupBuilder) Type(type_ string) *SignGroupBuilder
- func (builder *SignGroupBuilder) UserId(userId *UserId) *SignGroupBuilder
- type SpecifiedRollback
- type SpecifiedRollbackBuilder
- func (builder *SpecifiedRollbackBuilder) Build() *SpecifiedRollback
- func (builder *SpecifiedRollbackBuilder) Extra(extra string) *SpecifiedRollbackBuilder
- func (builder *SpecifiedRollbackBuilder) Reason(reason string) *SpecifiedRollbackBuilder
- func (builder *SpecifiedRollbackBuilder) TaskDefKeyList(taskDefKeyList []string) *SpecifiedRollbackBuilder
- func (builder *SpecifiedRollbackBuilder) TaskId(taskId string) *SpecifiedRollbackBuilder
- func (builder *SpecifiedRollbackBuilder) UserId(userId string) *SpecifiedRollbackBuilder
- type SpecifiedRollbackInstanceReq
- type SpecifiedRollbackInstanceReqBuilder
- func (builder *SpecifiedRollbackInstanceReqBuilder) Build() *SpecifiedRollbackInstanceReq
- func (builder *SpecifiedRollbackInstanceReqBuilder) SpecifiedRollback(specifiedRollback *SpecifiedRollback) *SpecifiedRollbackInstanceReqBuilder
- func (builder *SpecifiedRollbackInstanceReqBuilder) UserIdType(userIdType string) *SpecifiedRollbackInstanceReqBuilder
- type SpecifiedRollbackInstanceResp
- type SubscribeApprovalReq
- type SubscribeApprovalReqBuilder
- type SubscribeApprovalResp
- type Task
- type TaskApprove
- type TaskApproveBuilder
- func (builder *TaskApproveBuilder) ApprovalCode(approvalCode string) *TaskApproveBuilder
- func (builder *TaskApproveBuilder) Build() *TaskApprove
- func (builder *TaskApproveBuilder) Comment(comment string) *TaskApproveBuilder
- func (builder *TaskApproveBuilder) Form(form string) *TaskApproveBuilder
- func (builder *TaskApproveBuilder) InstanceCode(instanceCode string) *TaskApproveBuilder
- func (builder *TaskApproveBuilder) TaskId(taskId string) *TaskApproveBuilder
- func (builder *TaskApproveBuilder) UserId(userId string) *TaskApproveBuilder
- type TaskBuilder
- func (builder *TaskBuilder) Build() *Task
- func (builder *TaskBuilder) DefinitionCode(definitionCode string) *TaskBuilder
- func (builder *TaskBuilder) DefinitionGroupId(definitionGroupId string) *TaskBuilder
- func (builder *TaskBuilder) DefinitionGroupName(definitionGroupName string) *TaskBuilder
- func (builder *TaskBuilder) DefinitionId(definitionId string) *TaskBuilder
- func (builder *TaskBuilder) DefinitionName(definitionName string) *TaskBuilder
- func (builder *TaskBuilder) InitiatorNames(initiatorNames []string) *TaskBuilder
- func (builder *TaskBuilder) Initiators(initiators []string) *TaskBuilder
- func (builder *TaskBuilder) ProcessCode(processCode string) *TaskBuilder
- func (builder *TaskBuilder) ProcessExternalId(processExternalId string) *TaskBuilder
- func (builder *TaskBuilder) ProcessId(processId string) *TaskBuilder
- func (builder *TaskBuilder) ProcessStatus(processStatus string) *TaskBuilder
- func (builder *TaskBuilder) Status(status string) *TaskBuilder
- func (builder *TaskBuilder) TaskExternalId(taskExternalId string) *TaskBuilder
- func (builder *TaskBuilder) TaskId(taskId string) *TaskBuilder
- func (builder *TaskBuilder) Title(title string) *TaskBuilder
- func (builder *TaskBuilder) Topic(topic string) *TaskBuilder
- func (builder *TaskBuilder) Urls(urls *TaskUrls) *TaskBuilder
- func (builder *TaskBuilder) UserId(userId string) *TaskBuilder
- type TaskResubmit
- type TaskResubmitBuilder
- func (builder *TaskResubmitBuilder) ApprovalCode(approvalCode string) *TaskResubmitBuilder
- func (builder *TaskResubmitBuilder) Build() *TaskResubmit
- func (builder *TaskResubmitBuilder) Comment(comment string) *TaskResubmitBuilder
- func (builder *TaskResubmitBuilder) Form(form string) *TaskResubmitBuilder
- func (builder *TaskResubmitBuilder) InstanceCode(instanceCode string) *TaskResubmitBuilder
- func (builder *TaskResubmitBuilder) TaskId(taskId string) *TaskResubmitBuilder
- func (builder *TaskResubmitBuilder) UserId(userId string) *TaskResubmitBuilder
- type TaskRollback
- type TaskRollbackBuilder
- func (builder *TaskRollbackBuilder) Build() *TaskRollback
- func (builder *TaskRollbackBuilder) Extra(extra string) *TaskRollbackBuilder
- func (builder *TaskRollbackBuilder) Reason(reason string) *TaskRollbackBuilder
- func (builder *TaskRollbackBuilder) TaskDefKey(taskDefKey string) *TaskRollbackBuilder
- func (builder *TaskRollbackBuilder) TaskId(taskId string) *TaskRollbackBuilder
- func (builder *TaskRollbackBuilder) UserId(userId string) *TaskRollbackBuilder
- type TaskSearch
- type TaskSearchBuilder
- func (builder *TaskSearchBuilder) ApprovalCode(approvalCode string) *TaskSearchBuilder
- func (builder *TaskSearchBuilder) Build() *TaskSearch
- func (builder *TaskSearchBuilder) GroupExternalId(groupExternalId string) *TaskSearchBuilder
- func (builder *TaskSearchBuilder) InstanceCode(instanceCode string) *TaskSearchBuilder
- func (builder *TaskSearchBuilder) InstanceExternalId(instanceExternalId string) *TaskSearchBuilder
- func (builder *TaskSearchBuilder) Locale(locale string) *TaskSearchBuilder
- func (builder *TaskSearchBuilder) Order(order int) *TaskSearchBuilder
- func (builder *TaskSearchBuilder) TaskStartTimeFrom(taskStartTimeFrom string) *TaskSearchBuilder
- func (builder *TaskSearchBuilder) TaskStartTimeTo(taskStartTimeTo string) *TaskSearchBuilder
- func (builder *TaskSearchBuilder) TaskStatus(taskStatus string) *TaskSearchBuilder
- func (builder *TaskSearchBuilder) TaskStatusList(taskStatusList []string) *TaskSearchBuilder
- func (builder *TaskSearchBuilder) TaskTitle(taskTitle string) *TaskSearchBuilder
- func (builder *TaskSearchBuilder) UserId(userId string) *TaskSearchBuilder
- type TaskSearchItem
- type TaskSearchItemBuilder
- func (builder *TaskSearchItemBuilder) Approval(approval *InstanceSearchApproval) *TaskSearchItemBuilder
- func (builder *TaskSearchItemBuilder) Build() *TaskSearchItem
- func (builder *TaskSearchItemBuilder) Group(group *InstanceSearchGroup) *TaskSearchItemBuilder
- func (builder *TaskSearchItemBuilder) Instance(instance *InstanceSearchNode) *TaskSearchItemBuilder
- func (builder *TaskSearchItemBuilder) Task(task *TaskSearchNode) *TaskSearchItemBuilder
- type TaskSearchNode
- type TaskSearchNodeBuilder
- func (builder *TaskSearchNodeBuilder) Build() *TaskSearchNode
- func (builder *TaskSearchNodeBuilder) EndTime(endTime string) *TaskSearchNodeBuilder
- func (builder *TaskSearchNodeBuilder) Extra(extra string) *TaskSearchNodeBuilder
- func (builder *TaskSearchNodeBuilder) Link(link *InstanceSearchLink) *TaskSearchNodeBuilder
- func (builder *TaskSearchNodeBuilder) StartTime(startTime string) *TaskSearchNodeBuilder
- func (builder *TaskSearchNodeBuilder) Status(status string) *TaskSearchNodeBuilder
- func (builder *TaskSearchNodeBuilder) TaskExternalId(taskExternalId string) *TaskSearchNodeBuilder
- func (builder *TaskSearchNodeBuilder) TaskId(taskId string) *TaskSearchNodeBuilder
- func (builder *TaskSearchNodeBuilder) Title(title string) *TaskSearchNodeBuilder
- func (builder *TaskSearchNodeBuilder) UpdateTime(updateTime string) *TaskSearchNodeBuilder
- func (builder *TaskSearchNodeBuilder) UserId(userId string) *TaskSearchNodeBuilder
- type TaskTransfer
- type TaskTransferBuilder
- func (builder *TaskTransferBuilder) ApprovalCode(approvalCode string) *TaskTransferBuilder
- func (builder *TaskTransferBuilder) Build() *TaskTransfer
- func (builder *TaskTransferBuilder) Comment(comment string) *TaskTransferBuilder
- func (builder *TaskTransferBuilder) InstanceCode(instanceCode string) *TaskTransferBuilder
- func (builder *TaskTransferBuilder) TaskId(taskId string) *TaskTransferBuilder
- func (builder *TaskTransferBuilder) TransferUserId(transferUserId string) *TaskTransferBuilder
- func (builder *TaskTransferBuilder) UserId(userId string) *TaskTransferBuilder
- type TaskUrls
- type TaskUrlsBuilder
- type TransferTaskReq
- type TransferTaskReqBuilder
- type TransferTaskResp
- type TripGroup
- type TripGroupBuilder
- func (builder *TripGroupBuilder) Build() *TripGroup
- func (builder *TripGroupBuilder) EndTime(endTime string) *TripGroupBuilder
- func (builder *TripGroupBuilder) InstanceCode(instanceCode string) *TripGroupBuilder
- func (builder *TripGroupBuilder) Schedules(schedules []*TripGroupSchedule) *TripGroupBuilder
- func (builder *TripGroupBuilder) StartTime(startTime string) *TripGroupBuilder
- func (builder *TripGroupBuilder) StartUser(startUser *User) *TripGroupBuilder
- func (builder *TripGroupBuilder) TripInterval(tripInterval string) *TripGroupBuilder
- func (builder *TripGroupBuilder) TripPeers(tripPeers []*User) *TripGroupBuilder
- func (builder *TripGroupBuilder) TripReason(tripReason string) *TripGroupBuilder
- func (builder *TripGroupBuilder) Type(type_ string) *TripGroupBuilder
- type TripGroupSchedule
- type TripGroupScheduleBuilder
- func (builder *TripGroupScheduleBuilder) Build() *TripGroupSchedule
- func (builder *TripGroupScheduleBuilder) Departure(departure string) *TripGroupScheduleBuilder
- func (builder *TripGroupScheduleBuilder) DepartureId(departureId string) *TripGroupScheduleBuilder
- func (builder *TripGroupScheduleBuilder) Destination(destination string) *TripGroupScheduleBuilder
- func (builder *TripGroupScheduleBuilder) DestinationIds(destinationIds []string) *TripGroupScheduleBuilder
- func (builder *TripGroupScheduleBuilder) Remark(remark string) *TripGroupScheduleBuilder
- func (builder *TripGroupScheduleBuilder) Transportation(transportation string) *TripGroupScheduleBuilder
- func (builder *TripGroupScheduleBuilder) TripEndTime(tripEndTime string) *TripGroupScheduleBuilder
- func (builder *TripGroupScheduleBuilder) TripInterval(tripInterval string) *TripGroupScheduleBuilder
- func (builder *TripGroupScheduleBuilder) TripStartTime(tripStartTime string) *TripGroupScheduleBuilder
- func (builder *TripGroupScheduleBuilder) TripType(tripType string) *TripGroupScheduleBuilder
- type TrusteeshipInstanceCacheConfig
- type TrusteeshipInstanceCacheConfigBuilder
- func (builder *TrusteeshipInstanceCacheConfigBuilder) Build() *TrusteeshipInstanceCacheConfig
- func (builder *TrusteeshipInstanceCacheConfigBuilder) FormPolicy(formPolicy string) *TrusteeshipInstanceCacheConfigBuilder
- func (builder *TrusteeshipInstanceCacheConfigBuilder) FormVaryWithLocale(formVaryWithLocale bool) *TrusteeshipInstanceCacheConfigBuilder
- func (builder *TrusteeshipInstanceCacheConfigBuilder) FormVersion(formVersion string) *TrusteeshipInstanceCacheConfigBuilder
- type TrusteeshipUrls
- type TrusteeshipUrlsBuilder
- func (builder *TrusteeshipUrlsBuilder) ActionCallbackUrl(actionCallbackUrl string) *TrusteeshipUrlsBuilder
- func (builder *TrusteeshipUrlsBuilder) ActionDefinitionUrl(actionDefinitionUrl string) *TrusteeshipUrlsBuilder
- func (builder *TrusteeshipUrlsBuilder) ApprovalNodeUrl(approvalNodeUrl string) *TrusteeshipUrlsBuilder
- func (builder *TrusteeshipUrlsBuilder) Build() *TrusteeshipUrls
- func (builder *TrusteeshipUrlsBuilder) FormDetailUrl(formDetailUrl string) *TrusteeshipUrlsBuilder
- func (builder *TrusteeshipUrlsBuilder) PullBusinessDataUrl(pullBusinessDataUrl string) *TrusteeshipUrlsBuilder
- type UnsubscribeApprovalReq
- type UnsubscribeApprovalReqBuilder
- type UnsubscribeApprovalResp
- type UrlDetail
- type UrlDetailBuilder
- func (builder *UrlDetailBuilder) Build() *UrlDetail
- func (builder *UrlDetailBuilder) Code(code string) *UrlDetailBuilder
- func (builder *UrlDetailBuilder) Message(message string) *UrlDetailBuilder
- func (builder *UrlDetailBuilder) OriginUrl(originUrl string) *UrlDetailBuilder
- func (builder *UrlDetailBuilder) Url(url string) *UrlDetailBuilder
- type User
- type UserBuilder
- type UserId
- type UserIdBuilder
Constants ¶
const ( DepartmentIdTypeDepartmentId = "department_id" // 以自定义department_id来标识部门 DepartmentIdTypeOpenDepartmentId = "open_department_id" // 以open_department_id来标识部门 )
const ( UserIdTypeUserId = "user_id" // 以user_id来识别用户 UserIdTypeUnionId = "union_id" // 以union_id来识别用户 UserIdTypeOpenId = "open_id" // 以open_id来识别用户 )
const ( LocaleZhcn = "zh-CN" // 中文 LocaleEnus = "en-US" // 英文 LocaleJajp = "ja-JP" // 日文 )
const ( UserIdTypeGetApprovalUserId = "user_id" // 以user_id来识别用户 UserIdTypeGetApprovalUnionId = "union_id" // 以union_id来识别用户 UserIdTypeGetApprovalOpenId = "open_id" // 以open_id来识别用户 )
const ( DepartmentIdTypeCreateExternalApprovalDepartmentId = "department_id" // 以自定义department_id来标识部门 DepartmentIdTypeCreateExternalApprovalOpenDepartmentId = "open_department_id" // 以open_department_id来标识部门 )
const ( UserIdTypeCreateExternalApprovalUserId = "user_id" // 以user_id来识别用户 UserIdTypeCreateExternalApprovalUnionId = "union_id" // 以union_id来识别用户 UserIdTypeCreateExternalApprovalOpenId = "open_id" // 以open_id来识别用户 )
const ( UserIdTypeGetExternalApprovalUserId = "user_id" // 以user_id来识别用户 UserIdTypeGetExternalApprovalUnionId = "union_id" // 以union_id来识别用户 UserIdTypeGetExternalApprovalOpenId = "open_id" // 以open_id来识别用户 )
const ( StatusPending = "PENDING" // 审批中 StatusApproved = "APPROVED" // 审批流程结束,结果为同意 StatusRejected = "REJECTED" // 审批流程结束,结果为拒绝 StatusCanceled = "CANCELED" // 审批发起人撤回 StatusDeleted = "DELETED" // 审批被删除 StatusHidden = "HIDDEN" // 状态隐藏(不显示状态) StatusTerminated = "TERMINATED" // 审批终止 )
const ( DisplayMethodBrowser = "BROWSER" // 跳转系统默认浏览器打开 DisplayMethodSIdebar = "SIDEBAR" // 飞书中侧边抽屉打开 DisplayMethodNormal = "NORMAL" // 飞书内嵌页面打开 DisplayMethodTrusteeship = "TRUSTEESHIP" // 以托管打开 )
const ( UpdateModeReplace = "REPLACE" // 全量替换,默认值 UpdateModeUpdate = "UPDATE" // 增量更新 )
const ( ExternalTaskStatusPending = "PENDING" // 审批中 ExternalTaskStatusApproved = "APPROVED" // 审批流程结束,结果为同意 ExternalTaskStatusRejected = "REJECTED" // 审批流程结束,结果为拒绝 ExternalTaskStatusTransferred = "TRANSFERRED" // 任务转交 ExternalTaskStatusDone = "DONE" // 任务通过但审批人未操作;审批人看不到这个任务, 若想要看到, 可以通过抄送该人. )
const ( AddSignEnumAddSignPre = 1 // 前加签 AddSignEnumAddSignPost = 2 // 后加签 AddSignEnumAddSignParallel = 3 // 并加签 )
const ( ApprovalMethodEnumOrSign = 1 // 或签 ApprovalMethodEnumAddSign = 2 // 会签 )
const ( UserIdTypeCancelInstanceUserId = "user_id" // 以user_id来识别用户 UserIdTypeCancelInstanceUnionId = "union_id" // 以union_id来识别用户 UserIdTypeCancelInstanceOpenId = "open_id" // 以open_id来识别用户 )
const ( UserIdTypeCcInstanceUserId = "user_id" // 以user_id来识别用户 UserIdTypeCcInstanceUnionId = "union_id" // 以union_id来识别用户 UserIdTypeCcInstanceOpenId = "open_id" // 以open_id来识别用户 )
const ( TitleDisplayMethodDisplayAll = 0 // 如果都有title,展示approval 和instance的title,竖线分割。 TitleDisplayMethodDisplayInstanceTitle = 1 // 如果都有title,只展示instance的title )
const ( LocaleGetInstanceZhcn = "zh-CN" // 中文 LocaleGetInstanceEnus = "en-US" // 英文 LocaleGetInstanceJajp = "ja-JP" // 日文 )
const ( UserIdTypeGetInstanceUserId = "user_id" // 以user_id来识别用户 UserIdTypeGetInstanceOpenId = "open_id" // 以open_id来识别用户 UserIdTypeGetInstanceUnionId = "union_id" // 以union_id来识别用户 )
const ( UserIdTypePreviewInstanceOpenId = "open_id" // 以open_id来识别用户 UserIdTypePreviewInstanceUserId = "user_id" // 以user_id来识别用户 UserIdTypePreviewInstanceUnionId = "union_id" // 以union_id来识别用户 )
const ( InstanceStatusPending = "PENDING" // 审批中 InstanceStatusRecall = "RECALL" // 撤回 InstanceStatusReject = "REJECT" // 拒绝 InstanceStatusDeleted = "DELETED" // 已删除 InstanceStatusApproverd = "APPROVED" // 通过 InstanceStatusAll = "ALL" // 所有状态 )
const ( LocaleQueryInstanceZhCn = "zh-CN" // 中文 LocaleQueryInstanceEnUs = "en-US" // 英文 LocaleQueryInstanceJaJp = "ja-JP" // 日文 )
const ( UserIdTypeQueryInstanceUserId = "user_id" // 以user_id来识别用户 UserIdTypeQueryInstanceUnionId = "union_id" // 以union_id来识别用户 UserIdTypeQueryInstanceOpenId = "open_id" // 以open_id来识别用户 )
const ( ReadStatusREAD = "READ" // 已读 ReadStatusUNREAD = "UNREAD" // 未读 ReadStatusALL = "ALL" // 所有状态 )
const ( LocaleSearchCcInstanceZhCn = "zh-CN" // 中文 LocaleSearchCcInstanceEnUs = "en-US" // 英文 LocaleSearchCcInstanceJaJp = "ja-JP" // 日文 )
const ( UserIdTypeSearchCcInstanceUserId = "user_id" // 以user_id来识别用户 UserIdTypeSearchCcInstanceUnionId = "union_id" // 以union_id来识别用户 UserIdTypeSearchCcInstanceOpenId = "open_id" // 以open_id来识别用户 )
const ( UserIdTypeSpecifiedRollbackInstanceUserId = "user_id" // 以user_id来识别用户 UserIdTypeSpecifiedRollbackInstanceUnionId = "union_id" // 以union_id来识别用户 UserIdTypeSpecifiedRollbackInstanceOpenId = "open_id" // 以open_id来识别用户 )
const ( UserIdTypeCreateInstanceCommentOpenId = "open_id" // open_id(ou_开头) UserIdTypeCreateInstanceCommentUserId = "user_id" // user_id(字符串) UserIdTypeCreateInstanceCommentUnionId = "union_id" // union_id(on_开头) )
const ( UserIdTypeDeleteInstanceCommentOpenId = "open_id" // open_id(ou_开头) UserIdTypeDeleteInstanceCommentUserId = "user_id" // user_id(字符串) UserIdTypeDeleteInstanceCommentUnionId = "union_id" // union_id(on_开头) )
const ( UserIdTypeListInstanceCommentOpenId = "open_id" // open_id(ou_开头) UserIdTypeListInstanceCommentUserId = "user_id" // user_id(字符串) UserIdTypeListInstanceCommentUnionId = "union_id" // union_id(on_开头) )
const ( UserIdTypeRemoveInstanceCommentOpenId = "open_id" // open_id(ou_开头) UserIdTypeRemoveInstanceCommentUserId = "user_id" // user_id(字符串) UserIdTypeRemoveInstanceCommentUnionId = "union_id" // union_id(on_开头) )
const ( UserIdTypeApproveTaskUserId = "user_id" // 以user_id来识别用户 UserIdTypeApproveTaskUnionId = "union_id" // 以union_id来识别用户 UserIdTypeApproveTaskOpenId = "open_id" // 以open_id来识别用户 )
const ( TopicTodoApproval = "1" // 待办审批 TopicDoneApproval = "2" // 已办审批 TopicInitiatedApproval = "3" // 已发起审批 TopicUnreadNotice = "17" // 未读知会 TopicReadNotice = "18" // 已读知会 )
const ( UserIdTypeQueryTaskUserId = "user_id" // 以user_id来识别用户 UserIdTypeQueryTaskUnionId = "union_id" // 以union_id来识别用户 UserIdTypeQueryTaskOpenId = "open_id" // 以open_id来识别用户 )
const ( UserIdTypeRejectTaskUserId = "user_id" // 以user_id来识别用户 UserIdTypeRejectTaskUnionId = "union_id" // 以union_id来识别用户 UserIdTypeRejectTaskOpenId = "open_id" // 以open_id来识别用户 )
const ( UserIdTypeResubmitTaskUserId = "user_id" // 以user_id来识别用户 UserIdTypeResubmitTaskUnionId = "union_id" // 以union_id来识别用户 UserIdTypeResubmitTaskOpenId = "open_id" // 以open_id来识别用户 )
const ( TaskStatusPending = "PENDING" // 审批中 TaskStatusReject = "REJECTED" // 拒绝 TaskStatusApproverd = "APPROVED" // 通过 TaskStatusTRANSFERRED = "TRANSFERRED" // 转交 TaskStatusDONE = "DONE" // 已完成 TaskStatusRMREPEAT = "RM_REPEAT" // 去重 TaskStatusPROCESSED = "PROCESSED" // 已处理 TaskStatusALL = "ALL" // 所有状态 )
const ( LocaleSearchTaskZhCn = "zh-CN" // 中文 LocaleSearchTaskEnUs = "en-US" // 英文 LocaleSearchTaskJaJp = "ja-JP" // 日文 )
const ( OrderUpdateTimeDESC = 0 // 按update_time倒排 OrderUpdateTimeASC = 1 // 按update_time正排 OrderStartTimeDESC = 2 // 按start_time倒排 OrderStartTimeASC = 3 // 按start_time正排 )
const ( UserIdTypeSearchTaskUserId = "user_id" // 以user_id来识别用户 UserIdTypeSearchTaskUnionId = "union_id" // 以union_id来识别用户 UserIdTypeSearchTaskOpenId = "open_id" // 以open_id来识别用户 )
const ( UserIdTypeTransferTaskUserId = "user_id" // 以user_id来识别用户 UserIdTypeTransferTaskUnionId = "union_id" // 以union_id来识别用户 UserIdTypeTransferTaskOpenId = "open_id" // 以open_id来识别用户 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionConfig ¶
type ActionConfig struct { ActionType *string `json:"action_type,omitempty"` // 操作类型,每个任务都可以配置2个操作,会展示审批列表中,当用户操作时,回调请求会带上该字段,表示用户进行了同意操作还是拒绝操作 ActionName *string `json:"action_name,omitempty"` // 操作名称,i18n key 用于前台展示,如果 action_type 不是 APPROVAL和REJECT,则必须提供该字段,用于展示特定的操作名称 IsNeedReason *bool `json:"is_need_reason,omitempty"` // 是否需要意见, 如果为true,则用户操作时,会跳转到 意见填写页面 IsReasonRequired *bool `json:"is_reason_required,omitempty"` // 审批意见是否必填 IsNeedAttachment *bool `json:"is_need_attachment,omitempty"` // 意见是否支持上传附件 }
type ActionConfigBuilder ¶
type ActionConfigBuilder struct {
// contains filtered or unexported fields
}
func NewActionConfigBuilder ¶
func NewActionConfigBuilder() *ActionConfigBuilder
func (*ActionConfigBuilder) ActionName ¶
func (builder *ActionConfigBuilder) ActionName(actionName string) *ActionConfigBuilder
操作名称,i18n key 用于前台展示,如果 action_type 不是 APPROVAL和REJECT,则必须提供该字段,用于展示特定的操作名称
示例值:@i18n@5
func (*ActionConfigBuilder) ActionType ¶
func (builder *ActionConfigBuilder) ActionType(actionType string) *ActionConfigBuilder
操作类型,每个任务都可以配置2个操作,会展示审批列表中,当用户操作时,回调请求会带上该字段,表示用户进行了同意操作还是拒绝操作
示例值:APPROVE
func (*ActionConfigBuilder) Build ¶
func (builder *ActionConfigBuilder) Build() *ActionConfig
func (*ActionConfigBuilder) IsNeedAttachment ¶
func (builder *ActionConfigBuilder) IsNeedAttachment(isNeedAttachment bool) *ActionConfigBuilder
意见是否支持上传附件
示例值:false
func (*ActionConfigBuilder) IsNeedReason ¶
func (builder *ActionConfigBuilder) IsNeedReason(isNeedReason bool) *ActionConfigBuilder
是否需要意见, 如果为true,则用户操作时,会跳转到 意见填写页面
示例值:false
func (*ActionConfigBuilder) IsReasonRequired ¶
func (builder *ActionConfigBuilder) IsReasonRequired(isReasonRequired bool) *ActionConfigBuilder
审批意见是否必填
示例值:false
type AddSignInstancePathReqBodyBuilder ¶
type AddSignInstancePathReqBodyBuilder struct {
// contains filtered or unexported fields
}
func NewAddSignInstancePathReqBodyBuilder ¶
func NewAddSignInstancePathReqBodyBuilder() *AddSignInstancePathReqBodyBuilder
func (*AddSignInstancePathReqBodyBuilder) AddSignType ¶
func (builder *AddSignInstancePathReqBodyBuilder) AddSignType(addSignType int) *AddSignInstancePathReqBodyBuilder
1/2/3分别代表前加签/后加签/并加签
示例值:1
func (*AddSignInstancePathReqBodyBuilder) AddSignUserIds ¶
func (builder *AddSignInstancePathReqBodyBuilder) AddSignUserIds(addSignUserIds []string) *AddSignInstancePathReqBodyBuilder
被加签人id
示例值:
func (*AddSignInstancePathReqBodyBuilder) ApprovalCode ¶
func (builder *AddSignInstancePathReqBodyBuilder) ApprovalCode(approvalCode string) *AddSignInstancePathReqBodyBuilder
审批定义code
示例值:3B68E280-CF10-4198-B4CD-2E3BB97981D8
func (*AddSignInstancePathReqBodyBuilder) ApprovalMethod ¶
func (builder *AddSignInstancePathReqBodyBuilder) ApprovalMethod(approvalMethod int) *AddSignInstancePathReqBodyBuilder
仅在前加签、后加签时需要填写,1/2 分别代表或签/会签
示例值:1
func (*AddSignInstancePathReqBodyBuilder) Build ¶
func (builder *AddSignInstancePathReqBodyBuilder) Build() (*AddSignInstanceReqBody, error)
func (*AddSignInstancePathReqBodyBuilder) Comment ¶
func (builder *AddSignInstancePathReqBodyBuilder) Comment(comment string) *AddSignInstancePathReqBodyBuilder
意见
示例值:addSignComment
func (*AddSignInstancePathReqBodyBuilder) InstanceCode ¶
func (builder *AddSignInstancePathReqBodyBuilder) InstanceCode(instanceCode string) *AddSignInstancePathReqBodyBuilder
审批实例code
示例值:289330DE-FBF1-4A47-91F9-9EFCCF11BCAE
func (*AddSignInstancePathReqBodyBuilder) TaskId ¶
func (builder *AddSignInstancePathReqBodyBuilder) TaskId(taskId string) *AddSignInstancePathReqBodyBuilder
任务id
示例值:6955096766400167956
func (*AddSignInstancePathReqBodyBuilder) UserId ¶
func (builder *AddSignInstancePathReqBodyBuilder) UserId(userId string) *AddSignInstancePathReqBodyBuilder
操作用户id
示例值:b16g66e3
type AddSignInstanceReq ¶
type AddSignInstanceReq struct { Body *AddSignInstanceReqBody `body:""` // contains filtered or unexported fields }
type AddSignInstanceReqBody ¶
type AddSignInstanceReqBody struct { UserId *string `json:"user_id,omitempty"` // 操作用户id ApprovalCode *string `json:"approval_code,omitempty"` // 审批定义code InstanceCode *string `json:"instance_code,omitempty"` // 审批实例code TaskId *string `json:"task_id,omitempty"` // 任务id Comment *string `json:"comment,omitempty"` // 意见 AddSignUserIds []string `json:"add_sign_user_ids,omitempty"` // 被加签人id AddSignType *int `json:"add_sign_type,omitempty"` // 1/2/3分别代表前加签/后加签/并加签 ApprovalMethod *int `json:"approval_method,omitempty"` // 仅在前加签、后加签时需要填写,1/2 分别代表或签/会签 }
type AddSignInstanceReqBodyBuilder ¶
type AddSignInstanceReqBodyBuilder struct {
// contains filtered or unexported fields
}
func NewAddSignInstanceReqBodyBuilder ¶
func NewAddSignInstanceReqBodyBuilder() *AddSignInstanceReqBodyBuilder
func (*AddSignInstanceReqBodyBuilder) AddSignType ¶
func (builder *AddSignInstanceReqBodyBuilder) AddSignType(addSignType int) *AddSignInstanceReqBodyBuilder
1/2/3分别代表前加签/后加签/并加签
示例值:1
func (*AddSignInstanceReqBodyBuilder) AddSignUserIds ¶
func (builder *AddSignInstanceReqBodyBuilder) AddSignUserIds(addSignUserIds []string) *AddSignInstanceReqBodyBuilder
被加签人id
示例值:
func (*AddSignInstanceReqBodyBuilder) ApprovalCode ¶
func (builder *AddSignInstanceReqBodyBuilder) ApprovalCode(approvalCode string) *AddSignInstanceReqBodyBuilder
审批定义code
示例值:3B68E280-CF10-4198-B4CD-2E3BB97981D8
func (*AddSignInstanceReqBodyBuilder) ApprovalMethod ¶
func (builder *AddSignInstanceReqBodyBuilder) ApprovalMethod(approvalMethod int) *AddSignInstanceReqBodyBuilder
仅在前加签、后加签时需要填写,1/2 分别代表或签/会签
示例值:1
func (*AddSignInstanceReqBodyBuilder) Build ¶
func (builder *AddSignInstanceReqBodyBuilder) Build() *AddSignInstanceReqBody
func (*AddSignInstanceReqBodyBuilder) Comment ¶
func (builder *AddSignInstanceReqBodyBuilder) Comment(comment string) *AddSignInstanceReqBodyBuilder
意见
示例值:addSignComment
func (*AddSignInstanceReqBodyBuilder) InstanceCode ¶
func (builder *AddSignInstanceReqBodyBuilder) InstanceCode(instanceCode string) *AddSignInstanceReqBodyBuilder
审批实例code
示例值:289330DE-FBF1-4A47-91F9-9EFCCF11BCAE
func (*AddSignInstanceReqBodyBuilder) TaskId ¶
func (builder *AddSignInstanceReqBodyBuilder) TaskId(taskId string) *AddSignInstanceReqBodyBuilder
任务id
示例值:6955096766400167956
func (*AddSignInstanceReqBodyBuilder) UserId ¶
func (builder *AddSignInstanceReqBodyBuilder) UserId(userId string) *AddSignInstanceReqBodyBuilder
操作用户id
示例值:b16g66e3
type AddSignInstanceReqBuilder ¶
type AddSignInstanceReqBuilder struct {
// contains filtered or unexported fields
}
func NewAddSignInstanceReqBuilder ¶
func NewAddSignInstanceReqBuilder() *AddSignInstanceReqBuilder
func (*AddSignInstanceReqBuilder) Body ¶
func (builder *AddSignInstanceReqBuilder) Body(body *AddSignInstanceReqBody) *AddSignInstanceReqBuilder
func (*AddSignInstanceReqBuilder) Build ¶
func (builder *AddSignInstanceReqBuilder) Build() *AddSignInstanceReq
type AddSignInstanceResp ¶
type AddSignInstanceResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError }
func (*AddSignInstanceResp) Success ¶
func (resp *AddSignInstanceResp) Success() bool
type ApprovalApproverCcer ¶
type ApprovalApproverCcer struct { Type *string `json:"type,omitempty"` // 审批/抄送人类型, ; 1. 当 type 为 Supervisor、SupervisorTopDown、DepartmentManager 、DepartmentManagerTopDown 这 4 种时,需要在 level 中填写对应的级数,例如:由下往上三级主管审批,level = 3;;; 2. 当 type 为 Personal 时,需要填写对应的user_id ,用于指定用户;;; 3. 当 approver 为 Free 发起人自选时,不需要指定 user_id 和level;;; 4. ccer不支持 Free 发起人自选 UserId *string `json:"user_id,omitempty"` // 用户id,根据user_id_type填写 Level *string `json:"level,omitempty"` // 审批级数,当 type 为 Supervisor、SupervisorTopDown、DepartmentManager 、DepartmentManagerTopDown 这 4 种时,需要在 level 中填写对应的级数,例如:由下往上三级主管审批,level = 3 }
type ApprovalApproverCcerBuilder ¶
type ApprovalApproverCcerBuilder struct {
// contains filtered or unexported fields
}
func NewApprovalApproverCcerBuilder ¶
func NewApprovalApproverCcerBuilder() *ApprovalApproverCcerBuilder
func (*ApprovalApproverCcerBuilder) Build ¶
func (builder *ApprovalApproverCcerBuilder) Build() *ApprovalApproverCcer
func (*ApprovalApproverCcerBuilder) Level ¶
func (builder *ApprovalApproverCcerBuilder) Level(level string) *ApprovalApproverCcerBuilder
审批级数,当 type 为 Supervisor、SupervisorTopDown、DepartmentManager 、DepartmentManagerTopDown 这 4 种时,需要在 level 中填写对应的级数,例如:由下往上三级主管审批,level = 3
示例值:3
func (*ApprovalApproverCcerBuilder) Type ¶
func (builder *ApprovalApproverCcerBuilder) Type(type_ string) *ApprovalApproverCcerBuilder
审批/抄送人类型, ; 1. 当 type 为 Supervisor、SupervisorTopDown、DepartmentManager 、DepartmentManagerTopDown 这 4 种时,需要在 level 中填写对应的级数,例如:由下往上三级主管审批,level = 3;;; 2. 当 type 为 Personal 时,需要填写对应的user_id ,用于指定用户;;; 3. 当 approver 为 Free 发起人自选时,不需要指定 user_id 和level;;; 4. ccer不支持 Free 发起人自选
示例值:Supervisor
func (*ApprovalApproverCcerBuilder) UserId ¶
func (builder *ApprovalApproverCcerBuilder) UserId(userId string) *ApprovalApproverCcerBuilder
用户id,根据user_id_type填写
示例值:f7cb567e
type ApprovalBuilder ¶
type ApprovalBuilder struct {
// contains filtered or unexported fields
}
func NewApprovalBuilder ¶
func NewApprovalBuilder() *ApprovalBuilder
func (*ApprovalBuilder) ApprovalCode ¶
func (builder *ApprovalBuilder) ApprovalCode(approvalCode string) *ApprovalBuilder
审批定义code
示例值:
func (*ApprovalBuilder) ApprovalName ¶
func (builder *ApprovalBuilder) ApprovalName(approvalName string) *ApprovalBuilder
审批定义名称
示例值:
func (*ApprovalBuilder) Build ¶
func (builder *ApprovalBuilder) Build() *Approval
func (*ApprovalBuilder) Status ¶ added in v3.0.3
func (builder *ApprovalBuilder) Status(status string) *ApprovalBuilder
审批定义状态
示例值:ACTIVE
type ApprovalConfig ¶
type ApprovalConfig struct { CanUpdateViewer *bool `json:"can_update_viewer,omitempty"` // 允许用户修改可见范围 CanUpdateForm *bool `json:"can_update_form,omitempty"` // 允许用户更新表单 CanUpdateProcess *bool `json:"can_update_process,omitempty"` // 允许用户更新流程定义 CanUpdateRevert *bool `json:"can_update_revert,omitempty"` // 允许用户更新撤回设置 HelpUrl *string `json:"help_url,omitempty"` // 帮助文档链接 }
type ApprovalConfigBuilder ¶
type ApprovalConfigBuilder struct {
// contains filtered or unexported fields
}
func NewApprovalConfigBuilder ¶
func NewApprovalConfigBuilder() *ApprovalConfigBuilder
func (*ApprovalConfigBuilder) Build ¶
func (builder *ApprovalConfigBuilder) Build() *ApprovalConfig
func (*ApprovalConfigBuilder) CanUpdateForm ¶
func (builder *ApprovalConfigBuilder) CanUpdateForm(canUpdateForm bool) *ApprovalConfigBuilder
允许用户更新表单
示例值:false
func (*ApprovalConfigBuilder) CanUpdateProcess ¶
func (builder *ApprovalConfigBuilder) CanUpdateProcess(canUpdateProcess bool) *ApprovalConfigBuilder
允许用户更新流程定义
示例值:false
func (*ApprovalConfigBuilder) CanUpdateRevert ¶
func (builder *ApprovalConfigBuilder) CanUpdateRevert(canUpdateRevert bool) *ApprovalConfigBuilder
允许用户更新撤回设置
示例值:false
func (*ApprovalConfigBuilder) CanUpdateViewer ¶
func (builder *ApprovalConfigBuilder) CanUpdateViewer(canUpdateViewer bool) *ApprovalConfigBuilder
允许用户修改可见范围
示例值:false
func (*ApprovalConfigBuilder) HelpUrl ¶
func (builder *ApprovalConfigBuilder) HelpUrl(helpUrl string) *ApprovalConfigBuilder
帮助文档链接
type ApprovalCreate ¶
type ApprovalCreate struct { ApprovalName *string `json:"approval_name,omitempty"` // 审批名称的国际化文案 Key,以 @i18n@ 开头,长度不得少于 9 个字符 ApprovalCode *string `json:"approval_code,omitempty"` // 传空表示新建 Description *string `json:"description,omitempty"` // 审批描述的国际化文案 Key,以 @i18n@ 开头,长度不得少于 9 个字符 Viewers []*ApprovalCreateViewers `json:"viewers,omitempty"` // viewers 字段指定了哪些人能从审批应用的前台发起该审批。;; 1. 当 viewer_type 为 USER,需要填写viewer_user_id;;; 2. 当 viewer_type 为DEPARTMENT,需要填写viewer_department_id;;; 3. 当 viewer_type 为TENANT或NONE时,viewer_user_id和viewer_department_id无需填写 Form *ApprovalForm `json:"form,omitempty"` // 审批定义表单 NodeList []*ApprovalNode `json:"node_list,omitempty"` // 审批定义节点,需要将开始节点作为 list 第一个元素,结束节点作为最后一个元素 Settings *ApprovalSetting `json:"settings,omitempty"` // 审批定义其他设置 Config *ApprovalConfig `json:"config,omitempty"` // 审批定义配置项,用于配置对应审批定义是否可以由用户在审批后台进行修改 Icon *int `json:"icon,omitempty"` // 审批图标枚举,详见下方说明,默认为 0 I18nResources []*I18nResource `json:"i18n_resources,omitempty"` // 国际化文案 ProcessManagerIds []string `json:"process_manager_ids,omitempty"` // 根据user_id_type填写流程管理员的用户id }
type ApprovalCreateBuilder ¶
type ApprovalCreateBuilder struct {
// contains filtered or unexported fields
}
func NewApprovalCreateBuilder ¶
func NewApprovalCreateBuilder() *ApprovalCreateBuilder
func (*ApprovalCreateBuilder) ApprovalCode ¶
func (builder *ApprovalCreateBuilder) ApprovalCode(approvalCode string) *ApprovalCreateBuilder
传空表示新建
示例值:7C468A54-8745-2245-9675-08B7C63E7A85
func (*ApprovalCreateBuilder) ApprovalName ¶
func (builder *ApprovalCreateBuilder) ApprovalName(approvalName string) *ApprovalCreateBuilder
审批名称的国际化文案 Key,以 @i18n@ 开头,长度不得少于 9 个字符
示例值:@i18n@approval_name
func (*ApprovalCreateBuilder) Build ¶
func (builder *ApprovalCreateBuilder) Build() *ApprovalCreate
func (*ApprovalCreateBuilder) Config ¶
func (builder *ApprovalCreateBuilder) Config(config *ApprovalConfig) *ApprovalCreateBuilder
审批定义配置项,用于配置对应审批定义是否可以由用户在审批后台进行修改
示例值:
func (*ApprovalCreateBuilder) Description ¶
func (builder *ApprovalCreateBuilder) Description(description string) *ApprovalCreateBuilder
审批描述的国际化文案 Key,以 @i18n@ 开头,长度不得少于 9 个字符
示例值:@i18n@description
func (*ApprovalCreateBuilder) Form ¶
func (builder *ApprovalCreateBuilder) Form(form *ApprovalForm) *ApprovalCreateBuilder
审批定义表单
示例值:
func (*ApprovalCreateBuilder) I18nResources ¶
func (builder *ApprovalCreateBuilder) I18nResources(i18nResources []*I18nResource) *ApprovalCreateBuilder
国际化文案
示例值:
func (*ApprovalCreateBuilder) Icon ¶
func (builder *ApprovalCreateBuilder) Icon(icon int) *ApprovalCreateBuilder
审批图标枚举,详见下方说明,默认为 0
示例值:0
func (*ApprovalCreateBuilder) NodeList ¶
func (builder *ApprovalCreateBuilder) NodeList(nodeList []*ApprovalNode) *ApprovalCreateBuilder
审批定义节点,需要将开始节点作为 list 第一个元素,结束节点作为最后一个元素
示例值:
func (*ApprovalCreateBuilder) ProcessManagerIds ¶ added in v3.0.1
func (builder *ApprovalCreateBuilder) ProcessManagerIds(processManagerIds []string) *ApprovalCreateBuilder
根据user_id_type填写流程管理员的用户id
示例值:["1c5ea995"]
func (*ApprovalCreateBuilder) Settings ¶
func (builder *ApprovalCreateBuilder) Settings(settings *ApprovalSetting) *ApprovalCreateBuilder
审批定义其他设置
示例值:
func (*ApprovalCreateBuilder) Viewers ¶
func (builder *ApprovalCreateBuilder) Viewers(viewers []*ApprovalCreateViewers) *ApprovalCreateBuilder
viewers 字段指定了哪些人能从审批应用的前台发起该审批。;; 1. 当 viewer_type 为 USER,需要填写viewer_user_id;;; 2. 当 viewer_type 为DEPARTMENT,需要填写viewer_department_id;;; 3. 当 viewer_type 为TENANT或NONE时,viewer_user_id和viewer_department_id无需填写
示例值:
type ApprovalCreateExternal ¶
type ApprovalCreateExternal struct { BizName *string `json:"biz_name,omitempty"` // 列表中用于提示审批来自哪里,i18n key, 注意不需要“来自”前缀,审批中心会拼上前缀 BizType *string `json:"biz_type,omitempty"` // 审批定义业务类别 CreateLinkMobile *string `json:"create_link_mobile,omitempty"` // 移动端发起链接,如果设置了该链接,则会在移动端审批发起页展示该审批,用户点击后会跳转到该链接进行发起; 如果不填,则在mobile端不显示该审批 CreateLinkPc *string `json:"create_link_pc,omitempty"` // PC端发起链接,如果设置了该链接,则会在PC端审批发起页展示该审批,用户点击后会跳转到该链接进行发起; 如果不填,则在PC端不显示该审批; SupportPc *bool `json:"support_pc,omitempty"` // 审批实例、审批任务、审批抄送是否要在PC端展示,如果为 true,则PC端列表会展示该定义下的实例信息,否则,不展示 SupportMobile *bool `json:"support_mobile,omitempty"` // 审批实例、审批任务、审批抄送是否要在移动端展示,如果为 true,则移动端列表会展示该定义下的实例信息,否则,不展示; support_pc和support_mobile不可都为false,否则不展示 SupportBatchRead *bool `json:"support_batch_read,omitempty"` // 是否支持批量已读 EnableMarkReaded *bool `json:"enable_mark_readed,omitempty"` // 是否支持标注可读(该字段无效) EnableQuickOperate *bool `json:"enable_quick_operate,omitempty"` // 是否支持快速操作 ActionCallbackUrl *string `json:"action_callback_url,omitempty"` // 三方系统的操作回调 url,【待审批】列表的任务审批人点同意或拒绝操作后,审批中心调用该地址通知三方系统,回调地址相关信息可参见:[三方审批快捷审批回调](https://open.feishu.cn/document/ukTMukTMukTM/ukjNyYjL5YjM24SO2IjN/quick-approval-callback) ActionCallbackToken *string `json:"action_callback_token,omitempty"` // 回调时带的 token, 用于业务系统验证请求来自审批,具体参考 [开放平台文档](https://open.feishu.cn/document/ukTMukTMukTM/uUTNz4SN1MjL1UzM) ActionCallbackKey *string `json:"action_callback_key,omitempty"` // 请求参数加密密钥,如果配置了该参数,则会对请求参数进行加密,业务需要对请求进行解密,加解密算法参考 [关联外部选项说明](https://open.feishu.cn/document/ukTMukTMukTM/uADM4QjLwADO04CMwgDN) AllowBatchOperate *bool `json:"allow_batch_operate,omitempty"` // 是否支持批量审批 ExcludeEfficiencyStatistics *bool `json:"exclude_efficiency_statistics,omitempty"` // 审批流程数据是否不纳入效率统计 }
type ApprovalCreateExternalBuilder ¶
type ApprovalCreateExternalBuilder struct {
// contains filtered or unexported fields
}
func NewApprovalCreateExternalBuilder ¶
func NewApprovalCreateExternalBuilder() *ApprovalCreateExternalBuilder
func (*ApprovalCreateExternalBuilder) ActionCallbackKey ¶
func (builder *ApprovalCreateExternalBuilder) ActionCallbackKey(actionCallbackKey string) *ApprovalCreateExternalBuilder
请求参数加密密钥,如果配置了该参数,则会对请求参数进行加密,业务需要对请求进行解密,加解密算法参考 [关联外部选项说明](https://open.feishu.cn/document/ukTMukTMukTM/uADM4QjLwADO04CMwgDN)
示例值:gfdqedvsadfgfsd
func (*ApprovalCreateExternalBuilder) ActionCallbackToken ¶
func (builder *ApprovalCreateExternalBuilder) ActionCallbackToken(actionCallbackToken string) *ApprovalCreateExternalBuilder
回调时带的 token, 用于业务系统验证请求来自审批,具体参考 [开放平台文档](https://open.feishu.cn/document/ukTMukTMukTM/uUTNz4SN1MjL1UzM)
示例值:sdjkljkx9lsadf110
func (*ApprovalCreateExternalBuilder) ActionCallbackUrl ¶
func (builder *ApprovalCreateExternalBuilder) ActionCallbackUrl(actionCallbackUrl string) *ApprovalCreateExternalBuilder
三方系统的操作回调 url,【待审批】列表的任务审批人点同意或拒绝操作后,审批中心调用该地址通知三方系统,回调地址相关信息可参见:[三方审批快捷审批回调](https://open.feishu.cn/document/ukTMukTMukTM/ukjNyYjL5YjM24SO2IjN/quick-approval-callback)
func (*ApprovalCreateExternalBuilder) AllowBatchOperate ¶ added in v3.0.1
func (builder *ApprovalCreateExternalBuilder) AllowBatchOperate(allowBatchOperate bool) *ApprovalCreateExternalBuilder
是否支持批量审批
示例值:true
func (*ApprovalCreateExternalBuilder) BizName ¶
func (builder *ApprovalCreateExternalBuilder) BizName(bizName string) *ApprovalCreateExternalBuilder
列表中用于提示审批来自哪里,i18n key, 注意不需要“来自”前缀,审批中心会拼上前缀
示例值:@i18n@3
func (*ApprovalCreateExternalBuilder) BizType ¶
func (builder *ApprovalCreateExternalBuilder) BizType(bizType string) *ApprovalCreateExternalBuilder
审批定义业务类别
示例值:permission
func (*ApprovalCreateExternalBuilder) Build ¶
func (builder *ApprovalCreateExternalBuilder) Build() *ApprovalCreateExternal
func (*ApprovalCreateExternalBuilder) CreateLinkMobile ¶
func (builder *ApprovalCreateExternalBuilder) CreateLinkMobile(createLinkMobile string) *ApprovalCreateExternalBuilder
移动端发起链接,如果设置了该链接,则会在移动端审批发起页展示该审批,用户点击后会跳转到该链接进行发起; 如果不填,则在mobile端不显示该审批
func (*ApprovalCreateExternalBuilder) CreateLinkPc ¶
func (builder *ApprovalCreateExternalBuilder) CreateLinkPc(createLinkPc string) *ApprovalCreateExternalBuilder
PC端发起链接,如果设置了该链接,则会在PC端审批发起页展示该审批,用户点击后会跳转到该链接进行发起; 如果不填,则在PC端不显示该审批;
func (*ApprovalCreateExternalBuilder) EnableMarkReaded ¶
func (builder *ApprovalCreateExternalBuilder) EnableMarkReaded(enableMarkReaded bool) *ApprovalCreateExternalBuilder
是否支持标注可读(该字段无效)
示例值:true
func (*ApprovalCreateExternalBuilder) EnableQuickOperate ¶
func (builder *ApprovalCreateExternalBuilder) EnableQuickOperate(enableQuickOperate bool) *ApprovalCreateExternalBuilder
是否支持快速操作
示例值:true
func (*ApprovalCreateExternalBuilder) ExcludeEfficiencyStatistics ¶ added in v3.0.1
func (builder *ApprovalCreateExternalBuilder) ExcludeEfficiencyStatistics(excludeEfficiencyStatistics bool) *ApprovalCreateExternalBuilder
审批流程数据是否不纳入效率统计
示例值:true
func (*ApprovalCreateExternalBuilder) SupportBatchRead ¶
func (builder *ApprovalCreateExternalBuilder) SupportBatchRead(supportBatchRead bool) *ApprovalCreateExternalBuilder
是否支持批量已读
示例值:true
func (*ApprovalCreateExternalBuilder) SupportMobile ¶
func (builder *ApprovalCreateExternalBuilder) SupportMobile(supportMobile bool) *ApprovalCreateExternalBuilder
审批实例、审批任务、审批抄送是否要在移动端展示,如果为 true,则移动端列表会展示该定义下的实例信息,否则,不展示; support_pc和support_mobile不可都为false,否则不展示
示例值:true
func (*ApprovalCreateExternalBuilder) SupportPc ¶
func (builder *ApprovalCreateExternalBuilder) SupportPc(supportPc bool) *ApprovalCreateExternalBuilder
审批实例、审批任务、审批抄送是否要在PC端展示,如果为 true,则PC端列表会展示该定义下的实例信息,否则,不展示
示例值:true
type ApprovalCreateViewers ¶
type ApprovalCreateViewers struct { ViewerType *string `json:"viewer_type,omitempty"` // 可见人类型 ViewerUserId *string `json:"viewer_user_id,omitempty"` // 当 viewer_type 是 USER,根据user_id_type填写用户id ViewerDepartmentId *string `json:"viewer_department_id,omitempty"` // 当 viewer_type 为DEPARTMENT,根据department_id_type填写部门id }
type ApprovalCreateViewersBuilder ¶
type ApprovalCreateViewersBuilder struct {
// contains filtered or unexported fields
}
func NewApprovalCreateViewersBuilder ¶
func NewApprovalCreateViewersBuilder() *ApprovalCreateViewersBuilder
func (*ApprovalCreateViewersBuilder) Build ¶
func (builder *ApprovalCreateViewersBuilder) Build() *ApprovalCreateViewers
func (*ApprovalCreateViewersBuilder) ViewerDepartmentId ¶
func (builder *ApprovalCreateViewersBuilder) ViewerDepartmentId(viewerDepartmentId string) *ApprovalCreateViewersBuilder
当 viewer_type 为DEPARTMENT,根据department_id_type填写部门id
示例值:od-ac9d697abfa990b715dcc33d58a62a9d
func (*ApprovalCreateViewersBuilder) ViewerType ¶
func (builder *ApprovalCreateViewersBuilder) ViewerType(viewerType string) *ApprovalCreateViewersBuilder
可见人类型
示例值:USER
func (*ApprovalCreateViewersBuilder) ViewerUserId ¶
func (builder *ApprovalCreateViewersBuilder) ViewerUserId(viewerUserId string) *ApprovalCreateViewersBuilder
当 viewer_type 是 USER,根据user_id_type填写用户id
示例值:19a294c2
type ApprovalEvent ¶
type ApprovalEvent struct { ApprovalId *string `json:"approval_id,omitempty"` // ApprovalCode *string `json:"approval_code,omitempty"` // VersionId *string `json:"version_id,omitempty"` // WidgetGroupType *int `json:"widget_group_type,omitempty"` // FormDefinitionId *string `json:"form_definition_id,omitempty"` // ProcessObj *string `json:"process_obj,omitempty"` // Timestamp *string `json:"timestamp,omitempty"` // Extra *string `json:"extra,omitempty"` // }
type ApprovalEventBuilder ¶
type ApprovalEventBuilder struct {
// contains filtered or unexported fields
}
func NewApprovalEventBuilder ¶
func NewApprovalEventBuilder() *ApprovalEventBuilder
func (*ApprovalEventBuilder) ApprovalCode ¶
func (builder *ApprovalEventBuilder) ApprovalCode(approvalCode string) *ApprovalEventBuilder
示例值:
func (*ApprovalEventBuilder) ApprovalId ¶
func (builder *ApprovalEventBuilder) ApprovalId(approvalId string) *ApprovalEventBuilder
示例值:
func (*ApprovalEventBuilder) Build ¶
func (builder *ApprovalEventBuilder) Build() *ApprovalEvent
func (*ApprovalEventBuilder) Extra ¶
func (builder *ApprovalEventBuilder) Extra(extra string) *ApprovalEventBuilder
示例值:
func (*ApprovalEventBuilder) FormDefinitionId ¶
func (builder *ApprovalEventBuilder) FormDefinitionId(formDefinitionId string) *ApprovalEventBuilder
示例值:
func (*ApprovalEventBuilder) ProcessObj ¶
func (builder *ApprovalEventBuilder) ProcessObj(processObj string) *ApprovalEventBuilder
示例值:
func (*ApprovalEventBuilder) Timestamp ¶
func (builder *ApprovalEventBuilder) Timestamp(timestamp string) *ApprovalEventBuilder
示例值:
func (*ApprovalEventBuilder) VersionId ¶
func (builder *ApprovalEventBuilder) VersionId(versionId string) *ApprovalEventBuilder
示例值:
func (*ApprovalEventBuilder) WidgetGroupType ¶
func (builder *ApprovalEventBuilder) WidgetGroupType(widgetGroupType int) *ApprovalEventBuilder
示例值:
type ApprovalForm ¶
type ApprovalFormBuilder ¶
type ApprovalFormBuilder struct {
// contains filtered or unexported fields
}
func NewApprovalFormBuilder ¶
func NewApprovalFormBuilder() *ApprovalFormBuilder
func (*ApprovalFormBuilder) Build ¶
func (builder *ApprovalFormBuilder) Build() *ApprovalForm
func (*ApprovalFormBuilder) FormContent ¶
func (builder *ApprovalFormBuilder) FormContent(formContent string) *ApprovalFormBuilder
审批定义表单,json 数组,见下方form_content字段说明
示例值:[{\"id\":\"user_name\", \"type\": \"input\", \"required\":true, \"name\":\"@i18n@widget1\"}]
func (*ApprovalFormBuilder) WidgetRelation ¶ added in v3.0.24
func (builder *ApprovalFormBuilder) WidgetRelation(widgetRelation string) *ApprovalFormBuilder
控件之间数据条件约束表达式
示例值:{\"groups\":[{\"id\":\"1\",\"parent_widgets_ids\":[\"widget1\",\"widget4\"],\"children_widget_ids\":[\"widget2.widget3\"],\"conditions\":[{\"parents_expr\":{\"type\":\"Multi\",\"expr\":{\"type\":\"and\",\"exprs\":[{\"type\":\"SingleWidget\",\"expr\":{\"type\":\"in\",\"widget_id\":\"widget1\",\"expect\":{\"type\":\"local\",\"value\":[{\"value\":\"value_0\"},{\"value\":\"value_1\"}]}}},{\"type\":\"Const\",\"expr\":{\"value\":true,\"widget_ids\":[\"widget4\"]}}]}},\"children_rule\":{\"expr\":{\"type\":\"SingleWidget\",\"expr\":{\"type\":\"in\",\"widget_id\":\"widget2.widget3\",\"expect\":{\"type\":\"local\",\"value\":[{\"value\":\"value_3\"},{\"value\":\"value_5\"}]}}},\"actions\":[{\"type\":\"SetOptions\",\"widget_id\":\"widget2.widget3\",\"value\":{\"type\":\"local\",\"value\":[{\"value\":\"value_3\"},{\"value\":\"value_4\"}]}}]}}]}]}
type ApprovalNode ¶
type ApprovalNode struct { Id *string `json:"id,omitempty"` // 节点 ID,开始节点的 ID 为 START,结束节点的 ID 为 END,开始和结束节点不需要指定 name、node_type 以及 approver Name *string `json:"name,omitempty"` // 节点名称的国际化文案 Key,以 @i18n@ 开头,长度不得少于 9 个字符 NodeType *string `json:"node_type,omitempty"` // 审批类型枚举,当 node_type 为依次审批时,审批人必须为『发起人自选』 Approver []*ApprovalApproverCcer `json:"approver,omitempty"` // 审批人列表 Ccer []*ApprovalApproverCcer `json:"ccer,omitempty"` // 抄送人列表 PrivilegeField *FieldGroup `json:"privilege_field,omitempty"` // 表单项的控件权限 ApproverChosenMulti *bool `json:"approver_chosen_multi,omitempty"` // 自选审批人是否允许多选 ApproverChosenRange []*ApproverRange `json:"approver_chosen_range,omitempty"` // 自选审批人选择范围 StarterAssignee *string `json:"starter_assignee,omitempty"` // 审批人为提交人时的操作 }
type ApprovalNodeBuilder ¶
type ApprovalNodeBuilder struct {
// contains filtered or unexported fields
}
func NewApprovalNodeBuilder ¶
func NewApprovalNodeBuilder() *ApprovalNodeBuilder
func (*ApprovalNodeBuilder) Approver ¶
func (builder *ApprovalNodeBuilder) Approver(approver []*ApprovalApproverCcer) *ApprovalNodeBuilder
审批人列表
示例值:
func (*ApprovalNodeBuilder) ApproverChosenMulti ¶ added in v3.0.18
func (builder *ApprovalNodeBuilder) ApproverChosenMulti(approverChosenMulti bool) *ApprovalNodeBuilder
自选审批人是否允许多选
示例值:false
func (*ApprovalNodeBuilder) ApproverChosenRange ¶ added in v3.0.18
func (builder *ApprovalNodeBuilder) ApproverChosenRange(approverChosenRange []*ApproverRange) *ApprovalNodeBuilder
自选审批人选择范围
示例值:
func (*ApprovalNodeBuilder) Build ¶
func (builder *ApprovalNodeBuilder) Build() *ApprovalNode
func (*ApprovalNodeBuilder) Ccer ¶
func (builder *ApprovalNodeBuilder) Ccer(ccer []*ApprovalApproverCcer) *ApprovalNodeBuilder
抄送人列表
示例值:
func (*ApprovalNodeBuilder) Id ¶
func (builder *ApprovalNodeBuilder) Id(id string) *ApprovalNodeBuilder
节点 ID,开始节点的 ID 为 START,结束节点的 ID 为 END,开始和结束节点不需要指定 name、node_type 以及 approver
示例值:START
func (*ApprovalNodeBuilder) Name ¶
func (builder *ApprovalNodeBuilder) Name(name string) *ApprovalNodeBuilder
节点名称的国际化文案 Key,以 @i18n@ 开头,长度不得少于 9 个字符
示例值:@i18n@node_name
func (*ApprovalNodeBuilder) NodeType ¶
func (builder *ApprovalNodeBuilder) NodeType(nodeType string) *ApprovalNodeBuilder
审批类型枚举,当 node_type 为依次审批时,审批人必须为『发起人自选』
示例值:AND
func (*ApprovalNodeBuilder) PrivilegeField ¶
func (builder *ApprovalNodeBuilder) PrivilegeField(privilegeField *FieldGroup) *ApprovalNodeBuilder
表单项的控件权限
示例值:
func (*ApprovalNodeBuilder) StarterAssignee ¶ added in v3.0.18
func (builder *ApprovalNodeBuilder) StarterAssignee(starterAssignee string) *ApprovalNodeBuilder
审批人为提交人时的操作
示例值:STARTER
type ApprovalNodeInfo ¶
type ApprovalNodeInfo struct { Name *string `json:"name,omitempty"` // 节点名称 NeedApprover *bool `json:"need_approver,omitempty"` // 是否发起人自选节点 true - 发起审批时需要提交审批人 NodeId *string `json:"node_id,omitempty"` // 节点 ID CustomNodeId *string `json:"custom_node_id,omitempty"` // 节点自定义 ID,如果没有设置则不返回 NodeType *string `json:"node_type,omitempty"` // 审批方式 ApproverChosenMulti *bool `json:"approver_chosen_multi,omitempty"` // 是否支持多选:true-支持,发起、结束节点该值无意义 ApproverChosenRange []*ApproverChosenRange `json:"approver_chosen_range,omitempty"` // 自选范围 RequireSignature *bool `json:"require_signature,omitempty"` // 是否签名 }
type ApprovalNodeInfoBuilder ¶
type ApprovalNodeInfoBuilder struct {
// contains filtered or unexported fields
}
func NewApprovalNodeInfoBuilder ¶
func NewApprovalNodeInfoBuilder() *ApprovalNodeInfoBuilder
func (*ApprovalNodeInfoBuilder) ApproverChosenMulti ¶ added in v3.0.1
func (builder *ApprovalNodeInfoBuilder) ApproverChosenMulti(approverChosenMulti bool) *ApprovalNodeInfoBuilder
是否支持多选:true-支持,发起、结束节点该值无意义
示例值:true
func (*ApprovalNodeInfoBuilder) ApproverChosenRange ¶ added in v3.0.1
func (builder *ApprovalNodeInfoBuilder) ApproverChosenRange(approverChosenRange []*ApproverChosenRange) *ApprovalNodeInfoBuilder
自选范围
示例值:
func (*ApprovalNodeInfoBuilder) Build ¶
func (builder *ApprovalNodeInfoBuilder) Build() *ApprovalNodeInfo
func (*ApprovalNodeInfoBuilder) CustomNodeId ¶
func (builder *ApprovalNodeInfoBuilder) CustomNodeId(customNodeId string) *ApprovalNodeInfoBuilder
节点自定义 ID,如果没有设置则不返回
示例值:46e6d96cfa756980907209209ec03b64
func (*ApprovalNodeInfoBuilder) Name ¶
func (builder *ApprovalNodeInfoBuilder) Name(name string) *ApprovalNodeInfoBuilder
节点名称
示例值:Approval
func (*ApprovalNodeInfoBuilder) NeedApprover ¶
func (builder *ApprovalNodeInfoBuilder) NeedApprover(needApprover bool) *ApprovalNodeInfoBuilder
是否发起人自选节点 true - 发起审批时需要提交审批人
示例值:true
func (*ApprovalNodeInfoBuilder) NodeId ¶
func (builder *ApprovalNodeInfoBuilder) NodeId(nodeId string) *ApprovalNodeInfoBuilder
节点 ID
示例值:46e6d96cfa756980907209209ec03b64
func (*ApprovalNodeInfoBuilder) NodeType ¶
func (builder *ApprovalNodeInfoBuilder) NodeType(nodeType string) *ApprovalNodeInfoBuilder
审批方式
示例值:AND
func (*ApprovalNodeInfoBuilder) RequireSignature ¶ added in v3.0.15
func (builder *ApprovalNodeInfoBuilder) RequireSignature(requireSignature bool) *ApprovalNodeInfoBuilder
是否签名
示例值:false
type ApprovalService ¶
type ApprovalService struct { Approval *approval // 事件 ExternalApproval *externalApproval // 三方审批定义 ExternalInstance *externalInstance // 三方审批实例 ExternalTask *externalTask // 三方审批任务 Instance *instance // 原生审批实例 InstanceComment *instanceComment // 原生审批评论 Task *task // 原生审批任务 // contains filtered or unexported fields }
func NewService ¶
func NewService(config *larkcore.Config) *ApprovalService
type ApprovalSetting ¶
type ApprovalSetting struct { RevertInterval *int `json:"revert_interval,omitempty"` // 审批实例通过后允许撤回的时间,以秒为单位,默认 31 天,0 为不可撤回 RevertOption *int `json:"revert_option,omitempty"` // 是否支持审批通过第一个节点后撤回,默认为1,0为不支持 RejectOption *int `json:"reject_option,omitempty"` // 拒绝设置 QuickApprovalOption *int `json:"quick_approval_option,omitempty"` // 快捷审批配置项,开启后可在卡片上直接审批。默认值1为启用, 0为禁用 }
type ApprovalSettingBuilder ¶
type ApprovalSettingBuilder struct {
// contains filtered or unexported fields
}
func NewApprovalSettingBuilder ¶
func NewApprovalSettingBuilder() *ApprovalSettingBuilder
func (*ApprovalSettingBuilder) Build ¶
func (builder *ApprovalSettingBuilder) Build() *ApprovalSetting
func (*ApprovalSettingBuilder) QuickApprovalOption ¶ added in v3.0.20
func (builder *ApprovalSettingBuilder) QuickApprovalOption(quickApprovalOption int) *ApprovalSettingBuilder
快捷审批配置项,开启后可在卡片上直接审批。默认值1为启用, 0为禁用
示例值:1
func (*ApprovalSettingBuilder) RejectOption ¶ added in v3.0.18
func (builder *ApprovalSettingBuilder) RejectOption(rejectOption int) *ApprovalSettingBuilder
拒绝设置
示例值:0
func (*ApprovalSettingBuilder) RevertInterval ¶
func (builder *ApprovalSettingBuilder) RevertInterval(revertInterval int) *ApprovalSettingBuilder
审批实例通过后允许撤回的时间,以秒为单位,默认 31 天,0 为不可撤回
示例值:0
func (*ApprovalSettingBuilder) RevertOption ¶
func (builder *ApprovalSettingBuilder) RevertOption(revertOption int) *ApprovalSettingBuilder
是否支持审批通过第一个节点后撤回,默认为1,0为不支持
示例值:0
type ApprovalViewer ¶
type ApprovalViewerBuilder ¶
type ApprovalViewerBuilder struct {
// contains filtered or unexported fields
}
func NewApprovalViewerBuilder ¶
func NewApprovalViewerBuilder() *ApprovalViewerBuilder
func (*ApprovalViewerBuilder) Build ¶
func (builder *ApprovalViewerBuilder) Build() *ApprovalViewer
func (*ApprovalViewerBuilder) OpenId ¶
func (builder *ApprovalViewerBuilder) OpenId(openId string) *ApprovalViewerBuilder
同一个应用中对用户进行标识的id
示例值:ou_e03053f0541cecc3269d7a9dc34a0b21
func (*ApprovalViewerBuilder) Type ¶
func (builder *ApprovalViewerBuilder) Type(type_ string) *ApprovalViewerBuilder
可见人类型,人员、部门或全体
示例值:TENANT
func (*ApprovalViewerBuilder) UnionId ¶
func (builder *ApprovalViewerBuilder) UnionId(unionId string) *ApprovalViewerBuilder
同一个应用开发主体下对用户进行标识的id
示例值:f7cb567e
func (*ApprovalViewerBuilder) UserId ¶
func (builder *ApprovalViewerBuilder) UserId(userId string) *ApprovalViewerBuilder
用户id
示例值:f7cb567e
type ApprovalViewerInfo ¶
type ApprovalViewerInfoBuilder ¶
type ApprovalViewerInfoBuilder struct {
// contains filtered or unexported fields
}
func NewApprovalViewerInfoBuilder ¶
func NewApprovalViewerInfoBuilder() *ApprovalViewerInfoBuilder
func (*ApprovalViewerInfoBuilder) Build ¶
func (builder *ApprovalViewerInfoBuilder) Build() *ApprovalViewerInfo
func (*ApprovalViewerInfoBuilder) Id ¶
func (builder *ApprovalViewerInfoBuilder) Id(id string) *ApprovalViewerInfoBuilder
在可见人类型为DEPARTMENT时,id为部门的id ;在可见人类型为USER时,id为用户的id ;在可见人类型为ROLE时,id为角色的id ;在可见人类型为USER_GROUP时,id为用户组的id
示例值:ou_e03053f0541cecc3269d7a9dc34a0b21
func (*ApprovalViewerInfoBuilder) Type ¶
func (builder *ApprovalViewerInfoBuilder) Type(type_ string) *ApprovalViewerInfoBuilder
可见人类型
示例值:TENANT
func (*ApprovalViewerInfoBuilder) UserId ¶
func (builder *ApprovalViewerInfoBuilder) UserId(userId string) *ApprovalViewerInfoBuilder
在可见人类型为USER时,表示可见人用户id
示例值:f7cb567e
type ApproveTaskReq ¶
type ApproveTaskReq struct { TaskApprove *TaskApprove `body:""` // contains filtered or unexported fields }
type ApproveTaskReqBuilder ¶
type ApproveTaskReqBuilder struct {
// contains filtered or unexported fields
}
func NewApproveTaskReqBuilder ¶
func NewApproveTaskReqBuilder() *ApproveTaskReqBuilder
func (*ApproveTaskReqBuilder) Build ¶
func (builder *ApproveTaskReqBuilder) Build() *ApproveTaskReq
func (*ApproveTaskReqBuilder) TaskApprove ¶
func (builder *ApproveTaskReqBuilder) TaskApprove(taskApprove *TaskApprove) *ApproveTaskReqBuilder
对于单个审批任务进行同意操作。同意后审批流程会流转到下一个审批人。
func (*ApproveTaskReqBuilder) UserIdType ¶
func (builder *ApproveTaskReqBuilder) UserIdType(userIdType string) *ApproveTaskReqBuilder
此次调用中使用的用户ID的类型
示例值:
type ApproveTaskResp ¶
type ApproveTaskResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError }
func (*ApproveTaskResp) Success ¶
func (resp *ApproveTaskResp) Success() bool
type ApproverChosenRange ¶ added in v3.0.1
type ApproverChosenRangeBuilder ¶ added in v3.0.1
type ApproverChosenRangeBuilder struct {
// contains filtered or unexported fields
}
func NewApproverChosenRangeBuilder ¶ added in v3.0.1
func NewApproverChosenRangeBuilder() *ApproverChosenRangeBuilder
func (*ApproverChosenRangeBuilder) ApproverRangeIds ¶ added in v3.0.1
func (builder *ApproverChosenRangeBuilder) ApproverRangeIds(approverRangeIds []string) *ApproverChosenRangeBuilder
根据上面的type,分别存放角色id与userid,type为0时本字段为空列表
示例值:
func (*ApproverChosenRangeBuilder) ApproverRangeType ¶ added in v3.0.1
func (builder *ApproverChosenRangeBuilder) ApproverRangeType(approverRangeType int) *ApproverChosenRangeBuilder
指定范围:0-all,1-指定角色,2-指定人员
示例值:2
func (*ApproverChosenRangeBuilder) Build ¶ added in v3.0.1
func (builder *ApproverChosenRangeBuilder) Build() *ApproverChosenRange
type ApproverRange ¶ added in v3.0.18
type ApproverRangeBuilder ¶ added in v3.0.18
type ApproverRangeBuilder struct {
// contains filtered or unexported fields
}
func NewApproverRangeBuilder ¶ added in v3.0.18
func NewApproverRangeBuilder() *ApproverRangeBuilder
func (*ApproverRangeBuilder) Build ¶ added in v3.0.18
func (builder *ApproverRangeBuilder) Build() *ApproverRange
func (*ApproverRangeBuilder) IdList ¶ added in v3.0.18
func (builder *ApproverRangeBuilder) IdList(idList []string) *ApproverRangeBuilder
审批人id
示例值:f7cb567e
func (*ApproverRangeBuilder) Type ¶ added in v3.0.18
func (builder *ApproverRangeBuilder) Type(type_ string) *ApproverRangeBuilder
审批人类型
示例值:ALL
type CancelInstanceReq ¶
type CancelInstanceReq struct { InstanceCancel *InstanceCancel `body:""` // contains filtered or unexported fields }
type CancelInstanceReqBuilder ¶
type CancelInstanceReqBuilder struct {
// contains filtered or unexported fields
}
func NewCancelInstanceReqBuilder ¶
func NewCancelInstanceReqBuilder() *CancelInstanceReqBuilder
func (*CancelInstanceReqBuilder) Build ¶
func (builder *CancelInstanceReqBuilder) Build() *CancelInstanceReq
func (*CancelInstanceReqBuilder) InstanceCancel ¶
func (builder *CancelInstanceReqBuilder) InstanceCancel(instanceCancel *InstanceCancel) *CancelInstanceReqBuilder
对于状态为“审批中”的单个审批实例进行撤销操作,撤销后审批流程结束
func (*CancelInstanceReqBuilder) UserIdType ¶
func (builder *CancelInstanceReqBuilder) UserIdType(userIdType string) *CancelInstanceReqBuilder
此次调用中使用的用户ID的类型
示例值:
type CancelInstanceResp ¶
type CancelInstanceResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError }
func (*CancelInstanceResp) Success ¶
func (resp *CancelInstanceResp) Success() bool
type CcInstanceReq ¶
type CcInstanceReq struct { InstanceCc *InstanceCc `body:""` // contains filtered or unexported fields }
type CcInstanceReqBuilder ¶
type CcInstanceReqBuilder struct {
// contains filtered or unexported fields
}
func NewCcInstanceReqBuilder ¶
func NewCcInstanceReqBuilder() *CcInstanceReqBuilder
func (*CcInstanceReqBuilder) Build ¶
func (builder *CcInstanceReqBuilder) Build() *CcInstanceReq
func (*CcInstanceReqBuilder) InstanceCc ¶
func (builder *CcInstanceReqBuilder) InstanceCc(instanceCc *InstanceCc) *CcInstanceReqBuilder
通过接口可以将当前审批实例抄送给其他人。
func (*CcInstanceReqBuilder) UserIdType ¶
func (builder *CcInstanceReqBuilder) UserIdType(userIdType string) *CcInstanceReqBuilder
此次调用中使用的用户ID的类型
示例值:
type CcInstanceResp ¶
type CcInstanceResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError }
func (*CcInstanceResp) Success ¶
func (resp *CcInstanceResp) Success() bool
type CcNode ¶
type CcNode struct { CcId *string `json:"cc_id,omitempty"` // 审批实例内唯一标识 UserId *string `json:"user_id,omitempty"` // 抄送人 employee id OpenId *string `json:"open_id,omitempty"` // 抄送人 open id,和user id 二者至少填一个 Links *ExternalInstanceLink `json:"links,omitempty"` // 跳转链接,用于【抄送我的】列表中的跳转pc_link 和 mobile_link 必须填一个,填写的是哪一端的链接,即会跳转到该链接,不受平台影响 ReadStatus *string `json:"read_status,omitempty"` // 阅读状态,空值表示不支持已读未读: Extra *string `json:"extra,omitempty"` // 扩展 json Title *string `json:"title,omitempty"` // 抄送任务名称 CreateTime *string `json:"create_time,omitempty"` // 抄送发起时间,Unix 毫秒时间戳 UpdateTime *string `json:"update_time,omitempty"` // 抄送最近更新时间,用于推送数据版本控制更新策略同 instance 的update_time DisplayMethod *string `json:"display_method,omitempty"` // 列表页打开审批任务的方式 }
type CcNodeBuilder ¶
type CcNodeBuilder struct {
// contains filtered or unexported fields
}
func NewCcNodeBuilder ¶
func NewCcNodeBuilder() *CcNodeBuilder
func (*CcNodeBuilder) Build ¶
func (builder *CcNodeBuilder) Build() *CcNode
func (*CcNodeBuilder) CcId ¶
func (builder *CcNodeBuilder) CcId(ccId string) *CcNodeBuilder
审批实例内唯一标识
示例值:123456
func (*CcNodeBuilder) CreateTime ¶
func (builder *CcNodeBuilder) CreateTime(createTime string) *CcNodeBuilder
抄送发起时间,Unix 毫秒时间戳
示例值:1556468012678
func (*CcNodeBuilder) DisplayMethod ¶
func (builder *CcNodeBuilder) DisplayMethod(displayMethod string) *CcNodeBuilder
列表页打开审批任务的方式
示例值:BROWSER
func (*CcNodeBuilder) Extra ¶
func (builder *CcNodeBuilder) Extra(extra string) *CcNodeBuilder
扩展 json
示例值:{\"xxx\":\"xxx\"}
func (*CcNodeBuilder) Links ¶
func (builder *CcNodeBuilder) Links(links *ExternalInstanceLink) *CcNodeBuilder
跳转链接,用于【抄送我的】列表中的跳转pc_link 和 mobile_link 必须填一个,填写的是哪一端的链接,即会跳转到该链接,不受平台影响
示例值:
func (*CcNodeBuilder) OpenId ¶
func (builder *CcNodeBuilder) OpenId(openId string) *CcNodeBuilder
抄送人 open id,和user id 二者至少填一个
示例值:ou_be73cbc0ee35eb6ca54e9e7cc14998c1
func (*CcNodeBuilder) ReadStatus ¶
func (builder *CcNodeBuilder) ReadStatus(readStatus string) *CcNodeBuilder
阅读状态,空值表示不支持已读未读:
示例值:READ
func (*CcNodeBuilder) Title ¶
func (builder *CcNodeBuilder) Title(title string) *CcNodeBuilder
抄送任务名称
示例值:xxx
func (*CcNodeBuilder) UpdateTime ¶
func (builder *CcNodeBuilder) UpdateTime(updateTime string) *CcNodeBuilder
抄送最近更新时间,用于推送数据版本控制更新策略同 instance 的update_time
示例值:1556468012678
func (*CcNodeBuilder) UserId ¶
func (builder *CcNodeBuilder) UserId(userId string) *CcNodeBuilder
抄送人 employee id
示例值:12345
type CcSearch ¶
type CcSearch struct { UserId *string `json:"user_id,omitempty"` // 根据x_user_type填写用户 id ApprovalCode *string `json:"approval_code,omitempty"` // 审批定义 code InstanceCode *string `json:"instance_code,omitempty"` // 审批实例 code InstanceExternalId *string `json:"instance_external_id,omitempty"` // 审批实例第三方 id 注:和 approval_code 取并集 GroupExternalId *string `json:"group_external_id,omitempty"` // 审批定义分组第三方 id 注:和 instance_code 取并集 CcTitle *string `json:"cc_title,omitempty"` // 审批抄送标题(只有第三方审批有) ReadStatus *string `json:"read_status,omitempty"` // 审批抄送状态,注:若不设置,查询全部状态 若不在集合中,报错 CcCreateTimeFrom *string `json:"cc_create_time_from,omitempty"` // 抄送查询开始时间(unix毫秒时间戳) CcCreateTimeTo *string `json:"cc_create_time_to,omitempty"` // 抄送查询结束时间 (unix毫秒时间戳) Locale *string `json:"locale,omitempty"` // 地区 }
type CcSearchBuilder ¶
type CcSearchBuilder struct {
// contains filtered or unexported fields
}
func NewCcSearchBuilder ¶
func NewCcSearchBuilder() *CcSearchBuilder
func (*CcSearchBuilder) ApprovalCode ¶
func (builder *CcSearchBuilder) ApprovalCode(approvalCode string) *CcSearchBuilder
审批定义 code
示例值:EB828003-9FFE-4B3F-AA50-2E199E2ED942
func (*CcSearchBuilder) Build ¶
func (builder *CcSearchBuilder) Build() *CcSearch
func (*CcSearchBuilder) CcCreateTimeFrom ¶
func (builder *CcSearchBuilder) CcCreateTimeFrom(ccCreateTimeFrom string) *CcSearchBuilder
抄送查询开始时间(unix毫秒时间戳)
示例值:1547654251506
func (*CcSearchBuilder) CcCreateTimeTo ¶
func (builder *CcSearchBuilder) CcCreateTimeTo(ccCreateTimeTo string) *CcSearchBuilder
抄送查询结束时间 (unix毫秒时间戳)
示例值:1547654251506
func (*CcSearchBuilder) CcTitle ¶
func (builder *CcSearchBuilder) CcTitle(ccTitle string) *CcSearchBuilder
审批抄送标题(只有第三方审批有)
示例值:test
func (*CcSearchBuilder) GroupExternalId ¶
func (builder *CcSearchBuilder) GroupExternalId(groupExternalId string) *CcSearchBuilder
审批定义分组第三方 id 注:和 instance_code 取并集
示例值:1234567
func (*CcSearchBuilder) InstanceCode ¶
func (builder *CcSearchBuilder) InstanceCode(instanceCode string) *CcSearchBuilder
审批实例 code
示例值:EB828003-9FFE-4B3F-AA50-2E199E2ED943
func (*CcSearchBuilder) InstanceExternalId ¶
func (builder *CcSearchBuilder) InstanceExternalId(instanceExternalId string) *CcSearchBuilder
审批实例第三方 id 注:和 approval_code 取并集
示例值:EB828003-9FFE-4B3F-AA50-2E199E2ED976
func (*CcSearchBuilder) Locale ¶
func (builder *CcSearchBuilder) Locale(locale string) *CcSearchBuilder
地区
示例值:zh-CN
func (*CcSearchBuilder) ReadStatus ¶
func (builder *CcSearchBuilder) ReadStatus(readStatus string) *CcSearchBuilder
审批抄送状态,注:若不设置,查询全部状态 若不在集合中,报错
示例值:read
func (*CcSearchBuilder) UserId ¶
func (builder *CcSearchBuilder) UserId(userId string) *CcSearchBuilder
根据x_user_type填写用户 id
示例值:lwiu098wj
type CcSearchItem ¶
type CcSearchItem struct { Approval *InstanceSearchApproval `json:"approval,omitempty"` // 审批定义 Group *InstanceSearchGroup `json:"group,omitempty"` // 审批定义分组 Instance *InstanceSearchNode `json:"instance,omitempty"` // 审批实例信息 Cc *CcSearchNode `json:"cc,omitempty"` // 审批抄送 }
type CcSearchItemBuilder ¶
type CcSearchItemBuilder struct {
// contains filtered or unexported fields
}
func NewCcSearchItemBuilder ¶
func NewCcSearchItemBuilder() *CcSearchItemBuilder
func (*CcSearchItemBuilder) Approval ¶
func (builder *CcSearchItemBuilder) Approval(approval *InstanceSearchApproval) *CcSearchItemBuilder
审批定义
示例值:
func (*CcSearchItemBuilder) Build ¶
func (builder *CcSearchItemBuilder) Build() *CcSearchItem
func (*CcSearchItemBuilder) Cc ¶
func (builder *CcSearchItemBuilder) Cc(cc *CcSearchNode) *CcSearchItemBuilder
审批抄送
示例值:
func (*CcSearchItemBuilder) Group ¶
func (builder *CcSearchItemBuilder) Group(group *InstanceSearchGroup) *CcSearchItemBuilder
审批定义分组
示例值:
func (*CcSearchItemBuilder) Instance ¶
func (builder *CcSearchItemBuilder) Instance(instance *InstanceSearchNode) *CcSearchItemBuilder
审批实例信息
示例值:
type CcSearchNode ¶
type CcSearchNode struct { UserId *string `json:"user_id,omitempty"` // 审批抄送发起人 id CreateTime *string `json:"create_time,omitempty"` // 审批抄送开始时间 ReadStatus *string `json:"read_status,omitempty"` // 审批抄送状态 Title *string `json:"title,omitempty"` // 审批抄送名称(只有第三方审批有) Extra *string `json:"extra,omitempty"` // 审批抄送扩展字段,string型json Link *InstanceSearchLink `json:"link,omitempty"` // 审批抄送链接(只有第三方审批有) }
type CcSearchNodeBuilder ¶
type CcSearchNodeBuilder struct {
// contains filtered or unexported fields
}
func NewCcSearchNodeBuilder ¶
func NewCcSearchNodeBuilder() *CcSearchNodeBuilder
func (*CcSearchNodeBuilder) Build ¶
func (builder *CcSearchNodeBuilder) Build() *CcSearchNode
func (*CcSearchNodeBuilder) CreateTime ¶
func (builder *CcSearchNodeBuilder) CreateTime(createTime string) *CcSearchNodeBuilder
审批抄送开始时间
示例值:1547654251506
func (*CcSearchNodeBuilder) Extra ¶
func (builder *CcSearchNodeBuilder) Extra(extra string) *CcSearchNodeBuilder
审批抄送扩展字段,string型json
示例值:{}
func (*CcSearchNodeBuilder) Link ¶
func (builder *CcSearchNodeBuilder) Link(link *InstanceSearchLink) *CcSearchNodeBuilder
审批抄送链接(只有第三方审批有)
示例值:
func (*CcSearchNodeBuilder) ReadStatus ¶
func (builder *CcSearchNodeBuilder) ReadStatus(readStatus string) *CcSearchNodeBuilder
审批抄送状态
示例值:read
func (*CcSearchNodeBuilder) Title ¶
func (builder *CcSearchNodeBuilder) Title(title string) *CcSearchNodeBuilder
审批抄送名称(只有第三方审批有)
示例值:test
func (*CcSearchNodeBuilder) UserId ¶
func (builder *CcSearchNodeBuilder) UserId(userId string) *CcSearchNodeBuilder
审批抄送发起人 id
示例值:lwiu098wj
type CheckExternalInstancePathReqBodyBuilder ¶
type CheckExternalInstancePathReqBodyBuilder struct {
// contains filtered or unexported fields
}
func NewCheckExternalInstancePathReqBodyBuilder ¶
func NewCheckExternalInstancePathReqBodyBuilder() *CheckExternalInstancePathReqBodyBuilder
func (*CheckExternalInstancePathReqBodyBuilder) Build ¶
func (builder *CheckExternalInstancePathReqBodyBuilder) Build() (*CheckExternalInstanceReqBody, error)
func (*CheckExternalInstancePathReqBodyBuilder) Instances ¶
func (builder *CheckExternalInstancePathReqBodyBuilder) Instances(instances []*ExteranlInstanceCheck) *CheckExternalInstancePathReqBodyBuilder
校验的实例信息
示例值:
type CheckExternalInstanceReq ¶
type CheckExternalInstanceReq struct { Body *CheckExternalInstanceReqBody `body:""` // contains filtered or unexported fields }
type CheckExternalInstanceReqBody ¶
type CheckExternalInstanceReqBody struct {
Instances []*ExteranlInstanceCheck `json:"instances,omitempty"` // 校验的实例信息
}
type CheckExternalInstanceReqBodyBuilder ¶
type CheckExternalInstanceReqBodyBuilder struct {
// contains filtered or unexported fields
}
func NewCheckExternalInstanceReqBodyBuilder ¶
func NewCheckExternalInstanceReqBodyBuilder() *CheckExternalInstanceReqBodyBuilder
func (*CheckExternalInstanceReqBodyBuilder) Build ¶
func (builder *CheckExternalInstanceReqBodyBuilder) Build() *CheckExternalInstanceReqBody
func (*CheckExternalInstanceReqBodyBuilder) Instances ¶
func (builder *CheckExternalInstanceReqBodyBuilder) Instances(instances []*ExteranlInstanceCheck) *CheckExternalInstanceReqBodyBuilder
校验的实例信息
示例值:
type CheckExternalInstanceReqBuilder ¶
type CheckExternalInstanceReqBuilder struct {
// contains filtered or unexported fields
}
func NewCheckExternalInstanceReqBuilder ¶
func NewCheckExternalInstanceReqBuilder() *CheckExternalInstanceReqBuilder
func (*CheckExternalInstanceReqBuilder) Body ¶
func (builder *CheckExternalInstanceReqBuilder) Body(body *CheckExternalInstanceReqBody) *CheckExternalInstanceReqBuilder
校验三方审批实例数据,用于判断服务端数据是否为最新的。用户提交实例最新更新时间,如果服务端不存在该实例,或者服务端实例更新时间不是最新的,则返回对应实例 id。;;例如,用户可以每隔5分钟,将最近5分钟产生的实例使用该接口进行对比。
func (*CheckExternalInstanceReqBuilder) Build ¶
func (builder *CheckExternalInstanceReqBuilder) Build() *CheckExternalInstanceReq
type CheckExternalInstanceResp ¶
type CheckExternalInstanceResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError Data *CheckExternalInstanceRespData `json:"data"` // 业务数据 }
func (*CheckExternalInstanceResp) Success ¶
func (resp *CheckExternalInstanceResp) Success() bool
type CheckExternalInstanceRespData ¶
type CheckExternalInstanceRespData struct {
DiffInstances []*ExteranlInstanceCheckResponse `json:"diff_instances,omitempty"` // 更新时间不一致的实例信息
}
type Comment ¶
type Comment struct { Id *string `json:"id,omitempty"` // 评论ID Content *string `json:"content,omitempty"` // 评论内容 CreateTime *string `json:"create_time,omitempty"` // 评论创建时间 UpdateTime *string `json:"update_time,omitempty"` // 评论更新时间 IsDelete *int `json:"is_delete,omitempty"` // 是否删除,0:未删除,1:已删除 Replies []*CommentReply `json:"replies,omitempty"` // 评论的回复 AtInfoList []*CommentAtInfo `json:"at_info_list,omitempty"` // 评论中艾特人信息 Commentator *string `json:"commentator,omitempty"` // 评论创建人 Extra *string `json:"extra,omitempty"` // 附加字段 }
type CommentAtInfo ¶
type CommentAtInfoBuilder ¶
type CommentAtInfoBuilder struct {
// contains filtered or unexported fields
}
func NewCommentAtInfoBuilder ¶
func NewCommentAtInfoBuilder() *CommentAtInfoBuilder
func (*CommentAtInfoBuilder) Build ¶
func (builder *CommentAtInfoBuilder) Build() *CommentAtInfo
func (*CommentAtInfoBuilder) Name ¶
func (builder *CommentAtInfoBuilder) Name(name string) *CommentAtInfoBuilder
被艾特人的姓名
示例值:张某
func (*CommentAtInfoBuilder) Offset ¶
func (builder *CommentAtInfoBuilder) Offset(offset string) *CommentAtInfoBuilder
被艾特人在评论中的位置,从0开始
示例值:1
func (*CommentAtInfoBuilder) UserId ¶
func (builder *CommentAtInfoBuilder) UserId(userId string) *CommentAtInfoBuilder
被艾特人的ID
示例值:579fd9c4
type CommentBuilder ¶
type CommentBuilder struct {
// contains filtered or unexported fields
}
func NewCommentBuilder ¶
func NewCommentBuilder() *CommentBuilder
func (*CommentBuilder) AtInfoList ¶
func (builder *CommentBuilder) AtInfoList(atInfoList []*CommentAtInfo) *CommentBuilder
评论中艾特人信息
示例值:
func (*CommentBuilder) Build ¶
func (builder *CommentBuilder) Build() *Comment
func (*CommentBuilder) Commentator ¶
func (builder *CommentBuilder) Commentator(commentator string) *CommentBuilder
评论创建人
示例值:893g4c45
func (*CommentBuilder) Content ¶
func (builder *CommentBuilder) Content(content string) *CommentBuilder
评论内容
示例值:{\"text\":\"x@王某自小程序的评论111我带了附件,而且我艾特了人 \",\"files\":[{\"url\":\"https://xx-xxx-xxx.bytedance.net/lark-approval-attachment/image/20220401/1/d43216ca-93b5-43a8-8a34-23c66820463a.png~tplv-k7bg0smxju-image.image?x-orig-authkey=boeorigin\&x-orig-expires=1650963890\&x-orig-sign=668QhQbRSt6638x2Ws8wFI%2FxqVg%3D#.png\",\"fileSize\":155149,\"title\":\"9a9fedc5cfb01a4a20c715098.png\",\"type\":\"image\"}]}
func (*CommentBuilder) CreateTime ¶
func (builder *CommentBuilder) CreateTime(createTime string) *CommentBuilder
评论创建时间
示例值:1648801211000
func (*CommentBuilder) Extra ¶
func (builder *CommentBuilder) Extra(extra string) *CommentBuilder
附加字段
示例值:{\"a\":\"a\"}
func (*CommentBuilder) Id ¶
func (builder *CommentBuilder) Id(id string) *CommentBuilder
评论ID
示例值:7081516627711524883
func (*CommentBuilder) IsDelete ¶
func (builder *CommentBuilder) IsDelete(isDelete int) *CommentBuilder
是否删除,0:未删除,1:已删除
示例值:1
func (*CommentBuilder) Replies ¶
func (builder *CommentBuilder) Replies(replies []*CommentReply) *CommentBuilder
评论的回复
示例值:
func (*CommentBuilder) UpdateTime ¶
func (builder *CommentBuilder) UpdateTime(updateTime string) *CommentBuilder
评论更新时间
示例值:1648801211000
type CommentReply ¶
type CommentReply struct { Id *string `json:"id,omitempty"` // 评论ID Content *string `json:"content,omitempty"` // 评论内容 CreateTime *string `json:"create_time,omitempty"` // 评论创建时间 UpdateTime *string `json:"update_time,omitempty"` // 评论更新时间 IsDelete *int `json:"is_delete,omitempty"` // 是否删除,0:未删除,1:已删除 AtInfoList []*CommentAtInfo `json:"at_info_list,omitempty"` // 评论中艾特人信息 Commentator *string `json:"commentator,omitempty"` // 评论创建人 Extra *string `json:"extra,omitempty"` // 附加字段 }
type CommentReplyBuilder ¶
type CommentReplyBuilder struct {
// contains filtered or unexported fields
}
func NewCommentReplyBuilder ¶
func NewCommentReplyBuilder() *CommentReplyBuilder
func (*CommentReplyBuilder) AtInfoList ¶
func (builder *CommentReplyBuilder) AtInfoList(atInfoList []*CommentAtInfo) *CommentReplyBuilder
评论中艾特人信息
示例值:
func (*CommentReplyBuilder) Build ¶
func (builder *CommentReplyBuilder) Build() *CommentReply
func (*CommentReplyBuilder) Commentator ¶
func (builder *CommentReplyBuilder) Commentator(commentator string) *CommentReplyBuilder
评论创建人
示例值:893g4c45
func (*CommentReplyBuilder) Content ¶
func (builder *CommentReplyBuilder) Content(content string) *CommentReplyBuilder
评论内容
示例值:{\"text\":\"x@张某来自小程序的评论111,这是一条回复\",\"files\":[{\"url\":\"https://xx-xxx-xxx.bytedance.net/lark-approval-attachment/image/20220401/1/d43216ca-93b5-43a8-8a34-23c66820463a.png~tplv-k7bg0smxju-image.image?x-orig-authkey=boeorigin\&x-orig-expires=1650963890\&x-orig-sign=668QhQbRSt6638x2Ws8wFI%2FxqVg%3D#.png\",\"fileSize\":155149,\"title\":\"9a9fedc5cfb01a4a20c715098.png\",\"type\":\"image\"}]}
func (*CommentReplyBuilder) CreateTime ¶
func (builder *CommentReplyBuilder) CreateTime(createTime string) *CommentReplyBuilder
评论创建时间
示例值:1648803677000
func (*CommentReplyBuilder) Extra ¶
func (builder *CommentReplyBuilder) Extra(extra string) *CommentReplyBuilder
附加字段
示例值:{\"a\":\"a\"}
func (*CommentReplyBuilder) Id ¶
func (builder *CommentReplyBuilder) Id(id string) *CommentReplyBuilder
评论ID
示例值:7081516611634741268
func (*CommentReplyBuilder) IsDelete ¶
func (builder *CommentReplyBuilder) IsDelete(isDelete int) *CommentReplyBuilder
是否删除,0:未删除,1:已删除
示例值:0
func (*CommentReplyBuilder) UpdateTime ¶
func (builder *CommentReplyBuilder) UpdateTime(updateTime string) *CommentReplyBuilder
评论更新时间
示例值:1648803677000
type CommentRequest ¶
type CommentRequest struct { Content *string `json:"content,omitempty"` // 评论内容,包含艾特人、附件等 AtInfoList []*CommentAtInfo `json:"at_info_list,omitempty"` // 评论中艾特人信息 ParentCommentId *string `json:"parent_comment_id,omitempty"` // 父评论ID,如果是回复评论,需要传 CommentId *string `json:"comment_id,omitempty"` // 评论ID,如果是编辑、删除一条评论,需要传 DisableBot *bool `json:"disable_bot,omitempty"` // disable_bot=true只同步数据,不触发bot Extra *string `json:"extra,omitempty"` // 附加字段 }
type CommentRequestBuilder ¶
type CommentRequestBuilder struct {
// contains filtered or unexported fields
}
func NewCommentRequestBuilder ¶
func NewCommentRequestBuilder() *CommentRequestBuilder
func (*CommentRequestBuilder) AtInfoList ¶
func (builder *CommentRequestBuilder) AtInfoList(atInfoList []*CommentAtInfo) *CommentRequestBuilder
评论中艾特人信息
示例值:
func (*CommentRequestBuilder) Build ¶
func (builder *CommentRequestBuilder) Build() *CommentRequest
func (*CommentRequestBuilder) CommentId ¶
func (builder *CommentRequestBuilder) CommentId(commentId string) *CommentRequestBuilder
评论ID,如果是编辑、删除一条评论,需要传
示例值:7081516627711524883
func (*CommentRequestBuilder) Content ¶
func (builder *CommentRequestBuilder) Content(content string) *CommentRequestBuilder
评论内容,包含艾特人、附件等
示例值:{\"text\":\"来自小程序的评论111我带附件中有extra \",\"files\":[{\"url\":\"xxx\",\"fileSize\":155149,\"title\":\"9a9fedc5cfb01a4a20c715098.png\",\"type\":\"image\",\"extra\":\"\"}]}
func (*CommentRequestBuilder) DisableBot ¶
func (builder *CommentRequestBuilder) DisableBot(disableBot bool) *CommentRequestBuilder
disable_bot=true只同步数据,不触发bot
示例值:false
func (*CommentRequestBuilder) Extra ¶
func (builder *CommentRequestBuilder) Extra(extra string) *CommentRequestBuilder
附加字段
示例值:{\"a\":\"a\"}
func (*CommentRequestBuilder) ParentCommentId ¶
func (builder *CommentRequestBuilder) ParentCommentId(parentCommentId string) *CommentRequestBuilder
父评论ID,如果是回复评论,需要传
示例值:7081516627711524883
type ConnectorLog ¶ added in v3.0.20
type ConnectorLog struct {
LogData []*ConnectorLogData `json:"log_data,omitempty"` // 日志数据
}
type ConnectorLogBuilder ¶ added in v3.0.20
type ConnectorLogBuilder struct {
// contains filtered or unexported fields
}
func NewConnectorLogBuilder ¶ added in v3.0.20
func NewConnectorLogBuilder() *ConnectorLogBuilder
func (*ConnectorLogBuilder) Build ¶ added in v3.0.20
func (builder *ConnectorLogBuilder) Build() *ConnectorLog
func (*ConnectorLogBuilder) LogData ¶ added in v3.0.20
func (builder *ConnectorLogBuilder) LogData(logData []*ConnectorLogData) *ConnectorLogBuilder
日志数据
示例值:
type ConnectorLogData ¶ added in v3.0.20
type ConnectorLogData struct { DateTime *string `json:"date_time,omitempty"` // 时间 Data *string `json:"data,omitempty"` // 数据(脱敏) Level *string `json:"level,omitempty"` // 数据等级 Pod *string `json:"pod,omitempty"` // 机器名称 Location *string `json:"location,omitempty"` // 打印位置(脱敏) Type *string `json:"type,omitempty"` // 数据类型 Version *string `json:"version,omitempty"` // 版本号 }
type ConnectorLogDataBuilder ¶ added in v3.0.20
type ConnectorLogDataBuilder struct {
// contains filtered or unexported fields
}
func NewConnectorLogDataBuilder ¶ added in v3.0.20
func NewConnectorLogDataBuilder() *ConnectorLogDataBuilder
func (*ConnectorLogDataBuilder) Build ¶ added in v3.0.20
func (builder *ConnectorLogDataBuilder) Build() *ConnectorLogData
func (*ConnectorLogDataBuilder) Data ¶ added in v3.0.20
func (builder *ConnectorLogDataBuilder) Data(data string) *ConnectorLogDataBuilder
数据(脱敏)
示例值:cwyFtNZSO7wKZ2Bi+WHJVbb6uZ3G2hlsje
func (*ConnectorLogDataBuilder) DateTime ¶ added in v3.0.20
func (builder *ConnectorLogDataBuilder) DateTime(dateTime string) *ConnectorLogDataBuilder
时间
示例值:2023-03-23 10:05:11
func (*ConnectorLogDataBuilder) Level ¶ added in v3.0.20
func (builder *ConnectorLogDataBuilder) Level(level string) *ConnectorLogDataBuilder
数据等级
示例值:INFO
func (*ConnectorLogDataBuilder) Location ¶ added in v3.0.20
func (builder *ConnectorLogDataBuilder) Location(location string) *ConnectorLogDataBuilder
打印位置(脱敏)
示例值:K+GFMIO+2aTIX8yXkPLK2hoEPof4
func (*ConnectorLogDataBuilder) Pod ¶ added in v3.0.20
func (builder *ConnectorLogDataBuilder) Pod(pod string) *ConnectorLogDataBuilder
机器名称
示例值:C02GD65CMD6R
func (*ConnectorLogDataBuilder) Type ¶ added in v3.0.20
func (builder *ConnectorLogDataBuilder) Type(type_ string) *ConnectorLogDataBuilder
数据类型
示例值:MONITOR
func (*ConnectorLogDataBuilder) Version ¶ added in v3.0.20
func (builder *ConnectorLogDataBuilder) Version(version string) *ConnectorLogDataBuilder
版本号
示例值:2.0.1
type CountBuilder ¶
type CountBuilder struct {
// contains filtered or unexported fields
}
func NewCountBuilder ¶
func NewCountBuilder() *CountBuilder
func (*CountBuilder) Build ¶
func (builder *CountBuilder) Build() *Count
func (*CountBuilder) HasMore ¶
func (builder *CountBuilder) HasMore(hasMore bool) *CountBuilder
还有更多,当大于等于 1000 时将返回 true
示例值:false
func (*CountBuilder) Total ¶
func (builder *CountBuilder) Total(total int) *CountBuilder
总数,大于等于 1000 个项目时将返回 999
示例值:123
type CreateApprovalReq ¶
type CreateApprovalReq struct { ApprovalCreate *ApprovalCreate `body:""` // contains filtered or unexported fields }
type CreateApprovalReqBuilder ¶
type CreateApprovalReqBuilder struct {
// contains filtered or unexported fields
}
func NewCreateApprovalReqBuilder ¶
func NewCreateApprovalReqBuilder() *CreateApprovalReqBuilder
func (*CreateApprovalReqBuilder) ApprovalCreate ¶
func (builder *CreateApprovalReqBuilder) ApprovalCreate(approvalCreate *ApprovalCreate) *CreateApprovalReqBuilder
用于通过接口创建简单的审批定义,可以灵活指定定义的基础信息、表单和流程等。创建成功后,不支持从审批管理后台删除该定义。不推荐企业自建应用使用,如有需要尽量联系管理员在审批管理后台创建定义。
func (*CreateApprovalReqBuilder) Build ¶
func (builder *CreateApprovalReqBuilder) Build() *CreateApprovalReq
func (*CreateApprovalReqBuilder) DepartmentIdType ¶
func (builder *CreateApprovalReqBuilder) DepartmentIdType(departmentIdType string) *CreateApprovalReqBuilder
此次调用中使用的部门ID的类型
示例值:open_department_id
func (*CreateApprovalReqBuilder) UserIdType ¶
func (builder *CreateApprovalReqBuilder) UserIdType(userIdType string) *CreateApprovalReqBuilder
此次调用中使用的用户ID的类型
示例值:
type CreateApprovalResp ¶
type CreateApprovalResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError Data *CreateApprovalRespData `json:"data"` // 业务数据 }
func (*CreateApprovalResp) Success ¶
func (resp *CreateApprovalResp) Success() bool
type CreateApprovalRespData ¶
type CreateExternalApprovalReq ¶
type CreateExternalApprovalReq struct { ExternalApproval *ExternalApproval `body:""` // contains filtered or unexported fields }
type CreateExternalApprovalReqBuilder ¶
type CreateExternalApprovalReqBuilder struct {
// contains filtered or unexported fields
}
func NewCreateExternalApprovalReqBuilder ¶
func NewCreateExternalApprovalReqBuilder() *CreateExternalApprovalReqBuilder
func (*CreateExternalApprovalReqBuilder) Build ¶
func (builder *CreateExternalApprovalReqBuilder) Build() *CreateExternalApprovalReq
func (*CreateExternalApprovalReqBuilder) DepartmentIdType ¶
func (builder *CreateExternalApprovalReqBuilder) DepartmentIdType(departmentIdType string) *CreateExternalApprovalReqBuilder
此次调用中使用的部门ID的类型
示例值:open_department_id
func (*CreateExternalApprovalReqBuilder) ExternalApproval ¶
func (builder *CreateExternalApprovalReqBuilder) ExternalApproval(externalApproval *ExternalApproval) *CreateExternalApprovalReqBuilder
审批定义是审批的描述,包括审批名称、图标、描述等基础信息。创建好审批定义,用户就可以在审批应用的发起页中看到审批,如果用户点击发起,则会跳转到配置的发起三方系统地址去发起审批。;;另外,审批定义还配置了审批操作时的回调地址:审批人在待审批列表中进行【同意】【拒绝】操作时,审批中心会调用回调地址通知三方系统。
func (*CreateExternalApprovalReqBuilder) UserIdType ¶
func (builder *CreateExternalApprovalReqBuilder) UserIdType(userIdType string) *CreateExternalApprovalReqBuilder
此次调用中使用的用户ID的类型
示例值:
type CreateExternalApprovalResp ¶
type CreateExternalApprovalResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError Data *CreateExternalApprovalRespData `json:"data"` // 业务数据 }
func (*CreateExternalApprovalResp) Success ¶
func (resp *CreateExternalApprovalResp) Success() bool
type CreateExternalApprovalRespData ¶
type CreateExternalApprovalRespData struct {
ApprovalCode *string `json:"approval_code,omitempty"` // 审批定义code,审批生成的唯一标识,用于三方审批实例同步时使用
}
type CreateExternalInstanceReq ¶
type CreateExternalInstanceReq struct { ExternalInstance *ExternalInstance `body:""` // contains filtered or unexported fields }
type CreateExternalInstanceReqBuilder ¶
type CreateExternalInstanceReqBuilder struct {
// contains filtered or unexported fields
}
func NewCreateExternalInstanceReqBuilder ¶
func NewCreateExternalInstanceReqBuilder() *CreateExternalInstanceReqBuilder
func (*CreateExternalInstanceReqBuilder) Build ¶
func (builder *CreateExternalInstanceReqBuilder) Build() *CreateExternalInstanceReq
func (*CreateExternalInstanceReqBuilder) ExternalInstance ¶
func (builder *CreateExternalInstanceReqBuilder) ExternalInstance(externalInstance *ExternalInstance) *CreateExternalInstanceReqBuilder
审批中心不负责审批的流转,审批的流转在三方系统,三方系统在审批流转后生成的审批实例、审批任务、审批抄送数据同步到审批中心。;;用户可以在审批中心中浏览三方系统同步过来的实例、任务、抄送信息,并且可以跳转回三方系统进行更详细的查看和操作,其中实例信息在【已发起】列表,任务信息在【待审批】和【已审批】列表,抄送信息在【抄送我】列表;;:::html;<img src="//sf3-cn.feishucdn.com/obj/open-platform-opendoc/9dff4434afbeb0ef69de7f36b9a6e995_z5iwmTzEgg.png" alt="" style="zoom:17%;" />;;;<img src="//sf3-cn.feishucdn.com/obj/open-platform-opendoc/ca6e0e984a7a6d64e1b16a0bac4bf868_tfqjCiaJQM.png" alt="" style="zoom:17%;" />;;;<img src="//sf3-cn.feishucdn.com/obj/open-platform-opendoc/529377e238df78d391bbd22e962ad195_T7eefLI1GA.png" alt="" style="zoom:17%;" />;:::;;对于审批任务,三方系统也可以配置审批任务的回调接口,这样审批人可以在审批中心中直接进行审批操作,审批中心会回调三方系统,三方系统收到回调后更新任务信息,并将新的任务信息同步回审批中心,形成闭环。;;:::html;<img src="//sf3-cn.feishucdn.com/obj/open-platform-opendoc/721c35428bc1187db3318c572f9979ad_je75QpElcg.png" alt="" style="zoom:25%;" />;:::;<br>
type CreateExternalInstanceResp ¶
type CreateExternalInstanceResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError Data *CreateExternalInstanceRespData `json:"data"` // 业务数据 }
func (*CreateExternalInstanceResp) Success ¶
func (resp *CreateExternalInstanceResp) Success() bool
type CreateExternalInstanceRespData ¶
type CreateExternalInstanceRespData struct {
Data *ExternalInstance `json:"data,omitempty"` // 同步的实例数据
}
type CreateInstanceCommentReq ¶
type CreateInstanceCommentReq struct { CommentRequest *CommentRequest `body:""` // contains filtered or unexported fields }
type CreateInstanceCommentReqBuilder ¶
type CreateInstanceCommentReqBuilder struct {
// contains filtered or unexported fields
}
func NewCreateInstanceCommentReqBuilder ¶
func NewCreateInstanceCommentReqBuilder() *CreateInstanceCommentReqBuilder
func (*CreateInstanceCommentReqBuilder) Build ¶
func (builder *CreateInstanceCommentReqBuilder) Build() *CreateInstanceCommentReq
func (*CreateInstanceCommentReqBuilder) CommentRequest ¶
func (builder *CreateInstanceCommentReqBuilder) CommentRequest(commentRequest *CommentRequest) *CreateInstanceCommentReqBuilder
在某审批实例下创建、修改评论或评论回复(不包含审批同意、拒绝、转交等附加的理由或意见)。
func (*CreateInstanceCommentReqBuilder) InstanceId ¶
func (builder *CreateInstanceCommentReqBuilder) InstanceId(instanceId string) *CreateInstanceCommentReqBuilder
审批实例code(或租户自定义审批实例ID)
示例值:6A123516-FB88-470D-A428-9AF58B71B3C0
func (*CreateInstanceCommentReqBuilder) UserId ¶
func (builder *CreateInstanceCommentReqBuilder) UserId(userId string) *CreateInstanceCommentReqBuilder
用户ID
示例值:e5286g26
func (*CreateInstanceCommentReqBuilder) UserIdType ¶
func (builder *CreateInstanceCommentReqBuilder) UserIdType(userIdType string) *CreateInstanceCommentReqBuilder
用户ID类型,不填默认为open_id
示例值:user_id
type CreateInstanceCommentResp ¶
type CreateInstanceCommentResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError Data *CreateInstanceCommentRespData `json:"data"` // 业务数据 }
func (*CreateInstanceCommentResp) Success ¶
func (resp *CreateInstanceCommentResp) Success() bool
type CreateInstanceCommentRespData ¶
type CreateInstanceCommentRespData struct {
CommentId *string `json:"comment_id,omitempty"` // 保存成功的comment_id
}
type CreateInstanceReq ¶
type CreateInstanceReq struct { InstanceCreate *InstanceCreate `body:""` // contains filtered or unexported fields }
type CreateInstanceReqBuilder ¶
type CreateInstanceReqBuilder struct {
// contains filtered or unexported fields
}
func NewCreateInstanceReqBuilder ¶
func NewCreateInstanceReqBuilder() *CreateInstanceReqBuilder
func (*CreateInstanceReqBuilder) Build ¶
func (builder *CreateInstanceReqBuilder) Build() *CreateInstanceReq
func (*CreateInstanceReqBuilder) InstanceCreate ¶
func (builder *CreateInstanceReqBuilder) InstanceCreate(instanceCreate *InstanceCreate) *CreateInstanceReqBuilder
创建一个审批实例,调用方需对审批定义的表单有详细了解,将按照定义的表单结构,将表单 Value 通过接口传入
type CreateInstanceResp ¶
type CreateInstanceResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError Data *CreateInstanceRespData `json:"data"` // 业务数据 }
func (*CreateInstanceResp) Success ¶
func (resp *CreateInstanceResp) Success() bool
type CreateInstanceRespData ¶
type CreateInstanceRespData struct {
InstanceCode *string `json:"instance_code,omitempty"` // 审批实例 Code
}
type Definition ¶ added in v3.0.3
type Definition struct { ApprovalCode *string `json:"approval_code,omitempty"` // 审批定义 code 示例值:"7C468A54-8745-2245-9675-08B7C63E7A85" ApprovalName *string `json:"approval_name,omitempty"` // 审批名称,根据传入的local字段返回对应的国际化文案,未设置该国际化文案时返回默认语言对应文案 GroupName *string `json:"group_name,omitempty"` // 分组名称,值的格式是 i18n key,文案放在 i18n_resource Description *string `json:"description,omitempty"` // 审批定义的说明,值的格式是 i18n key,文案放在 i18n_resource; 审批发起页 审批定义的说明内容来自该字段 IconUrl *string `json:"icon_url,omitempty"` // 审批图标链接 GroupCode *string `json:"group_code,omitempty"` // 审批定义所属审批分组 IsExternal *bool `json:"is_external,omitempty"` // 是否为第三方审批 CreateLinkPc *string `json:"create_link_pc,omitempty"` // PC端发起页链接 CreateLinkMobile *string `json:"create_link_mobile,omitempty"` // 移动端发起页链接 }
type DefinitionBuilder ¶ added in v3.0.3
type DefinitionBuilder struct {
// contains filtered or unexported fields
}
func NewDefinitionBuilder ¶ added in v3.0.3
func NewDefinitionBuilder() *DefinitionBuilder
func (*DefinitionBuilder) ApprovalCode ¶ added in v3.0.3
func (builder *DefinitionBuilder) ApprovalCode(approvalCode string) *DefinitionBuilder
审批定义 code 示例值:"7C468A54-8745-2245-9675-08B7C63E7A85"
示例值:7C468A54-8745-2245-9675-08B7C63E7A85
func (*DefinitionBuilder) ApprovalName ¶ added in v3.0.3
func (builder *DefinitionBuilder) ApprovalName(approvalName string) *DefinitionBuilder
审批名称,根据传入的local字段返回对应的国际化文案,未设置该国际化文案时返回默认语言对应文案
示例值:请假
func (*DefinitionBuilder) Build ¶ added in v3.0.3
func (builder *DefinitionBuilder) Build() *Definition
func (*DefinitionBuilder) CreateLinkMobile ¶ added in v3.0.22
func (builder *DefinitionBuilder) CreateLinkMobile(createLinkMobile string) *DefinitionBuilder
移动端发起页链接
func (*DefinitionBuilder) CreateLinkPc ¶ added in v3.0.22
func (builder *DefinitionBuilder) CreateLinkPc(createLinkPc string) *DefinitionBuilder
PC端发起页链接
func (*DefinitionBuilder) Description ¶ added in v3.0.22
func (builder *DefinitionBuilder) Description(description string) *DefinitionBuilder
审批定义的说明,值的格式是 i18n key,文案放在 i18n_resource; 审批发起页 审批定义的说明内容来自该字段
示例值:审批定义说明
func (*DefinitionBuilder) GroupCode ¶ added in v3.0.22
func (builder *DefinitionBuilder) GroupCode(groupCode string) *DefinitionBuilder
审批定义所属审批分组
示例值:work_group
func (*DefinitionBuilder) GroupName ¶ added in v3.0.22
func (builder *DefinitionBuilder) GroupName(groupName string) *DefinitionBuilder
分组名称,值的格式是 i18n key,文案放在 i18n_resource
示例值:分组名称
func (*DefinitionBuilder) IconUrl ¶ added in v3.0.22
func (builder *DefinitionBuilder) IconUrl(iconUrl string) *DefinitionBuilder
审批图标链接
示例值:https://lf3-ea.bytetos.com/obj/goofy/ee/approval/approval-admin/image/iconLib/v3/person.png
func (*DefinitionBuilder) IsExternal ¶ added in v3.0.22
func (builder *DefinitionBuilder) IsExternal(isExternal bool) *DefinitionBuilder
是否为第三方审批
示例值:false
type DeleteInstanceCommentReq ¶
type DeleteInstanceCommentReq struct {
// contains filtered or unexported fields
}
type DeleteInstanceCommentReqBuilder ¶
type DeleteInstanceCommentReqBuilder struct {
// contains filtered or unexported fields
}
func NewDeleteInstanceCommentReqBuilder ¶
func NewDeleteInstanceCommentReqBuilder() *DeleteInstanceCommentReqBuilder
func (*DeleteInstanceCommentReqBuilder) Build ¶
func (builder *DeleteInstanceCommentReqBuilder) Build() *DeleteInstanceCommentReq
func (*DeleteInstanceCommentReqBuilder) CommentId ¶
func (builder *DeleteInstanceCommentReqBuilder) CommentId(commentId string) *DeleteInstanceCommentReqBuilder
评论ID
示例值:7081516627711606803
func (*DeleteInstanceCommentReqBuilder) InstanceId ¶
func (builder *DeleteInstanceCommentReqBuilder) InstanceId(instanceId string) *DeleteInstanceCommentReqBuilder
审批实例code(或者租户自定义审批实例ID)
示例值:6A123516-FB88-470D-A428-9AF58B71B3C0
func (*DeleteInstanceCommentReqBuilder) UserId ¶
func (builder *DeleteInstanceCommentReqBuilder) UserId(userId string) *DeleteInstanceCommentReqBuilder
根据user_id_type填写用户ID
示例值:ou_806a18fb5bdf525e38ba219733bdbd73
func (*DeleteInstanceCommentReqBuilder) UserIdType ¶
func (builder *DeleteInstanceCommentReqBuilder) UserIdType(userIdType string) *DeleteInstanceCommentReqBuilder
用户ID类型,不填默认为open_id
示例值:user_id
type DeleteInstanceCommentResp ¶
type DeleteInstanceCommentResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError Data *DeleteInstanceCommentRespData `json:"data"` // 业务数据 }
func (*DeleteInstanceCommentResp) Success ¶
func (resp *DeleteInstanceCommentResp) Success() bool
type DeleteInstanceCommentRespData ¶
type DeleteInstanceCommentRespData struct {
CommentId *string `json:"comment_id,omitempty"` // 删除的评论ID
}
type DepartmentId ¶ added in v3.0.29
type DepartmentIdBuilder ¶ added in v3.0.29
type DepartmentIdBuilder struct {
// contains filtered or unexported fields
}
func NewDepartmentIdBuilder ¶ added in v3.0.29
func NewDepartmentIdBuilder() *DepartmentIdBuilder
func (*DepartmentIdBuilder) Build ¶ added in v3.0.29
func (builder *DepartmentIdBuilder) Build() *DepartmentId
func (*DepartmentIdBuilder) DepartmentId ¶ added in v3.0.29
func (builder *DepartmentIdBuilder) DepartmentId(departmentId string) *DepartmentIdBuilder
示例值:
func (*DepartmentIdBuilder) OpenDepartmentId ¶ added in v3.0.29
func (builder *DepartmentIdBuilder) OpenDepartmentId(openDepartmentId string) *DepartmentIdBuilder
示例值:
type ExteranlInstanceCheck ¶
type ExteranlInstanceCheck struct { InstanceId *string `json:"instance_id,omitempty"` // 审批实例 id UpdateTime *string `json:"update_time,omitempty"` // 审批实例最近更新时间 Tasks []*ExternalInstanceTask `json:"tasks,omitempty"` // 任务信息 }
type ExteranlInstanceCheckBuilder ¶
type ExteranlInstanceCheckBuilder struct {
// contains filtered or unexported fields
}
func NewExteranlInstanceCheckBuilder ¶
func NewExteranlInstanceCheckBuilder() *ExteranlInstanceCheckBuilder
func (*ExteranlInstanceCheckBuilder) Build ¶
func (builder *ExteranlInstanceCheckBuilder) Build() *ExteranlInstanceCheck
func (*ExteranlInstanceCheckBuilder) InstanceId ¶
func (builder *ExteranlInstanceCheckBuilder) InstanceId(instanceId string) *ExteranlInstanceCheckBuilder
审批实例 id
示例值:1234234234242423
func (*ExteranlInstanceCheckBuilder) Tasks ¶
func (builder *ExteranlInstanceCheckBuilder) Tasks(tasks []*ExternalInstanceTask) *ExteranlInstanceCheckBuilder
任务信息
示例值:
func (*ExteranlInstanceCheckBuilder) UpdateTime ¶
func (builder *ExteranlInstanceCheckBuilder) UpdateTime(updateTime string) *ExteranlInstanceCheckBuilder
审批实例最近更新时间
示例值:1591603040000
type ExteranlInstanceCheckResponse ¶
type ExteranlInstanceCheckResponse struct { InstanceId *string `json:"instance_id,omitempty"` // 审批实例 id UpdateTime *string `json:"update_time,omitempty"` // 任务最近更新时间 Tasks []*ExternalInstanceTask `json:"tasks,omitempty"` // 任务信息 }
type ExteranlInstanceCheckResponseBuilder ¶
type ExteranlInstanceCheckResponseBuilder struct {
// contains filtered or unexported fields
}
func NewExteranlInstanceCheckResponseBuilder ¶
func NewExteranlInstanceCheckResponseBuilder() *ExteranlInstanceCheckResponseBuilder
func (*ExteranlInstanceCheckResponseBuilder) Build ¶
func (builder *ExteranlInstanceCheckResponseBuilder) Build() *ExteranlInstanceCheckResponse
func (*ExteranlInstanceCheckResponseBuilder) InstanceId ¶
func (builder *ExteranlInstanceCheckResponseBuilder) InstanceId(instanceId string) *ExteranlInstanceCheckResponseBuilder
审批实例 id
示例值:1234234234242423
func (*ExteranlInstanceCheckResponseBuilder) Tasks ¶
func (builder *ExteranlInstanceCheckResponseBuilder) Tasks(tasks []*ExternalInstanceTask) *ExteranlInstanceCheckResponseBuilder
任务信息
示例值:
func (*ExteranlInstanceCheckResponseBuilder) UpdateTime ¶
func (builder *ExteranlInstanceCheckResponseBuilder) UpdateTime(updateTime string) *ExteranlInstanceCheckResponseBuilder
任务最近更新时间
示例值:1591603040000
type ExternalApproval ¶
type ExternalApproval struct { ApprovalName *string `json:"approval_name,omitempty"` // 审批定义名称,创建审批定义返回的值,表示该实例属于哪个流程;该字段会影响到列表中该实例的标题,标题取自对应定义的 name 字段。 ApprovalCode *string `json:"approval_code,omitempty"` // 审批定义 code,用户自定义,定义的唯一标识,如果不存在该 code,则创建,否则更新 GroupCode *string `json:"group_code,omitempty"` // 审批定义所属审批分组,用户自定义; 如果group_code当前不存在,则会新建审批分组; 如果group_code已经存在,则会使用group_name更新审批分组名称 GroupName *string `json:"group_name,omitempty"` // 分组名称,值的格式是 i18n key,文案放在 i18n_resource; 如果是 group_code 当前不存在,则该 group_name 必填,否则,如果填写了则会更新分组名称,不填则不更新分组名称; 审批发起页 审批定义的分组名称来自该字段 Description *string `json:"description,omitempty"` // 审批定义的说明,值的格式是 i18n key,文案放在 i18n_resource; 审批发起页 审批定义的说明内容来自该字段 External *ApprovalCreateExternal `json:"external,omitempty"` // 三方审批相关 Viewers []*ApprovalCreateViewers `json:"viewers,omitempty"` // 可见人列表,可通知配置多个可见人,只有在配置的范围内用户可以在审批发起也看到该审批,默认不传,则是任何人不可见 I18nResources []*I18nResource `json:"i18n_resources,omitempty"` // 国际化文案 Managers []string `json:"managers,omitempty"` // 根据user_id_type填写流程管理员id }
type ExternalApprovalBuilder ¶
type ExternalApprovalBuilder struct {
// contains filtered or unexported fields
}
func NewExternalApprovalBuilder ¶
func NewExternalApprovalBuilder() *ExternalApprovalBuilder
func (*ExternalApprovalBuilder) ApprovalCode ¶
func (builder *ExternalApprovalBuilder) ApprovalCode(approvalCode string) *ExternalApprovalBuilder
审批定义 code,用户自定义,定义的唯一标识,如果不存在该 code,则创建,否则更新
示例值:permission_test
func (*ExternalApprovalBuilder) ApprovalName ¶
func (builder *ExternalApprovalBuilder) ApprovalName(approvalName string) *ExternalApprovalBuilder
审批定义名称,创建审批定义返回的值,表示该实例属于哪个流程;该字段会影响到列表中该实例的标题,标题取自对应定义的 name 字段。
示例值:@i18n@1
func (*ExternalApprovalBuilder) Build ¶
func (builder *ExternalApprovalBuilder) Build() *ExternalApproval
func (*ExternalApprovalBuilder) Description ¶
func (builder *ExternalApprovalBuilder) Description(description string) *ExternalApprovalBuilder
审批定义的说明,值的格式是 i18n key,文案放在 i18n_resource; 审批发起页 审批定义的说明内容来自该字段
示例值:@i18n@2
func (*ExternalApprovalBuilder) External ¶
func (builder *ExternalApprovalBuilder) External(external *ApprovalCreateExternal) *ExternalApprovalBuilder
三方审批相关
示例值:
func (*ExternalApprovalBuilder) GroupCode ¶
func (builder *ExternalApprovalBuilder) GroupCode(groupCode string) *ExternalApprovalBuilder
审批定义所属审批分组,用户自定义; 如果group_code当前不存在,则会新建审批分组; 如果group_code已经存在,则会使用group_name更新审批分组名称
示例值:work_group
func (*ExternalApprovalBuilder) GroupName ¶
func (builder *ExternalApprovalBuilder) GroupName(groupName string) *ExternalApprovalBuilder
分组名称,值的格式是 i18n key,文案放在 i18n_resource; 如果是 group_code 当前不存在,则该 group_name 必填,否则,如果填写了则会更新分组名称,不填则不更新分组名称; 审批发起页 审批定义的分组名称来自该字段
示例值:@i18n@2
func (*ExternalApprovalBuilder) I18nResources ¶
func (builder *ExternalApprovalBuilder) I18nResources(i18nResources []*I18nResource) *ExternalApprovalBuilder
国际化文案
示例值:
func (*ExternalApprovalBuilder) Managers ¶ added in v3.0.1
func (builder *ExternalApprovalBuilder) Managers(managers []string) *ExternalApprovalBuilder
根据user_id_type填写流程管理员id
示例值:19a294c2
func (*ExternalApprovalBuilder) Viewers ¶
func (builder *ExternalApprovalBuilder) Viewers(viewers []*ApprovalCreateViewers) *ExternalApprovalBuilder
可见人列表,可通知配置多个可见人,只有在配置的范围内用户可以在审批发起也看到该审批,默认不传,则是任何人不可见
示例值:
type ExternalInstance ¶
type ExternalInstance struct { ApprovalCode *string `json:"approval_code,omitempty"` // 审批定义 code, 创建审批定义返回的值,表示该实例属于哪个流程;该字段会影响到列表中该实例的标题,标题取自对应定义的 name 字段 Status *string `json:"status,omitempty"` // 审批实例状态 Extra *string `json:"extra,omitempty"` // 审批实例扩展 JSON InstanceId *string `json:"instance_id,omitempty"` // 审批实例唯一标识,用户自定义,需确保证租户下唯一 Links *ExternalInstanceLink `json:"links,omitempty"` // 审批实例链接集合 ,用于【已发起】列表的跳转,跳转回三方系统; pc_link 和 mobile_link 必须填一个,填写的是哪一端的链接,即会跳转到该链接,不受平台影响 Title *string `json:"title,omitempty"` // 审批展示名称,如果填写了该字段,则审批列表中的审批名称使用该字段,如果不填该字段,则审批名称使用审批定义的名称 Form []*ExternalInstanceForm `json:"form,omitempty"` // 用户提交审批时填写的表单数据,用于所有审批列表中展示。可传多个值,但审批中心pc展示前2个,移动端展示前3个,长度不超过2048字符 UserId *string `json:"user_id,omitempty"` // 审批发起人 user_id,发起人可在【已发起】列表中看到所有已发起的审批; 在【待审批】,【已审批】【抄送我】列表中,该字段展示审批是谁发起的。审批发起人 open id,和 user id 二者至少填一个。 UserName *string `json:"user_name,omitempty"` // 审批发起人 用户名,如果发起人不是真实的用户(例如是某个部门),没有 user_id,则可以使用该字段传名称 OpenId *string `json:"open_id,omitempty"` // 审批发起人 open id,和 user id 二者至少填一个 DepartmentId *string `json:"department_id,omitempty"` // 发起人部门,用于列表中展示发起人所属部门。不传则不展示。如果用户没加入任何部门,传 "",将展示租户名称传 department_name 展示部门名称 DepartmentName *string `json:"department_name,omitempty"` // 审批发起人 部门,如果发起人不是真实的用户(例如是某个部门),没有 department_id,则可以使用该字段传名称 StartTime *string `json:"start_time,omitempty"` // 审批发起时间,Unix毫秒时间戳 EndTime *string `json:"end_time,omitempty"` // 审批实例结束时间:未结束的审批为 0,Unix毫秒时间戳 UpdateTime *string `json:"update_time,omitempty"` // 审批实例最近更新时间;用于推送数据版本控制如果 update_mode 值为 UPDATE,则只有传过来的 update_time 有变化时(变大),才会更新审批中心中的审批实例信息。使用该字段主要用来避免并发时老的数据更新了新的数据 DisplayMethod *string `json:"display_method,omitempty"` // 列表页打开审批实例的方式 UpdateMode *string `json:"update_mode,omitempty"` // 更新方式, 当 update_mode=REPLACE时,每次都以当前推送的数据为最终数据,会删掉审批中心中多余的任务、抄送数据(不在这次推送的数据中); 当 update_mode=UPDATE时,则不会删除审批中心的数据,而只是进行新增和更新实例、任务数据 TaskList []*ExternalInstanceTaskNode `json:"task_list,omitempty"` // 任务列表 CcList []*CcNode `json:"cc_list,omitempty"` // 抄送列表 I18nResources []*I18nResource `json:"i18n_resources,omitempty"` // 国际化文案 TrusteeshipUrlToken *string `json:"trusteeship_url_token,omitempty"` // 单据托管认证token,托管回调会附带此token,帮助业务方认证 TrusteeshipUserIdType *string `json:"trusteeship_user_id_type,omitempty"` // 用户的类型,会影响请求参数用户标识域的选择,包括加签操作回传的目标用户, 目前仅支持 "user_id" TrusteeshipUrls *TrusteeshipUrls `json:"trusteeship_urls,omitempty"` // 单据托管回调接入方的接口的URL地址 TrusteeshipCacheConfig *TrusteeshipInstanceCacheConfig `json:"trusteeship_cache_config,omitempty"` // 托管预缓存策略 }
type ExternalInstanceBuilder ¶
type ExternalInstanceBuilder struct {
// contains filtered or unexported fields
}
func NewExternalInstanceBuilder ¶
func NewExternalInstanceBuilder() *ExternalInstanceBuilder
func (*ExternalInstanceBuilder) ApprovalCode ¶
func (builder *ExternalInstanceBuilder) ApprovalCode(approvalCode string) *ExternalInstanceBuilder
审批定义 code, 创建审批定义返回的值,表示该实例属于哪个流程;该字段会影响到列表中该实例的标题,标题取自对应定义的 name 字段
示例值:81D31358-93AF-92D6-7425-01A5D67C4E71
func (*ExternalInstanceBuilder) Build ¶
func (builder *ExternalInstanceBuilder) Build() *ExternalInstance
func (*ExternalInstanceBuilder) CcList ¶
func (builder *ExternalInstanceBuilder) CcList(ccList []*CcNode) *ExternalInstanceBuilder
抄送列表
示例值:
func (*ExternalInstanceBuilder) DepartmentId ¶
func (builder *ExternalInstanceBuilder) DepartmentId(departmentId string) *ExternalInstanceBuilder
发起人部门,用于列表中展示发起人所属部门。不传则不展示。如果用户没加入任何部门,传 "",将展示租户名称传 department_name 展示部门名称
示例值:od-8ec33278bc2
func (*ExternalInstanceBuilder) DepartmentName ¶
func (builder *ExternalInstanceBuilder) DepartmentName(departmentName string) *ExternalInstanceBuilder
审批发起人 部门,如果发起人不是真实的用户(例如是某个部门),没有 department_id,则可以使用该字段传名称
示例值:@i18n@10
func (*ExternalInstanceBuilder) DisplayMethod ¶
func (builder *ExternalInstanceBuilder) DisplayMethod(displayMethod string) *ExternalInstanceBuilder
列表页打开审批实例的方式
示例值:BROWSER
func (*ExternalInstanceBuilder) EndTime ¶
func (builder *ExternalInstanceBuilder) EndTime(endTime string) *ExternalInstanceBuilder
审批实例结束时间:未结束的审批为 0,Unix毫秒时间戳
示例值:1556468012678
func (*ExternalInstanceBuilder) Extra ¶
func (builder *ExternalInstanceBuilder) Extra(extra string) *ExternalInstanceBuilder
审批实例扩展 JSON
示例值:{\"xxx\":\"xxx\"}
func (*ExternalInstanceBuilder) Form ¶
func (builder *ExternalInstanceBuilder) Form(form []*ExternalInstanceForm) *ExternalInstanceBuilder
用户提交审批时填写的表单数据,用于所有审批列表中展示。可传多个值,但审批中心pc展示前2个,移动端展示前3个,长度不超过2048字符
示例值:[{ "name": "@i18n@2", "value": "@i18n@3" }]
func (*ExternalInstanceBuilder) I18nResources ¶
func (builder *ExternalInstanceBuilder) I18nResources(i18nResources []*I18nResource) *ExternalInstanceBuilder
国际化文案
示例值:
func (*ExternalInstanceBuilder) InstanceId ¶
func (builder *ExternalInstanceBuilder) InstanceId(instanceId string) *ExternalInstanceBuilder
审批实例唯一标识,用户自定义,需确保证租户下唯一
示例值:24492654
func (*ExternalInstanceBuilder) Links ¶
func (builder *ExternalInstanceBuilder) Links(links *ExternalInstanceLink) *ExternalInstanceBuilder
审批实例链接集合 ,用于【已发起】列表的跳转,跳转回三方系统; pc_link 和 mobile_link 必须填一个,填写的是哪一端的链接,即会跳转到该链接,不受平台影响
示例值:
func (*ExternalInstanceBuilder) OpenId ¶
func (builder *ExternalInstanceBuilder) OpenId(openId string) *ExternalInstanceBuilder
审批发起人 open id,和 user id 二者至少填一个
示例值:ou_be73cbc0ee35eb6ca54e9e7cc14998c1
func (*ExternalInstanceBuilder) StartTime ¶
func (builder *ExternalInstanceBuilder) StartTime(startTime string) *ExternalInstanceBuilder
审批发起时间,Unix毫秒时间戳
示例值:1556468012678
func (*ExternalInstanceBuilder) Status ¶
func (builder *ExternalInstanceBuilder) Status(status string) *ExternalInstanceBuilder
审批实例状态
示例值:PENDING
func (*ExternalInstanceBuilder) TaskList ¶
func (builder *ExternalInstanceBuilder) TaskList(taskList []*ExternalInstanceTaskNode) *ExternalInstanceBuilder
任务列表
示例值:
func (*ExternalInstanceBuilder) Title ¶
func (builder *ExternalInstanceBuilder) Title(title string) *ExternalInstanceBuilder
审批展示名称,如果填写了该字段,则审批列表中的审批名称使用该字段,如果不填该字段,则审批名称使用审批定义的名称
示例值:@i18n@1
func (*ExternalInstanceBuilder) TrusteeshipCacheConfig ¶ added in v3.0.21
func (builder *ExternalInstanceBuilder) TrusteeshipCacheConfig(trusteeshipCacheConfig *TrusteeshipInstanceCacheConfig) *ExternalInstanceBuilder
托管预缓存策略
示例值:
func (*ExternalInstanceBuilder) TrusteeshipUrlToken ¶ added in v3.0.1
func (builder *ExternalInstanceBuilder) TrusteeshipUrlToken(trusteeshipUrlToken string) *ExternalInstanceBuilder
单据托管认证token,托管回调会附带此token,帮助业务方认证
示例值:788981c886b1c28ac29d1e68efd60683d6d90dfce80938ee9453e2a5f3e9e306
func (*ExternalInstanceBuilder) TrusteeshipUrls ¶ added in v3.0.1
func (builder *ExternalInstanceBuilder) TrusteeshipUrls(trusteeshipUrls *TrusteeshipUrls) *ExternalInstanceBuilder
单据托管回调接入方的接口的URL地址
示例值:
func (*ExternalInstanceBuilder) TrusteeshipUserIdType ¶ added in v3.0.1
func (builder *ExternalInstanceBuilder) TrusteeshipUserIdType(trusteeshipUserIdType string) *ExternalInstanceBuilder
用户的类型,会影响请求参数用户标识域的选择,包括加签操作回传的目标用户, 目前仅支持 "user_id"
示例值:user_id
func (*ExternalInstanceBuilder) UpdateMode ¶
func (builder *ExternalInstanceBuilder) UpdateMode(updateMode string) *ExternalInstanceBuilder
更新方式, 当 update_mode=REPLACE时,每次都以当前推送的数据为最终数据,会删掉审批中心中多余的任务、抄送数据(不在这次推送的数据中); 当 update_mode=UPDATE时,则不会删除审批中心的数据,而只是进行新增和更新实例、任务数据
示例值:UPDATE
func (*ExternalInstanceBuilder) UpdateTime ¶
func (builder *ExternalInstanceBuilder) UpdateTime(updateTime string) *ExternalInstanceBuilder
审批实例最近更新时间;用于推送数据版本控制如果 update_mode 值为 UPDATE,则只有传过来的 update_time 有变化时(变大),才会更新审批中心中的审批实例信息。使用该字段主要用来避免并发时老的数据更新了新的数据
示例值:1556468012678
func (*ExternalInstanceBuilder) UserId ¶
func (builder *ExternalInstanceBuilder) UserId(userId string) *ExternalInstanceBuilder
审批发起人 user_id,发起人可在【已发起】列表中看到所有已发起的审批; 在【待审批】,【已审批】【抄送我】列表中,该字段展示审批是谁发起的。审批发起人 open id,和 user id 二者至少填一个。
示例值:a987sf9s
func (*ExternalInstanceBuilder) UserName ¶
func (builder *ExternalInstanceBuilder) UserName(userName string) *ExternalInstanceBuilder
审批发起人 用户名,如果发起人不是真实的用户(例如是某个部门),没有 user_id,则可以使用该字段传名称
示例值:@i18n@9
type ExternalInstanceForm ¶
type ExternalInstanceFormBuilder ¶
type ExternalInstanceFormBuilder struct {
// contains filtered or unexported fields
}
func NewExternalInstanceFormBuilder ¶
func NewExternalInstanceFormBuilder() *ExternalInstanceFormBuilder
func (*ExternalInstanceFormBuilder) Build ¶
func (builder *ExternalInstanceFormBuilder) Build() *ExternalInstanceForm
func (*ExternalInstanceFormBuilder) Name ¶
func (builder *ExternalInstanceFormBuilder) Name(name string) *ExternalInstanceFormBuilder
表单字段名称
示例值:@i18n@2
func (*ExternalInstanceFormBuilder) Value ¶
func (builder *ExternalInstanceFormBuilder) Value(value string) *ExternalInstanceFormBuilder
表单值
示例值:@i18n@3
type ExternalInstanceLink ¶
type ExternalInstanceLinkBuilder ¶
type ExternalInstanceLinkBuilder struct {
// contains filtered or unexported fields
}
func NewExternalInstanceLinkBuilder ¶
func NewExternalInstanceLinkBuilder() *ExternalInstanceLinkBuilder
func (*ExternalInstanceLinkBuilder) Build ¶
func (builder *ExternalInstanceLinkBuilder) Build() *ExternalInstanceLink
func (*ExternalInstanceLinkBuilder) MobileLink ¶
func (builder *ExternalInstanceLinkBuilder) MobileLink(mobileLink string) *ExternalInstanceLinkBuilder
移动端 跳转链接,当用户使用飞书 移动端时,使用该字段进行跳转
func (*ExternalInstanceLinkBuilder) PcLink ¶
func (builder *ExternalInstanceLinkBuilder) PcLink(pcLink string) *ExternalInstanceLinkBuilder
pc 端的跳转链接,当用户使用飞书 pc 端时,使用该字段进行跳转
type ExternalInstanceTask ¶
type ExternalInstanceTaskBuilder ¶
type ExternalInstanceTaskBuilder struct {
// contains filtered or unexported fields
}
func NewExternalInstanceTaskBuilder ¶
func NewExternalInstanceTaskBuilder() *ExternalInstanceTaskBuilder
func (*ExternalInstanceTaskBuilder) Build ¶
func (builder *ExternalInstanceTaskBuilder) Build() *ExternalInstanceTask
func (*ExternalInstanceTaskBuilder) TaskId ¶
func (builder *ExternalInstanceTaskBuilder) TaskId(taskId string) *ExternalInstanceTaskBuilder
任务 id
示例值:112253
func (*ExternalInstanceTaskBuilder) UpdateTime ¶
func (builder *ExternalInstanceTaskBuilder) UpdateTime(updateTime string) *ExternalInstanceTaskBuilder
任务最近更新时间
示例值:1591603040000
type ExternalInstanceTaskNode ¶
type ExternalInstanceTaskNode struct { TaskId *string `json:"task_id,omitempty"` // 审批实例内的唯一标识,用于更新审批任务时定位数据 UserId *string `json:"user_id,omitempty"` // 审批人 user_id ,和 open_id 二者至少填一个。该任务会出现在审批人的【待审批】或【已审批】列表中 OpenId *string `json:"open_id,omitempty"` // 审批人 open_id,和 user_id 二者至少填一个 Title *string `json:"title,omitempty"` // 审批任务名称 Links *ExternalInstanceLink `json:"links,omitempty"` // 【待审批】或【已审批】中使用的跳转链接,用于跳转回三方系统pc_link 和 mobile_link 必须填一个,填写的是哪一端的链接,即会跳转到该链接,不受平台影响 Status *string `json:"status,omitempty"` // 任务状态 Extra *string `json:"extra,omitempty"` // 扩展 json,任务结束原因需传complete_reason字段。枚举值与对应说明:; - approved:同意; - rejected:拒绝; - node_auto_reject:(因逻辑判断产生的)自动拒绝; - specific_rollback:退回(包括退回到发起人、退回到中间任一审批人); - add:并加签(添加新审批人,和我一起审批); - add_pre:前加签(添加新审批人,在我之前审批); - add_post:后加签(添加新审批人,在我之后审批); - delete_assignee:减签; - forward_resign:转交(转给其他人审批); - recall:撤销(撤回单据,单据失效); - delete :删除审批单; - admin_forward:管理员在后台操作转交; - system_forward:系统自动转交; - auto_skip:自动通过; - manual_skip:手动跳过; - submit_again:重新提交任务; - restart:重新启动流程; - others:其他(作为兜底) CreateTime *string `json:"create_time,omitempty"` // 任务创建时间,Unix 毫秒时间戳 EndTime *string `json:"end_time,omitempty"` // 任务完成时间:未结束的审批为 0,Unix 毫秒时间戳 UpdateTime *string `json:"update_time,omitempty"` // task最近更新时间,用于推送数据版本控制; 更新策略同 instance 中的 update_time ActionContext *string `json:"action_context,omitempty"` // 操作上下文,当用户操作时,回调请求中带上该参数,用于传递该任务的上下文数据 ActionConfigs []*ActionConfig `json:"action_configs,omitempty"` // 任务级别操作配置,快捷审批目前支持移动端操作 DisplayMethod *string `json:"display_method,omitempty"` // 列表页打开审批任务的方式 ExcludeStatistics *bool `json:"exclude_statistics,omitempty"` // 三方任务支持不纳入效率统计。;false:纳入效率统计。;true:不纳入效率统计 NodeId *string `json:"node_id,omitempty"` // 节点id:必须同时满足;- 一个流程内,每个节点id唯一。如一个流程下「直属上级」、「隔级上级」等每个节点的Node_id均不一样;- 同一个流程定义内,不同审批实例中的相同节点,Node_id要保持不变。例如张三和李四分别发起了请假申请,这2个审批实例中的「直属上级」节点的node_id应该保持一致 NodeName *string `json:"node_name,omitempty"` // 节点名称,如「财务审批」「法务审批」,支持中英日三种语言。示例:i18n@name。需要在i18n_resources中传该名称对应的国际化文案 }
type ExternalInstanceTaskNodeBuilder ¶
type ExternalInstanceTaskNodeBuilder struct {
// contains filtered or unexported fields
}
func NewExternalInstanceTaskNodeBuilder ¶
func NewExternalInstanceTaskNodeBuilder() *ExternalInstanceTaskNodeBuilder
func (*ExternalInstanceTaskNodeBuilder) ActionConfigs ¶
func (builder *ExternalInstanceTaskNodeBuilder) ActionConfigs(actionConfigs []*ActionConfig) *ExternalInstanceTaskNodeBuilder
任务级别操作配置,快捷审批目前支持移动端操作
示例值:
func (*ExternalInstanceTaskNodeBuilder) ActionContext ¶
func (builder *ExternalInstanceTaskNodeBuilder) ActionContext(actionContext string) *ExternalInstanceTaskNodeBuilder
操作上下文,当用户操作时,回调请求中带上该参数,用于传递该任务的上下文数据
示例值:123456
func (*ExternalInstanceTaskNodeBuilder) Build ¶
func (builder *ExternalInstanceTaskNodeBuilder) Build() *ExternalInstanceTaskNode
func (*ExternalInstanceTaskNodeBuilder) CreateTime ¶
func (builder *ExternalInstanceTaskNodeBuilder) CreateTime(createTime string) *ExternalInstanceTaskNodeBuilder
任务创建时间,Unix 毫秒时间戳
示例值:1556468012678
func (*ExternalInstanceTaskNodeBuilder) DisplayMethod ¶
func (builder *ExternalInstanceTaskNodeBuilder) DisplayMethod(displayMethod string) *ExternalInstanceTaskNodeBuilder
列表页打开审批任务的方式
示例值:BROWSER
func (*ExternalInstanceTaskNodeBuilder) EndTime ¶
func (builder *ExternalInstanceTaskNodeBuilder) EndTime(endTime string) *ExternalInstanceTaskNodeBuilder
任务完成时间:未结束的审批为 0,Unix 毫秒时间戳
示例值:1556468012678
func (*ExternalInstanceTaskNodeBuilder) ExcludeStatistics ¶ added in v3.0.2
func (builder *ExternalInstanceTaskNodeBuilder) ExcludeStatistics(excludeStatistics bool) *ExternalInstanceTaskNodeBuilder
三方任务支持不纳入效率统计。;false:纳入效率统计。;true:不纳入效率统计
示例值:false
func (*ExternalInstanceTaskNodeBuilder) Extra ¶
func (builder *ExternalInstanceTaskNodeBuilder) Extra(extra string) *ExternalInstanceTaskNodeBuilder
扩展 json,任务结束原因需传complete_reason字段。枚举值与对应说明:; - approved:同意; - rejected:拒绝; - node_auto_reject:(因逻辑判断产生的)自动拒绝; - specific_rollback:退回(包括退回到发起人、退回到中间任一审批人); - add:并加签(添加新审批人,和我一起审批); - add_pre:前加签(添加新审批人,在我之前审批); - add_post:后加签(添加新审批人,在我之后审批); - delete_assignee:减签; - forward_resign:转交(转给其他人审批); - recall:撤销(撤回单据,单据失效); - delete :删除审批单; - admin_forward:管理员在后台操作转交; - system_forward:系统自动转交; - auto_skip:自动通过; - manual_skip:手动跳过; - submit_again:重新提交任务; - restart:重新启动流程; - others:其他(作为兜底)
示例值:{\"xxx\":\"xxx\",\"complete_reason\":\"approved\"}
func (*ExternalInstanceTaskNodeBuilder) Links ¶
func (builder *ExternalInstanceTaskNodeBuilder) Links(links *ExternalInstanceLink) *ExternalInstanceTaskNodeBuilder
【待审批】或【已审批】中使用的跳转链接,用于跳转回三方系统pc_link 和 mobile_link 必须填一个,填写的是哪一端的链接,即会跳转到该链接,不受平台影响
示例值:
func (*ExternalInstanceTaskNodeBuilder) NodeId ¶ added in v3.0.3
func (builder *ExternalInstanceTaskNodeBuilder) NodeId(nodeId string) *ExternalInstanceTaskNodeBuilder
节点id:必须同时满足;- 一个流程内,每个节点id唯一。如一个流程下「直属上级」、「隔级上级」等每个节点的Node_id均不一样;- 同一个流程定义内,不同审批实例中的相同节点,Node_id要保持不变。例如张三和李四分别发起了请假申请,这2个审批实例中的「直属上级」节点的node_id应该保持一致
示例值:node
func (*ExternalInstanceTaskNodeBuilder) NodeName ¶ added in v3.0.3
func (builder *ExternalInstanceTaskNodeBuilder) NodeName(nodeName string) *ExternalInstanceTaskNodeBuilder
节点名称,如「财务审批」「法务审批」,支持中英日三种语言。示例:i18n@name。需要在i18n_resources中传该名称对应的国际化文案
示例值:i18n@name
func (*ExternalInstanceTaskNodeBuilder) OpenId ¶
func (builder *ExternalInstanceTaskNodeBuilder) OpenId(openId string) *ExternalInstanceTaskNodeBuilder
审批人 open_id,和 user_id 二者至少填一个
示例值:ou_be73cbc0ee35eb6ca54e9e7cc14998c1
func (*ExternalInstanceTaskNodeBuilder) Status ¶
func (builder *ExternalInstanceTaskNodeBuilder) Status(status string) *ExternalInstanceTaskNodeBuilder
任务状态
示例值:PENDING
func (*ExternalInstanceTaskNodeBuilder) TaskId ¶
func (builder *ExternalInstanceTaskNodeBuilder) TaskId(taskId string) *ExternalInstanceTaskNodeBuilder
审批实例内的唯一标识,用于更新审批任务时定位数据
示例值:112534
func (*ExternalInstanceTaskNodeBuilder) Title ¶
func (builder *ExternalInstanceTaskNodeBuilder) Title(title string) *ExternalInstanceTaskNodeBuilder
审批任务名称
示例值:i18n1
func (*ExternalInstanceTaskNodeBuilder) UpdateTime ¶
func (builder *ExternalInstanceTaskNodeBuilder) UpdateTime(updateTime string) *ExternalInstanceTaskNodeBuilder
task最近更新时间,用于推送数据版本控制; 更新策略同 instance 中的 update_time
示例值:1556468012678
func (*ExternalInstanceTaskNodeBuilder) UserId ¶
func (builder *ExternalInstanceTaskNodeBuilder) UserId(userId string) *ExternalInstanceTaskNodeBuilder
审批人 user_id ,和 open_id 二者至少填一个。该任务会出现在审批人的【待审批】或【已审批】列表中
示例值:a987sf9s
type ExternalTaskItem ¶
type ExternalTaskItemBuilder ¶
type ExternalTaskItemBuilder struct {
// contains filtered or unexported fields
}
func NewExternalTaskItemBuilder ¶
func NewExternalTaskItemBuilder() *ExternalTaskItemBuilder
func (*ExternalTaskItemBuilder) Build ¶
func (builder *ExternalTaskItemBuilder) Build() *ExternalTaskItem
func (*ExternalTaskItemBuilder) Id ¶
func (builder *ExternalTaskItemBuilder) Id(id string) *ExternalTaskItemBuilder
审批任务 ID
示例值:310
func (*ExternalTaskItemBuilder) Status ¶
func (builder *ExternalTaskItemBuilder) Status(status string) *ExternalTaskItemBuilder
审批任务状态
示例值:PENDING
func (*ExternalTaskItemBuilder) UpdateTime ¶
func (builder *ExternalTaskItemBuilder) UpdateTime(updateTime string) *ExternalTaskItemBuilder
审批任务最后更新时间,单位 毫秒
示例值:1621863215000
type ExternalTaskList ¶
type ExternalTaskList struct { InstanceId *string `json:"instance_id,omitempty"` // 审批实例 ID ApprovalId *string `json:"approval_id,omitempty"` // 审批的id ApprovalCode *string `json:"approval_code,omitempty"` // 审批对应的 approval_code Status *string `json:"status,omitempty"` // 审批实例当前的状态 UpdateTime *string `json:"update_time,omitempty"` // 审批实例最后更新时间,单位 毫秒 Tasks []*ExternalTaskItem `json:"tasks,omitempty"` // 审批实例下的审批任务 }
type ExternalTaskListBuilder ¶
type ExternalTaskListBuilder struct {
// contains filtered or unexported fields
}
func NewExternalTaskListBuilder ¶
func NewExternalTaskListBuilder() *ExternalTaskListBuilder
func (*ExternalTaskListBuilder) ApprovalCode ¶
func (builder *ExternalTaskListBuilder) ApprovalCode(approvalCode string) *ExternalTaskListBuilder
审批对应的 approval_code
示例值:B7B65FFE-C2GC-452F-9F0F-9AA8352363D6
func (*ExternalTaskListBuilder) ApprovalId ¶
func (builder *ExternalTaskListBuilder) ApprovalId(approvalId string) *ExternalTaskListBuilder
审批的id
示例值:fwwweffff33111133xxx
func (*ExternalTaskListBuilder) Build ¶
func (builder *ExternalTaskListBuilder) Build() *ExternalTaskList
func (*ExternalTaskListBuilder) InstanceId ¶
func (builder *ExternalTaskListBuilder) InstanceId(instanceId string) *ExternalTaskListBuilder
审批实例 ID
示例值:29075
func (*ExternalTaskListBuilder) Status ¶
func (builder *ExternalTaskListBuilder) Status(status string) *ExternalTaskListBuilder
审批实例当前的状态
示例值:PENDING
func (*ExternalTaskListBuilder) Tasks ¶
func (builder *ExternalTaskListBuilder) Tasks(tasks []*ExternalTaskItem) *ExternalTaskListBuilder
审批实例下的审批任务
示例值:
func (*ExternalTaskListBuilder) UpdateTime ¶
func (builder *ExternalTaskListBuilder) UpdateTime(updateTime string) *ExternalTaskListBuilder
审批实例最后更新时间,单位 毫秒
示例值:1621863215000
type FieldGroup ¶
type FieldGroupBuilder ¶
type FieldGroupBuilder struct {
// contains filtered or unexported fields
}
func NewFieldGroupBuilder ¶
func NewFieldGroupBuilder() *FieldGroupBuilder
func (*FieldGroupBuilder) Build ¶
func (builder *FieldGroupBuilder) Build() *FieldGroup
func (*FieldGroupBuilder) Readable ¶
func (builder *FieldGroupBuilder) Readable(readable []string) *FieldGroupBuilder
可读权限的表单项的 id列表
示例值:9293493
func (*FieldGroupBuilder) Writable ¶
func (builder *FieldGroupBuilder) Writable(writable []string) *FieldGroupBuilder
可写权限的表单项的 id列表
示例值:9293493
type FileBuilder ¶
type FileBuilder struct {
// contains filtered or unexported fields
}
func NewFileBuilder ¶
func NewFileBuilder() *FileBuilder
func (*FileBuilder) Build ¶
func (builder *FileBuilder) Build() *File
func (*FileBuilder) FileSize ¶
func (builder *FileBuilder) FileSize(fileSize int) *FileBuilder
附件大小
示例值:186823
func (*FileBuilder) Title ¶
func (builder *FileBuilder) Title(title string) *FileBuilder
附件标题
示例值:e018906140ed9388234bd03b0.png
func (*FileBuilder) Type ¶
func (builder *FileBuilder) Type(type_ string) *FileBuilder
附件类别
示例值:image
type FileUrlBuilder ¶ added in v3.0.5
type FileUrlBuilder struct {
// contains filtered or unexported fields
}
func NewFileUrlBuilder ¶ added in v3.0.5
func NewFileUrlBuilder() *FileUrlBuilder
func (*FileUrlBuilder) Build ¶ added in v3.0.5
func (builder *FileUrlBuilder) Build() *FileUrl
func (*FileUrlBuilder) Name ¶ added in v3.0.5
func (builder *FileUrlBuilder) Name(name string) *FileUrlBuilder
不给出即使用从url从获得的,如果给出则使用用户给出的
示例值:xxxxx.png
func (*FileUrlBuilder) Url ¶ added in v3.0.5
func (builder *FileUrlBuilder) Url(url string) *FileUrlBuilder
用户上传的url
type GetApprovalReq ¶
type GetApprovalReq struct {
// contains filtered or unexported fields
}
type GetApprovalReqBuilder ¶
type GetApprovalReqBuilder struct {
// contains filtered or unexported fields
}
func NewGetApprovalReqBuilder ¶
func NewGetApprovalReqBuilder() *GetApprovalReqBuilder
func (*GetApprovalReqBuilder) ApprovalCode ¶
func (builder *GetApprovalReqBuilder) ApprovalCode(approvalCode string) *GetApprovalReqBuilder
审批定义 Code
示例值:7C468A54-8745-2245-9675-08B7C63E7A85
func (*GetApprovalReqBuilder) Build ¶
func (builder *GetApprovalReqBuilder) Build() *GetApprovalReq
func (*GetApprovalReqBuilder) Locale ¶
func (builder *GetApprovalReqBuilder) Locale(locale string) *GetApprovalReqBuilder
语言可选值
示例值:zh-CN
func (*GetApprovalReqBuilder) UserIdType ¶ added in v3.0.12
func (builder *GetApprovalReqBuilder) UserIdType(userIdType string) *GetApprovalReqBuilder
此次调用中使用的用户ID的类型
示例值:
func (*GetApprovalReqBuilder) WithAdminId ¶ added in v3.0.12
func (builder *GetApprovalReqBuilder) WithAdminId(withAdminId bool) *GetApprovalReqBuilder
可选是否返回有数据权限审批流程管理员ID列表
示例值:false
type GetApprovalResp ¶
type GetApprovalResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError Data *GetApprovalRespData `json:"data"` // 业务数据 }
func (*GetApprovalResp) Success ¶
func (resp *GetApprovalResp) Success() bool
type GetApprovalRespData ¶
type GetApprovalRespData struct { ApprovalName *string `json:"approval_name,omitempty"` // 审批名称 Status *string `json:"status,omitempty"` // 审批定义状态 Form *string `json:"form,omitempty"` // 控件信息,见下方form字段说明 NodeList []*ApprovalNodeInfo `json:"node_list,omitempty"` // 节点信息 Viewers []*ApprovalViewerInfo `json:"viewers,omitempty"` // 可见人列表 ApprovalAdminIds []string `json:"approval_admin_ids,omitempty"` // 有数据管理权限的审批流程管理员ID FormWidgetRelation *string `json:"form_widget_relation,omitempty"` // 组件之间值关联关系 }
type GetExternalApprovalReq ¶ added in v3.0.25
type GetExternalApprovalReq struct {
// contains filtered or unexported fields
}
type GetExternalApprovalReqBuilder ¶ added in v3.0.25
type GetExternalApprovalReqBuilder struct {
// contains filtered or unexported fields
}
func NewGetExternalApprovalReqBuilder ¶ added in v3.0.25
func NewGetExternalApprovalReqBuilder() *GetExternalApprovalReqBuilder
func (*GetExternalApprovalReqBuilder) ApprovalCode ¶ added in v3.0.25
func (builder *GetExternalApprovalReqBuilder) ApprovalCode(approvalCode string) *GetExternalApprovalReqBuilder
审批定义code
示例值:7C468A54-8745-2245-9675-08B7C63E7A85
func (*GetExternalApprovalReqBuilder) Build ¶ added in v3.0.25
func (builder *GetExternalApprovalReqBuilder) Build() *GetExternalApprovalReq
func (*GetExternalApprovalReqBuilder) UserIdType ¶ added in v3.0.25
func (builder *GetExternalApprovalReqBuilder) UserIdType(userIdType string) *GetExternalApprovalReqBuilder
此次调用中使用的用户ID的类型
示例值:
type GetExternalApprovalResp ¶ added in v3.0.25
type GetExternalApprovalResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError Data *GetExternalApprovalRespData `json:"data"` // 业务数据 }
func (*GetExternalApprovalResp) Success ¶ added in v3.0.25
func (resp *GetExternalApprovalResp) Success() bool
type GetExternalApprovalRespData ¶ added in v3.0.25
type GetExternalApprovalRespData struct { ApprovalName *string `json:"approval_name,omitempty"` // 审批定义名称 ApprovalCode *string `json:"approval_code,omitempty"` // 审批定义code GroupCode *string `json:"group_code,omitempty"` // 审批定义所属分组 GroupName *string `json:"group_name,omitempty"` // 分组名称 Description *string `json:"description,omitempty"` // 审批定义的说明 External *ApprovalCreateExternal `json:"external,omitempty"` // 三方审批定义相关 Viewers []*ApprovalCreateViewers `json:"viewers,omitempty"` // 可见人列表 I18nResources []*I18nResource `json:"i18n_resources,omitempty"` // 国际化文案 Managers []string `json:"managers,omitempty"` // 流程管理员 }
type GetInstanceReq ¶
type GetInstanceReq struct {
// contains filtered or unexported fields
}
type GetInstanceReqBuilder ¶
type GetInstanceReqBuilder struct {
// contains filtered or unexported fields
}
func NewGetInstanceReqBuilder ¶
func NewGetInstanceReqBuilder() *GetInstanceReqBuilder
func (*GetInstanceReqBuilder) Build ¶
func (builder *GetInstanceReqBuilder) Build() *GetInstanceReq
func (*GetInstanceReqBuilder) InstanceId ¶
func (builder *GetInstanceReqBuilder) InstanceId(instanceId string) *GetInstanceReqBuilder
审批实例 Code, 若在创建的时候传了uuid, 也可以通过传uuid获取
示例值:81D31358-93AF-92D6-7425-01A5D67C4E71
func (*GetInstanceReqBuilder) Locale ¶
func (builder *GetInstanceReqBuilder) Locale(locale string) *GetInstanceReqBuilder
语言
示例值:zh-CN
func (*GetInstanceReqBuilder) UserId ¶
func (builder *GetInstanceReqBuilder) UserId(userId string) *GetInstanceReqBuilder
发起审批用户id,仅自建应用可返回
示例值:f7cb567e
func (*GetInstanceReqBuilder) UserIdType ¶
func (builder *GetInstanceReqBuilder) UserIdType(userIdType string) *GetInstanceReqBuilder
此次调用中使用的用户ID的类型
示例值:user_id
type GetInstanceResp ¶
type GetInstanceResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError Data *GetInstanceRespData `json:"data"` // 业务数据 }
func (*GetInstanceResp) Success ¶
func (resp *GetInstanceResp) Success() bool
type GetInstanceRespData ¶
type GetInstanceRespData struct { ApprovalName *string `json:"approval_name,omitempty"` // 审批名称 StartTime *string `json:"start_time,omitempty"` // 审批创建时间 EndTime *string `json:"end_time,omitempty"` // 审批完成时间,未完成为 0 UserId *string `json:"user_id,omitempty"` // 发起审批用户 OpenId *string `json:"open_id,omitempty"` // 发起审批用户 open id SerialNumber *string `json:"serial_number,omitempty"` // 审批单编号 DepartmentId *string `json:"department_id,omitempty"` // 发起审批用户所在部门 Status *string `json:"status,omitempty"` // 审批实例状态 Uuid *string `json:"uuid,omitempty"` // 用户的唯一标识id Form *string `json:"form,omitempty"` // json字符串,控件值详情见下方 TaskList []*InstanceTask `json:"task_list,omitempty"` // 审批任务列表 CommentList []*InstanceComment `json:"comment_list,omitempty"` // 评论列表 Timeline []*InstanceTimeline `json:"timeline,omitempty"` // 审批动态 ModifiedInstanceCode *string `json:"modified_instance_code,omitempty"` // 修改的原实例 code,仅在查询修改实例时显示该字段 RevertedInstanceCode *string `json:"reverted_instance_code,omitempty"` // 撤销的原实例 code,仅在查询撤销实例时显示该字段 ApprovalCode *string `json:"approval_code,omitempty"` // 审批定义 Code Reverted *bool `json:"reverted,omitempty"` // 单据是否被撤销 InstanceCode *string `json:"instance_code,omitempty"` // 审批实例 Code }
type I18nResource ¶
type I18nResource struct { Locale *string `json:"locale,omitempty"` // 语言可选值有: zh-CN:中文 en-US:英文 ja-JP:日文 Texts []*I18nResourceText `json:"texts,omitempty"` // 文案 key, value, i18n key 以 @i18n@ 开头; 该字段主要用于做国际化,允许用户同时传多个语言的文案,审批中心会根据用户当前的语音环境使用对应的文案,如果没有传用户当前的语音环境文案,则会使用默认的语言文案。 IsDefault *bool `json:"is_default,omitempty"` // 是否默认语言,默认语言需要包含所有key,非默认语言如果key不存在会使用默认语言代替 }
type I18nResourceBuilder ¶
type I18nResourceBuilder struct {
// contains filtered or unexported fields
}
func NewI18nResourceBuilder ¶
func NewI18nResourceBuilder() *I18nResourceBuilder
func (*I18nResourceBuilder) Build ¶
func (builder *I18nResourceBuilder) Build() *I18nResource
func (*I18nResourceBuilder) IsDefault ¶
func (builder *I18nResourceBuilder) IsDefault(isDefault bool) *I18nResourceBuilder
是否默认语言,默认语言需要包含所有key,非默认语言如果key不存在会使用默认语言代替
示例值:true
func (*I18nResourceBuilder) Locale ¶
func (builder *I18nResourceBuilder) Locale(locale string) *I18nResourceBuilder
语言可选值有: zh-CN:中文 en-US:英文 ja-JP:日文
示例值:zh-CN
func (*I18nResourceBuilder) Texts ¶
func (builder *I18nResourceBuilder) Texts(texts []*I18nResourceText) *I18nResourceBuilder
文案 key, value, i18n key 以 @i18n@ 开头; 该字段主要用于做国际化,允许用户同时传多个语言的文案,审批中心会根据用户当前的语音环境使用对应的文案,如果没有传用户当前的语音环境文案,则会使用默认的语言文案。
示例值:{ "@i18n@1": "权限申请", "@i18n@2": "OA审批", "@i18n@3": "Permission" }
type I18nResourceText ¶
type I18nResourceTextBuilder ¶
type I18nResourceTextBuilder struct {
// contains filtered or unexported fields
}
func NewI18nResourceTextBuilder ¶
func NewI18nResourceTextBuilder() *I18nResourceTextBuilder
func (*I18nResourceTextBuilder) Build ¶
func (builder *I18nResourceTextBuilder) Build() *I18nResourceText
func (*I18nResourceTextBuilder) Key ¶
func (builder *I18nResourceTextBuilder) Key(key string) *I18nResourceTextBuilder
文案key
示例值:@i18n@1
func (*I18nResourceTextBuilder) Value ¶
func (builder *I18nResourceTextBuilder) Value(value string) *I18nResourceTextBuilder
文案
示例值:people
type Instance ¶
type Instance struct { InstanceCode *string `json:"instance_code,omitempty"` // 审批实例code ApprovalName *string `json:"approval_name,omitempty"` // 审批名称 StartTime *string `json:"start_time,omitempty"` // 审批实例发起时间戳 EndTime *string `json:"end_time,omitempty"` // 审批实例结束时间戳 UserId *string `json:"user_id,omitempty"` // 发起人 SerialId *string `json:"serial_id,omitempty"` // 申请编号 }
type InstanceBuilder ¶
type InstanceBuilder struct {
// contains filtered or unexported fields
}
func NewInstanceBuilder ¶
func NewInstanceBuilder() *InstanceBuilder
func (*InstanceBuilder) ApprovalName ¶
func (builder *InstanceBuilder) ApprovalName(approvalName string) *InstanceBuilder
审批名称
示例值:
func (*InstanceBuilder) Build ¶
func (builder *InstanceBuilder) Build() *Instance
func (*InstanceBuilder) EndTime ¶
func (builder *InstanceBuilder) EndTime(endTime string) *InstanceBuilder
审批实例结束时间戳
示例值:
func (*InstanceBuilder) InstanceCode ¶
func (builder *InstanceBuilder) InstanceCode(instanceCode string) *InstanceBuilder
审批实例code
示例值:
func (*InstanceBuilder) SerialId ¶
func (builder *InstanceBuilder) SerialId(serialId string) *InstanceBuilder
申请编号
示例值:
func (*InstanceBuilder) StartTime ¶
func (builder *InstanceBuilder) StartTime(startTime string) *InstanceBuilder
审批实例发起时间戳
示例值:
func (*InstanceBuilder) UserId ¶
func (builder *InstanceBuilder) UserId(userId string) *InstanceBuilder
发起人
示例值:
type InstanceCancel ¶
type InstanceCancelBuilder ¶
type InstanceCancelBuilder struct {
// contains filtered or unexported fields
}
func NewInstanceCancelBuilder ¶
func NewInstanceCancelBuilder() *InstanceCancelBuilder
func (*InstanceCancelBuilder) ApprovalCode ¶
func (builder *InstanceCancelBuilder) ApprovalCode(approvalCode string) *InstanceCancelBuilder
审批定义Code
示例值:7C468A54-8745-2245-9675-08B7C63E7A85
func (*InstanceCancelBuilder) Build ¶
func (builder *InstanceCancelBuilder) Build() *InstanceCancel
func (*InstanceCancelBuilder) InstanceCode ¶
func (builder *InstanceCancelBuilder) InstanceCode(instanceCode string) *InstanceCancelBuilder
审批实例Code
示例值:81D31358-93AF-92D6-7425-01A5D67C4E71
func (*InstanceCancelBuilder) UserId ¶
func (builder *InstanceCancelBuilder) UserId(userId string) *InstanceCancelBuilder
操作用户, 根据user_id_type填写
示例值:f7cb567e
type InstanceCc ¶
type InstanceCc struct { ApprovalCode *string `json:"approval_code,omitempty"` // 审批定义 code InstanceCode *string `json:"instance_code,omitempty"` // 审批实例 code UserId *string `json:"user_id,omitempty"` // 根据user_id_type填写发起抄送的人的用户id CcUserIds []string `json:"cc_user_ids,omitempty"` // 根据user_id_type填写被抄送人的 用户id 列表 Comment *string `json:"comment,omitempty"` // 抄送留言 }
type InstanceCcBuilder ¶
type InstanceCcBuilder struct {
// contains filtered or unexported fields
}
func NewInstanceCcBuilder ¶
func NewInstanceCcBuilder() *InstanceCcBuilder
func (*InstanceCcBuilder) ApprovalCode ¶
func (builder *InstanceCcBuilder) ApprovalCode(approvalCode string) *InstanceCcBuilder
审批定义 code
示例值:7C468A54-8745-2245-9675-08B7C63E7A85
func (*InstanceCcBuilder) Build ¶
func (builder *InstanceCcBuilder) Build() *InstanceCc
func (*InstanceCcBuilder) CcUserIds ¶
func (builder *InstanceCcBuilder) CcUserIds(ccUserIds []string) *InstanceCcBuilder
根据user_id_type填写被抄送人的 用户id 列表
示例值:f7cb567e
func (*InstanceCcBuilder) Comment ¶
func (builder *InstanceCcBuilder) Comment(comment string) *InstanceCcBuilder
抄送留言
示例值:ok
func (*InstanceCcBuilder) InstanceCode ¶
func (builder *InstanceCcBuilder) InstanceCode(instanceCode string) *InstanceCcBuilder
审批实例 code
示例值:7C468A54-8745-2245-9675-08B7C63E7A85
func (*InstanceCcBuilder) UserId ¶
func (builder *InstanceCcBuilder) UserId(userId string) *InstanceCcBuilder
根据user_id_type填写发起抄送的人的用户id
示例值:f7cb567e
type InstanceCcUser ¶
type InstanceCcUserBuilder ¶
type InstanceCcUserBuilder struct {
// contains filtered or unexported fields
}
func NewInstanceCcUserBuilder ¶
func NewInstanceCcUserBuilder() *InstanceCcUserBuilder
func (*InstanceCcUserBuilder) Build ¶
func (builder *InstanceCcUserBuilder) Build() *InstanceCcUser
func (*InstanceCcUserBuilder) CcId ¶
func (builder *InstanceCcUserBuilder) CcId(ccId string) *InstanceCcUserBuilder
审批实例内抄送唯一标识
示例值:123445
func (*InstanceCcUserBuilder) OpenId ¶
func (builder *InstanceCcUserBuilder) OpenId(openId string) *InstanceCcUserBuilder
抄送人 open id
示例值:ou_12345
func (*InstanceCcUserBuilder) UserId ¶
func (builder *InstanceCcUserBuilder) UserId(userId string) *InstanceCcUserBuilder
抄送人 user id
示例值:eea5gefe
type InstanceComment ¶
type InstanceComment struct { Id *string `json:"id,omitempty"` // 评论 id UserId *string `json:"user_id,omitempty"` // 发表评论用户 OpenId *string `json:"open_id,omitempty"` // 发表评论用户 open id Comment *string `json:"comment,omitempty"` // 评论内容 CreateTime *string `json:"create_time,omitempty"` // 1564590532967 Files []*File `json:"files,omitempty"` // 评论附件 }
type InstanceCommentBuilder ¶
type InstanceCommentBuilder struct {
// contains filtered or unexported fields
}
func NewInstanceCommentBuilder ¶
func NewInstanceCommentBuilder() *InstanceCommentBuilder
func (*InstanceCommentBuilder) Build ¶
func (builder *InstanceCommentBuilder) Build() *InstanceComment
func (*InstanceCommentBuilder) Comment ¶
func (builder *InstanceCommentBuilder) Comment(comment string) *InstanceCommentBuilder
评论内容
示例值:ok
func (*InstanceCommentBuilder) CreateTime ¶
func (builder *InstanceCommentBuilder) CreateTime(createTime string) *InstanceCommentBuilder
1564590532967
示例值:评论时间
func (*InstanceCommentBuilder) Files ¶ added in v3.0.1
func (builder *InstanceCommentBuilder) Files(files []*File) *InstanceCommentBuilder
评论附件
示例值:
func (*InstanceCommentBuilder) Id ¶
func (builder *InstanceCommentBuilder) Id(id string) *InstanceCommentBuilder
评论 id
示例值:1234
func (*InstanceCommentBuilder) OpenId ¶
func (builder *InstanceCommentBuilder) OpenId(openId string) *InstanceCommentBuilder
发表评论用户 open id
示例值:ou_123456
func (*InstanceCommentBuilder) UserId ¶
func (builder *InstanceCommentBuilder) UserId(userId string) *InstanceCommentBuilder
发表评论用户
示例值:f7cb567e
type InstanceCreate ¶
type InstanceCreate struct { ApprovalCode *string `json:"approval_code,omitempty"` // 审批定义 code UserId *string `json:"user_id,omitempty"` // 发起审批用户 OpenId *string `json:"open_id,omitempty"` // 发起审批用户 open id, 如果传了 user_id 则优先使用 user_id DepartmentId *string `json:"department_id,omitempty"` // 发起审批用户部门id,如果用户只属于一个部门,可以不填。如果属于多个部门,默认会选择部门列表第一个部门 Form *string `json:"form,omitempty"` // json 数组,控件值 NodeApproverUserIdList []*NodeApprover `json:"node_approver_user_id_list,omitempty"` // 如果有发起人自选节点,则需要填写对应节点的审批人 NodeApproverOpenIdList []*NodeApprover `json:"node_approver_open_id_list,omitempty"` // 审批人发起人自选 open id,与上述node_approver_user_id_list字段取并集 NodeCcUserIdList []*NodeCc `json:"node_cc_user_id_list,omitempty"` // 如果有发起人自选节点,则可填写对应节点的抄送人,单个节点最多选择20位抄送人 NodeCcOpenIdList []*NodeCc `json:"node_cc_open_id_list,omitempty"` // 抄送人发起人自选 open id 单个节点最多选择20位抄送人 Uuid *string `json:"uuid,omitempty"` // 审批实例 uuid,用于幂等操作, 每个租户下面的唯一key,同一个 uuid 只能用于创建一个审批实例,如果冲突,返回错误码 60012 ,格式建议为 XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX,不区分大小写 AllowResubmit *bool `json:"allow_resubmit,omitempty"` // 可配置是否可以再次提交 AllowSubmitAgain *bool `json:"allow_submit_again,omitempty"` // 可配置是否可以重新提交 CancelBotNotification *string `json:"cancel_bot_notification,omitempty"` // 配置bot是否取消通知结果 ForbidRevoke *bool `json:"forbid_revoke,omitempty"` // 配置是否可以禁止撤销 I18nResources []*I18nResource `json:"i18n_resources,omitempty"` // 国际化文案 Title *string `json:"title,omitempty"` // 审批展示名称,如果填写了该字段,则审批列表中的审批名称使用该字段,如果不填该字段,则审批名称使用审批定义的名称 TitleDisplayMethod *int `json:"title_display_method,omitempty"` // 详情页title展示模式 }
type InstanceCreateBuilder ¶
type InstanceCreateBuilder struct {
// contains filtered or unexported fields
}
func NewInstanceCreateBuilder ¶
func NewInstanceCreateBuilder() *InstanceCreateBuilder
func (*InstanceCreateBuilder) AllowResubmit ¶ added in v3.0.1
func (builder *InstanceCreateBuilder) AllowResubmit(allowResubmit bool) *InstanceCreateBuilder
可配置是否可以再次提交
示例值:true
func (*InstanceCreateBuilder) AllowSubmitAgain ¶ added in v3.0.1
func (builder *InstanceCreateBuilder) AllowSubmitAgain(allowSubmitAgain bool) *InstanceCreateBuilder
可配置是否可以重新提交
示例值:true
func (*InstanceCreateBuilder) ApprovalCode ¶
func (builder *InstanceCreateBuilder) ApprovalCode(approvalCode string) *InstanceCreateBuilder
审批定义 code
示例值:7C468A54-8745-2245-9675-08B7C63E7A85
func (*InstanceCreateBuilder) Build ¶
func (builder *InstanceCreateBuilder) Build() *InstanceCreate
func (*InstanceCreateBuilder) CancelBotNotification ¶ added in v3.0.15
func (builder *InstanceCreateBuilder) CancelBotNotification(cancelBotNotification string) *InstanceCreateBuilder
配置bot是否取消通知结果
示例值:0
func (*InstanceCreateBuilder) DepartmentId ¶
func (builder *InstanceCreateBuilder) DepartmentId(departmentId string) *InstanceCreateBuilder
发起审批用户部门id,如果用户只属于一个部门,可以不填。如果属于多个部门,默认会选择部门列表第一个部门
示例值:9293493ccacbdb9a
func (*InstanceCreateBuilder) ForbidRevoke ¶ added in v3.0.18
func (builder *InstanceCreateBuilder) ForbidRevoke(forbidRevoke bool) *InstanceCreateBuilder
配置是否可以禁止撤销
示例值:false
func (*InstanceCreateBuilder) Form ¶
func (builder *InstanceCreateBuilder) Form(form string) *InstanceCreateBuilder
json 数组,控件值
示例值:[{\"id\":\"111\", \"type\": \"input\", \"value\":\"test\"}]
func (*InstanceCreateBuilder) I18nResources ¶ added in v3.0.18
func (builder *InstanceCreateBuilder) I18nResources(i18nResources []*I18nResource) *InstanceCreateBuilder
国际化文案
示例值:
func (*InstanceCreateBuilder) NodeApproverOpenIdList ¶
func (builder *InstanceCreateBuilder) NodeApproverOpenIdList(nodeApproverOpenIdList []*NodeApprover) *InstanceCreateBuilder
审批人发起人自选 open id,与上述node_approver_user_id_list字段取并集
示例值:
func (*InstanceCreateBuilder) NodeApproverUserIdList ¶
func (builder *InstanceCreateBuilder) NodeApproverUserIdList(nodeApproverUserIdList []*NodeApprover) *InstanceCreateBuilder
如果有发起人自选节点,则需要填写对应节点的审批人
示例值:
func (*InstanceCreateBuilder) NodeCcOpenIdList ¶
func (builder *InstanceCreateBuilder) NodeCcOpenIdList(nodeCcOpenIdList []*NodeCc) *InstanceCreateBuilder
抄送人发起人自选 open id 单个节点最多选择20位抄送人
示例值:
func (*InstanceCreateBuilder) NodeCcUserIdList ¶
func (builder *InstanceCreateBuilder) NodeCcUserIdList(nodeCcUserIdList []*NodeCc) *InstanceCreateBuilder
如果有发起人自选节点,则可填写对应节点的抄送人,单个节点最多选择20位抄送人
示例值:
func (*InstanceCreateBuilder) OpenId ¶
func (builder *InstanceCreateBuilder) OpenId(openId string) *InstanceCreateBuilder
发起审批用户 open id, 如果传了 user_id 则优先使用 user_id
示例值:ou_3cda9c969f737aaa05e6915dce306cb9
func (*InstanceCreateBuilder) Title ¶ added in v3.0.20
func (builder *InstanceCreateBuilder) Title(title string) *InstanceCreateBuilder
审批展示名称,如果填写了该字段,则审批列表中的审批名称使用该字段,如果不填该字段,则审批名称使用审批定义的名称
示例值:@i18n@1
func (*InstanceCreateBuilder) TitleDisplayMethod ¶ added in v3.0.20
func (builder *InstanceCreateBuilder) TitleDisplayMethod(titleDisplayMethod int) *InstanceCreateBuilder
详情页title展示模式
示例值:0
func (*InstanceCreateBuilder) UserId ¶
func (builder *InstanceCreateBuilder) UserId(userId string) *InstanceCreateBuilder
发起审批用户
示例值:f7cb567e
func (*InstanceCreateBuilder) Uuid ¶
func (builder *InstanceCreateBuilder) Uuid(uuid string) *InstanceCreateBuilder
审批实例 uuid,用于幂等操作, 每个租户下面的唯一key,同一个 uuid 只能用于创建一个审批实例,如果冲突,返回错误码 60012 ,格式建议为 XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX,不区分大小写
示例值:7C468A54-8745-2245-9675-08B7C63E7A87
type InstanceSearch ¶
type InstanceSearch struct { UserId *string `json:"user_id,omitempty"` // 根据x_user_type填写用户 id ApprovalCode *string `json:"approval_code,omitempty"` // 审批定义 code InstanceCode *string `json:"instance_code,omitempty"` // 审批实例 code InstanceExternalId *string `json:"instance_external_id,omitempty"` // 审批实例第三方 id 注:和 approval_code 取并集 GroupExternalId *string `json:"group_external_id,omitempty"` // 审批定义分组第三方 id 注:和 instance_code 取并集 InstanceTitle *string `json:"instance_title,omitempty"` // 审批实例标题(只有第三方审批有) InstanceStatus *string `json:"instance_status,omitempty"` // 审批实例状态,注:若不设置,查询全部状态 若不在集合中,报错 InstanceStartTimeFrom *string `json:"instance_start_time_from,omitempty"` // 实例查询开始时间(unix毫秒时间戳) InstanceStartTimeTo *string `json:"instance_start_time_to,omitempty"` // 实例查询结束时间 (unix毫秒时间戳) Locale *string `json:"locale,omitempty"` // 地区 }
type InstanceSearchApproval ¶
type InstanceSearchApproval struct { Code *string `json:"code,omitempty"` // 审批定义 code Name *string `json:"name,omitempty"` // 审批定义名称 IsExternal *bool `json:"is_external,omitempty"` // 是否为第三方审批 External *InstanceSearchApprovalExternal `json:"external,omitempty"` // 第三方审批信息 ApprovalId *string `json:"approval_id,omitempty"` // 审批定义Id Icon *string `json:"icon,omitempty"` // 审批定义图标信息 }
type InstanceSearchApprovalBuilder ¶
type InstanceSearchApprovalBuilder struct {
// contains filtered or unexported fields
}
func NewInstanceSearchApprovalBuilder ¶
func NewInstanceSearchApprovalBuilder() *InstanceSearchApprovalBuilder
func (*InstanceSearchApprovalBuilder) ApprovalId ¶ added in v3.0.13
func (builder *InstanceSearchApprovalBuilder) ApprovalId(approvalId string) *InstanceSearchApprovalBuilder
审批定义Id
示例值:7090754740375519252
func (*InstanceSearchApprovalBuilder) Build ¶
func (builder *InstanceSearchApprovalBuilder) Build() *InstanceSearchApproval
func (*InstanceSearchApprovalBuilder) Code ¶
func (builder *InstanceSearchApprovalBuilder) Code(code string) *InstanceSearchApprovalBuilder
审批定义 code
示例值:EB828003-9FFE-4B3F-AA50-2E199E2ED943
func (*InstanceSearchApprovalBuilder) External ¶
func (builder *InstanceSearchApprovalBuilder) External(external *InstanceSearchApprovalExternal) *InstanceSearchApprovalBuilder
第三方审批信息
示例值:
func (*InstanceSearchApprovalBuilder) Icon ¶ added in v3.0.13
func (builder *InstanceSearchApprovalBuilder) Icon(icon string) *InstanceSearchApprovalBuilder
审批定义图标信息
示例值:https://lf3-ea.bytetos.com/obj/goofy/ee/approval/approval-admin/image/iconLib/v3/person.png
func (*InstanceSearchApprovalBuilder) IsExternal ¶
func (builder *InstanceSearchApprovalBuilder) IsExternal(isExternal bool) *InstanceSearchApprovalBuilder
是否为第三方审批
示例值:true
func (*InstanceSearchApprovalBuilder) Name ¶
func (builder *InstanceSearchApprovalBuilder) Name(name string) *InstanceSearchApprovalBuilder
审批定义名称
示例值:approval
type InstanceSearchApprovalExternal ¶
type InstanceSearchApprovalExternal struct {
BatchCcRead *bool `json:"batch_cc_read,omitempty"` // 是否支持批量读
}
type InstanceSearchApprovalExternalBuilder ¶
type InstanceSearchApprovalExternalBuilder struct {
// contains filtered or unexported fields
}
func NewInstanceSearchApprovalExternalBuilder ¶
func NewInstanceSearchApprovalExternalBuilder() *InstanceSearchApprovalExternalBuilder
func (*InstanceSearchApprovalExternalBuilder) BatchCcRead ¶
func (builder *InstanceSearchApprovalExternalBuilder) BatchCcRead(batchCcRead bool) *InstanceSearchApprovalExternalBuilder
是否支持批量读
示例值:false
func (*InstanceSearchApprovalExternalBuilder) Build ¶
func (builder *InstanceSearchApprovalExternalBuilder) Build() *InstanceSearchApprovalExternal
type InstanceSearchBuilder ¶
type InstanceSearchBuilder struct {
// contains filtered or unexported fields
}
func NewInstanceSearchBuilder ¶
func NewInstanceSearchBuilder() *InstanceSearchBuilder
func (*InstanceSearchBuilder) ApprovalCode ¶
func (builder *InstanceSearchBuilder) ApprovalCode(approvalCode string) *InstanceSearchBuilder
审批定义 code
示例值:EB828003-9FFE-4B3F-AA50-2E199E2ED942
func (*InstanceSearchBuilder) Build ¶
func (builder *InstanceSearchBuilder) Build() *InstanceSearch
func (*InstanceSearchBuilder) GroupExternalId ¶
func (builder *InstanceSearchBuilder) GroupExternalId(groupExternalId string) *InstanceSearchBuilder
审批定义分组第三方 id 注:和 instance_code 取并集
示例值:1234567
func (*InstanceSearchBuilder) InstanceCode ¶
func (builder *InstanceSearchBuilder) InstanceCode(instanceCode string) *InstanceSearchBuilder
审批实例 code
示例值:EB828003-9FFE-4B3F-AA50-2E199E2ED943
func (*InstanceSearchBuilder) InstanceExternalId ¶
func (builder *InstanceSearchBuilder) InstanceExternalId(instanceExternalId string) *InstanceSearchBuilder
审批实例第三方 id 注:和 approval_code 取并集
示例值:EB828003-9FFE-4B3F-AA50-2E199E2ED976
func (*InstanceSearchBuilder) InstanceStartTimeFrom ¶
func (builder *InstanceSearchBuilder) InstanceStartTimeFrom(instanceStartTimeFrom string) *InstanceSearchBuilder
实例查询开始时间(unix毫秒时间戳)
示例值:1547654251506
func (*InstanceSearchBuilder) InstanceStartTimeTo ¶
func (builder *InstanceSearchBuilder) InstanceStartTimeTo(instanceStartTimeTo string) *InstanceSearchBuilder
实例查询结束时间 (unix毫秒时间戳)
示例值:1547654251506
func (*InstanceSearchBuilder) InstanceStatus ¶
func (builder *InstanceSearchBuilder) InstanceStatus(instanceStatus string) *InstanceSearchBuilder
审批实例状态,注:若不设置,查询全部状态 若不在集合中,报错
示例值:PENDING
func (*InstanceSearchBuilder) InstanceTitle ¶
func (builder *InstanceSearchBuilder) InstanceTitle(instanceTitle string) *InstanceSearchBuilder
审批实例标题(只有第三方审批有)
示例值:test
func (*InstanceSearchBuilder) Locale ¶
func (builder *InstanceSearchBuilder) Locale(locale string) *InstanceSearchBuilder
地区
示例值:zh-CN
func (*InstanceSearchBuilder) UserId ¶
func (builder *InstanceSearchBuilder) UserId(userId string) *InstanceSearchBuilder
根据x_user_type填写用户 id
示例值:lwiu098wj
type InstanceSearchGroup ¶
type InstanceSearchGroupBuilder ¶
type InstanceSearchGroupBuilder struct {
// contains filtered or unexported fields
}
func NewInstanceSearchGroupBuilder ¶
func NewInstanceSearchGroupBuilder() *InstanceSearchGroupBuilder
func (*InstanceSearchGroupBuilder) Build ¶
func (builder *InstanceSearchGroupBuilder) Build() *InstanceSearchGroup
func (*InstanceSearchGroupBuilder) ExternalId ¶
func (builder *InstanceSearchGroupBuilder) ExternalId(externalId string) *InstanceSearchGroupBuilder
审批定义分组外部 id
示例值:0004
func (*InstanceSearchGroupBuilder) Name ¶
func (builder *InstanceSearchGroupBuilder) Name(name string) *InstanceSearchGroupBuilder
审批定义分组名称
示例值:groupA
type InstanceSearchItem ¶
type InstanceSearchItem struct { Approval *InstanceSearchApproval `json:"approval,omitempty"` // 审批定义 Group *InstanceSearchGroup `json:"group,omitempty"` // 审批定义分组 Instance *InstanceSearchNode `json:"instance,omitempty"` // 审批实例信息 }
type InstanceSearchItemBuilder ¶
type InstanceSearchItemBuilder struct {
// contains filtered or unexported fields
}
func NewInstanceSearchItemBuilder ¶
func NewInstanceSearchItemBuilder() *InstanceSearchItemBuilder
func (*InstanceSearchItemBuilder) Approval ¶
func (builder *InstanceSearchItemBuilder) Approval(approval *InstanceSearchApproval) *InstanceSearchItemBuilder
审批定义
示例值:
func (*InstanceSearchItemBuilder) Build ¶
func (builder *InstanceSearchItemBuilder) Build() *InstanceSearchItem
func (*InstanceSearchItemBuilder) Group ¶
func (builder *InstanceSearchItemBuilder) Group(group *InstanceSearchGroup) *InstanceSearchItemBuilder
审批定义分组
示例值:
func (*InstanceSearchItemBuilder) Instance ¶
func (builder *InstanceSearchItemBuilder) Instance(instance *InstanceSearchNode) *InstanceSearchItemBuilder
审批实例信息
示例值:
type InstanceSearchLink ¶
type InstanceSearchLinkBuilder ¶
type InstanceSearchLinkBuilder struct {
// contains filtered or unexported fields
}
func NewInstanceSearchLinkBuilder ¶
func NewInstanceSearchLinkBuilder() *InstanceSearchLinkBuilder
func (*InstanceSearchLinkBuilder) Build ¶
func (builder *InstanceSearchLinkBuilder) Build() *InstanceSearchLink
func (*InstanceSearchLinkBuilder) MobileLink ¶
func (builder *InstanceSearchLinkBuilder) MobileLink(mobileLink string) *InstanceSearchLinkBuilder
审批实例移动端链接
func (*InstanceSearchLinkBuilder) PcLink ¶
func (builder *InstanceSearchLinkBuilder) PcLink(pcLink string) *InstanceSearchLinkBuilder
审批实例 pc 端链接
type InstanceSearchNode ¶
type InstanceSearchNode struct { Code *string `json:"code,omitempty"` // 审批实例 code ExternalId *string `json:"external_id,omitempty"` // 审批实例外部 id UserId *string `json:"user_id,omitempty"` // 审批实例发起人 id StartTime *string `json:"start_time,omitempty"` // 审批实例开始时间 EndTime *string `json:"end_time,omitempty"` // 审批实例结束时间 Status *string `json:"status,omitempty"` // 审批实例状态 Title *string `json:"title,omitempty"` // 审批实例名称(只有第三方审批有) Extra *string `json:"extra,omitempty"` // 审批实例扩展字段,string型json SerialId *string `json:"serial_id,omitempty"` // 审批流水号 Link *InstanceSearchLink `json:"link,omitempty"` // 审批实例链接(只有第三方审批有) }
type InstanceSearchNodeBuilder ¶
type InstanceSearchNodeBuilder struct {
// contains filtered or unexported fields
}
func NewInstanceSearchNodeBuilder ¶
func NewInstanceSearchNodeBuilder() *InstanceSearchNodeBuilder
func (*InstanceSearchNodeBuilder) Build ¶
func (builder *InstanceSearchNodeBuilder) Build() *InstanceSearchNode
func (*InstanceSearchNodeBuilder) Code ¶
func (builder *InstanceSearchNodeBuilder) Code(code string) *InstanceSearchNodeBuilder
审批实例 code
示例值:EB828003-9FFE-4B3F-AA50-2E199E2ED943
func (*InstanceSearchNodeBuilder) EndTime ¶
func (builder *InstanceSearchNodeBuilder) EndTime(endTime string) *InstanceSearchNodeBuilder
审批实例结束时间
示例值:1547654251506
func (*InstanceSearchNodeBuilder) ExternalId ¶
func (builder *InstanceSearchNodeBuilder) ExternalId(externalId string) *InstanceSearchNodeBuilder
审批实例外部 id
示例值:0004_3ED52DC1-AA6C
func (*InstanceSearchNodeBuilder) Extra ¶
func (builder *InstanceSearchNodeBuilder) Extra(extra string) *InstanceSearchNodeBuilder
审批实例扩展字段,string型json
示例值:{}
func (*InstanceSearchNodeBuilder) Link ¶
func (builder *InstanceSearchNodeBuilder) Link(link *InstanceSearchLink) *InstanceSearchNodeBuilder
审批实例链接(只有第三方审批有)
示例值:
func (*InstanceSearchNodeBuilder) SerialId ¶
func (builder *InstanceSearchNodeBuilder) SerialId(serialId string) *InstanceSearchNodeBuilder
审批流水号
示例值:201902020001
func (*InstanceSearchNodeBuilder) StartTime ¶
func (builder *InstanceSearchNodeBuilder) StartTime(startTime string) *InstanceSearchNodeBuilder
审批实例开始时间
示例值:1547654251506
func (*InstanceSearchNodeBuilder) Status ¶
func (builder *InstanceSearchNodeBuilder) Status(status string) *InstanceSearchNodeBuilder
审批实例状态
示例值:pending
func (*InstanceSearchNodeBuilder) Title ¶
func (builder *InstanceSearchNodeBuilder) Title(title string) *InstanceSearchNodeBuilder
审批实例名称(只有第三方审批有)
示例值:test
func (*InstanceSearchNodeBuilder) UserId ¶
func (builder *InstanceSearchNodeBuilder) UserId(userId string) *InstanceSearchNodeBuilder
审批实例发起人 id
示例值:lwiu098wj
type InstanceTask ¶
type InstanceTask struct { Id *string `json:"id,omitempty"` // task id UserId *string `json:"user_id,omitempty"` // 审批人的用户id,自动通过、自动拒绝 时为空 OpenId *string `json:"open_id,omitempty"` // 审批人 open id Status *string `json:"status,omitempty"` // 任务状态 NodeId *string `json:"node_id,omitempty"` // task 所属节点 id NodeName *string `json:"node_name,omitempty"` // task 所属节点名称 CustomNodeId *string `json:"custom_node_id,omitempty"` // task 所属节点自定义 id, 如果没设置自定义 id, 则不返回该字段 Type *string `json:"type,omitempty"` // 审批方式 StartTime *string `json:"start_time,omitempty"` // task 开始时间 EndTime *string `json:"end_time,omitempty"` // task 完成时间, 未完成为 0 }
type InstanceTaskBuilder ¶
type InstanceTaskBuilder struct {
// contains filtered or unexported fields
}
func NewInstanceTaskBuilder ¶
func NewInstanceTaskBuilder() *InstanceTaskBuilder
func (*InstanceTaskBuilder) Build ¶
func (builder *InstanceTaskBuilder) Build() *InstanceTask
func (*InstanceTaskBuilder) CustomNodeId ¶
func (builder *InstanceTaskBuilder) CustomNodeId(customNodeId string) *InstanceTaskBuilder
task 所属节点自定义 id, 如果没设置自定义 id, 则不返回该字段
示例值:manager
func (*InstanceTaskBuilder) EndTime ¶
func (builder *InstanceTaskBuilder) EndTime(endTime string) *InstanceTaskBuilder
task 完成时间, 未完成为 0
示例值:0
func (*InstanceTaskBuilder) Id ¶
func (builder *InstanceTaskBuilder) Id(id string) *InstanceTaskBuilder
task id
示例值:1234
func (*InstanceTaskBuilder) NodeId ¶
func (builder *InstanceTaskBuilder) NodeId(nodeId string) *InstanceTaskBuilder
task 所属节点 id
示例值:46e6d96cfa756980907209209ec03b64
func (*InstanceTaskBuilder) NodeName ¶
func (builder *InstanceTaskBuilder) NodeName(nodeName string) *InstanceTaskBuilder
task 所属节点名称
示例值:开始
func (*InstanceTaskBuilder) OpenId ¶
func (builder *InstanceTaskBuilder) OpenId(openId string) *InstanceTaskBuilder
审批人 open id
示例值:ou_123457
func (*InstanceTaskBuilder) StartTime ¶
func (builder *InstanceTaskBuilder) StartTime(startTime string) *InstanceTaskBuilder
task 开始时间
示例值:1564590532967
func (*InstanceTaskBuilder) Status ¶
func (builder *InstanceTaskBuilder) Status(status string) *InstanceTaskBuilder
任务状态
示例值:PENDING
func (*InstanceTaskBuilder) Type ¶
func (builder *InstanceTaskBuilder) Type(type_ string) *InstanceTaskBuilder
审批方式
示例值:AND
func (*InstanceTaskBuilder) UserId ¶
func (builder *InstanceTaskBuilder) UserId(userId string) *InstanceTaskBuilder
审批人的用户id,自动通过、自动拒绝 时为空
示例值:f7cb567e
type InstanceTimeline ¶
type InstanceTimeline struct { Type *string `json:"type,omitempty"` // 动态类型,不同类型 ext 内的 user_id_list 含义不一样 CreateTime *string `json:"create_time,omitempty"` // 发生时间 UserId *string `json:"user_id,omitempty"` // 动态产生用户 OpenId *string `json:"open_id,omitempty"` // 动态产生用户 open id UserIdList []string `json:"user_id_list,omitempty"` // 被抄送人列表 OpenIdList []string `json:"open_id_list,omitempty"` // 被抄送人列表 TaskId *string `json:"task_id,omitempty"` // 产生动态关联的task_id Comment *string `json:"comment,omitempty"` // 理由 CcUserList []*InstanceCcUser `json:"cc_user_list,omitempty"` // 抄送人列表 Ext *string `json:"ext,omitempty"` // 动态其他信息,json格式,目前包括 user_id_list, user_id,open_id_list,open_id NodeKey *string `json:"node_key,omitempty"` // 产生task的节点key Files []*File `json:"files,omitempty"` // 审批附件 }
type InstanceTimelineBuilder ¶
type InstanceTimelineBuilder struct {
// contains filtered or unexported fields
}
func NewInstanceTimelineBuilder ¶
func NewInstanceTimelineBuilder() *InstanceTimelineBuilder
func (*InstanceTimelineBuilder) Build ¶
func (builder *InstanceTimelineBuilder) Build() *InstanceTimeline
func (*InstanceTimelineBuilder) CcUserList ¶
func (builder *InstanceTimelineBuilder) CcUserList(ccUserList []*InstanceCcUser) *InstanceTimelineBuilder
抄送人列表
示例值:
func (*InstanceTimelineBuilder) Comment ¶
func (builder *InstanceTimelineBuilder) Comment(comment string) *InstanceTimelineBuilder
理由
示例值:ok
func (*InstanceTimelineBuilder) CreateTime ¶
func (builder *InstanceTimelineBuilder) CreateTime(createTime string) *InstanceTimelineBuilder
发生时间
示例值:1564590532967
func (*InstanceTimelineBuilder) Ext ¶
func (builder *InstanceTimelineBuilder) Ext(ext string) *InstanceTimelineBuilder
动态其他信息,json格式,目前包括 user_id_list, user_id,open_id_list,open_id
示例值:{\"user_id\":\"62d4a44c\",\"open_id\":\"ou_123456\"}
func (*InstanceTimelineBuilder) Files ¶ added in v3.0.1
func (builder *InstanceTimelineBuilder) Files(files []*File) *InstanceTimelineBuilder
审批附件
示例值:
func (*InstanceTimelineBuilder) NodeKey ¶
func (builder *InstanceTimelineBuilder) NodeKey(nodeKey string) *InstanceTimelineBuilder
产生task的节点key
示例值:APPROVAL_240330_4058663
func (*InstanceTimelineBuilder) OpenId ¶
func (builder *InstanceTimelineBuilder) OpenId(openId string) *InstanceTimelineBuilder
动态产生用户 open id
示例值:ou_123456
func (*InstanceTimelineBuilder) OpenIdList ¶
func (builder *InstanceTimelineBuilder) OpenIdList(openIdList []string) *InstanceTimelineBuilder
被抄送人列表
示例值:
func (*InstanceTimelineBuilder) TaskId ¶
func (builder *InstanceTimelineBuilder) TaskId(taskId string) *InstanceTimelineBuilder
产生动态关联的task_id
示例值:1234
func (*InstanceTimelineBuilder) Type ¶
func (builder *InstanceTimelineBuilder) Type(type_ string) *InstanceTimelineBuilder
动态类型,不同类型 ext 内的 user_id_list 含义不一样
示例值:PASS
func (*InstanceTimelineBuilder) UserId ¶
func (builder *InstanceTimelineBuilder) UserId(userId string) *InstanceTimelineBuilder
动态产生用户
示例值:f7cb567e
func (*InstanceTimelineBuilder) UserIdList ¶
func (builder *InstanceTimelineBuilder) UserIdList(userIdList []string) *InstanceTimelineBuilder
被抄送人列表
示例值:
type ListExternalTaskIterator ¶
type ListExternalTaskIterator struct {
// contains filtered or unexported fields
}
func (*ListExternalTaskIterator) Next ¶
func (iterator *ListExternalTaskIterator) Next() (bool, *ExternalTaskList, error)
func (*ListExternalTaskIterator) NextPageToken ¶
func (iterator *ListExternalTaskIterator) NextPageToken() *string
type ListExternalTaskPathReqBodyBuilder ¶
type ListExternalTaskPathReqBodyBuilder struct {
// contains filtered or unexported fields
}
func NewListExternalTaskPathReqBodyBuilder ¶
func NewListExternalTaskPathReqBodyBuilder() *ListExternalTaskPathReqBodyBuilder
func (*ListExternalTaskPathReqBodyBuilder) ApprovalCodes ¶
func (builder *ListExternalTaskPathReqBodyBuilder) ApprovalCodes(approvalCodes []string) *ListExternalTaskPathReqBodyBuilder
审批定义 Code,用于指定只获取这些定义下的数据
示例值:B7B65FFE-C2GC-452F-9F0F-9AA8352363D6
func (*ListExternalTaskPathReqBodyBuilder) Build ¶
func (builder *ListExternalTaskPathReqBodyBuilder) Build() (*ListExternalTaskReqBody, error)
func (*ListExternalTaskPathReqBodyBuilder) InstanceIds ¶
func (builder *ListExternalTaskPathReqBodyBuilder) InstanceIds(instanceIds []string) *ListExternalTaskPathReqBodyBuilder
审批实例 ID, 用于指定只获取这些实例下的数据,最多支持 20 个
示例值:oa_159160304
func (*ListExternalTaskPathReqBodyBuilder) Status ¶
func (builder *ListExternalTaskPathReqBodyBuilder) Status(status string) *ListExternalTaskPathReqBodyBuilder
审批任务状态,用于指定获取该状态下的数据
示例值:PENDING
func (*ListExternalTaskPathReqBodyBuilder) UserIds ¶
func (builder *ListExternalTaskPathReqBodyBuilder) UserIds(userIds []string) *ListExternalTaskPathReqBodyBuilder
审批人 user_id,用于指定只获取这些用户的数据
示例值:112321
type ListExternalTaskReq ¶
type ListExternalTaskReq struct { Body *ListExternalTaskReqBody `body:""` Limit int // 最多返回多少记录,只有在使用迭代器访问时,才有效 // contains filtered or unexported fields }
type ListExternalTaskReqBody ¶
type ListExternalTaskReqBody struct { ApprovalCodes []string `json:"approval_codes,omitempty"` // 审批定义 Code,用于指定只获取这些定义下的数据 InstanceIds []string `json:"instance_ids,omitempty"` // 审批实例 ID, 用于指定只获取这些实例下的数据,最多支持 20 个 UserIds []string `json:"user_ids,omitempty"` // 审批人 user_id,用于指定只获取这些用户的数据 Status *string `json:"status,omitempty"` // 审批任务状态,用于指定获取该状态下的数据 }
type ListExternalTaskReqBodyBuilder ¶
type ListExternalTaskReqBodyBuilder struct {
// contains filtered or unexported fields
}
func NewListExternalTaskReqBodyBuilder ¶
func NewListExternalTaskReqBodyBuilder() *ListExternalTaskReqBodyBuilder
func (*ListExternalTaskReqBodyBuilder) ApprovalCodes ¶
func (builder *ListExternalTaskReqBodyBuilder) ApprovalCodes(approvalCodes []string) *ListExternalTaskReqBodyBuilder
审批定义 Code,用于指定只获取这些定义下的数据
示例值:B7B65FFE-C2GC-452F-9F0F-9AA8352363D6
func (*ListExternalTaskReqBodyBuilder) Build ¶
func (builder *ListExternalTaskReqBodyBuilder) Build() *ListExternalTaskReqBody
func (*ListExternalTaskReqBodyBuilder) InstanceIds ¶
func (builder *ListExternalTaskReqBodyBuilder) InstanceIds(instanceIds []string) *ListExternalTaskReqBodyBuilder
审批实例 ID, 用于指定只获取这些实例下的数据,最多支持 20 个
示例值:oa_159160304
func (*ListExternalTaskReqBodyBuilder) Status ¶
func (builder *ListExternalTaskReqBodyBuilder) Status(status string) *ListExternalTaskReqBodyBuilder
审批任务状态,用于指定获取该状态下的数据
示例值:PENDING
func (*ListExternalTaskReqBodyBuilder) UserIds ¶
func (builder *ListExternalTaskReqBodyBuilder) UserIds(userIds []string) *ListExternalTaskReqBodyBuilder
审批人 user_id,用于指定只获取这些用户的数据
示例值:112321
type ListExternalTaskReqBuilder ¶
type ListExternalTaskReqBuilder struct {
// contains filtered or unexported fields
}
func NewListExternalTaskReqBuilder ¶
func NewListExternalTaskReqBuilder() *ListExternalTaskReqBuilder
func (*ListExternalTaskReqBuilder) Body ¶
func (builder *ListExternalTaskReqBuilder) Body(body *ListExternalTaskReqBody) *ListExternalTaskReqBuilder
该接口用于获取三方审批的状态。用户传入查询条件,接口返回满足条件的审批实例的状态。该接口支持多种参数的组合,包括如下组合:;;1.通过 instance_ids 获取指定实例的任务状态;;2.通过 user_ids 获取指定用户的任务状态;;3.通过 status 获取指定状态的所有任务;;4.通过page_token获取下一批数据
func (*ListExternalTaskReqBuilder) Build ¶
func (builder *ListExternalTaskReqBuilder) Build() *ListExternalTaskReq
func (*ListExternalTaskReqBuilder) Limit ¶
func (builder *ListExternalTaskReqBuilder) Limit(limit int) *ListExternalTaskReqBuilder
最大返回多少记录,当使用迭代器访问时才有效
func (*ListExternalTaskReqBuilder) PageSize ¶
func (builder *ListExternalTaskReqBuilder) PageSize(pageSize int) *ListExternalTaskReqBuilder
分页大小
示例值:100
func (*ListExternalTaskReqBuilder) PageToken ¶
func (builder *ListExternalTaskReqBuilder) PageToken(pageToken string) *ListExternalTaskReqBuilder
分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果
示例值:nF1ZXJ5VGhlbkZldGNoCgAAAAAA6PZwFmUzSldvTC1yU
type ListExternalTaskResp ¶
type ListExternalTaskResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError Data *ListExternalTaskRespData `json:"data"` // 业务数据 }
func (*ListExternalTaskResp) Success ¶
func (resp *ListExternalTaskResp) Success() bool
type ListExternalTaskRespData ¶
type ListExternalTaskRespData struct { Data []*ExternalTaskList `json:"data,omitempty"` // 返回数据 PageToken *string `json:"page_token,omitempty"` // 翻页 Token HasMore *bool `json:"has_more,omitempty"` // 是否有更多任务可供拉取 }
type ListInstanceCommentReq ¶
type ListInstanceCommentReq struct {
// contains filtered or unexported fields
}
type ListInstanceCommentReqBuilder ¶
type ListInstanceCommentReqBuilder struct {
// contains filtered or unexported fields
}
func NewListInstanceCommentReqBuilder ¶
func NewListInstanceCommentReqBuilder() *ListInstanceCommentReqBuilder
func (*ListInstanceCommentReqBuilder) Build ¶
func (builder *ListInstanceCommentReqBuilder) Build() *ListInstanceCommentReq
func (*ListInstanceCommentReqBuilder) InstanceId ¶
func (builder *ListInstanceCommentReqBuilder) InstanceId(instanceId string) *ListInstanceCommentReqBuilder
审批实例code(或者租户自定义审批实例ID)
示例值:6A123516-FB88-470D-A428-9AF58B71B3C0
func (*ListInstanceCommentReqBuilder) PageSize ¶
func (builder *ListInstanceCommentReqBuilder) PageSize(pageSize int) *ListInstanceCommentReqBuilder
分页大小
示例值:10
func (*ListInstanceCommentReqBuilder) PageToken ¶
func (builder *ListInstanceCommentReqBuilder) PageToken(pageToken string) *ListInstanceCommentReqBuilder
分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果
示例值:nF1ZXJ5VGhlbkZldGNoCgAAAAAA6PZwFmUzSldvTC1yU
func (*ListInstanceCommentReqBuilder) UserId ¶
func (builder *ListInstanceCommentReqBuilder) UserId(userId string) *ListInstanceCommentReqBuilder
用户ID
示例值:e5286g26
func (*ListInstanceCommentReqBuilder) UserIdType ¶
func (builder *ListInstanceCommentReqBuilder) UserIdType(userIdType string) *ListInstanceCommentReqBuilder
用户ID类型,不填默认为open_id
示例值:user_id
type ListInstanceCommentResp ¶
type ListInstanceCommentResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError Data *ListInstanceCommentRespData `json:"data"` // 业务数据 }
func (*ListInstanceCommentResp) Success ¶
func (resp *ListInstanceCommentResp) Success() bool
type ListInstanceCommentRespData ¶
type ListInstanceCommentRespData struct {
Comments []*Comment `json:"comments,omitempty"` // 评论数据列表
}
type ListInstanceIterator ¶
type ListInstanceIterator struct {
// contains filtered or unexported fields
}
func (*ListInstanceIterator) Next ¶
func (iterator *ListInstanceIterator) Next() (bool, string, error)
func (*ListInstanceIterator) NextPageToken ¶
func (iterator *ListInstanceIterator) NextPageToken() *string
type ListInstanceReq ¶
type ListInstanceReq struct { Limit int // 最多返回多少记录,只有在使用迭代器访问时,才有效 // contains filtered or unexported fields }
type ListInstanceReqBuilder ¶
type ListInstanceReqBuilder struct {
// contains filtered or unexported fields
}
func NewListInstanceReqBuilder ¶
func NewListInstanceReqBuilder() *ListInstanceReqBuilder
func (*ListInstanceReqBuilder) ApprovalCode ¶
func (builder *ListInstanceReqBuilder) ApprovalCode(approvalCode string) *ListInstanceReqBuilder
审批定义唯一标识
示例值:7C468A54-8745-2245-9675-08B7C63E7A85
func (*ListInstanceReqBuilder) Build ¶
func (builder *ListInstanceReqBuilder) Build() *ListInstanceReq
func (*ListInstanceReqBuilder) EndTime ¶
func (builder *ListInstanceReqBuilder) EndTime(endTime string) *ListInstanceReqBuilder
审批实例创建时间区间(毫秒)
示例值:1567690398020
func (*ListInstanceReqBuilder) Limit ¶
func (builder *ListInstanceReqBuilder) Limit(limit int) *ListInstanceReqBuilder
最大返回多少记录,当使用迭代器访问时才有效
func (*ListInstanceReqBuilder) PageSize ¶
func (builder *ListInstanceReqBuilder) PageSize(pageSize int) *ListInstanceReqBuilder
分页大小
示例值:100
func (*ListInstanceReqBuilder) PageToken ¶
func (builder *ListInstanceReqBuilder) PageToken(pageToken string) *ListInstanceReqBuilder
分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果
示例值:nF1ZXJ5VGhlbkZldGNoCgAAAAAA6PZwFmUzSldvTC1yU
func (*ListInstanceReqBuilder) StartTime ¶
func (builder *ListInstanceReqBuilder) StartTime(startTime string) *ListInstanceReqBuilder
审批实例创建时间区间(毫秒)
示例值:1567690398020
type ListInstanceResp ¶
type ListInstanceResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError Data *ListInstanceRespData `json:"data"` // 业务数据 }
func (*ListInstanceResp) Success ¶
func (resp *ListInstanceResp) Success() bool
type ListInstanceRespData ¶
type ManageableDefinition ¶ added in v3.0.13
type ManageableDefinition struct { ApprovalCode *string `json:"approval_code,omitempty"` // 审批定义 code 示例值:"7C468A54-8745-2245-9675-08B7C63E7A85" ApprovalName *string `json:"approval_name,omitempty"` // 审批名称,根据传入的local字段返回对应的国际化文案,未设置国际化文案时该字段为空 ApprovalStatus *string `json:"approval_status,omitempty"` // 审批定义状态 ApprovalAdminIds []string `json:"approval_admin_ids,omitempty"` // 有数据管理权限的审批流程管理员ID }
type ManageableDefinitionBuilder ¶ added in v3.0.13
type ManageableDefinitionBuilder struct {
// contains filtered or unexported fields
}
func NewManageableDefinitionBuilder ¶ added in v3.0.13
func NewManageableDefinitionBuilder() *ManageableDefinitionBuilder
func (*ManageableDefinitionBuilder) ApprovalAdminIds ¶ added in v3.0.13
func (builder *ManageableDefinitionBuilder) ApprovalAdminIds(approvalAdminIds []string) *ManageableDefinitionBuilder
有数据管理权限的审批流程管理员ID
示例值:
func (*ManageableDefinitionBuilder) ApprovalCode ¶ added in v3.0.13
func (builder *ManageableDefinitionBuilder) ApprovalCode(approvalCode string) *ManageableDefinitionBuilder
审批定义 code 示例值:"7C468A54-8745-2245-9675-08B7C63E7A85"
示例值:7C468A54-8745-2245-9675-08B7C63E7A85
func (*ManageableDefinitionBuilder) ApprovalName ¶ added in v3.0.13
func (builder *ManageableDefinitionBuilder) ApprovalName(approvalName string) *ManageableDefinitionBuilder
审批名称,根据传入的local字段返回对应的国际化文案,未设置国际化文案时该字段为空
示例值:请假
func (*ManageableDefinitionBuilder) ApprovalStatus ¶ added in v3.0.13
func (builder *ManageableDefinitionBuilder) ApprovalStatus(approvalStatus string) *ManageableDefinitionBuilder
审批定义状态
示例值:ACTIVE
func (*ManageableDefinitionBuilder) Build ¶ added in v3.0.13
func (builder *ManageableDefinitionBuilder) Build() *ManageableDefinition
type ManageableInstanceItem ¶ added in v3.0.13
type ManageableInstanceItem struct {
Instance *ManageableInstanceNode `json:"instance,omitempty"` // 审批实例信息
}
type ManageableInstanceItemBuilder ¶ added in v3.0.13
type ManageableInstanceItemBuilder struct {
// contains filtered or unexported fields
}
func NewManageableInstanceItemBuilder ¶ added in v3.0.13
func NewManageableInstanceItemBuilder() *ManageableInstanceItemBuilder
func (*ManageableInstanceItemBuilder) Build ¶ added in v3.0.13
func (builder *ManageableInstanceItemBuilder) Build() *ManageableInstanceItem
func (*ManageableInstanceItemBuilder) Instance ¶ added in v3.0.13
func (builder *ManageableInstanceItemBuilder) Instance(instance *ManageableInstanceNode) *ManageableInstanceItemBuilder
审批实例信息
示例值:
type ManageableInstanceNode ¶ added in v3.0.13
type ManageableInstanceNode struct { Code *string `json:"code,omitempty"` // 审批实例 code StartUserId *string `json:"start_user_id,omitempty"` // 审批实例发起人id CurrentUserIds []string `json:"current_user_ids,omitempty"` // 当前处理人id DepartmentId *string `json:"department_id,omitempty"` // 审批实例所属部门id NodeName *string `json:"node_name,omitempty"` // 当前处理节点名称 Form *string `json:"form,omitempty"` // json字符串,控件值 Version *string `json:"version,omitempty"` // 审批实例对应的审批定义版本 StartTime *string `json:"start_time,omitempty"` // 审批实例发起时间 EndTime *string `json:"end_time,omitempty"` // 审批实例结束时间 Status *string `json:"status,omitempty"` // 审批实例状态 SerialId *string `json:"serial_id,omitempty"` // 审批流水号 StatusDisplay *string `json:"status_display,omitempty"` // 审批状态展示值 }
type ManageableInstanceNodeBuilder ¶ added in v3.0.13
type ManageableInstanceNodeBuilder struct {
// contains filtered or unexported fields
}
func NewManageableInstanceNodeBuilder ¶ added in v3.0.13
func NewManageableInstanceNodeBuilder() *ManageableInstanceNodeBuilder
func (*ManageableInstanceNodeBuilder) Build ¶ added in v3.0.13
func (builder *ManageableInstanceNodeBuilder) Build() *ManageableInstanceNode
func (*ManageableInstanceNodeBuilder) Code ¶ added in v3.0.13
func (builder *ManageableInstanceNodeBuilder) Code(code string) *ManageableInstanceNodeBuilder
审批实例 code
示例值:EB828003-9FFE-4B3F-AA50-2E199E2ED943
func (*ManageableInstanceNodeBuilder) CurrentUserIds ¶ added in v3.0.13
func (builder *ManageableInstanceNodeBuilder) CurrentUserIds(currentUserIds []string) *ManageableInstanceNodeBuilder
当前处理人id
示例值:lwiu098wj
func (*ManageableInstanceNodeBuilder) DepartmentId ¶ added in v3.0.13
func (builder *ManageableInstanceNodeBuilder) DepartmentId(departmentId string) *ManageableInstanceNodeBuilder
审批实例所属部门id
示例值:od-8ec33ffec336c3a39a278bc25e931676
func (*ManageableInstanceNodeBuilder) EndTime ¶ added in v3.0.13
func (builder *ManageableInstanceNodeBuilder) EndTime(endTime string) *ManageableInstanceNodeBuilder
审批实例结束时间
示例值:1547654251506
func (*ManageableInstanceNodeBuilder) Form ¶ added in v3.0.13
func (builder *ManageableInstanceNodeBuilder) Form(form string) *ManageableInstanceNodeBuilder
json字符串,控件值
示例值:[{\"id\": \"widget1\",\"custom_id\": \"user_info\",\"name\": \"Item application\",\"type\": \"textarea\"},\"value\":\"aaaa\"]
func (*ManageableInstanceNodeBuilder) NodeName ¶ added in v3.0.13
func (builder *ManageableInstanceNodeBuilder) NodeName(nodeName string) *ManageableInstanceNodeBuilder
当前处理节点名称
示例值:审批节点1
func (*ManageableInstanceNodeBuilder) SerialId ¶ added in v3.0.13
func (builder *ManageableInstanceNodeBuilder) SerialId(serialId string) *ManageableInstanceNodeBuilder
审批流水号
示例值:201902020001
func (*ManageableInstanceNodeBuilder) StartTime ¶ added in v3.0.13
func (builder *ManageableInstanceNodeBuilder) StartTime(startTime string) *ManageableInstanceNodeBuilder
审批实例发起时间
示例值:1547654251506
func (*ManageableInstanceNodeBuilder) StartUserId ¶ added in v3.0.13
func (builder *ManageableInstanceNodeBuilder) StartUserId(startUserId string) *ManageableInstanceNodeBuilder
审批实例发起人id
示例值:lwiu098wj
func (*ManageableInstanceNodeBuilder) Status ¶ added in v3.0.13
func (builder *ManageableInstanceNodeBuilder) Status(status string) *ManageableInstanceNodeBuilder
审批实例状态
示例值:PENDING
func (*ManageableInstanceNodeBuilder) StatusDisplay ¶ added in v3.0.13
func (builder *ManageableInstanceNodeBuilder) StatusDisplay(statusDisplay string) *ManageableInstanceNodeBuilder
审批状态展示值
示例值:"已通过"
func (*ManageableInstanceNodeBuilder) Version ¶ added in v3.0.13
func (builder *ManageableInstanceNodeBuilder) Version(version string) *ManageableInstanceNodeBuilder
审批实例对应的审批定义版本
示例值:7129705107930742803
type Message ¶
type Message struct { Id *string `json:"id,omitempty"` // 消息id标识 ReceiveId *string `json:"receive_id,omitempty"` // 接受消息的各类id Content *string `json:"content,omitempty"` // 消息体, json格式 MsgType *string `json:"msg_type,omitempty"` // 消息类型 Config *string `json:"config,omitempty"` // 发送配置 Extra *string `json:"extra,omitempty"` // 特殊配制 Uuid *string `json:"uuid,omitempty"` // 幂等key }
type MessageBuilder ¶
type MessageBuilder struct {
// contains filtered or unexported fields
}
func NewMessageBuilder ¶
func NewMessageBuilder() *MessageBuilder
func (*MessageBuilder) Build ¶
func (builder *MessageBuilder) Build() *Message
func (*MessageBuilder) Config ¶
func (builder *MessageBuilder) Config(config string) *MessageBuilder
发送配置
示例值:{}
func (*MessageBuilder) Content ¶
func (builder *MessageBuilder) Content(content string) *MessageBuilder
消息体, json格式
示例值:{}
func (*MessageBuilder) Extra ¶
func (builder *MessageBuilder) Extra(extra string) *MessageBuilder
特殊配制
示例值:v2
func (*MessageBuilder) Id ¶
func (builder *MessageBuilder) Id(id string) *MessageBuilder
消息id标识
示例值:1705036822442409986
func (*MessageBuilder) MsgType ¶
func (builder *MessageBuilder) MsgType(msgType string) *MessageBuilder
消息类型
示例值:interactive
func (*MessageBuilder) ReceiveId ¶
func (builder *MessageBuilder) ReceiveId(receiveId string) *MessageBuilder
接受消息的各类id
示例值:ou_xxx
func (*MessageBuilder) Uuid ¶
func (builder *MessageBuilder) Uuid(uuid string) *MessageBuilder
幂等key
示例值:a60cfe61268e10f054a3211ab72185c
type NodeApprover ¶
type NodeApprover struct { Key *string `json:"key,omitempty"` // node id 或 custom node id,通过 [查看审批定义](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/approval-v4/approval/get) 获取 Value []string `json:"value,omitempty"` // value: 审批人列表 }
type NodeApproverBuilder ¶
type NodeApproverBuilder struct {
// contains filtered or unexported fields
}
func NewNodeApproverBuilder ¶
func NewNodeApproverBuilder() *NodeApproverBuilder
func (*NodeApproverBuilder) Build ¶
func (builder *NodeApproverBuilder) Build() *NodeApprover
func (*NodeApproverBuilder) Key ¶
func (builder *NodeApproverBuilder) Key(key string) *NodeApproverBuilder
node id 或 custom node id,通过 [查看审批定义](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/approval-v4/approval/get) 获取
示例值:46e6d96cfa756980907209209ec03b64
func (*NodeApproverBuilder) Value ¶
func (builder *NodeApproverBuilder) Value(value []string) *NodeApproverBuilder
value: 审批人列表
示例值:["f7cb567e"]
type NodeCc ¶
type NodeCc struct { Key *string `json:"key,omitempty"` // node id ,通过 [查看审批定义](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/approval-v4/approval/get) 获取 Value []string `json:"value,omitempty"` // value: 审批人列表 }
type NodeCcBuilder ¶
type NodeCcBuilder struct {
// contains filtered or unexported fields
}
func NewNodeCcBuilder ¶
func NewNodeCcBuilder() *NodeCcBuilder
func (*NodeCcBuilder) Build ¶
func (builder *NodeCcBuilder) Build() *NodeCc
func (*NodeCcBuilder) Key ¶
func (builder *NodeCcBuilder) Key(key string) *NodeCcBuilder
node id ,通过 [查看审批定义](https://open.feishu.cn/document/uAjLw4CM/ukTMukTMukTM/reference/approval-v4/approval/get) 获取
示例值:46e6d96cfa756980907209209ec03b75
func (*NodeCcBuilder) Value ¶
func (builder *NodeCcBuilder) Value(value []string) *NodeCcBuilder
value: 审批人列表
示例值:["f7cb567e"]
type P1LeaveApprovalV4 ¶
type P1LeaveApprovalV4 struct { *larkevent.EventReq *larkevent.EventBase Event *P1LeaveApprovalV4Data `json:"event"` }
func (*P1LeaveApprovalV4) RawReq ¶
func (m *P1LeaveApprovalV4) RawReq(req *larkevent.EventReq)
type P1LeaveApprovalV4Data ¶
type P1LeaveApprovalV4Data struct { AppID string `json:"app_id,omitempty"` // APP ID TenantKey string `json:"tenant_key,omitempty"` // 企业标识 Type string `json:"type,omitempty"` // 事件回调此处固定为event_callback InstanceCode string `json:"instance_code,omitempty"` // 审批实例Code UserID string `json:"user_id,omitempty"` // 用户id OpenID string `json:"open_id,omitempty"` // 用户open_id OriginInstanceCode string `json:"origin_instance_code,omitempty"` // 销假单关联的原始单据 StartTime int64 `json:"start_time,omitempty"` // 销假单关联的原始单据 EndTime int64 `json:"end_time,omitempty"` // 审批结束时间 LeaveFeedingArriveLate int64 `json:"leave_feeding_arrive_late,omitempty"` //上班晚到(哺乳假相关) LeaveFeedingLeaveEarly int64 `json:"leave_feeding_leave_early,omitempty"` //下班早走(哺乳假相关) LeaveFeedingRestDaily int64 `json:"leave_feeding_rest_daily,omitempty"` //每日休息(哺乳假相关) LeaveName string `json:"leave_name,omitempty"` // 假期名称 LeaveUnit string `json:"leave_unit,omitempty"` // 请假最小时长 LeaveStartTime string `json:"leave_start_time,omitempty"` // 请假开始时间 LeaveEndTime string `json:"leave_end_time,omitempty"` // 请假结束时间 LeaveDetail []string `json:"leave_detail,omitempty"` // 具体的请假明细时间 LeaveRange []string `json:"leave_range,omitempty"` // 具体的请假时间范围 LeaveInterval int64 `json:"leave_interval,omitempty"` // 请假时长,单位(秒) LeaveReason string `json:"leave_reason,omitempty"` // 请假事由 I18nResources []*P1LeaveApprovalI18nResourceV4 `json:"i18n_resources,omitempty"` // 国际化文案 }
type P1LeaveApprovalV4Handler ¶
type P1LeaveApprovalV4Handler struct {
// contains filtered or unexported fields
}
func NewP1LeaveApprovalV4Handler ¶
func NewP1LeaveApprovalV4Handler(handler func(context.Context, *P1LeaveApprovalV4) error) *P1LeaveApprovalV4Handler
func (*P1LeaveApprovalV4Handler) Event ¶
func (h *P1LeaveApprovalV4Handler) Event() interface{}
type P1OutApprovalV4 ¶
type P1OutApprovalV4 struct { *larkevent.EventReq *larkevent.EventBase Event *P1OutApprovalV4Data `json:"event"` }
func (*P1OutApprovalV4) RawReq ¶
func (m *P1OutApprovalV4) RawReq(req *larkevent.EventReq)
type P1OutApprovalV4Data ¶
type P1OutApprovalV4Data struct { AppID string `json:"app_id,omitempty"` // APP ID I18nResources []*P1OutApprovalI18nResourceV4 `json:"i18n_resources,omitempty"` // 国际化文案 InstanceCode string `json:"instance_code,omitempty"` // 此审批的唯一标识 OutImage string `json:"out_image,omitempty"` OutInterval int64 `json:"out_interval,omitempty"` // 外出时长,单位秒 OutName string `json:"out_name,omitempty"` // 通过i18n_resources里的信息换取相应语言的文案 OutReason string `json:"out_reason,omitempty"` // 外出事由 OutStartTime string `json:"out_start_time,omitempty"` // 外出开始时间 OutEndTime string `json:"out_end_time,omitempty"` // 外出结束时间 OutUnit string `json:"out_unit,omitempty"` // 外出时长的单位,HOUR 小时,DAY 天,HALF_DAY 半天 StartTime int64 `json:"start_time,omitempty"` // 审批开始时间 EndTime int64 `json:"end_time,omitempty"` // 审批结束时间 TenantKey string `json:"tenant_key,omitempty"` // 企业标识 Type string `json:"type,omitempty"` // 此事件此处始终为event_callback OpenID string `json:"open_id,omitempty"` // 申请发起人open_id UserID string `json:"user_id,omitempty"` // 申请发起人 }
type P1OutApprovalV4Handler ¶
type P1OutApprovalV4Handler struct {
// contains filtered or unexported fields
}
func NewP1OutApprovalV4Handler ¶
func NewP1OutApprovalV4Handler(handler func(context.Context, *P1OutApprovalV4) error) *P1OutApprovalV4Handler
func (*P1OutApprovalV4Handler) Event ¶
func (h *P1OutApprovalV4Handler) Event() interface{}
type P1RemedyApprovalV4 ¶
type P1RemedyApprovalV4 struct { *larkevent.EventReq *larkevent.EventBase Event *P1RemedyApprovalV4Data `json:"event"` }
func (*P1RemedyApprovalV4) RawReq ¶
func (m *P1RemedyApprovalV4) RawReq(req *larkevent.EventReq)
type P1RemedyApprovalV4Data ¶
type P1RemedyApprovalV4Data struct { AppID string `json:"app_id,omitempty"` // APP ID TenantKey string `json:"tenant_key,omitempty"` // 企业标识 Type string `json:"type,omitempty"` //事件回调此处固定为event_callback InstanceCode string `json:"instance_code,omitempty"` // 审批实例Code EmployeeID string `json:"employee_id,omitempty"` // 用户id OpenID string `json:"open_id,omitempty"` // 用户open_id StartTime int64 `json:"start_time,omitempty"` // 审批发起时间 EndTime int64 `json:"end_time,omitempty"` // 审批结束时间 RemedyTime string `json:"remedy_time,omitempty"` // 补卡时间 RemedyReason string `json:"remedy_reason,omitempty"` // 补卡原因 }
type P1RemedyApprovalV4Handler ¶
type P1RemedyApprovalV4Handler struct {
// contains filtered or unexported fields
}
func NewP1RemedyApprovalV4Handler ¶
func NewP1RemedyApprovalV4Handler(handler func(context.Context, *P1RemedyApprovalV4) error) *P1RemedyApprovalV4Handler
func (*P1RemedyApprovalV4Handler) Event ¶
func (h *P1RemedyApprovalV4Handler) Event() interface{}
type P1ShiftApprovalV4 ¶
type P1ShiftApprovalV4 struct { *larkevent.EventReq *larkevent.EventBase Event *P1ShiftApprovalV4Data `json:"event"` }
func (*P1ShiftApprovalV4) RawReq ¶
func (m *P1ShiftApprovalV4) RawReq(req *larkevent.EventReq)
type P1ShiftApprovalV4Data ¶
type P1ShiftApprovalV4Data struct { AppID string `json:"app_id,omitempty"` // APP ID TenantKey string `json:"tenant_key,omitempty"` // 企业标识 Type string `json:"type,omitempty"` //事件回调此处固定为event_callback InstanceCode string `json:"instance_code,omitempty"` // 审批实例Code EmployeeID string `json:"employee_id,omitempty"` // 用户id OpenID string `json:"open_id,omitempty"` // 用户open_id StartTime int64 `json:"start_time,omitempty"` // 审批发起时间 EndTime int64 `json:"end_time,omitempty"` // 审批结束时间 ShiftTime string `json:"shift_time,omitempty"` // 换班时间 ReturnTime string `json:"return_time,omitempty"` // 还班时间 ShiftReason string `json:"shift_reason,omitempty"` // 换班事由 }
type P1ShiftApprovalV4Handler ¶
type P1ShiftApprovalV4Handler struct {
// contains filtered or unexported fields
}
func NewP1ShiftApprovalV4Handler ¶
func NewP1ShiftApprovalV4Handler(handler func(context.Context, *P1ShiftApprovalV4) error) *P1ShiftApprovalV4Handler
func (*P1ShiftApprovalV4Handler) Event ¶
func (h *P1ShiftApprovalV4Handler) Event() interface{}
type P1TripApprovalScheduleV4 ¶
type P1TripApprovalScheduleV4 struct { TripStartTime string `json:"trip_start_time,omitempty"` // 行程开始时间 TripEndTime string `json:"trip_end_time,omitempty"` // 行程结束时间 TripInterval int64 `json:"trip_interval,omitempty"` // 行程时长(秒) Departure string `json:"departure,omitempty"` // 出发地 Destination string `json:"destination,omitempty"` // 目的地 Transportation string `json:"transportation,omitempty"` // 交通工具 TripType string `json:"trip_type,omitempty"` // 单程/往返 Remark string `json:"remark,omitempty"` // 备注 }
type P1TripApprovalTripPeerV4 ¶
type P1TripApprovalTripPeerV4 struct {
// contains filtered or unexported fields
}
type P1TripApprovalV4 ¶
type P1TripApprovalV4 struct { *larkevent.EventReq *larkevent.EventBase Event *P1TripApprovalV4Data `json:"event"` }
func (*P1TripApprovalV4) RawReq ¶
func (m *P1TripApprovalV4) RawReq(req *larkevent.EventReq)
type P1TripApprovalV4Data ¶
type P1TripApprovalV4Data struct { AppID string `json:"app_id,omitempty"` // APP ID TenantKey string `json:"tenant_key,omitempty"` // 企业标识 Type string `json:"type,omitempty"` //事件回调此处固定为event_callback InstanceCode string `json:"instance_code,omitempty"` // 审批实例Code EmployeeID string `json:"employee_id,omitempty"` // 用户id OpenID string `json:"open_id,omitempty"` // 用户open_id StartTime int64 `json:"start_time,omitempty"` // 审批发起时间 EndTime int64 `json:"end_time,omitempty"` // 审批结束时间 Schedules []*P1TripApprovalScheduleV4 `json:"schedules,omitempty"` // Schedule 结构数组 TripInterval int64 `json:"trip_interval,omitempty"` // 行程总时长(秒) TripReason string `json:"trip_reason,omitempty"` // 出差事由 TripPeers []string `json:"trip_peers,omitempty"` // 同行人 }
type P1TripApprovalV4Handler ¶
type P1TripApprovalV4Handler struct {
// contains filtered or unexported fields
}
func NewP1TripApprovalV4Handler ¶
func NewP1TripApprovalV4Handler(handler func(context.Context, *P1TripApprovalV4) error) *P1TripApprovalV4Handler
func (*P1TripApprovalV4Handler) Event ¶
func (h *P1TripApprovalV4Handler) Event() interface{}
type P1WorkApprovalV4 ¶
type P1WorkApprovalV4 struct { *larkevent.EventReq *larkevent.EventBase Event *P1WorkApprovalV4Data `json:"event"` }
func (*P1WorkApprovalV4) RawReq ¶
func (m *P1WorkApprovalV4) RawReq(req *larkevent.EventReq)
type P1WorkApprovalV4Data ¶
type P1WorkApprovalV4Data struct { AppID string `json:"app_id,omitempty"` // APP ID TenantKey string `json:"tenant_key,omitempty"` // 企业标识 Type string `json:"type,omitempty"` //事件回调此处固定为event_callback InstanceCode string `json:"instance_code,omitempty"` // 审批实例Code EmployeeID string `json:"employee_id,omitempty"` // 用户id OpenID string `json:"open_id,omitempty"` // 用户open_id StartTime int64 `json:"start_time,omitempty"` // 审批发起时间 EndTime int64 `json:"end_time,omitempty"` // 审批结束时间 WorkType string `json:"work_type,omitempty"` // 加班类型 WorkStartTime string `json:"work_start_time,omitempty"` // 加班开始时间 WorkEndTime string `json:"work_end_time,omitempty"` // 加班结束时间 WorkInterval int64 `json:"work_interval,omitempty"` // 加班时长,单位(秒) WorkReason string `json:"work_reason,omitempty"` // 加班事由 }
type P1WorkApprovalV4Handler ¶
type P1WorkApprovalV4Handler struct {
// contains filtered or unexported fields
}
func NewP1WorkApprovalV4Handler ¶
func NewP1WorkApprovalV4Handler(handler func(context.Context, *P1WorkApprovalV4) error) *P1WorkApprovalV4Handler
func (*P1WorkApprovalV4Handler) Event ¶
func (h *P1WorkApprovalV4Handler) Event() interface{}
type P2ApprovalUpdatedV4 ¶
type P2ApprovalUpdatedV4 struct { *larkevent.EventV2Base // 事件基础数据 *larkevent.EventReq // 请求原生数据 Event *P2ApprovalUpdatedV4Data `json:"event"` // 事件内容 }
func (*P2ApprovalUpdatedV4) RawReq ¶
func (m *P2ApprovalUpdatedV4) RawReq(req *larkevent.EventReq)
type P2ApprovalUpdatedV4Data ¶
type P2ApprovalUpdatedV4Data struct {
Object *ApprovalEvent `json:"object,omitempty"` // 事件详情数据
}
type P2ApprovalUpdatedV4Handler ¶
type P2ApprovalUpdatedV4Handler struct {
// contains filtered or unexported fields
}
消息处理器定义
func NewP2ApprovalUpdatedV4Handler ¶
func NewP2ApprovalUpdatedV4Handler(handler func(context.Context, *P2ApprovalUpdatedV4) error) *P2ApprovalUpdatedV4Handler
func (*P2ApprovalUpdatedV4Handler) Event ¶
func (h *P2ApprovalUpdatedV4Handler) Event() interface{}
返回事件的消息体的实例,用于反序列化用
type PreviewInstancePathReqBodyBuilder ¶
type PreviewInstancePathReqBodyBuilder struct {
// contains filtered or unexported fields
}
func NewPreviewInstancePathReqBodyBuilder ¶
func NewPreviewInstancePathReqBodyBuilder() *PreviewInstancePathReqBodyBuilder
func (*PreviewInstancePathReqBodyBuilder) ApprovalCode ¶
func (builder *PreviewInstancePathReqBodyBuilder) ApprovalCode(approvalCode string) *PreviewInstancePathReqBodyBuilder
审批定义code
示例值:C2CAAA90-70D9-3214-906B-B6FFF947F00D
func (*PreviewInstancePathReqBodyBuilder) Build ¶
func (builder *PreviewInstancePathReqBodyBuilder) Build() (*PreviewInstanceReqBody, error)
func (*PreviewInstancePathReqBodyBuilder) DepartmentId ¶
func (builder *PreviewInstancePathReqBodyBuilder) DepartmentId(departmentId string) *PreviewInstancePathReqBodyBuilder
部门id
示例值:6982332863116876308
func (*PreviewInstancePathReqBodyBuilder) Form ¶
func (builder *PreviewInstancePathReqBodyBuilder) Form(form string) *PreviewInstancePathReqBodyBuilder
表单数据
示例值:[{\"id\":\"widget16256287451710001\", \"type\": \"number\", \"value\":\"43\"}]
func (*PreviewInstancePathReqBodyBuilder) InstanceCode ¶
func (builder *PreviewInstancePathReqBodyBuilder) InstanceCode(instanceCode string) *PreviewInstancePathReqBodyBuilder
审批实例code
示例值:12345CA6-97AC-32BB-8231-47C33FFFCCFD
func (*PreviewInstancePathReqBodyBuilder) Locale ¶
func (builder *PreviewInstancePathReqBodyBuilder) Locale(locale string) *PreviewInstancePathReqBodyBuilder
语言类型
示例值:zh-CN: 中文 en-US: 英文
func (*PreviewInstancePathReqBodyBuilder) TaskId ¶
func (builder *PreviewInstancePathReqBodyBuilder) TaskId(taskId string) *PreviewInstancePathReqBodyBuilder
任务id
示例值:6982332863116876308
func (*PreviewInstancePathReqBodyBuilder) UserId ¶
func (builder *PreviewInstancePathReqBodyBuilder) UserId(userId string) *PreviewInstancePathReqBodyBuilder
用户id
示例值:发起审批用户id,按照user_id_type类型填写
type PreviewInstanceReq ¶
type PreviewInstanceReq struct { Body *PreviewInstanceReqBody `body:""` // contains filtered or unexported fields }
type PreviewInstanceReqBody ¶
type PreviewInstanceReqBody struct { UserId *string `json:"user_id,omitempty"` // 用户id ApprovalCode *string `json:"approval_code,omitempty"` // 审批定义code DepartmentId *string `json:"department_id,omitempty"` // 部门id Form *string `json:"form,omitempty"` // 表单数据 InstanceCode *string `json:"instance_code,omitempty"` // 审批实例code Locale *string `json:"locale,omitempty"` // 语言类型 TaskId *string `json:"task_id,omitempty"` // 任务id }
type PreviewInstanceReqBodyBuilder ¶
type PreviewInstanceReqBodyBuilder struct {
// contains filtered or unexported fields
}
func NewPreviewInstanceReqBodyBuilder ¶
func NewPreviewInstanceReqBodyBuilder() *PreviewInstanceReqBodyBuilder
func (*PreviewInstanceReqBodyBuilder) ApprovalCode ¶
func (builder *PreviewInstanceReqBodyBuilder) ApprovalCode(approvalCode string) *PreviewInstanceReqBodyBuilder
审批定义code
示例值:C2CAAA90-70D9-3214-906B-B6FFF947F00D
func (*PreviewInstanceReqBodyBuilder) Build ¶
func (builder *PreviewInstanceReqBodyBuilder) Build() *PreviewInstanceReqBody
func (*PreviewInstanceReqBodyBuilder) DepartmentId ¶
func (builder *PreviewInstanceReqBodyBuilder) DepartmentId(departmentId string) *PreviewInstanceReqBodyBuilder
部门id
示例值:6982332863116876308
func (*PreviewInstanceReqBodyBuilder) Form ¶
func (builder *PreviewInstanceReqBodyBuilder) Form(form string) *PreviewInstanceReqBodyBuilder
表单数据
示例值:[{\"id\":\"widget16256287451710001\", \"type\": \"number\", \"value\":\"43\"}]
func (*PreviewInstanceReqBodyBuilder) InstanceCode ¶
func (builder *PreviewInstanceReqBodyBuilder) InstanceCode(instanceCode string) *PreviewInstanceReqBodyBuilder
审批实例code
示例值:12345CA6-97AC-32BB-8231-47C33FFFCCFD
func (*PreviewInstanceReqBodyBuilder) Locale ¶
func (builder *PreviewInstanceReqBodyBuilder) Locale(locale string) *PreviewInstanceReqBodyBuilder
语言类型
示例值:zh-CN: 中文 en-US: 英文
func (*PreviewInstanceReqBodyBuilder) TaskId ¶
func (builder *PreviewInstanceReqBodyBuilder) TaskId(taskId string) *PreviewInstanceReqBodyBuilder
任务id
示例值:6982332863116876308
func (*PreviewInstanceReqBodyBuilder) UserId ¶
func (builder *PreviewInstanceReqBodyBuilder) UserId(userId string) *PreviewInstanceReqBodyBuilder
用户id
示例值:发起审批用户id,按照user_id_type类型填写
type PreviewInstanceReqBuilder ¶
type PreviewInstanceReqBuilder struct {
// contains filtered or unexported fields
}
func NewPreviewInstanceReqBuilder ¶
func NewPreviewInstanceReqBuilder() *PreviewInstanceReqBuilder
func (*PreviewInstanceReqBuilder) Body ¶
func (builder *PreviewInstanceReqBuilder) Body(body *PreviewInstanceReqBody) *PreviewInstanceReqBuilder
func (*PreviewInstanceReqBuilder) Build ¶
func (builder *PreviewInstanceReqBuilder) Build() *PreviewInstanceReq
func (*PreviewInstanceReqBuilder) UserIdType ¶
func (builder *PreviewInstanceReqBuilder) UserIdType(userIdType string) *PreviewInstanceReqBuilder
open_id(ou_开头),union_id(on_开头),user_id(字符串)。user_id_type不填默认为open_id
示例值:open_id
type PreviewInstanceResp ¶
type PreviewInstanceResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError Data *PreviewInstanceRespData `json:"data"` // 业务数据 }
func (*PreviewInstanceResp) Success ¶
func (resp *PreviewInstanceResp) Success() bool
type PreviewInstanceRespData ¶
type PreviewInstanceRespData struct {
PreviewNodes []*PreviewNode `json:"preview_nodes,omitempty"` // 预览节点信息
}
type PreviewNode ¶
type PreviewNode struct { NodeId *string `json:"node_id,omitempty"` // 节点id NodeName *string `json:"node_name,omitempty"` // 节点名称 NodeType *string `json:"node_type,omitempty"` // 节点类型 “AND":会签 “OR”:或签 Comments []string `json:"comments,omitempty"` // 节点描述 CustomNodeId *string `json:"custom_node_id,omitempty"` // 租户节点id UserIdList []string `json:"user_id_list,omitempty"` // 审批人id列表 EndCcIdList []string `json:"end_cc_id_list,omitempty"` // 节点结束抄送人id列表 IsEmptyLogic *bool `json:"is_empty_logic,omitempty"` // 审批人是否为空 IsApproverTypeFree *bool `json:"is_approver_type_free,omitempty"` // 是否是发起人自选类型 HasCcTypeFree *bool `json:"has_cc_type_free,omitempty"` // 是否包含抄送人自选类型 }
type PreviewNodeBuilder ¶
type PreviewNodeBuilder struct {
// contains filtered or unexported fields
}
func NewPreviewNodeBuilder ¶
func NewPreviewNodeBuilder() *PreviewNodeBuilder
func (*PreviewNodeBuilder) Build ¶
func (builder *PreviewNodeBuilder) Build() *PreviewNode
func (*PreviewNodeBuilder) Comments ¶
func (builder *PreviewNodeBuilder) Comments(comments []string) *PreviewNodeBuilder
节点描述
示例值:
func (*PreviewNodeBuilder) CustomNodeId ¶
func (builder *PreviewNodeBuilder) CustomNodeId(customNodeId string) *PreviewNodeBuilder
租户节点id
示例值:
func (*PreviewNodeBuilder) EndCcIdList ¶
func (builder *PreviewNodeBuilder) EndCcIdList(endCcIdList []string) *PreviewNodeBuilder
节点结束抄送人id列表
示例值:
func (*PreviewNodeBuilder) HasCcTypeFree ¶
func (builder *PreviewNodeBuilder) HasCcTypeFree(hasCcTypeFree bool) *PreviewNodeBuilder
是否包含抄送人自选类型
示例值:
func (*PreviewNodeBuilder) IsApproverTypeFree ¶
func (builder *PreviewNodeBuilder) IsApproverTypeFree(isApproverTypeFree bool) *PreviewNodeBuilder
是否是发起人自选类型
示例值:
func (*PreviewNodeBuilder) IsEmptyLogic ¶
func (builder *PreviewNodeBuilder) IsEmptyLogic(isEmptyLogic bool) *PreviewNodeBuilder
审批人是否为空
示例值:
func (*PreviewNodeBuilder) NodeId ¶
func (builder *PreviewNodeBuilder) NodeId(nodeId string) *PreviewNodeBuilder
节点id
示例值:
func (*PreviewNodeBuilder) NodeName ¶
func (builder *PreviewNodeBuilder) NodeName(nodeName string) *PreviewNodeBuilder
节点名称
示例值:
func (*PreviewNodeBuilder) NodeType ¶
func (builder *PreviewNodeBuilder) NodeType(nodeType string) *PreviewNodeBuilder
节点类型 “AND":会签 “OR”:或签
示例值:
func (*PreviewNodeBuilder) UserIdList ¶
func (builder *PreviewNodeBuilder) UserIdList(userIdList []string) *PreviewNodeBuilder
审批人id列表
示例值:
type QueryInstanceIterator ¶ added in v3.0.1
type QueryInstanceIterator struct {
// contains filtered or unexported fields
}
func (*QueryInstanceIterator) Next ¶ added in v3.0.1
func (iterator *QueryInstanceIterator) Next() (bool, *InstanceSearchItem, error)
func (*QueryInstanceIterator) NextPageToken ¶ added in v3.0.1
func (iterator *QueryInstanceIterator) NextPageToken() *string
type QueryInstanceReq ¶
type QueryInstanceReq struct { InstanceSearch *InstanceSearch `body:""` Limit int // 最多返回多少记录,只有在使用迭代器访问时,才有效 // contains filtered or unexported fields }
type QueryInstanceReqBuilder ¶
type QueryInstanceReqBuilder struct {
// contains filtered or unexported fields
}
func NewQueryInstanceReqBuilder ¶
func NewQueryInstanceReqBuilder() *QueryInstanceReqBuilder
func (*QueryInstanceReqBuilder) Build ¶
func (builder *QueryInstanceReqBuilder) Build() *QueryInstanceReq
func (*QueryInstanceReqBuilder) InstanceSearch ¶
func (builder *QueryInstanceReqBuilder) InstanceSearch(instanceSearch *InstanceSearch) *QueryInstanceReqBuilder
该接口通过不同条件查询审批系统中符合条件的审批实例列表。
func (*QueryInstanceReqBuilder) Limit ¶ added in v3.0.1
func (builder *QueryInstanceReqBuilder) Limit(limit int) *QueryInstanceReqBuilder
最大返回多少记录,当使用迭代器访问时才有效
func (*QueryInstanceReqBuilder) PageSize ¶
func (builder *QueryInstanceReqBuilder) PageSize(pageSize int) *QueryInstanceReqBuilder
分页大小
示例值:10
func (*QueryInstanceReqBuilder) PageToken ¶
func (builder *QueryInstanceReqBuilder) PageToken(pageToken string) *QueryInstanceReqBuilder
分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果
示例值:nF1ZXJ5VGhlbkZldGNoCgAAAAAA6PZwFmUzSldvTC1yU
func (*QueryInstanceReqBuilder) UserIdType ¶
func (builder *QueryInstanceReqBuilder) UserIdType(userIdType string) *QueryInstanceReqBuilder
此次调用中使用的用户ID的类型
示例值:
type QueryInstanceResp ¶
type QueryInstanceResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError Data *QueryInstanceRespData `json:"data"` // 业务数据 }
func (*QueryInstanceResp) Success ¶
func (resp *QueryInstanceResp) Success() bool
type QueryInstanceRespData ¶
type QueryInstanceRespData struct { Count *int `json:"count,omitempty"` // 查询返回条数 InstanceList []*InstanceSearchItem `json:"instance_list,omitempty"` // 审批实例列表 PageToken *string `json:"page_token,omitempty"` // 翻页 Token HasMore *bool `json:"has_more,omitempty"` // 是否有更多任务可供拉取 }
type QueryTaskIterator ¶
type QueryTaskIterator struct {
// contains filtered or unexported fields
}
func (*QueryTaskIterator) NextPageToken ¶
func (iterator *QueryTaskIterator) NextPageToken() *string
type QueryTaskReq ¶
type QueryTaskReq struct { Limit int // 最多返回多少记录,只有在使用迭代器访问时,才有效 // contains filtered or unexported fields }
type QueryTaskReqBuilder ¶
type QueryTaskReqBuilder struct {
// contains filtered or unexported fields
}
func NewQueryTaskReqBuilder ¶
func NewQueryTaskReqBuilder() *QueryTaskReqBuilder
func (*QueryTaskReqBuilder) Build ¶
func (builder *QueryTaskReqBuilder) Build() *QueryTaskReq
func (*QueryTaskReqBuilder) Limit ¶
func (builder *QueryTaskReqBuilder) Limit(limit int) *QueryTaskReqBuilder
最大返回多少记录,当使用迭代器访问时才有效
func (*QueryTaskReqBuilder) PageSize ¶
func (builder *QueryTaskReqBuilder) PageSize(pageSize int) *QueryTaskReqBuilder
分页大小
示例值:100
func (*QueryTaskReqBuilder) PageToken ¶
func (builder *QueryTaskReqBuilder) PageToken(pageToken string) *QueryTaskReqBuilder
分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果
示例值:1
func (*QueryTaskReqBuilder) Topic ¶
func (builder *QueryTaskReqBuilder) Topic(topic string) *QueryTaskReqBuilder
需要查询的任务分组主题,如「待办」、「已办」等
示例值:1
func (*QueryTaskReqBuilder) UserId ¶
func (builder *QueryTaskReqBuilder) UserId(userId string) *QueryTaskReqBuilder
需要查询的 User ID
示例值:example_user_id
func (*QueryTaskReqBuilder) UserIdType ¶
func (builder *QueryTaskReqBuilder) UserIdType(userIdType string) *QueryTaskReqBuilder
此次调用中使用的用户ID的类型
示例值:
type QueryTaskResp ¶
type QueryTaskResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError Data *QueryTaskRespData `json:"data"` // 业务数据 }
func (*QueryTaskResp) Success ¶
func (resp *QueryTaskResp) Success() bool
type QueryTaskRespData ¶
type ReasonBuilder ¶
type ReasonBuilder struct {
// contains filtered or unexported fields
}
func NewReasonBuilder ¶
func NewReasonBuilder() *ReasonBuilder
func (*ReasonBuilder) Build ¶
func (builder *ReasonBuilder) Build() *Reason
func (*ReasonBuilder) Files ¶
func (builder *ReasonBuilder) Files(files []*File) *ReasonBuilder
附件集合
示例值:
func (*ReasonBuilder) Text ¶
func (builder *ReasonBuilder) Text(text string) *ReasonBuilder
原因说明
示例值:
type RejectTaskReq ¶
type RejectTaskReq struct { TaskApprove *TaskApprove `body:""` // contains filtered or unexported fields }
type RejectTaskReqBuilder ¶
type RejectTaskReqBuilder struct {
// contains filtered or unexported fields
}
func NewRejectTaskReqBuilder ¶
func NewRejectTaskReqBuilder() *RejectTaskReqBuilder
func (*RejectTaskReqBuilder) Build ¶
func (builder *RejectTaskReqBuilder) Build() *RejectTaskReq
func (*RejectTaskReqBuilder) TaskApprove ¶
func (builder *RejectTaskReqBuilder) TaskApprove(taskApprove *TaskApprove) *RejectTaskReqBuilder
对于单个审批任务进行拒绝操作。拒绝后审批流程结束。
func (*RejectTaskReqBuilder) UserIdType ¶
func (builder *RejectTaskReqBuilder) UserIdType(userIdType string) *RejectTaskReqBuilder
此次调用中使用的用户ID的类型
示例值:
type RejectTaskResp ¶
type RejectTaskResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError }
func (*RejectTaskResp) Success ¶
func (resp *RejectTaskResp) Success() bool
type RemedyGroup ¶
type RemedyGroup struct { Type *string `json:"type,omitempty"` // InstanceCode *string `json:"instance_code,omitempty"` // EmployeeId *string `json:"employee_id,omitempty"` // StartTime *int `json:"start_time,omitempty"` // EndTime *int `json:"end_time,omitempty"` // RemedyTime *int `json:"remedy_time,omitempty"` // RemedyReason *string `json:"remedy_reason,omitempty"` // Status *string `json:"status,omitempty"` // }
type RemedyGroupBuilder ¶
type RemedyGroupBuilder struct {
// contains filtered or unexported fields
}
func NewRemedyGroupBuilder ¶
func NewRemedyGroupBuilder() *RemedyGroupBuilder
func (*RemedyGroupBuilder) Build ¶
func (builder *RemedyGroupBuilder) Build() *RemedyGroup
func (*RemedyGroupBuilder) EmployeeId ¶
func (builder *RemedyGroupBuilder) EmployeeId(employeeId string) *RemedyGroupBuilder
示例值:
func (*RemedyGroupBuilder) EndTime ¶
func (builder *RemedyGroupBuilder) EndTime(endTime int) *RemedyGroupBuilder
示例值:
func (*RemedyGroupBuilder) InstanceCode ¶
func (builder *RemedyGroupBuilder) InstanceCode(instanceCode string) *RemedyGroupBuilder
示例值:
func (*RemedyGroupBuilder) RemedyReason ¶
func (builder *RemedyGroupBuilder) RemedyReason(remedyReason string) *RemedyGroupBuilder
示例值:
func (*RemedyGroupBuilder) RemedyTime ¶
func (builder *RemedyGroupBuilder) RemedyTime(remedyTime int) *RemedyGroupBuilder
示例值:
func (*RemedyGroupBuilder) StartTime ¶
func (builder *RemedyGroupBuilder) StartTime(startTime int) *RemedyGroupBuilder
示例值:
func (*RemedyGroupBuilder) Status ¶
func (builder *RemedyGroupBuilder) Status(status string) *RemedyGroupBuilder
示例值:
func (*RemedyGroupBuilder) Type ¶
func (builder *RemedyGroupBuilder) Type(type_ string) *RemedyGroupBuilder
示例值:
type RemoveInstanceCommentReq ¶
type RemoveInstanceCommentReq struct {
// contains filtered or unexported fields
}
type RemoveInstanceCommentReqBuilder ¶
type RemoveInstanceCommentReqBuilder struct {
// contains filtered or unexported fields
}
func NewRemoveInstanceCommentReqBuilder ¶
func NewRemoveInstanceCommentReqBuilder() *RemoveInstanceCommentReqBuilder
func (*RemoveInstanceCommentReqBuilder) Build ¶
func (builder *RemoveInstanceCommentReqBuilder) Build() *RemoveInstanceCommentReq
func (*RemoveInstanceCommentReqBuilder) InstanceId ¶
func (builder *RemoveInstanceCommentReqBuilder) InstanceId(instanceId string) *RemoveInstanceCommentReqBuilder
审批实例code(或者租户自定义审批实例ID)
示例值:6A123516-FB88-470D-A428-9AF58B71B3C0
func (*RemoveInstanceCommentReqBuilder) UserId ¶
func (builder *RemoveInstanceCommentReqBuilder) UserId(userId string) *RemoveInstanceCommentReqBuilder
根据user_id_type填写用户ID
示例值:ou_806a18fb5bdf525e38ba219733bdbd73
func (*RemoveInstanceCommentReqBuilder) UserIdType ¶
func (builder *RemoveInstanceCommentReqBuilder) UserIdType(userIdType string) *RemoveInstanceCommentReqBuilder
用户ID类型,不填默认为open_id
示例值:user_id
type RemoveInstanceCommentResp ¶
type RemoveInstanceCommentResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError Data *RemoveInstanceCommentRespData `json:"data"` // 业务数据 }
func (*RemoveInstanceCommentResp) Success ¶
func (resp *RemoveInstanceCommentResp) Success() bool
type ResubmitTaskReq ¶ added in v3.0.1
type ResubmitTaskReq struct { TaskResubmit *TaskResubmit `body:""` // contains filtered or unexported fields }
type ResubmitTaskReqBuilder ¶ added in v3.0.1
type ResubmitTaskReqBuilder struct {
// contains filtered or unexported fields
}
func NewResubmitTaskReqBuilder ¶ added in v3.0.1
func NewResubmitTaskReqBuilder() *ResubmitTaskReqBuilder
func (*ResubmitTaskReqBuilder) Build ¶ added in v3.0.1
func (builder *ResubmitTaskReqBuilder) Build() *ResubmitTaskReq
func (*ResubmitTaskReqBuilder) TaskResubmit ¶ added in v3.0.1
func (builder *ResubmitTaskReqBuilder) TaskResubmit(taskResubmit *TaskResubmit) *ResubmitTaskReqBuilder
对于单个退回到发起人的审批任务进行重新发起操作。发起后审批流程会流转到下一个审批人。
func (*ResubmitTaskReqBuilder) UserIdType ¶ added in v3.0.1
func (builder *ResubmitTaskReqBuilder) UserIdType(userIdType string) *ResubmitTaskReqBuilder
此次调用中使用的用户ID的类型
示例值:
type ResubmitTaskResp ¶ added in v3.0.1
type ResubmitTaskResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError }
func (*ResubmitTaskResp) Success ¶ added in v3.0.1
func (resp *ResubmitTaskResp) Success() bool
type RevertEvent ¶ added in v3.0.18
type RevertEventBuilder ¶ added in v3.0.18
type RevertEventBuilder struct {
// contains filtered or unexported fields
}
func NewRevertEventBuilder ¶ added in v3.0.18
func NewRevertEventBuilder() *RevertEventBuilder
func (*RevertEventBuilder) Build ¶ added in v3.0.18
func (builder *RevertEventBuilder) Build() *RevertEvent
func (*RevertEventBuilder) InstanceCode ¶ added in v3.0.18
func (builder *RevertEventBuilder) InstanceCode(instanceCode string) *RevertEventBuilder
实例code
示例值:C04A783E-D0BB-4036-BADC-31BECC6DDA29
func (*RevertEventBuilder) OperateTime ¶ added in v3.0.18
func (builder *RevertEventBuilder) OperateTime(operateTime string) *RevertEventBuilder
操作时间
示例值:1675758455
func (*RevertEventBuilder) Status ¶ added in v3.0.18
func (builder *RevertEventBuilder) Status(status string) *RevertEventBuilder
状态
示例值:REVERTED
func (*RevertEventBuilder) Type ¶ added in v3.0.18
func (builder *RevertEventBuilder) Type(type_ string) *RevertEventBuilder
类型
示例值:normal_approval_revert
type RollbackNode ¶ added in v3.0.18
type RollbackNodeBuilder ¶ added in v3.0.18
type RollbackNodeBuilder struct {
// contains filtered or unexported fields
}
func NewRollbackNodeBuilder ¶ added in v3.0.18
func NewRollbackNodeBuilder() *RollbackNodeBuilder
func (*RollbackNodeBuilder) Build ¶ added in v3.0.18
func (builder *RollbackNodeBuilder) Build() *RollbackNode
func (*RollbackNodeBuilder) CustomNodeId ¶ added in v3.0.18
func (builder *RollbackNodeBuilder) CustomNodeId(customNodeId string) *RollbackNodeBuilder
节点自定义 id
示例值:manager
func (*RollbackNodeBuilder) NodeId ¶ added in v3.0.18
func (builder *RollbackNodeBuilder) NodeId(nodeId string) *RollbackNodeBuilder
节点id
示例值:46e6d96cfa756980907209209ec03b64
func (*RollbackNodeBuilder) NodeKey ¶ added in v3.0.18
func (builder *RollbackNodeBuilder) NodeKey(nodeKey string) *RollbackNodeBuilder
节点key
示例值:APPROVAL_240330_4058663
func (*RollbackNodeBuilder) NodeName ¶ added in v3.0.18
func (builder *RollbackNodeBuilder) NodeName(nodeName string) *RollbackNodeBuilder
节点名称
示例值:开始
type SearchCcInstanceReq ¶
type SearchCcInstanceReq struct { CcSearch *CcSearch `body:""` // contains filtered or unexported fields }
type SearchCcInstanceReqBuilder ¶
type SearchCcInstanceReqBuilder struct {
// contains filtered or unexported fields
}
func NewSearchCcInstanceReqBuilder ¶
func NewSearchCcInstanceReqBuilder() *SearchCcInstanceReqBuilder
func (*SearchCcInstanceReqBuilder) Build ¶
func (builder *SearchCcInstanceReqBuilder) Build() *SearchCcInstanceReq
func (*SearchCcInstanceReqBuilder) CcSearch ¶
func (builder *SearchCcInstanceReqBuilder) CcSearch(ccSearch *CcSearch) *SearchCcInstanceReqBuilder
该接口通过不同条件查询审批系统中符合条件的审批抄送列表。
func (*SearchCcInstanceReqBuilder) PageSize ¶
func (builder *SearchCcInstanceReqBuilder) PageSize(pageSize int) *SearchCcInstanceReqBuilder
分页大小
示例值:10
func (*SearchCcInstanceReqBuilder) PageToken ¶
func (builder *SearchCcInstanceReqBuilder) PageToken(pageToken string) *SearchCcInstanceReqBuilder
分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果
示例值:nF1ZXJ5VGhlbkZldGNoCgAAAAAA6PZwFmUzSldvTC1yU
func (*SearchCcInstanceReqBuilder) UserIdType ¶
func (builder *SearchCcInstanceReqBuilder) UserIdType(userIdType string) *SearchCcInstanceReqBuilder
此次调用中使用的用户ID的类型
示例值:
type SearchCcInstanceResp ¶
type SearchCcInstanceResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError Data *SearchCcInstanceRespData `json:"data"` // 业务数据 }
func (*SearchCcInstanceResp) Success ¶
func (resp *SearchCcInstanceResp) Success() bool
type SearchCcInstanceRespData ¶
type SearchCcInstanceRespData struct { Count *int `json:"count,omitempty"` // 查询返回条数 CcList []*CcSearchItem `json:"cc_list,omitempty"` // 审批实例列表 PageToken *string `json:"page_token,omitempty"` // 翻页 Token HasMore *bool `json:"has_more,omitempty"` // 是否有更多任务可供拉取 }
type SearchTaskReq ¶
type SearchTaskReq struct { TaskSearch *TaskSearch `body:""` // contains filtered or unexported fields }
type SearchTaskReqBuilder ¶
type SearchTaskReqBuilder struct {
// contains filtered or unexported fields
}
func NewSearchTaskReqBuilder ¶
func NewSearchTaskReqBuilder() *SearchTaskReqBuilder
func (*SearchTaskReqBuilder) Build ¶
func (builder *SearchTaskReqBuilder) Build() *SearchTaskReq
func (*SearchTaskReqBuilder) PageSize ¶
func (builder *SearchTaskReqBuilder) PageSize(pageSize int) *SearchTaskReqBuilder
分页大小
示例值:10
func (*SearchTaskReqBuilder) PageToken ¶
func (builder *SearchTaskReqBuilder) PageToken(pageToken string) *SearchTaskReqBuilder
分页标记,第一次请求不填,表示从头开始遍历;分页查询结果还有更多项时会同时返回新的 page_token,下次遍历可采用该 page_token 获取查询结果
示例值:nF1ZXJ5VGhlbkZldGNoCgAAAAAA6PZwFmUzSldvTC1yU
func (*SearchTaskReqBuilder) TaskSearch ¶
func (builder *SearchTaskReqBuilder) TaskSearch(taskSearch *TaskSearch) *SearchTaskReqBuilder
该接口通过不同条件查询审批系统中符合条件的审批任务列表
func (*SearchTaskReqBuilder) UserIdType ¶
func (builder *SearchTaskReqBuilder) UserIdType(userIdType string) *SearchTaskReqBuilder
此次调用中使用的用户ID的类型
示例值:
type SearchTaskResp ¶
type SearchTaskResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError Data *SearchTaskRespData `json:"data"` // 业务数据 }
func (*SearchTaskResp) Success ¶
func (resp *SearchTaskResp) Success() bool
type SearchTaskRespData ¶
type SearchTaskRespData struct { Count *int `json:"count,omitempty"` // 查询返回条数 TaskList []*TaskSearchItem `json:"task_list,omitempty"` // 审批任务列表 PageToken *string `json:"page_token,omitempty"` // 翻页 Token HasMore *bool `json:"has_more,omitempty"` // 是否有更多任务可供拉取 }
type SignGroup ¶
type SignGroup struct { InstanceCode *string `json:"instance_code,omitempty"` // UserId *UserId `json:"user_id,omitempty"` // AccountCode *string `json:"account_code,omitempty"` // BoilerplateUniqueCode *string `json:"boilerplate_unique_code,omitempty"` // StartTime *int `json:"start_time,omitempty"` // EndTime *int `json:"end_time,omitempty"` // Type *string `json:"type,omitempty"` // }
type SignGroupBuilder ¶
type SignGroupBuilder struct {
// contains filtered or unexported fields
}
func NewSignGroupBuilder ¶
func NewSignGroupBuilder() *SignGroupBuilder
func (*SignGroupBuilder) AccountCode ¶
func (builder *SignGroupBuilder) AccountCode(accountCode string) *SignGroupBuilder
示例值:
func (*SignGroupBuilder) BoilerplateUniqueCode ¶
func (builder *SignGroupBuilder) BoilerplateUniqueCode(boilerplateUniqueCode string) *SignGroupBuilder
示例值:
func (*SignGroupBuilder) Build ¶
func (builder *SignGroupBuilder) Build() *SignGroup
func (*SignGroupBuilder) EndTime ¶
func (builder *SignGroupBuilder) EndTime(endTime int) *SignGroupBuilder
示例值:
func (*SignGroupBuilder) InstanceCode ¶
func (builder *SignGroupBuilder) InstanceCode(instanceCode string) *SignGroupBuilder
示例值:
func (*SignGroupBuilder) StartTime ¶
func (builder *SignGroupBuilder) StartTime(startTime int) *SignGroupBuilder
示例值:
func (*SignGroupBuilder) Type ¶
func (builder *SignGroupBuilder) Type(type_ string) *SignGroupBuilder
示例值:
func (*SignGroupBuilder) UserId ¶
func (builder *SignGroupBuilder) UserId(userId *UserId) *SignGroupBuilder
示例值:
type SpecifiedRollback ¶
type SpecifiedRollback struct { UserId *string `json:"user_id,omitempty"` // 用户ID TaskId *string `json:"task_id,omitempty"` // 回退的任务ID Reason *string `json:"reason,omitempty"` // 退回原因 Extra *string `json:"extra,omitempty"` // 扩展字段 TaskDefKeyList []string `json:"task_def_key_list,omitempty"` // 指定退回的任务node_key,从实例详情中获取timeline中获取,必须是PASS的任务node_key }
type SpecifiedRollbackBuilder ¶
type SpecifiedRollbackBuilder struct {
// contains filtered or unexported fields
}
func NewSpecifiedRollbackBuilder ¶
func NewSpecifiedRollbackBuilder() *SpecifiedRollbackBuilder
func (*SpecifiedRollbackBuilder) Build ¶
func (builder *SpecifiedRollbackBuilder) Build() *SpecifiedRollback
func (*SpecifiedRollbackBuilder) Extra ¶
func (builder *SpecifiedRollbackBuilder) Extra(extra string) *SpecifiedRollbackBuilder
扩展字段
示例值:暂不填写
func (*SpecifiedRollbackBuilder) Reason ¶
func (builder *SpecifiedRollbackBuilder) Reason(reason string) *SpecifiedRollbackBuilder
退回原因
示例值:申请事项填写不具体,请重新填写
func (*SpecifiedRollbackBuilder) TaskDefKeyList ¶
func (builder *SpecifiedRollbackBuilder) TaskDefKeyList(taskDefKeyList []string) *SpecifiedRollbackBuilder
指定退回的任务node_key,从实例详情中获取timeline中获取,必须是PASS的任务node_key
示例值:["START","APPROVAL_27997_285502","APPROVAL_462205_2734554"]
func (*SpecifiedRollbackBuilder) TaskId ¶
func (builder *SpecifiedRollbackBuilder) TaskId(taskId string) *SpecifiedRollbackBuilder
回退的任务ID
示例值:7026591166355210260
func (*SpecifiedRollbackBuilder) UserId ¶
func (builder *SpecifiedRollbackBuilder) UserId(userId string) *SpecifiedRollbackBuilder
用户ID
示例值:893g4c45
type SpecifiedRollbackInstanceReq ¶
type SpecifiedRollbackInstanceReq struct { SpecifiedRollback *SpecifiedRollback `body:""` // contains filtered or unexported fields }
type SpecifiedRollbackInstanceReqBuilder ¶
type SpecifiedRollbackInstanceReqBuilder struct {
// contains filtered or unexported fields
}
func NewSpecifiedRollbackInstanceReqBuilder ¶
func NewSpecifiedRollbackInstanceReqBuilder() *SpecifiedRollbackInstanceReqBuilder
func (*SpecifiedRollbackInstanceReqBuilder) Build ¶
func (builder *SpecifiedRollbackInstanceReqBuilder) Build() *SpecifiedRollbackInstanceReq
func (*SpecifiedRollbackInstanceReqBuilder) SpecifiedRollback ¶
func (builder *SpecifiedRollbackInstanceReqBuilder) SpecifiedRollback(specifiedRollback *SpecifiedRollback) *SpecifiedRollbackInstanceReqBuilder
从当前审批任务,退回到已审批的一个或多个任务节点。退回后,已审批节点重新生成审批任务
func (*SpecifiedRollbackInstanceReqBuilder) UserIdType ¶
func (builder *SpecifiedRollbackInstanceReqBuilder) UserIdType(userIdType string) *SpecifiedRollbackInstanceReqBuilder
此次调用中使用的用户ID的类型
示例值:
type SpecifiedRollbackInstanceResp ¶
type SpecifiedRollbackInstanceResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError }
func (*SpecifiedRollbackInstanceResp) Success ¶
func (resp *SpecifiedRollbackInstanceResp) Success() bool
type SubscribeApprovalReq ¶
type SubscribeApprovalReq struct {
// contains filtered or unexported fields
}
type SubscribeApprovalReqBuilder ¶
type SubscribeApprovalReqBuilder struct {
// contains filtered or unexported fields
}
func NewSubscribeApprovalReqBuilder ¶
func NewSubscribeApprovalReqBuilder() *SubscribeApprovalReqBuilder
func (*SubscribeApprovalReqBuilder) ApprovalCode ¶
func (builder *SubscribeApprovalReqBuilder) ApprovalCode(approvalCode string) *SubscribeApprovalReqBuilder
审批定义唯一标识
示例值:7C468A54-8745-2245-9675-08B7C63E7A85
func (*SubscribeApprovalReqBuilder) Build ¶
func (builder *SubscribeApprovalReqBuilder) Build() *SubscribeApprovalReq
type SubscribeApprovalResp ¶
type SubscribeApprovalResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError }
func (*SubscribeApprovalResp) Success ¶
func (resp *SubscribeApprovalResp) Success() bool
type Task ¶
type Task struct { Topic *string `json:"topic,omitempty"` // 任务所属的任务分组,如「待办」、「已办」等 UserId *string `json:"user_id,omitempty"` // 任务所属的用户 ID Title *string `json:"title,omitempty"` // 任务题目 Urls *TaskUrls `json:"urls,omitempty"` // 任务相关 URL ProcessExternalId *string `json:"process_external_id,omitempty"` // 流程三方 ID,仅第三方流程,需要在当前租户、当前 APP 内唯一 TaskExternalId *string `json:"task_external_id,omitempty"` // 任务三方 ID,仅第三方流程,需要在当前流程实例内唯一 Status *string `json:"status,omitempty"` // 任务状态 ProcessStatus *string `json:"process_status,omitempty"` // 流程实例状态 DefinitionCode *string `json:"definition_code,omitempty"` // 流程定义 Code Initiators []string `json:"initiators,omitempty"` // 发起人 ID 列表 InitiatorNames []string `json:"initiator_names,omitempty"` // 发起人姓名列表 TaskId *string `json:"task_id,omitempty"` // 任务 ID,全局唯一 ProcessId *string `json:"process_id,omitempty"` // 流程 ID,全局唯一 ProcessCode *string `json:"process_code,omitempty"` // 流程 Code DefinitionGroupId *string `json:"definition_group_id,omitempty"` // 流程定义分组 ID DefinitionGroupName *string `json:"definition_group_name,omitempty"` // 流程定义分组名称 DefinitionId *string `json:"definition_id,omitempty"` // 流程定义 ID DefinitionName *string `json:"definition_name,omitempty"` // 流程定义名称 }
type TaskApprove ¶
type TaskApprove struct { ApprovalCode *string `json:"approval_code,omitempty"` // 审批定义 Code InstanceCode *string `json:"instance_code,omitempty"` // 审批实例 Code UserId *string `json:"user_id,omitempty"` // 根据user_id_type填写操作用户id Comment *string `json:"comment,omitempty"` // 意见 TaskId *string `json:"task_id,omitempty"` // 任务 ID, 审批实例详情task_list中id Form *string `json:"form,omitempty"` // json 数组,控件值 }
type TaskApproveBuilder ¶
type TaskApproveBuilder struct {
// contains filtered or unexported fields
}
func NewTaskApproveBuilder ¶
func NewTaskApproveBuilder() *TaskApproveBuilder
func (*TaskApproveBuilder) ApprovalCode ¶
func (builder *TaskApproveBuilder) ApprovalCode(approvalCode string) *TaskApproveBuilder
审批定义 Code
示例值:7C468A54-8745-2245-9675-08B7C63E7A85
func (*TaskApproveBuilder) Build ¶
func (builder *TaskApproveBuilder) Build() *TaskApprove
func (*TaskApproveBuilder) Comment ¶
func (builder *TaskApproveBuilder) Comment(comment string) *TaskApproveBuilder
意见
示例值:OK
func (*TaskApproveBuilder) Form ¶ added in v3.0.1
func (builder *TaskApproveBuilder) Form(form string) *TaskApproveBuilder
json 数组,控件值
示例值:[{\"id\":\"111\", \"type\": \"input\", \"value\":\"test\"}]
func (*TaskApproveBuilder) InstanceCode ¶
func (builder *TaskApproveBuilder) InstanceCode(instanceCode string) *TaskApproveBuilder
审批实例 Code
示例值:81D31358-93AF-92D6-7425-01A5D67C4E71
func (*TaskApproveBuilder) TaskId ¶
func (builder *TaskApproveBuilder) TaskId(taskId string) *TaskApproveBuilder
任务 ID, 审批实例详情task_list中id
示例值:12345
func (*TaskApproveBuilder) UserId ¶
func (builder *TaskApproveBuilder) UserId(userId string) *TaskApproveBuilder
根据user_id_type填写操作用户id
示例值:f7cb567e
type TaskBuilder ¶
type TaskBuilder struct {
// contains filtered or unexported fields
}
func NewTaskBuilder ¶
func NewTaskBuilder() *TaskBuilder
func (*TaskBuilder) Build ¶
func (builder *TaskBuilder) Build() *Task
func (*TaskBuilder) DefinitionCode ¶
func (builder *TaskBuilder) DefinitionCode(definitionCode string) *TaskBuilder
流程定义 Code
示例值:000000-00000000000000-0example
func (*TaskBuilder) DefinitionGroupId ¶
func (builder *TaskBuilder) DefinitionGroupId(definitionGroupId string) *TaskBuilder
流程定义分组 ID
示例值:1212564555454
func (*TaskBuilder) DefinitionGroupName ¶
func (builder *TaskBuilder) DefinitionGroupName(definitionGroupName string) *TaskBuilder
流程定义分组名称
示例值:流程定义名称
func (*TaskBuilder) DefinitionId ¶
func (builder *TaskBuilder) DefinitionId(definitionId string) *TaskBuilder
流程定义 ID
示例值:1212564555454
func (*TaskBuilder) DefinitionName ¶
func (builder *TaskBuilder) DefinitionName(definitionName string) *TaskBuilder
流程定义名称
示例值:流程定义组名称
func (*TaskBuilder) InitiatorNames ¶
func (builder *TaskBuilder) InitiatorNames(initiatorNames []string) *TaskBuilder
发起人姓名列表
示例值:
func (*TaskBuilder) Initiators ¶
func (builder *TaskBuilder) Initiators(initiators []string) *TaskBuilder
发起人 ID 列表
示例值:
func (*TaskBuilder) ProcessCode ¶
func (builder *TaskBuilder) ProcessCode(processCode string) *TaskBuilder
流程 Code
示例值:123e4567-e89b-12d3-a456-426655440000
func (*TaskBuilder) ProcessExternalId ¶
func (builder *TaskBuilder) ProcessExternalId(processExternalId string) *TaskBuilder
流程三方 ID,仅第三方流程,需要在当前租户、当前 APP 内唯一
示例值:example_instance_id
func (*TaskBuilder) ProcessId ¶
func (builder *TaskBuilder) ProcessId(processId string) *TaskBuilder
流程 ID,全局唯一
示例值:1214564545474
func (*TaskBuilder) ProcessStatus ¶
func (builder *TaskBuilder) ProcessStatus(processStatus string) *TaskBuilder
流程实例状态
示例值:Running
func (*TaskBuilder) Status ¶
func (builder *TaskBuilder) Status(status string) *TaskBuilder
任务状态
示例值:Todo
func (*TaskBuilder) TaskExternalId ¶
func (builder *TaskBuilder) TaskExternalId(taskExternalId string) *TaskBuilder
任务三方 ID,仅第三方流程,需要在当前流程实例内唯一
示例值:example_task_id
func (*TaskBuilder) TaskId ¶
func (builder *TaskBuilder) TaskId(taskId string) *TaskBuilder
任务 ID,全局唯一
示例值:1212564555454
func (*TaskBuilder) Title ¶
func (builder *TaskBuilder) Title(title string) *TaskBuilder
任务题目
示例值:任务题目示例
func (*TaskBuilder) Topic ¶
func (builder *TaskBuilder) Topic(topic string) *TaskBuilder
任务所属的任务分组,如「待办」、「已办」等
示例值:1
func (*TaskBuilder) Urls ¶
func (builder *TaskBuilder) Urls(urls *TaskUrls) *TaskBuilder
任务相关 URL
示例值:
func (*TaskBuilder) UserId ¶
func (builder *TaskBuilder) UserId(userId string) *TaskBuilder
任务所属的用户 ID
示例值:example_user_id
type TaskResubmit ¶ added in v3.0.1
type TaskResubmit struct { ApprovalCode *string `json:"approval_code,omitempty"` // 审批定义 Code InstanceCode *string `json:"instance_code,omitempty"` // 审批实例 Code UserId *string `json:"user_id,omitempty"` // 根据user_id_type填写操作用户id Comment *string `json:"comment,omitempty"` // 意见 TaskId *string `json:"task_id,omitempty"` // 任务 ID, 审批实例详情task_list中id Form *string `json:"form,omitempty"` // json 数组,控件值,同创建审批实例接口中form字段 }
type TaskResubmitBuilder ¶ added in v3.0.1
type TaskResubmitBuilder struct {
// contains filtered or unexported fields
}
func NewTaskResubmitBuilder ¶ added in v3.0.1
func NewTaskResubmitBuilder() *TaskResubmitBuilder
func (*TaskResubmitBuilder) ApprovalCode ¶ added in v3.0.1
func (builder *TaskResubmitBuilder) ApprovalCode(approvalCode string) *TaskResubmitBuilder
审批定义 Code
示例值:7C468A54-8745-2245-9675-08B7C63E7A85
func (*TaskResubmitBuilder) Build ¶ added in v3.0.1
func (builder *TaskResubmitBuilder) Build() *TaskResubmit
func (*TaskResubmitBuilder) Comment ¶ added in v3.0.1
func (builder *TaskResubmitBuilder) Comment(comment string) *TaskResubmitBuilder
意见
示例值:{\"text\":\"评论\",\"file_codes\":[\"ABCD1232s\",\"ABC12334d22\"]}
func (*TaskResubmitBuilder) Form ¶ added in v3.0.1
func (builder *TaskResubmitBuilder) Form(form string) *TaskResubmitBuilder
json 数组,控件值,同创建审批实例接口中form字段
示例值:[{\"id\":\"user_name\", \"type\": \"input\", \"value\":\"test\"}]
func (*TaskResubmitBuilder) InstanceCode ¶ added in v3.0.1
func (builder *TaskResubmitBuilder) InstanceCode(instanceCode string) *TaskResubmitBuilder
审批实例 Code
示例值:81D31358-93AF-92D6-7425-01A5D67C4E71
func (*TaskResubmitBuilder) TaskId ¶ added in v3.0.1
func (builder *TaskResubmitBuilder) TaskId(taskId string) *TaskResubmitBuilder
任务 ID, 审批实例详情task_list中id
示例值:12345
func (*TaskResubmitBuilder) UserId ¶ added in v3.0.1
func (builder *TaskResubmitBuilder) UserId(userId string) *TaskResubmitBuilder
根据user_id_type填写操作用户id
示例值:f7cb567e
type TaskRollback ¶ added in v3.0.18
type TaskRollbackBuilder ¶ added in v3.0.18
type TaskRollbackBuilder struct {
// contains filtered or unexported fields
}
func NewTaskRollbackBuilder ¶ added in v3.0.18
func NewTaskRollbackBuilder() *TaskRollbackBuilder
func (*TaskRollbackBuilder) Build ¶ added in v3.0.18
func (builder *TaskRollbackBuilder) Build() *TaskRollback
func (*TaskRollbackBuilder) Extra ¶ added in v3.0.18
func (builder *TaskRollbackBuilder) Extra(extra string) *TaskRollbackBuilder
扩展字段
示例值:暂不填写
func (*TaskRollbackBuilder) Reason ¶ added in v3.0.18
func (builder *TaskRollbackBuilder) Reason(reason string) *TaskRollbackBuilder
退回原因
示例值:申请事项填写不具体,请重新填写
func (*TaskRollbackBuilder) TaskDefKey ¶ added in v3.0.18
func (builder *TaskRollbackBuilder) TaskDefKey(taskDefKey string) *TaskRollbackBuilder
退回节点对应的标识
示例值:APPROVAL_27997_285502
func (*TaskRollbackBuilder) TaskId ¶ added in v3.0.18
func (builder *TaskRollbackBuilder) TaskId(taskId string) *TaskRollbackBuilder
回退的任务ID
示例值:7026591166355210260
func (*TaskRollbackBuilder) UserId ¶ added in v3.0.18
func (builder *TaskRollbackBuilder) UserId(userId string) *TaskRollbackBuilder
用户ID
示例值:893g4c45
type TaskSearch ¶
type TaskSearch struct { UserId *string `json:"user_id,omitempty"` // 根据x_user_type填写审批人id ApprovalCode *string `json:"approval_code,omitempty"` // 审批定义 code InstanceCode *string `json:"instance_code,omitempty"` // 审批实例 code InstanceExternalId *string `json:"instance_external_id,omitempty"` // 审批实例第三方 id 注:和 approval_code 取并集 GroupExternalId *string `json:"group_external_id,omitempty"` // 审批定义分组第三方 id 注:和 instance_code 取并集 TaskTitle *string `json:"task_title,omitempty"` // 审批任务标题(只有第三方审批有) TaskStatus *string `json:"task_status,omitempty"` // 审批任务状态,注:若不设置,查询全部状态 若不在集合中,报错 TaskStartTimeFrom *string `json:"task_start_time_from,omitempty"` // 任务查询开始时间(unix毫秒时间戳) TaskStartTimeTo *string `json:"task_start_time_to,omitempty"` // 任务查询结束时间 (unix毫秒时间戳) Locale *string `json:"locale,omitempty"` // 地区 TaskStatusList []string `json:"task_status_list,omitempty"` // 可选择task_status中的多个状态,当填写此参数时,task_status失效 Order *int `json:"order,omitempty"` // 按任务时间排序 }
type TaskSearchBuilder ¶
type TaskSearchBuilder struct {
// contains filtered or unexported fields
}
func NewTaskSearchBuilder ¶
func NewTaskSearchBuilder() *TaskSearchBuilder
func (*TaskSearchBuilder) ApprovalCode ¶
func (builder *TaskSearchBuilder) ApprovalCode(approvalCode string) *TaskSearchBuilder
审批定义 code
示例值:EB828003-9FFE-4B3F-AA50-2E199E2ED942
func (*TaskSearchBuilder) Build ¶
func (builder *TaskSearchBuilder) Build() *TaskSearch
func (*TaskSearchBuilder) GroupExternalId ¶
func (builder *TaskSearchBuilder) GroupExternalId(groupExternalId string) *TaskSearchBuilder
审批定义分组第三方 id 注:和 instance_code 取并集
示例值:1234567
func (*TaskSearchBuilder) InstanceCode ¶
func (builder *TaskSearchBuilder) InstanceCode(instanceCode string) *TaskSearchBuilder
审批实例 code
示例值:EB828003-9FFE-4B3F-AA50-2E199E2ED943
func (*TaskSearchBuilder) InstanceExternalId ¶
func (builder *TaskSearchBuilder) InstanceExternalId(instanceExternalId string) *TaskSearchBuilder
审批实例第三方 id 注:和 approval_code 取并集
示例值:EB828003-9FFE-4B3F-AA50-2E199E2ED976
func (*TaskSearchBuilder) Locale ¶
func (builder *TaskSearchBuilder) Locale(locale string) *TaskSearchBuilder
地区
示例值:zh-CN
func (*TaskSearchBuilder) Order ¶ added in v3.0.5
func (builder *TaskSearchBuilder) Order(order int) *TaskSearchBuilder
按任务时间排序
示例值:2
func (*TaskSearchBuilder) TaskStartTimeFrom ¶ added in v3.0.1
func (builder *TaskSearchBuilder) TaskStartTimeFrom(taskStartTimeFrom string) *TaskSearchBuilder
任务查询开始时间(unix毫秒时间戳)
示例值:1547654251506
func (*TaskSearchBuilder) TaskStartTimeTo ¶ added in v3.0.1
func (builder *TaskSearchBuilder) TaskStartTimeTo(taskStartTimeTo string) *TaskSearchBuilder
任务查询结束时间 (unix毫秒时间戳)
示例值:1547654251506
func (*TaskSearchBuilder) TaskStatus ¶
func (builder *TaskSearchBuilder) TaskStatus(taskStatus string) *TaskSearchBuilder
审批任务状态,注:若不设置,查询全部状态 若不在集合中,报错
示例值:PENDING
func (*TaskSearchBuilder) TaskStatusList ¶ added in v3.0.5
func (builder *TaskSearchBuilder) TaskStatusList(taskStatusList []string) *TaskSearchBuilder
可选择task_status中的多个状态,当填写此参数时,task_status失效
示例值:PENDING
func (*TaskSearchBuilder) TaskTitle ¶
func (builder *TaskSearchBuilder) TaskTitle(taskTitle string) *TaskSearchBuilder
审批任务标题(只有第三方审批有)
示例值:test
func (*TaskSearchBuilder) UserId ¶
func (builder *TaskSearchBuilder) UserId(userId string) *TaskSearchBuilder
根据x_user_type填写审批人id
示例值:lwiu098wj
type TaskSearchItem ¶
type TaskSearchItem struct { Approval *InstanceSearchApproval `json:"approval,omitempty"` // 审批定义 Group *InstanceSearchGroup `json:"group,omitempty"` // 审批定义分组 Instance *InstanceSearchNode `json:"instance,omitempty"` // 审批实例信息 Task *TaskSearchNode `json:"task,omitempty"` // 审批任务 }
type TaskSearchItemBuilder ¶
type TaskSearchItemBuilder struct {
// contains filtered or unexported fields
}
func NewTaskSearchItemBuilder ¶
func NewTaskSearchItemBuilder() *TaskSearchItemBuilder
func (*TaskSearchItemBuilder) Approval ¶
func (builder *TaskSearchItemBuilder) Approval(approval *InstanceSearchApproval) *TaskSearchItemBuilder
审批定义
示例值:
func (*TaskSearchItemBuilder) Build ¶
func (builder *TaskSearchItemBuilder) Build() *TaskSearchItem
func (*TaskSearchItemBuilder) Group ¶
func (builder *TaskSearchItemBuilder) Group(group *InstanceSearchGroup) *TaskSearchItemBuilder
审批定义分组
示例值:
func (*TaskSearchItemBuilder) Instance ¶
func (builder *TaskSearchItemBuilder) Instance(instance *InstanceSearchNode) *TaskSearchItemBuilder
审批实例信息
示例值:
func (*TaskSearchItemBuilder) Task ¶
func (builder *TaskSearchItemBuilder) Task(task *TaskSearchNode) *TaskSearchItemBuilder
审批任务
示例值:
type TaskSearchNode ¶
type TaskSearchNode struct { UserId *string `json:"user_id,omitempty"` // 审批任务审批人 id StartTime *string `json:"start_time,omitempty"` // 审批任务开始时间 EndTime *string `json:"end_time,omitempty"` // 审批任务结束时间 Status *string `json:"status,omitempty"` // 审批任务状态 Title *string `json:"title,omitempty"` // 审批任务名称(只有第三方审批有) Extra *string `json:"extra,omitempty"` // 审批任务扩展字段,string型json Link *InstanceSearchLink `json:"link,omitempty"` // 审批任务链接(只有第三方审批有) TaskId *string `json:"task_id,omitempty"` // 任务id UpdateTime *string `json:"update_time,omitempty"` // 审批任务更新时间 TaskExternalId *string `json:"task_external_id,omitempty"` // 三方审批扩展 ID }
type TaskSearchNodeBuilder ¶
type TaskSearchNodeBuilder struct {
// contains filtered or unexported fields
}
func NewTaskSearchNodeBuilder ¶
func NewTaskSearchNodeBuilder() *TaskSearchNodeBuilder
func (*TaskSearchNodeBuilder) Build ¶
func (builder *TaskSearchNodeBuilder) Build() *TaskSearchNode
func (*TaskSearchNodeBuilder) EndTime ¶
func (builder *TaskSearchNodeBuilder) EndTime(endTime string) *TaskSearchNodeBuilder
审批任务结束时间
示例值:1547654251506
func (*TaskSearchNodeBuilder) Extra ¶
func (builder *TaskSearchNodeBuilder) Extra(extra string) *TaskSearchNodeBuilder
审批任务扩展字段,string型json
示例值:{}
func (*TaskSearchNodeBuilder) Link ¶
func (builder *TaskSearchNodeBuilder) Link(link *InstanceSearchLink) *TaskSearchNodeBuilder
审批任务链接(只有第三方审批有)
示例值:
func (*TaskSearchNodeBuilder) StartTime ¶
func (builder *TaskSearchNodeBuilder) StartTime(startTime string) *TaskSearchNodeBuilder
审批任务开始时间
示例值:1547654251506
func (*TaskSearchNodeBuilder) Status ¶
func (builder *TaskSearchNodeBuilder) Status(status string) *TaskSearchNodeBuilder
审批任务状态
示例值:pending
func (*TaskSearchNodeBuilder) TaskExternalId ¶ added in v3.0.18
func (builder *TaskSearchNodeBuilder) TaskExternalId(taskExternalId string) *TaskSearchNodeBuilder
三方审批扩展 ID
示例值:123123daddf21313
func (*TaskSearchNodeBuilder) TaskId ¶ added in v3.0.1
func (builder *TaskSearchNodeBuilder) TaskId(taskId string) *TaskSearchNodeBuilder
任务id
示例值:7110153401253494803
func (*TaskSearchNodeBuilder) Title ¶
func (builder *TaskSearchNodeBuilder) Title(title string) *TaskSearchNodeBuilder
审批任务名称(只有第三方审批有)
示例值:test
func (*TaskSearchNodeBuilder) UpdateTime ¶ added in v3.0.5
func (builder *TaskSearchNodeBuilder) UpdateTime(updateTime string) *TaskSearchNodeBuilder
审批任务更新时间
示例值:1547654251506
func (*TaskSearchNodeBuilder) UserId ¶
func (builder *TaskSearchNodeBuilder) UserId(userId string) *TaskSearchNodeBuilder
审批任务审批人 id
示例值:lwiu098wj
type TaskTransfer ¶
type TaskTransfer struct { ApprovalCode *string `json:"approval_code,omitempty"` // 审批定义 Code InstanceCode *string `json:"instance_code,omitempty"` // 审批实例 Code UserId *string `json:"user_id,omitempty"` // 根据user_id_type填写操作用户id Comment *string `json:"comment,omitempty"` // 意见 TransferUserId *string `json:"transfer_user_id,omitempty"` // 根据user_id_type填写被转交人唯一 ID TaskId *string `json:"task_id,omitempty"` // 任务 ID, 审批实例详情task_list中id }
type TaskTransferBuilder ¶
type TaskTransferBuilder struct {
// contains filtered or unexported fields
}
func NewTaskTransferBuilder ¶
func NewTaskTransferBuilder() *TaskTransferBuilder
func (*TaskTransferBuilder) ApprovalCode ¶
func (builder *TaskTransferBuilder) ApprovalCode(approvalCode string) *TaskTransferBuilder
审批定义 Code
示例值:7C468A54-8745-2245-9675-08B7C63E7A85
func (*TaskTransferBuilder) Build ¶
func (builder *TaskTransferBuilder) Build() *TaskTransfer
func (*TaskTransferBuilder) Comment ¶
func (builder *TaskTransferBuilder) Comment(comment string) *TaskTransferBuilder
意见
示例值:OK
func (*TaskTransferBuilder) InstanceCode ¶
func (builder *TaskTransferBuilder) InstanceCode(instanceCode string) *TaskTransferBuilder
审批实例 Code
示例值:81D31358-93AF-92D6-7425-01A5D67C4E71
func (*TaskTransferBuilder) TaskId ¶
func (builder *TaskTransferBuilder) TaskId(taskId string) *TaskTransferBuilder
任务 ID, 审批实例详情task_list中id
示例值:12345
func (*TaskTransferBuilder) TransferUserId ¶
func (builder *TaskTransferBuilder) TransferUserId(transferUserId string) *TaskTransferBuilder
根据user_id_type填写被转交人唯一 ID
示例值:f4ip317q
func (*TaskTransferBuilder) UserId ¶
func (builder *TaskTransferBuilder) UserId(userId string) *TaskTransferBuilder
根据user_id_type填写操作用户id
示例值:f7cb567e
type TaskUrlsBuilder ¶
type TaskUrlsBuilder struct {
// contains filtered or unexported fields
}
func NewTaskUrlsBuilder ¶
func NewTaskUrlsBuilder() *TaskUrlsBuilder
func (*TaskUrlsBuilder) Build ¶
func (builder *TaskUrlsBuilder) Build() *TaskUrls
func (*TaskUrlsBuilder) Helpdesk ¶
func (builder *TaskUrlsBuilder) Helpdesk(helpdesk string) *TaskUrlsBuilder
帮助服务台 URL
示例值:https://blabla
func (*TaskUrlsBuilder) Mobile ¶
func (builder *TaskUrlsBuilder) Mobile(mobile string) *TaskUrlsBuilder
移动端 URL
示例值:https://blabla
func (*TaskUrlsBuilder) Pc ¶
func (builder *TaskUrlsBuilder) Pc(pc string) *TaskUrlsBuilder
PC 端 URL
示例值:https://blabla
type TransferTaskReq ¶
type TransferTaskReq struct { TaskTransfer *TaskTransfer `body:""` // contains filtered or unexported fields }
type TransferTaskReqBuilder ¶
type TransferTaskReqBuilder struct {
// contains filtered or unexported fields
}
func NewTransferTaskReqBuilder ¶
func NewTransferTaskReqBuilder() *TransferTaskReqBuilder
func (*TransferTaskReqBuilder) Build ¶
func (builder *TransferTaskReqBuilder) Build() *TransferTaskReq
func (*TransferTaskReqBuilder) TaskTransfer ¶
func (builder *TransferTaskReqBuilder) TaskTransfer(taskTransfer *TaskTransfer) *TransferTaskReqBuilder
对于单个审批任务进行转交操作。转交后审批流程流转给被转交人。
func (*TransferTaskReqBuilder) UserIdType ¶
func (builder *TransferTaskReqBuilder) UserIdType(userIdType string) *TransferTaskReqBuilder
此次调用中使用的用户ID的类型
示例值:
type TransferTaskResp ¶
type TransferTaskResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError }
func (*TransferTaskResp) Success ¶
func (resp *TransferTaskResp) Success() bool
type TripGroup ¶
type TripGroup struct { Type *string `json:"type,omitempty"` // 出差类型 InstanceCode *string `json:"instance_code,omitempty"` // 实例code StartUser *User `json:"start_user,omitempty"` // 发起人 StartTime *string `json:"start_time,omitempty"` // 开始时间 EndTime *string `json:"end_time,omitempty"` // 结束时间 TripInterval *string `json:"trip_interval,omitempty"` // 出差时间 TripReason *string `json:"trip_reason,omitempty"` // 出差理由 Schedules []*TripGroupSchedule `json:"schedules,omitempty"` // 出差计划 TripPeers []*User `json:"trip_peers,omitempty"` // 同行人 }
type TripGroupBuilder ¶
type TripGroupBuilder struct {
// contains filtered or unexported fields
}
func NewTripGroupBuilder ¶
func NewTripGroupBuilder() *TripGroupBuilder
func (*TripGroupBuilder) Build ¶
func (builder *TripGroupBuilder) Build() *TripGroup
func (*TripGroupBuilder) EndTime ¶
func (builder *TripGroupBuilder) EndTime(endTime string) *TripGroupBuilder
结束时间
示例值:
func (*TripGroupBuilder) InstanceCode ¶
func (builder *TripGroupBuilder) InstanceCode(instanceCode string) *TripGroupBuilder
实例code
示例值:
func (*TripGroupBuilder) Schedules ¶
func (builder *TripGroupBuilder) Schedules(schedules []*TripGroupSchedule) *TripGroupBuilder
出差计划
示例值:
func (*TripGroupBuilder) StartTime ¶
func (builder *TripGroupBuilder) StartTime(startTime string) *TripGroupBuilder
开始时间
示例值:
func (*TripGroupBuilder) StartUser ¶
func (builder *TripGroupBuilder) StartUser(startUser *User) *TripGroupBuilder
发起人
示例值:
func (*TripGroupBuilder) TripInterval ¶
func (builder *TripGroupBuilder) TripInterval(tripInterval string) *TripGroupBuilder
出差时间
示例值:
func (*TripGroupBuilder) TripPeers ¶
func (builder *TripGroupBuilder) TripPeers(tripPeers []*User) *TripGroupBuilder
同行人
示例值:
func (*TripGroupBuilder) TripReason ¶
func (builder *TripGroupBuilder) TripReason(tripReason string) *TripGroupBuilder
出差理由
示例值:
func (*TripGroupBuilder) Type ¶
func (builder *TripGroupBuilder) Type(type_ string) *TripGroupBuilder
出差类型
示例值:
type TripGroupSchedule ¶
type TripGroupSchedule struct { TripStartTime *string `json:"trip_start_time,omitempty"` // 开始时间 TripEndTime *string `json:"trip_end_time,omitempty"` // 结束时间 TripInterval *string `json:"trip_interval,omitempty"` // 周期 Departure *string `json:"departure,omitempty"` // 出发地 Destination *string `json:"destination,omitempty"` // 目的地 Transportation *string `json:"transportation,omitempty"` // 交通工具 TripType *string `json:"trip_type,omitempty"` // 出差类型 Remark *string `json:"remark,omitempty"` // 备注 DepartureId *string `json:"departure_id,omitempty"` // 出发地id DestinationIds []string `json:"destination_ids,omitempty"` // 目的地id列表 }
type TripGroupScheduleBuilder ¶
type TripGroupScheduleBuilder struct {
// contains filtered or unexported fields
}
func NewTripGroupScheduleBuilder ¶
func NewTripGroupScheduleBuilder() *TripGroupScheduleBuilder
func (*TripGroupScheduleBuilder) Build ¶
func (builder *TripGroupScheduleBuilder) Build() *TripGroupSchedule
func (*TripGroupScheduleBuilder) Departure ¶
func (builder *TripGroupScheduleBuilder) Departure(departure string) *TripGroupScheduleBuilder
出发地
示例值:中国
func (*TripGroupScheduleBuilder) DepartureId ¶ added in v3.0.13
func (builder *TripGroupScheduleBuilder) DepartureId(departureId string) *TripGroupScheduleBuilder
出发地id
示例值:6c758b5dc54930abc7a454c7477d3496cfca0a62fd941e0093b2d819e0e263a6
func (*TripGroupScheduleBuilder) Destination ¶
func (builder *TripGroupScheduleBuilder) Destination(destination string) *TripGroupScheduleBuilder
目的地
示例值:中国
func (*TripGroupScheduleBuilder) DestinationIds ¶ added in v3.0.13
func (builder *TripGroupScheduleBuilder) DestinationIds(destinationIds []string) *TripGroupScheduleBuilder
目的地id列表
示例值:
func (*TripGroupScheduleBuilder) Remark ¶
func (builder *TripGroupScheduleBuilder) Remark(remark string) *TripGroupScheduleBuilder
备注
示例值:备注内容
func (*TripGroupScheduleBuilder) Transportation ¶
func (builder *TripGroupScheduleBuilder) Transportation(transportation string) *TripGroupScheduleBuilder
交通工具
示例值:飞机
func (*TripGroupScheduleBuilder) TripEndTime ¶
func (builder *TripGroupScheduleBuilder) TripEndTime(tripEndTime string) *TripGroupScheduleBuilder
结束时间
示例值:2022-09-01 00:00:00
func (*TripGroupScheduleBuilder) TripInterval ¶
func (builder *TripGroupScheduleBuilder) TripInterval(tripInterval string) *TripGroupScheduleBuilder
周期
示例值:561600
func (*TripGroupScheduleBuilder) TripStartTime ¶
func (builder *TripGroupScheduleBuilder) TripStartTime(tripStartTime string) *TripGroupScheduleBuilder
开始时间
示例值:2022-08-25 12:00:00
func (*TripGroupScheduleBuilder) TripType ¶
func (builder *TripGroupScheduleBuilder) TripType(tripType string) *TripGroupScheduleBuilder
出差类型
示例值:往返
type TrusteeshipInstanceCacheConfig ¶ added in v3.0.21
type TrusteeshipInstanceCacheConfigBuilder ¶ added in v3.0.21
type TrusteeshipInstanceCacheConfigBuilder struct {
// contains filtered or unexported fields
}
func NewTrusteeshipInstanceCacheConfigBuilder ¶ added in v3.0.21
func NewTrusteeshipInstanceCacheConfigBuilder() *TrusteeshipInstanceCacheConfigBuilder
func (*TrusteeshipInstanceCacheConfigBuilder) Build ¶ added in v3.0.21
func (builder *TrusteeshipInstanceCacheConfigBuilder) Build() *TrusteeshipInstanceCacheConfig
func (*TrusteeshipInstanceCacheConfigBuilder) FormPolicy ¶ added in v3.0.21
func (builder *TrusteeshipInstanceCacheConfigBuilder) FormPolicy(formPolicy string) *TrusteeshipInstanceCacheConfigBuilder
托管预缓存策略
示例值:DISABLE
func (*TrusteeshipInstanceCacheConfigBuilder) FormVaryWithLocale ¶ added in v3.0.21
func (builder *TrusteeshipInstanceCacheConfigBuilder) FormVaryWithLocale(formVaryWithLocale bool) *TrusteeshipInstanceCacheConfigBuilder
表单是否随国际化改变
示例值:false
func (*TrusteeshipInstanceCacheConfigBuilder) FormVersion ¶ added in v3.0.21
func (builder *TrusteeshipInstanceCacheConfigBuilder) FormVersion(formVersion string) *TrusteeshipInstanceCacheConfigBuilder
当前使用的表单版本号,保证表单改变后,版本号增加,实际值为int64整数
示例值:"1"
type TrusteeshipUrls ¶ added in v3.0.1
type TrusteeshipUrls struct { FormDetailUrl *string `json:"form_detail_url,omitempty"` // 获取表单schema相关数据的url地址 ActionDefinitionUrl *string `json:"action_definition_url,omitempty"` // 表示获取审批操作区数据的url地址 ApprovalNodeUrl *string `json:"approval_node_url,omitempty"` // 获取审批记录相关数据的url地址 ActionCallbackUrl *string `json:"action_callback_url,omitempty"` // 进行审批操作时回调的url地址 PullBusinessDataUrl *string `json:"pull_business_data_url,omitempty"` // 获取托管动态数据URL,使用该接口时必须要保证历史托管单据的数据中都同步了该接口地址,如果历史单据中没有该接口需要重新同步历史托管单据的数据来更新该URL }
type TrusteeshipUrlsBuilder ¶ added in v3.0.1
type TrusteeshipUrlsBuilder struct {
// contains filtered or unexported fields
}
func NewTrusteeshipUrlsBuilder ¶ added in v3.0.1
func NewTrusteeshipUrlsBuilder() *TrusteeshipUrlsBuilder
func (*TrusteeshipUrlsBuilder) ActionCallbackUrl ¶ added in v3.0.1
func (builder *TrusteeshipUrlsBuilder) ActionCallbackUrl(actionCallbackUrl string) *TrusteeshipUrlsBuilder
进行审批操作时回调的url地址
示例值:https://#{your_domain}/api/approval_node
func (*TrusteeshipUrlsBuilder) ActionDefinitionUrl ¶ added in v3.0.1
func (builder *TrusteeshipUrlsBuilder) ActionDefinitionUrl(actionDefinitionUrl string) *TrusteeshipUrlsBuilder
表示获取审批操作区数据的url地址
示例值:https://#{your_domain}/api/action_definition
func (*TrusteeshipUrlsBuilder) ApprovalNodeUrl ¶ added in v3.0.1
func (builder *TrusteeshipUrlsBuilder) ApprovalNodeUrl(approvalNodeUrl string) *TrusteeshipUrlsBuilder
获取审批记录相关数据的url地址
示例值:https://#{your_domain}/api/approval_node
func (*TrusteeshipUrlsBuilder) Build ¶ added in v3.0.1
func (builder *TrusteeshipUrlsBuilder) Build() *TrusteeshipUrls
func (*TrusteeshipUrlsBuilder) FormDetailUrl ¶ added in v3.0.1
func (builder *TrusteeshipUrlsBuilder) FormDetailUrl(formDetailUrl string) *TrusteeshipUrlsBuilder
获取表单schema相关数据的url地址
示例值:https://#{your_domain}/api/form_detail
func (*TrusteeshipUrlsBuilder) PullBusinessDataUrl ¶ added in v3.0.15
func (builder *TrusteeshipUrlsBuilder) PullBusinessDataUrl(pullBusinessDataUrl string) *TrusteeshipUrlsBuilder
获取托管动态数据URL,使用该接口时必须要保证历史托管单据的数据中都同步了该接口地址,如果历史单据中没有该接口需要重新同步历史托管单据的数据来更新该URL
示例值:https://#{your_domain}/api/pull_business_data
type UnsubscribeApprovalReq ¶
type UnsubscribeApprovalReq struct {
// contains filtered or unexported fields
}
type UnsubscribeApprovalReqBuilder ¶
type UnsubscribeApprovalReqBuilder struct {
// contains filtered or unexported fields
}
func NewUnsubscribeApprovalReqBuilder ¶
func NewUnsubscribeApprovalReqBuilder() *UnsubscribeApprovalReqBuilder
func (*UnsubscribeApprovalReqBuilder) ApprovalCode ¶
func (builder *UnsubscribeApprovalReqBuilder) ApprovalCode(approvalCode string) *UnsubscribeApprovalReqBuilder
审批定义唯一标识
示例值:7C468A54-8745-2245-9675-08B7C63E7A85
func (*UnsubscribeApprovalReqBuilder) Build ¶
func (builder *UnsubscribeApprovalReqBuilder) Build() *UnsubscribeApprovalReq
type UnsubscribeApprovalResp ¶
type UnsubscribeApprovalResp struct { *larkcore.ApiResp `json:"-"` larkcore.CodeError }
func (*UnsubscribeApprovalResp) Success ¶
func (resp *UnsubscribeApprovalResp) Success() bool
type UrlDetailBuilder ¶ added in v3.0.5
type UrlDetailBuilder struct {
// contains filtered or unexported fields
}
func NewUrlDetailBuilder ¶ added in v3.0.5
func NewUrlDetailBuilder() *UrlDetailBuilder
func (*UrlDetailBuilder) Build ¶ added in v3.0.5
func (builder *UrlDetailBuilder) Build() *UrlDetail
func (*UrlDetailBuilder) Code ¶ added in v3.0.5
func (builder *UrlDetailBuilder) Code(code string) *UrlDetailBuilder
文件标识码
示例值:D93653C3-2609-4EE0-8041-61DC1D84F0B5
func (*UrlDetailBuilder) Message ¶ added in v3.0.5
func (builder *UrlDetailBuilder) Message(message string) *UrlDetailBuilder
错误信息,没有则为空
示例值:https://xxxxx.com/i/2022/06/08/xxxxx.png:cannot find filetype
func (*UrlDetailBuilder) OriginUrl ¶ added in v3.0.5
func (builder *UrlDetailBuilder) OriginUrl(originUrl string) *UrlDetailBuilder
文件为空,使用url则是原url
func (*UrlDetailBuilder) Url ¶ added in v3.0.5
func (builder *UrlDetailBuilder) Url(url string) *UrlDetailBuilder
文件 url
type UserBuilder ¶
type UserBuilder struct {
// contains filtered or unexported fields
}
func NewUserBuilder ¶
func NewUserBuilder() *UserBuilder
func (*UserBuilder) Build ¶
func (builder *UserBuilder) Build() *User
type UserIdBuilder ¶
type UserIdBuilder struct {
// contains filtered or unexported fields
}
func NewUserIdBuilder ¶
func NewUserIdBuilder() *UserIdBuilder
func (*UserIdBuilder) Build ¶
func (builder *UserIdBuilder) Build() *UserId
func (*UserIdBuilder) OpenId ¶
func (builder *UserIdBuilder) OpenId(openId string) *UserIdBuilder
示例值:
func (*UserIdBuilder) UnionId ¶
func (builder *UserIdBuilder) UnionId(unionId string) *UserIdBuilder
示例值:
func (*UserIdBuilder) UserId ¶
func (builder *UserIdBuilder) UserId(userId string) *UserIdBuilder
示例值: