package workflow // QuerySchemaByProcessCodeResponse 审批流表单信息 type QuerySchemaByProcessCodeResponse struct { Result struct { CreatorUserId string `json:"creatorUserId"` AppUuid string `json:"appUuid"` FormCode string `json:"formCode"` FormUuid string `json:"formUuid"` Name string `json:"name"` Memo string `json:"memo"` OwnerIdType string `json:"ownerIdType"` SchemaContent struct { Title string `json:"title"` Icon string `json:"icon"` Items []struct { ComponentName string `json:"componentName"` Props struct { Id string `json:"id"` Label string `json:"label"` BizAlias string `json:"bizAlias"` Required bool `json:"required"` Placeholder string `json:"placeholder"` Options []string `json:"options"` AppId int `json:"appId"` DurationLabel string `json:"durationLabel"` PushToCalendar int `json:"pushToCalendar"` Align string `json:"align"` StatField []struct { Id string `json:"id"` Label string `json:"label"` Upper bool `json:"upper"` Unit string `json:"unit"` } `json:"statField"` HideLabel bool `json:"hideLabel"` ObjOptions []struct { Value string `json:"value"` } `json:"objOptions"` Format string `json:"format"` PushToAttendance bool `json:"pushToAttendance"` LabelEditableFreeze bool `json:"labelEditableFreeze"` Push struct { PushSwitch int `json:"pushSwitch"` PushTag string `json:"pushTag"` AttendanceRule int `json:"attendanceRule"` } `json:"push"` CommonBizType string `json:"commonBizType"` RequiredEditableFreeze bool `json:"requiredEditableFreeze"` Unit string `json:"unit"` Extract bool `json:"extract"` Link string `json:"link"` PayEnable bool `json:"payEnable"` Hidden bool `json:"hidden"` BizType string `json:"bizType"` StaffStatusEnabled bool `json:"staffStatusEnabled"` ActionName string `json:"actionName"` AttendTypeLabel string `json:"attendTypeLabel"` ChildFieldVisible struct { Key bool `json:"key"` } `json:"childFieldVisible"` NotPrint string `json:"notPrint"` VerticalPrint bool `json:"verticalPrint"` Duration bool `json:"duration"` HolidayOptions []struct { Key string `json:"key"` } `json:"holidayOptions"` UseCalendar bool `json:"useCalendar"` HiddenInApprovalDetail bool `json:"hiddenInApprovalDetail"` Disabled bool `json:"disabled"` AsyncCondition bool `json:"asyncCondition"` BehaviorLinkage []struct { Value string `json:"value"` Targets []struct { FieldId string `json:"fieldId"` Behavior string `json:"behavior"` } `json:"targets"` } `json:"behaviorLinkage"` ShowAttendOptions bool `json:"showAttendOptions"` NotUpper string `json:"notUpper"` FieldsInfo string `json:"fieldsInfo"` ESign bool `json:"eSign"` MainTitle string `json:"mainTitle"` Formula string `json:"formula"` Choice int `json:"choice"` } `json:"props"` Children []struct { ComponentName string `json:"componentName"` Props struct { Id string `json:"id"` Label string `json:"label"` BizAlias string `json:"bizAlias"` Required bool `json:"required"` } `json:"props"` } `json:"children"` } `json:"items"` } `json:"schemaContent"` Icon string `json:"icon"` AppType int `json:"appType"` BizType string `json:"bizType"` EngineType int `json:"engineType"` Status string `json:"status"` ListOrder int `json:"listOrder"` CustomSetting string `json:"customSetting"` ProcType string `json:"procType"` VisibleRange string `json:"visibleRange"` GmtCreate string `json:"gmtCreate"` GmtModified string `json:"gmtModified"` } `json:"result"` } // StartProcessInstanceRequest 启动审批流 type StartProcessInstanceRequest struct { // 不使用审批流模板时,直接指定审批人列表 Approvers []*StartProcessInstanceRequestApprovers `json:"approvers,omitempty" xml:"approvers,omitempty" type:"Repeated"` // 抄送人userId列表 CcList []*string `json:"ccList,omitempty" xml:"ccList,omitempty" type:"Repeated"` // 抄送时间 CcPosition *string `json:"ccPosition,omitempty" xml:"ccPosition,omitempty"` // 部门ID DeptId *int64 `json:"deptId,omitempty" xml:"deptId,omitempty"` // 表单数据内容,控件列表 FormComponentValues []*StartProcessInstanceRequestFormComponentValues `json:"formComponentValues,omitempty" xml:"formComponentValues,omitempty" type:"Repeated"` // 企业微应用标识 MicroappAgentId *int64 `json:"microappAgentId,omitempty" xml:"microappAgentId,omitempty"` // 审批发起人的userId OriginatorUserId *string `json:"originatorUserId,omitempty" xml:"originatorUserId,omitempty"` // 审批流的唯一码 ProcessCode *string `json:"processCode,omitempty" xml:"processCode,omitempty"` // 使用审批流模板时,模板上的自选操作人列表 TargetSelectActioners []*StartProcessInstanceRequestTargetSelectActioners `json:"targetSelectActioners,omitempty" xml:"targetSelectActioners,omitempty" type:"Repeated"` } type StartProcessInstanceRequestApprovers struct { // 审批类型 ActionType *string `json:"actionType,omitempty" xml:"actionType,omitempty"` // 审批人列表 UserIds []*string `json:"userIds,omitempty" xml:"userIds,omitempty" type:"Repeated"` } type StartProcessInstanceRequestTargetSelectActioners struct { // 自选节点的规则key ActionerKey *string `json:"actionerKey,omitempty" xml:"actionerKey,omitempty"` // 操作人userId列表 ActionerUserIds []*string `json:"actionerUserIds,omitempty" xml:"actionerUserIds,omitempty" type:"Repeated"` } type StartProcessInstanceRequestFormComponentValues struct { // 控件别名 BizAlias *string `json:"bizAlias,omitempty" xml:"bizAlias,omitempty"` // 控件类型 ComponentType *string `json:"componentType,omitempty" xml:"componentType,omitempty"` Details []*StartProcessInstanceRequestFormComponentValuesDetails `json:"details,omitempty" xml:"details,omitempty" type:"Repeated"` // 控件扩展值 ExtValue *string `json:"extValue,omitempty" xml:"extValue,omitempty"` // 控件id Id *string `json:"id,omitempty" xml:"id,omitempty"` // 控件名称 Name *string `json:"name,omitempty" xml:"name,omitempty"` // 控件值 Value *string `json:"value,omitempty" xml:"value,omitempty"` } type StartProcessInstanceRequestFormComponentValuesDetails struct { // 控件别名 BizAlias *string `json:"bizAlias,omitempty" xml:"bizAlias,omitempty"` Details []*StartProcessInstanceRequestFormComponentValuesDetailsDetails `json:"details,omitempty" xml:"details,omitempty" type:"Repeated"` // 控件扩展值 ExtValue *string `json:"extValue,omitempty" xml:"extValue,omitempty"` // 控件id Id *string `json:"id,omitempty" xml:"id,omitempty"` // 控件名称 Name *string `json:"name,omitempty" xml:"name,omitempty"` // 控件值 Value *string `json:"value,omitempty" xml:"value,omitempty"` } type StartProcessInstanceRequestFormComponentValuesDetailsDetails struct { // 控件别名 BizAlias *string `json:"bizAlias,omitempty" xml:"bizAlias,omitempty"` // 控件类型 ComponentType *string `json:"componentType,omitempty" xml:"componentType,omitempty"` // 控件扩展值 ExtValue *string `json:"extValue,omitempty" xml:"extValue,omitempty"` // 控件id Id *string `json:"id,omitempty" xml:"id,omitempty"` // 控件名称 Name *string `json:"name,omitempty" xml:"name,omitempty"` // 控件值 Value *string `json:"value,omitempty" xml:"value,omitempty"` } // StartProcessInstanceResponse 启动审批流 type StartProcessInstanceResponse struct { InstanceId string `json:"instanceId"` } //QueryProcessInstanceResponse 获取单个审批实例详情 type QueryProcessInstanceResponse struct { Result struct { Title string `json:"title"` FinishTime string `json:"finishTime"` OriginatorUserId string `json:"originatorUserId"` OriginatorDeptId string `json:"originatorDeptId"` OriginatorDeptName string `json:"originatorDeptName"` Status string `json:"status"` ApproverUserIds []string `json:"approverUserIds"` CcUserIds []string `json:"ccUserIds"` Result string `json:"result"` BusinessId string `json:"businessId"` OperationRecords []struct { UserId string `json:"userId"` Date string `json:"date"` Type string `json:"type"` Result string `json:"result"` Remark string `json:"remark"` Attachments []struct { FileName string `json:"fileName"` FileSize string `json:"fileSize"` FileId string `json:"fileId"` FileType string `json:"fileType"` } `json:"attachments"` CcUserIds []string `json:"ccUserIds"` } `json:"operationRecords"` Tasks []struct { TaskId int `json:"taskId"` UserId string `json:"userId"` Status string `json:"status"` Result string `json:"result"` CreateTime string `json:"createTime"` FinishTime string `json:"finishTime"` MobileUrl string `json:"mobileUrl"` PcUrl string `json:"pcUrl"` ProcessInstanceId string `json:"processInstanceId"` ActivityId string `json:"activityId"` } `json:"tasks"` BizAction string `json:"bizAction"` AttachedProcessInstanceIds []string `json:"attachedProcessInstanceIds"` MainProcessInstanceId string `json:"mainProcessInstanceId"` FormComponentValues []struct { Id string `json:"id"` Name string `json:"name"` Value string `json:"value"` ExtValue string `json:"extValue"` ComponentType string `json:"componentType"` BizAlias string `json:"bizAlias"` } `json:"formComponentValues"` CreateTime string `json:"createTime"` } `json:"result"` Success bool `json:"success"` } // RevokeProcessInstanceResponse 撤销审批实例 type RevokeProcessInstanceResponse struct { InstanceId string `json:"instanceId"` }