|
|
@@ -1,201 +1,111 @@
|
|
|
package workflow
|
|
|
|
|
|
-// Schema 审批流表单信息
|
|
|
-type Schema struct {
|
|
|
- // 表单类型。
|
|
|
- AppType *int32 `json:"appType,omitempty" xml:"appType,omitempty"`
|
|
|
- // 表单应用 uuid 或者 corpId。
|
|
|
- AppUuid *string `json:"appUuid,omitempty" xml:"appUuid,omitempty"`
|
|
|
- // 代表表单业务含义的类型。
|
|
|
- BizType *string `json:"bizType,omitempty" xml:"bizType,omitempty"`
|
|
|
- // 创建人 userId。
|
|
|
- CreatorUserId *string `json:"creatorUserId,omitempty" xml:"creatorUserId,omitempty"`
|
|
|
- // 业务自定义设置数据。
|
|
|
- CustomSetting *string `json:"customSetting,omitempty" xml:"customSetting,omitempty"`
|
|
|
- // 引擎类型,表单:0,页面:1
|
|
|
- EngineType *int32 `json:"engineType,omitempty" xml:"engineType,omitempty"`
|
|
|
- // 表单的唯一码。
|
|
|
- FormCode *string `json:"formCode,omitempty" xml:"formCode,omitempty"`
|
|
|
- // 表单 uuid。
|
|
|
- FormUuid *string `json:"formUuid,omitempty" xml:"formUuid,omitempty"`
|
|
|
- // 创建时间的时间戳。
|
|
|
- GmtCreate *string `json:"gmtCreate,omitempty" xml:"gmtCreate,omitempty"`
|
|
|
- // 修改时间的时间戳。
|
|
|
- GmtModified *string `json:"gmtModified,omitempty" xml:"gmtModified,omitempty"`
|
|
|
- // 图标。
|
|
|
- Icon *string `json:"icon,omitempty" xml:"icon,omitempty"`
|
|
|
- // 排序 id。
|
|
|
- ListOrder *int32 `json:"listOrder,omitempty" xml:"listOrder,omitempty"`
|
|
|
- // 说明文案。
|
|
|
- Memo *string `json:"memo,omitempty" xml:"memo,omitempty"`
|
|
|
- // 表单名称。
|
|
|
- Name *string `json:"name,omitempty" xml:"name,omitempty"`
|
|
|
- // 数据归属者的 id 类型。企业(orgId), 群(cid), 人(uid)。
|
|
|
- OwnerIdType *string `json:"ownerIdType,omitempty" xml:"ownerIdType,omitempty"`
|
|
|
- // 目标类型: inner, outer, customer。
|
|
|
- ProcType *string `json:"procType,omitempty" xml:"procType,omitempty"`
|
|
|
- // 表单 schema 详情。
|
|
|
- SchemaContent *SchemaContent `json:"schemaContent,omitempty" xml:"schemaContent,omitempty" type:"Struct"`
|
|
|
- // 状态, PUBLISHED(启用), INVALID(停用), SAVED(草稿)
|
|
|
- Status *string `json:"status,omitempty" xml:"status,omitempty"`
|
|
|
- // 可见范围类型。
|
|
|
- VisibleRange *string `json:"visibleRange,omitempty" xml:"visibleRange,omitempty"`
|
|
|
-}
|
|
|
-
|
|
|
-type SchemaContent struct {
|
|
|
- // 图标
|
|
|
- Icon *string `json:"icon,omitempty" xml:"icon,omitempty"`
|
|
|
- // 控件列表
|
|
|
- Items []*SchemaContentItems `json:"items,omitempty" xml:"items,omitempty" type:"Repeated"`
|
|
|
- // 表单名称。
|
|
|
- Title *string `json:"title,omitempty" xml:"title,omitempty"`
|
|
|
-}
|
|
|
-
|
|
|
-type SchemaContentItems struct {
|
|
|
- // 子控件列表
|
|
|
- Children []*SchemaContentItemsChildren `json:"children,omitempty" xml:"children,omitempty" type:"Repeated"`
|
|
|
- // 控件类型,取值:
|
|
|
- ComponentName *string `json:"componentName,omitempty" xml:"componentName,omitempty"`
|
|
|
- // 控件属性。
|
|
|
- Props *SchemaContentItemsProps `json:"props,omitempty" xml:"props,omitempty" type:"Struct"`
|
|
|
-}
|
|
|
-
|
|
|
-type SchemaContentItemsChildren struct {
|
|
|
- // 控件类型
|
|
|
- ComponentName *string `json:"componentName,omitempty" xml:"componentName,omitempty"`
|
|
|
- // 子控件属性
|
|
|
- Props *SchemaContentItemsProps `json:"props,omitempty" xml:"props,omitempty" type:"Struct"`
|
|
|
-}
|
|
|
-
|
|
|
-type SchemaContentItemsProps struct {
|
|
|
- // 加班套件4.0新增 加班明细名称。
|
|
|
- ActionName *string `json:"actionName,omitempty" xml:"actionName,omitempty"`
|
|
|
- // textnote的样式,top|middle|bottom。
|
|
|
- Align *string `json:"align,omitempty" xml:"align,omitempty"`
|
|
|
- // ISV 微应用 appId,用于ISV身份权限识别,ISV可获得相应数据。
|
|
|
- AppId *int64 `json:"appId,omitempty" xml:"appId,omitempty"`
|
|
|
- // 套件是否开启异步获取分条件规则,true:开启;false:不开启。
|
|
|
- AsyncCondition *bool `json:"asyncCondition,omitempty" xml:"asyncCondition,omitempty"`
|
|
|
- // 请假、出差、外出、加班类型标签。
|
|
|
- AttendTypeLabel *string `json:"attendTypeLabel,omitempty" xml:"attendTypeLabel,omitempty"`
|
|
|
- // 表单关联控件列表。
|
|
|
- BehaviorLinkage []*SchemaContentItemsPropsBehaviorLinkage `json:"behaviorLinkage,omitempty" xml:"behaviorLinkage,omitempty" type:"Repeated"`
|
|
|
- // 控件业务自定义别名。
|
|
|
- BizAlias *string `json:"bizAlias,omitempty" xml:"bizAlias,omitempty"`
|
|
|
- // 业务套件类型。
|
|
|
- BizType *string `json:"bizType,omitempty" xml:"bizType,omitempty"`
|
|
|
- // 套件内子组件可见性
|
|
|
- ChildFieldVisible map[string]*bool `json:"childFieldVisible,omitempty" xml:"childFieldVisible,omitempty"`
|
|
|
- // 内部联系人choice,1表示多选,0表示单选。
|
|
|
- Choice *int32 `json:"choice,omitempty" xml:"choice,omitempty"`
|
|
|
- // common field的commonBizType。
|
|
|
- CommonBizType *string `json:"commonBizType,omitempty" xml:"commonBizType,omitempty"`
|
|
|
- // 是否可编辑。
|
|
|
- Disabled *bool `json:"disabled,omitempty" xml:"disabled,omitempty"`
|
|
|
- // 是否自动计算时长。
|
|
|
- Duration *bool `json:"duration,omitempty" xml:"duration,omitempty"`
|
|
|
- // 兼容字段。
|
|
|
- DurationLabel *string `json:"durationLabel,omitempty" xml:"durationLabel,omitempty"`
|
|
|
- // e签宝专用标识。
|
|
|
- ESign *bool `json:"eSign,omitempty" xml:"eSign,omitempty"`
|
|
|
- // 套件值是否打平
|
|
|
- Extract *bool `json:"extract,omitempty" xml:"extract,omitempty"`
|
|
|
- // 关联表单中的fields存储
|
|
|
- FieldsInfo *string `json:"fieldsInfo,omitempty" xml:"fieldsInfo,omitempty"`
|
|
|
- // 时间格式(DDDateField和DDDateRangeField)。
|
|
|
- Format *string `json:"format,omitempty" xml:"format,omitempty"`
|
|
|
- // 公式。
|
|
|
- Formula *string `json:"formula,omitempty" xml:"formula,omitempty"`
|
|
|
- // 加班套件4.0新增 加班明细是否隐藏。
|
|
|
- Hidden *bool `json:"hidden,omitempty" xml:"hidden,omitempty"`
|
|
|
- // textnote在详情页是否隐藏,true隐藏, false不隐藏
|
|
|
- HiddenInApprovalDetail *bool `json:"hiddenInApprovalDetail,omitempty" xml:"hiddenInApprovalDetail,omitempty"`
|
|
|
- // 加班套件4.0新增 加班明细是否隐藏标签。
|
|
|
- HideLabel *bool `json:"hideLabel,omitempty" xml:"hideLabel,omitempty"`
|
|
|
- // 兼容出勤套件类型。
|
|
|
- HolidayOptions []map[string]*string `json:"holidayOptions,omitempty" xml:"holidayOptions,omitempty" type:"Repeated"`
|
|
|
- // 控件 id。
|
|
|
- Id *string `json:"id,omitempty" xml:"id,omitempty"`
|
|
|
- // 控件名称。
|
|
|
- Label *string `json:"label,omitempty" xml:"label,omitempty"`
|
|
|
- // label是否可修改 true:不可修改。
|
|
|
- LabelEditableFreeze *bool `json:"labelEditableFreeze,omitempty" xml:"labelEditableFreeze,omitempty"`
|
|
|
- // 说明文案的链接地址。
|
|
|
- Link *string `json:"link,omitempty" xml:"link,omitempty"`
|
|
|
- // 加班套件4.0新增 加班明细描述。
|
|
|
- MainTitle *string `json:"mainTitle,omitempty" xml:"mainTitle,omitempty"`
|
|
|
- // 是否参与打印(1表示不打印, 0表示打印)。
|
|
|
- NotPrint *string `json:"notPrint,omitempty" xml:"notPrint,omitempty"`
|
|
|
- // 是否需要大写 默认是需要; 1:不需要大写, 空或者0:需要大写。
|
|
|
- NotUpper *string `json:"notUpper,omitempty" xml:"notUpper,omitempty"`
|
|
|
- // 选项内容列表,提供给业务方更多的选择器操作。
|
|
|
- ObjOptions []*SchemaContentItemsPropsObjOptions `json:"objOptions,omitempty" xml:"objOptions,omitempty" type:"Repeated"`
|
|
|
- // 单选框选项列表。
|
|
|
- Options []*string `json:"options,omitempty" xml:"options,omitempty" type:"Repeated"`
|
|
|
- // 是否有支付属性。
|
|
|
- PayEnable *bool `json:"payEnable,omitempty" xml:"payEnable,omitempty"`
|
|
|
- // 占位符。
|
|
|
- Placeholder *string `json:"placeholder,omitempty" xml:"placeholder,omitempty"`
|
|
|
- // 同步到考勤, 表示是否设置为员工状态。
|
|
|
- Push *SchemaContentItemsPropsPush `json:"push,omitempty" xml:"push,omitempty" type:"Struct"`
|
|
|
- // 推送到考勤, 子类型(DDSelectField)。
|
|
|
- PushToAttendance *bool `json:"pushToAttendance,omitempty" xml:"pushToAttendance,omitempty"`
|
|
|
- // 是否推送管理日历(DDDateRangeField, 1表示推送, 0表示不推送, 该属性为兼容保留)。
|
|
|
- PushToCalendar *int32 `json:"pushToCalendar,omitempty" xml:"pushToCalendar,omitempty"`
|
|
|
- // 是否必填。
|
|
|
- Required *bool `json:"required,omitempty" xml:"required,omitempty"`
|
|
|
- // 必填是否可修改 true:不可修改。
|
|
|
- RequiredEditableFreeze *bool `json:"requiredEditableFreeze,omitempty" xml:"requiredEditableFreeze,omitempty"`
|
|
|
- // 兼容出勤套件类型。
|
|
|
- ShowAttendOptions *bool `json:"showAttendOptions,omitempty" xml:"showAttendOptions,omitempty"`
|
|
|
- // 是否开启员工状态。
|
|
|
- StaffStatusEnabled *bool `json:"staffStatusEnabled,omitempty" xml:"staffStatusEnabled,omitempty"`
|
|
|
- // 需要计算总和的明细组件
|
|
|
- StatField []*SchemaContentItemsPropsStatField `json:"statField,omitempty" xml:"statField,omitempty" type:"Repeated"`
|
|
|
- // 数字组件/日期区间组件单位属性。
|
|
|
- Unit *string `json:"unit,omitempty" xml:"unit,omitempty"`
|
|
|
- // 是否使用考勤日历。
|
|
|
- UseCalendar *bool `json:"useCalendar,omitempty" xml:"useCalendar,omitempty"`
|
|
|
- // 明细打印排版方式 false:横向 true:纵向。
|
|
|
- VerticalPrint *bool `json:"verticalPrint,omitempty" xml:"verticalPrint,omitempty"`
|
|
|
-}
|
|
|
-
|
|
|
-type SchemaContentItemsPropsBehaviorLinkage struct {
|
|
|
- // 关联控件列表。
|
|
|
- Targets []*SchemaContentItemsPropsBehaviorLinkageTargets `json:"targets,omitempty" xml:"targets,omitempty" type:"Repeated"`
|
|
|
- // 控件值。
|
|
|
- Value *string `json:"value,omitempty" xml:"value,omitempty"`
|
|
|
-}
|
|
|
-
|
|
|
-type SchemaContentItemsPropsBehaviorLinkageTargets struct {
|
|
|
- // 行为。
|
|
|
- Behavior *string `json:"behavior,omitempty" xml:"behavior,omitempty"`
|
|
|
- // 字段 id。
|
|
|
- FieldId *string `json:"fieldId,omitempty" xml:"fieldId,omitempty"`
|
|
|
-}
|
|
|
-
|
|
|
-type SchemaContentItemsPropsObjOptions struct {
|
|
|
- Value *string `json:"value,omitempty" xml:"value,omitempty"`
|
|
|
-}
|
|
|
-
|
|
|
-type SchemaContentItemsPropsPush struct {
|
|
|
- // 考勤类型(1表示请假, 2表示出差, 3表示加班, 4表示外出)
|
|
|
- AttendanceRule *int32 `json:"attendanceRule,omitempty" xml:"attendanceRule,omitempty"`
|
|
|
- // 开启状态(1表示开启, 0表示关闭)
|
|
|
- PushSwitch *int32 `json:"pushSwitch,omitempty" xml:"pushSwitch,omitempty"`
|
|
|
- // 状态显示名称
|
|
|
- PushTag *string `json:"pushTag,omitempty" xml:"pushTag,omitempty"`
|
|
|
-}
|
|
|
-
|
|
|
-type SchemaContentItemsPropsStatField struct {
|
|
|
- // id 值。
|
|
|
- Id *string `json:"id,omitempty" xml:"id,omitempty"`
|
|
|
- // 名称。
|
|
|
- Label *string `json:"label,omitempty" xml:"label,omitempty"`
|
|
|
- // 单位。
|
|
|
- Unit *string `json:"unit,omitempty" xml:"unit,omitempty"`
|
|
|
- // 大写。
|
|
|
- Upper *bool `json:"upper,omitempty" xml:"upper,omitempty"`
|
|
|
+// 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 启动审批流
|
|
|
@@ -278,3 +188,62 @@ type StartProcessInstanceRequestFormComponentValuesDetailsDetails struct {
|
|
|
// 控件值
|
|
|
Value *string `json:"value,omitempty" xml:"value,omitempty"`
|
|
|
}
|
|
|
+
|
|
|
+// StartProcessInstanceResponse 启动审批流
|
|
|
+type StartProcessInstanceResponse struct {
|
|
|
+ InstanceId string `json:"instanceId"`
|
|
|
+}
|
|
|
+
|
|
|
+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 string `json:"success"`
|
|
|
+}
|