Documentation ¶
Index ¶
- Constants
- Variables
- func InitConfig(configFile string) (errMessage string)
- type AttachFileConfig
- type AttachFileTable
- type CMDBCategoriesObj
- type CMDBCategoriesResponse
- type CallbackResult
- type CiDataRefFilterObj
- type CiDataRefFilterRight
- type CiReferenceDataQueryObj
- type CiReferenceDataQueryResponse
- type CiTypeAttrQueryResponse
- type CodeProcessQueryObj
- type CoreProcessQueryResponse
- type CoreRoleDataObj
- type CoreRoleDto
- type CoreUserDataObj
- type CoreUserDto
- type DatabaseConfig
- type EntityAttributeObj
- type EntityAttributeQueryResponse
- type EntityDataObj
- type EntityNodeBindQueryObj
- type EntityQueryObj
- type EntityQueryParam
- type EntityQueryResult
- type EntityResponse
- type EntityTreeData
- type EntityTreeObj
- type EntityTreeResult
- type ExpireObj
- type FormItemTable
- type FormItemTemplateTable
- type FormTable
- type FormTemplateDto
- type FormTemplateTable
- type GetExpressResultParam
- type GlobalConfig
- type HttpServerConfig
- type InstanceStatusQuery
- type InstanceStatusQueryNode
- type InstanceStatusQueryObj
- type LogConfig
- type MailConfig
- type OperationLogTable
- type PageInfo
- type PluginCiDataAttrValueRequest
- type PluginCiDataAttrValueRequestObj
- type PluginCiDataOperationOutput
- type PluginCiDataOperationOutputObj
- type PluginCiDataOperationRequest
- type PluginCiDataOperationRequestObj
- type PluginCiDataOperationResp
- type PluginTaskCreateOutput
- type PluginTaskCreateOutputObj
- type PluginTaskCreateRequest
- type PluginTaskCreateRequestObj
- type PluginTaskCreateResp
- type PluginTaskFormDto
- type PluginTaskFormEntity
- type PluginTaskFormValue
- type ProcAllDefObj
- type ProcAllQueryResponse
- type ProcDefObj
- type ProcEntity
- type ProcEntityAttributeObj
- type ProcNodeObj
- type ProcNodeObjList
- type ProcNodeQueryResponse
- type ProcQueryResponse
- type QueryRequestDialect
- type QueryRequestFilterObj
- type QueryRequestParam
- type QueryRequestSorting
- type RefSelectParam
- type RequestCacheData
- type RequestCacheEntityAttrValue
- type RequestCacheEntityValue
- type RequestCacheTaskNodeBindObj
- type RequestPreDataDto
- type RequestPreDataSort
- type RequestPreDataTableObj
- type RequestProcessData
- type RequestProcessTaskNodeBindObj
- type RequestTable
- type RequestTemplateExport
- type RequestTemplateFormStruct
- type RequestTemplateGroupTable
- type RequestTemplateQueryObj
- type RequestTemplateRoleTable
- type RequestTemplateTable
- type RequestTemplateUpdateParam
- type ResponseErrorJson
- type ResponseErrorObj
- type ResponseJson
- type ResponsePageData
- type RoleTable
- type StartInstanceResult
- type StartInstanceResultData
- type SyncDataModelCiAttr
- type SyncDataModelCiType
- type SyncDataModelResponse
- type SysCiTypeAttrTable
- type SysLogTable
- type TaskApproveParam
- type TaskFormItemQueryObj
- type TaskListObj
- type TaskMetaResult
- type TaskMetaResultData
- type TaskMetaResultItem
- type TaskQueryObj
- type TaskQueryResult
- type TaskQueryTimeStep
- type TaskTable
- type TaskTemplateDto
- type TaskTemplateFormStruct
- type TaskTemplateRoleTable
- type TaskTemplateTable
- type TerminateInstanceParam
- type TransFiltersParam
- type UserRequestTemplateQueryObj
- type UserRequestTemplateTagObj
- type WecubeConfig
- type WorkflowEntityDataObj
- type WorkflowEntityQuery
Constants ¶
View Source
const ( DateTimeFormat = "2006-01-02 15:04:05" SysTableIdConnector = "__" UrlPrefix = "/taskman" RowDataPermissionErr = "Row data permission deny " AdminRole = "SUPER_ADMIN" UploadFileMaxSize = 10485760 )
Variables ¶
View Source
var ( Config *GlobalConfig CoreToken *token.CoreToken ProcessFetchTabs string MailEnable bool MailSender smtp.MailSender PriorityLevelMap = map[int]string{1: "high", 2: "medium", 3: "low"} RequestTemplateImportMap = map[string]RequestTemplateExport{} )
Functions ¶
func InitConfig ¶
Types ¶
type AttachFileConfig ¶
type AttachFileTable ¶
type AttachFileTable struct { Id string `json:"id" xorm:"id"` Name string `json:"name" xorm:"name"` S3BucketName string `json:"s3BucketName" xorm:"s3_bucket_name"` S3KeyName string `json:"s3KeyName" xorm:"s3_key_name"` DelFlag int `json:"delFlag" xorm:"del_flag"` Request string `json:"request" xorm:"request"` Task string `json:"task" xorm:"task"` }
type CMDBCategoriesObj ¶
type CMDBCategoriesResponse ¶
type CMDBCategoriesResponse struct { StatusCode string `json:"statusCode"` Data []*CMDBCategoriesObj `json:"data"` }
type CallbackResult ¶
type CiDataRefFilterObj ¶
type CiDataRefFilterObj struct { Left string `json:"left"` Operator string `json:"operator"` Right CiDataRefFilterRight `json:"right"` }
type CiDataRefFilterRight ¶
type CiDataRefFilterRight struct { Type string `json:"type"` Value interface{} `json:"value"` }
type CiReferenceDataQueryObj ¶
type CiReferenceDataQueryResponse ¶
type CiReferenceDataQueryResponse struct { StatusCode string `json:"statusCode"` Data []*CiReferenceDataQueryObj `json:"data"` }
type CiTypeAttrQueryResponse ¶
type CiTypeAttrQueryResponse struct { StatusCode string `json:"statusCode"` Data []*SysCiTypeAttrTable `json:"data"` }
type CodeProcessQueryObj ¶
type CodeProcessQueryObj struct { ExcludeMode string `json:"excludeMode"` ProcDefId string `json:"procDefId"` ProcDefKey string `json:"procDefKey"` ProcDefName string `json:"procDefName"` ProcDefVersion string `json:"procDefVersion"` RootEntity string `json:"rootEntity"` Status string `json:"status"` CreatedTime string `json:"createdTime"` CreatedUnixTime int64 `json:"-"` Tags string `json:"tags"` }
type CoreProcessQueryResponse ¶
type CoreProcessQueryResponse struct { Status string `json:"status"` Message string `json:"message"` Data []*CodeProcessQueryObj `json:"data"` }
type CoreRoleDataObj ¶
type CoreRoleDto ¶
type CoreRoleDto struct { Status string `json:"status"` Message string `json:"message"` Data []CoreRoleDataObj `json:"data"` }
type CoreUserDataObj ¶
type CoreUserDto ¶
type CoreUserDto struct { Status string `json:"status"` Message string `json:"message"` Data []CoreUserDataObj `json:"data"` }
type DatabaseConfig ¶
type EntityAttributeObj ¶
type EntityAttributeObj struct { CiTypeId string `json:"ciTypeId"` CiTypeAttrId string `json:"ciTypeAttrId"` PropertyName string `json:"propertyName"` DisplayName string `json:"displayName"` InputType string `json:"inputType"` Nullable string `json:"nullable"` Status string `json:"status"` SelectList string `json:"selectList"` Editable string `json:"editable"` RegularExpressionRule string `json:"regularExpressionRule"` }
type EntityAttributeQueryResponse ¶
type EntityAttributeQueryResponse struct { StatusCode string `json:"statusCode"` Data []*EntityAttributeObj `json:"data"` }
type EntityDataObj ¶
type EntityNodeBindQueryObj ¶
type EntityQueryObj ¶
type EntityQueryParam ¶
type EntityQueryParam struct { Criteria EntityQueryObj `json:"criteria"` AdditionalFilters []*EntityQueryObj `json:"additionalFilters"` }
type EntityQueryResult ¶
type EntityQueryResult struct { Status string `json:"status"` Message string `json:"message"` Data []*EntityDataObj `json:"data"` }
type EntityResponse ¶
type EntityTreeData ¶
type EntityTreeData struct { EntityTreeNodes []*EntityTreeObj `json:"entityTreeNodes"` ProcessSessionId string `json:"processSessionId"` }
type EntityTreeObj ¶
type EntityTreeObj struct { PackageName string `json:"packageName"` EntityName string `json:"entityName"` DataId string `json:"dataId"` DisplayName string `json:"displayName"` FullDataId interface{} `json:"fullDataId"` Id string `json:"id"` EntityData map[string]interface{} `json:"entityData"` PreviousIds []string `json:"previousIds"` SucceedingIds []string `json:"succeedingIds"` EntityDataOp string `json:"entityDataOp"` }
type EntityTreeResult ¶
type EntityTreeResult struct { Status string `json:"status"` Message string `json:"message"` Data EntityTreeData `json:"data"` }
type FormItemTable ¶
type FormItemTable struct { Id string `json:"id" xorm:"id"` Form string `json:"form" xorm:"form"` FormItemTemplate string `json:"formItemTemplate" xorm:"form_item_template"` Name string `json:"name" xorm:"name"` Value string `json:"value" xorm:"value"` ItemGroup string `json:"itemGroup" xorm:"item_group"` RowDataId string `json:"rowDataId" xorm:"row_data_id"` }
type FormItemTemplateTable ¶
type FormItemTemplateTable struct { Id string `json:"id" xorm:"id"` Name string `json:"name" xorm:"name"` Description string `json:"description" xorm:"description"` ItemGroup string `json:"itemGroup" xorm:"item_group"` ItemGroupName string `json:"itemGroupName" xorm:"item_group_name"` FormTemplate string `json:"formTemplate" xorm:"form_template"` DefaultValue string `json:"defaultValue" xorm:"default_value"` Sort int `json:"sort" xorm:"sort"` PackageName string `json:"packageName" xorm:"package_name"` Entity string `json:"entity" xorm:"entity"` AttrDefId string `json:"attrDefId" xorm:"attr_def_id"` AttrDefName string `json:"attrDefName" xorm:"attr_def_name"` AttrDefDataType string `json:"attrDefDataType" xorm:"attr_def_data_type"` ElementType string `json:"elementType" xorm:"element_type"` Title string `json:"title" xorm:"title"` Width int `json:"width" xorm:"width"` RefPackageName string `json:"refPackageName" xorm:"ref_package_name"` RefEntity string `json:"refEntity" xorm:"ref_entity"` DataOptions string `json:"dataOptions" xorm:"data_options"` Required string `json:"required" xorm:"required"` Regular string `json:"regular" xorm:"regular"` IsEdit string `json:"isEdit" xorm:"is_edit"` IsView string `json:"isView" xorm:"is_view"` IsOutput string `json:"isOutput" xorm:"is_output"` InDisplayName string `json:"inDisplayName" xorm:"in_display_name"` IsRefInside string `json:"isRefInside" xorm:"is_ref_inside"` Multiple string `json:"multiple" xorm:"multiple"` SelectList []*EntityDataObj `json:"selectList" xorm:"-"` }
type FormTable ¶
type FormTable struct { Id string `json:"id" xorm:"id"` Name string `json:"name" xorm:"name"` Description string `json:"description" xorm:"description"` FormTemplate string `json:"formTemplate" xorm:"form_template"` CreatedBy string `json:"createdBy" xorm:"created_by"` CreatedTime string `json:"createdTime" xorm:"created_time"` UpdatedBy string `json:"updatedBy" xorm:"updated_by"` UpdatedTime string `json:"updatedTime" xorm:"updated_time"` DelFlag int `json:"delFlag" xorm:"del_flag"` }
type FormTemplateDto ¶
type FormTemplateDto struct { Id string `json:"id"` Name string `json:"name"` Description string `json:"description"` ExpireDay int `json:"expireDay"` UpdatedBy string `json:"updatedBy"` UpdatedTime string `json:"updatedTime"` NowTime string `json:"-"` Items []*FormItemTemplateTable `json:"items"` }
type FormTemplateTable ¶
type FormTemplateTable struct { Id string `json:"id" xorm:"id"` Name string `json:"name" xorm:"name"` Description string `json:"description" xorm:"description"` CreatedBy string `json:"createdBy" xorm:"created_by"` CreatedTime string `json:"createdTime" xorm:"created_time"` UpdatedBy string `json:"updatedBy" xorm:"updated_by"` UpdatedTime string `json:"updatedTime" xorm:"updated_time"` DelFlag int `json:"delFlag" xorm:"del_flag"` }
type GetExpressResultParam ¶
type GlobalConfig ¶
type GlobalConfig struct { DefaultLanguage string `json:"default_language"` HttpServer HttpServerConfig `json:"http_server"` Log LogConfig `json:"log"` Database DatabaseConfig `json:"database"` RsaKeyPath string `json:"rsa_key_path"` Wecube WecubeConfig `json:"wecube"` Mail MailConfig `json:"mail"` AttachFile AttachFileConfig `json:"attach_file"` }
type HttpServerConfig ¶
type InstanceStatusQuery ¶
type InstanceStatusQuery struct { Status string `json:"status"` Message string `json:"message"` Data InstanceStatusQueryObj `json:"data"` }
type InstanceStatusQueryNode ¶
type InstanceStatusQueryObj ¶
type LogConfig ¶
type LogConfig struct { Level string `json:"level"` LogDir string `json:"log_dir"` AccessLogEnable bool `json:"access_log_enable"` DbLogEnable bool `json:"db_log_enable"` ArchiveMaxSize int `json:"archive_max_size"` ArchiveMaxBackup int `json:"archive_max_backup"` ArchiveMaxDay int `json:"archive_max_day"` Compress bool `json:"compress"` }
type MailConfig ¶
type OperationLogTable ¶
type PluginCiDataAttrValueRequest ¶
type PluginCiDataAttrValueRequest struct { RequestId string `json:"requestId"` Inputs []*PluginCiDataAttrValueRequestObj `json:"inputs"` }
type PluginCiDataOperationOutput ¶
type PluginCiDataOperationOutput struct {
Outputs []*PluginCiDataOperationOutputObj `json:"outputs"`
}
type PluginCiDataOperationRequest ¶
type PluginCiDataOperationRequest struct { RequestId string `json:"requestId"` Inputs []*PluginCiDataOperationRequestObj `json:"inputs"` }
type PluginCiDataOperationResp ¶
type PluginCiDataOperationResp struct { ResultCode string `json:"resultCode"` ResultMessage string `json:"resultMessage"` Results PluginCiDataOperationOutput `json:"results"` }
type PluginTaskCreateOutput ¶
type PluginTaskCreateOutput struct { RequestId string `json:"requestId"` AllowedOptions []string `json:"allowedOptions,omitempty"` Outputs []*PluginTaskCreateOutputObj `json:"outputs"` }
type PluginTaskCreateRequest ¶
type PluginTaskCreateRequest struct { RequestId string `json:"requestId"` DueDate string `json:"dueDate"` AllowedOptions []string `json:"allowedOptions"` Inputs []*PluginTaskCreateRequestObj `json:"inputs"` }
type PluginTaskCreateRequestObj ¶
type PluginTaskCreateRequestObj struct { CallbackParameter string `json:"callbackParameter"` ProcInstId string `json:"procInstId"` CallbackUrl string `json:"callbackUrl"` Reporter string `json:"reporter"` Handler string `json:"handler"` RoleName string `json:"roleName"` TaskName string `json:"taskName"` TaskDescription string `json:"taskDescription"` TaskFormInput string `json:"taskFormInput"` }
type PluginTaskCreateResp ¶
type PluginTaskCreateResp struct { ResultCode string `json:"resultCode"` ResultMessage string `json:"resultMessage"` Results PluginTaskCreateOutput `json:"results"` }
type PluginTaskFormDto ¶
type PluginTaskFormDto struct { FormMetaId string `json:"formMetaId"` ProcDefId string `json:"procDefId"` ProcDefKey string `json:"procDefKey"` ProcInstId int `json:"procInstId"` ProcInstKey string `json:"procInstKey"` TaskNodeDefId string `json:"taskNodeDefId"` TaskNodeInstId int `json:"taskNodeInstId"` FormDataEntities []*PluginTaskFormEntity `json:"formDataEntities"` }
type PluginTaskFormEntity ¶
type PluginTaskFormEntity struct { FormMetaId string `json:"formMetaId"` PackageName string `json:"packageName"` EntityName string `json:"entityName"` Oid string `json:"oid"` EntityDataId string `json:"entityDataId"` FullEntityDataId string `json:"fullEntityDataId"` EntityDataState string `json:"entityDataState"` EntityDataOp string `json:"entityDataOp"` BindFlag string `json:"bindFlag"` FormItemValues []*PluginTaskFormValue `json:"formItemValues"` }
type PluginTaskFormValue ¶
type PluginTaskFormValue struct { FormItemMetaId string `json:"formItemMetaId"` PackageName string `json:"packageName"` EntityName string `json:"entityName"` AttrName string `json:"attrName"` Oid string `json:"oid"` EntityDataId string `json:"entityDataId"` FullEntityDataId string `json:"fullEntityDataId"` AttrValue interface{} `json:"attrValue"` }
type ProcAllDefObj ¶
type ProcAllQueryResponse ¶
type ProcAllQueryResponse struct { Status string `json:"status"` Message string `json:"message"` Data []*ProcAllDefObj `json:"data"` }
type ProcDefObj ¶
type ProcEntity ¶
type ProcEntityAttributeObj ¶
type ProcEntityAttributeObj struct { Id string `json:"id"` Name string `json:"name"` Description string `json:"description"` DataType string `json:"dataType"` Mandatory bool `json:"mandatory"` RefPackageName string `json:"refPackageName"` RefEntityName string `json:"refEntityName"` RefAttrName string `json:"refAttrName"` ReferenceId string `json:"referenceId"` Active bool `json:"active"` EntityId string `json:"entityId"` EntityName string `json:"entityName"` EntityDisplayName string `json:"entityDisplayName"` EntityPackage string `json:"entityPackage"` Multiple string `json:"multiple"` }
type ProcNodeObj ¶
type ProcNodeObj struct { NodeId string `json:"nodeId"` NodeName string `json:"nodeName"` NodeType string `json:"nodeType"` NodeDefId string `json:"nodeDefId"` TaskCategory string `json:"taskCategory"` RoutineExp string `json:"routineExp"` ServiceId string `json:"serviceId"` ServiceName string `json:"serviceName"` OrderedNo string `json:"orderedNo"` OrderedNum int `json:"-"` DynamicBind string `json:"dynamicbind"` BoundEntities []*ProcEntity `json:"boundEntities"` }
type ProcNodeObjList ¶
type ProcNodeObjList []*ProcNodeObj
func (ProcNodeObjList) Len ¶
func (s ProcNodeObjList) Len() int
func (ProcNodeObjList) Less ¶
func (s ProcNodeObjList) Less(i, j int) bool
func (ProcNodeObjList) Swap ¶
func (s ProcNodeObjList) Swap(i, j int)
type ProcNodeQueryResponse ¶
type ProcNodeQueryResponse struct { Status string `json:"status"` Message string `json:"message"` Data []*ProcNodeObj `json:"data"` }
type ProcQueryResponse ¶
type ProcQueryResponse struct { Status string `json:"status"` Message string `json:"message"` Data []*ProcDefObj `json:"data"` }
type QueryRequestDialect ¶
type QueryRequestFilterObj ¶
type QueryRequestParam ¶
type QueryRequestParam struct { Filters []*QueryRequestFilterObj `json:"filters"` Dialect *QueryRequestDialect `json:"dialect"` Paging bool `json:"paging"` Pageable *PageInfo `json:"pageable"` Sorting *QueryRequestSorting `json:"sorting"` ResultColumns []string `json:"resultColumns"` }
type QueryRequestSorting ¶
type RefSelectParam ¶
type RefSelectParam struct { AttrId string `json:"attrId"` RequestId string `json:"requestId"` UserToken string `json:"-"` Filter string `json:"filter"` Param *QueryRequestParam `json:"param"` }
type RequestCacheData ¶
type RequestCacheData struct { ProcDefId string `json:"procDefId"` ProcDefKey string `json:"procDefKey"` RootEntityValue RequestCacheEntityValue `json:"rootEntityValue"` TaskNodeBindInfos []*RequestCacheTaskNodeBindObj `json:"taskNodeBindInfos"` }
type RequestCacheEntityValue ¶
type RequestCacheEntityValue struct { AttrValues []*RequestCacheEntityAttrValue `json:"attrValues"` BindFlag string `json:"bindFlag"` EntityDataId string `json:"entityDataId"` EntityDataOp string `json:"entityDataOp"` EntityDataState string `json:"entityDataState"` EntityDefId string `json:"entityDefId"` EntityName string `json:"entityName"` EntityDisplayName string `json:"entityDisplayName"` FullEntityDataId interface{} `json:"fullEntityDataId"` Oid string `json:"oid"` PackageName string `json:"packageName"` PreviousOids []string `json:"previousOids"` Processed bool `json:"processed"` SucceedingOids []string `json:"succeedingOids"` }
type RequestCacheTaskNodeBindObj ¶
type RequestCacheTaskNodeBindObj struct { BoundEntityValues []*RequestCacheEntityValue `json:"boundEntityValues"` NodeDefId string `json:"nodeDefId"` NodeId string `json:"nodeId"` }
type RequestPreDataDto ¶
type RequestPreDataDto struct { RootEntityId string `json:"rootEntityId"` Data []*RequestPreDataTableObj `json:"data"` }
type RequestPreDataSort ¶
type RequestPreDataSort []*RequestPreDataTableObj
func (RequestPreDataSort) Len ¶
func (s RequestPreDataSort) Len() int
func (RequestPreDataSort) Less ¶
func (s RequestPreDataSort) Less(i, j int) bool
func (RequestPreDataSort) Swap ¶
func (s RequestPreDataSort) Swap(i, j int)
type RequestPreDataTableObj ¶
type RequestPreDataTableObj struct { PackageName string `json:"packageName"` Entity string `json:"entity"` ItemGroup string `json:"itemGroup"` ItemGroupName string `json:"itemGroupName"` RefEntity []string `json:"-"` SortLevel int `json:"-"` Title []*FormItemTemplateTable `json:"title"` Value []*EntityTreeObj `json:"value"` }
type RequestProcessData ¶
type RequestProcessData struct { ProcDefId string `json:"procDefId"` ProcDefKey string `json:"procDefKey"` RootEntityOid string `json:"rootEntityOid"` Entities []*RequestCacheEntityValue `json:"entities"` Bindings []*RequestProcessTaskNodeBindObj `json:"bindings"` }
type RequestTable ¶
type RequestTable struct { Id string `json:"id" xorm:"id"` Name string `json:"name" xorm:"name"` Form string `json:"form" xorm:"form"` RequestTemplate string `json:"requestTemplate" xorm:"request_template"` RequestTemplateName string `json:"requestTemplateName" xorm:"-"` ProcInstanceId string `json:"procInstanceId" xorm:"proc_instance_id"` ProcInstanceKey string `json:"procInstanceKey" xorm:"proc_instance_key"` Reporter string `json:"reporter" xorm:"reporter"` Handler string `json:"handler" xorm:"handler"` ReportTime string `json:"reportTime" xorm:"report_time"` Emergency int `json:"emergency" xorm:"emergency"` ReportRole string `json:"reportRole" xorm:"report_role"` Status string `json:"status" xorm:"status"` Cache string `json:"cache" xorm:"cache"` BindCache string `json:"bindCache" xorm:"bind_cache"` Result string `json:"result" xorm:"result"` ExpireTime string `json:"expireTime" xorm:"expire_time"` ExpectTime string `json:"expectTime" xorm:"expect_time"` ConfirmTime string `json:"confirmTime" xorm:"confirm_time"` CreatedBy string `json:"createdBy" xorm:"created_by"` CreatedTime string `json:"createdTime" xorm:"created_time"` UpdatedBy string `json:"updatedBy" xorm:"updated_by"` UpdatedTime string `json:"updatedTime" xorm:"updated_time"` DelFlag int `json:"delFlag" xorm:"del_flag"` HandleRoles []string `json:"handleRoles" xorm:"-"` AttachFiles []*AttachFileTable `json:"attachFiles" xorm:"-"` }
type RequestTemplateExport ¶
type RequestTemplateExport struct { RequestTemplate RequestTemplateTable `json:"requestTemplate"` FormTemplate []*FormTemplateTable `json:"formTemplate"` FormItemTemplate []*FormItemTemplateTable `json:"formItemTemplate"` RequestTemplateRole []*RequestTemplateRoleTable `json:"requestTemplateRole"` TaskTemplate []*TaskTemplateTable `json:"taskTemplate"` TaskTemplateRole []*TaskTemplateRoleTable `json:"taskTemplateRole"` RequestTemplateGroup RequestTemplateGroupTable `json:"requestTemplateGroup"` }
type RequestTemplateFormStruct ¶
type RequestTemplateFormStruct struct { Id string `json:"id"` Name string `json:"name"` PackageName string `json:"packageName"` EntityName string `json:"entityName"` ProcDefKey string `json:"procDefKey"` ProcDefId string `json:"procDefId"` ProcDefName string `json:"procDefName"` FormItems []*FormItemTemplateTable `json:"formItems"` TaskTemplates []*TaskTemplateFormStruct `json:"taskTemplates"` }
type RequestTemplateGroupTable ¶
type RequestTemplateGroupTable struct { Id string `json:"id" xorm:"id"` Name string `json:"name" xorm:"name" binding:"required"` Description string `json:"description" xorm:"description"` ManageRole string `json:"manageRole" xorm:"manage_role" binding:"required"` ManageRoleObj RoleTable `json:"manageRoleObj" xorm:"-"` CreatedBy string `json:"createdBy" xorm:"created_by"` CreatedTime string `json:"createdTime" xorm:"created_time"` UpdatedBy string `json:"updatedBy" xorm:"updated_by"` UpdatedTime string `json:"updatedTime" xorm:"updated_time"` DelFlag int `json:"delFlag" xorm:"del_flag"` }
type RequestTemplateQueryObj ¶
type RequestTemplateQueryObj struct { RequestTemplateTable MGMTRoles []*RoleTable `json:"mgmtRoles"` USERoles []*RoleTable `json:"useRoles"` OperateOptions []string `json:"operateOptions"` }
type RequestTemplateTable ¶
type RequestTemplateTable struct { Id string `json:"id" xorm:"id"` Group string `json:"group" xorm:"group"` Name string `json:"name" xorm:"name"` Description string `json:"description" xorm:"description"` FormTemplate string `json:"formTemplate" xorm:"form_template"` Tags string `json:"tags" xorm:"tags"` Status string `json:"status" xorm:"status"` RecordId string `json:"recordId" xorm:"record_id"` Version string `json:"version" xorm:"version"` ConfirmTime string `json:"confirmTime" xorm:"confirm_time"` PackageName string `json:"packageName" xorm:"package_name"` EntityName string `json:"entityName" xorm:"entity_name"` ProcDefKey string `json:"procDefKey" xorm:"proc_def_key"` ProcDefId string `json:"procDefId" xorm:"proc_def_id"` ProcDefName string `json:"procDefName" xorm:"proc_def_name"` CreatedBy string `json:"createdBy" xorm:"created_by"` CreatedTime string `json:"createdTime" xorm:"created_time"` UpdatedBy string `json:"updatedBy" xorm:"updated_by"` UpdatedTime string `json:"updatedTime" xorm:"updated_time"` EntityAttrs string `json:"entityAttrs" xorm:"entity_attrs"` ExpireDay int `json:"expireDay" xorm:"expire_day"` Handler string `json:"handler" xorm:"handler"` DelFlag int `json:"delFlag" xorm:"del_flag"` }
type RequestTemplateUpdateParam ¶
type RequestTemplateUpdateParam struct { RequestTemplateTable MGMTRoles []string `json:"mgmtRoles"` USERoles []string `json:"useRoles"` }
type ResponseErrorJson ¶
type ResponseErrorObj ¶
type ResponseErrorObj struct {
ErrorMessage string `json:"errorMessage"`
}
type ResponseJson ¶
type ResponseJson struct { StatusCode string `json:"statusCode"` Data interface{} `json:"data"` }
type ResponsePageData ¶
type ResponsePageData struct { PageInfo PageInfo `json:"pageInfo"` Contents interface{} `json:"contents"` }
type StartInstanceResult ¶
type StartInstanceResult struct { Status string `json:"status"` Message string `json:"message"` Data StartInstanceResultData `json:"data"` }
type StartInstanceResultData ¶
type SyncDataModelCiAttr ¶
type SyncDataModelCiAttr struct { Name string `json:"name" xorm:"name"` EntityName string `json:"entityName" xorm:"ci_type"` Description string `json:"description" xorm:"description"` DataType string `json:"dataType" xorm:"input_type"` RefPackageName string `json:"refPackageName" xorm:"-"` RefEntityName string `json:"refEntityName" xorm:"ref_ci_type"` RefAttributeName string `json:"refAttributeName" xorm:"-"` Required string `json:"required" xorm:"nullable"` Multiple string `json:"multiple"` }
type SyncDataModelCiType ¶
type SyncDataModelCiType struct { Name string `json:"name" xorm:"id"` DisplayName string `json:"displayName" xorm:"display_name"` Description string `json:"description" xorm:"description"` Attributes []*SyncDataModelCiAttr `json:"attributes" xorm:"-"` }
type SyncDataModelResponse ¶
type SyncDataModelResponse struct { Status string `json:"status"` Message string `json:"message"` Data []*SyncDataModelCiType `json:"data"` }
type SysCiTypeAttrTable ¶
type SysCiTypeAttrTable struct { Id string `json:"ciTypeAttrId" xorm:"id"` CiType string `json:"ciTypeId" xorm:"ci_type"` Name string `json:"propertyName" xorm:"name"` DisplayNameTmp string `json:"displayName" xorm:"-"` DisplayName string `json:"name" xorm:"display_name"` Description string `json:"description" xorm:"description"` Status string `json:"status" xorm:"status"` InputType string `json:"inputType" xorm:"input_type"` DataType string `json:"propertyType" xorm:"data_type"` DataLength int `json:"length" xorm:"data_length"` TextValidate string `json:"regularExpressionRule" xorm:"text_validate"` RefCiType string `json:"referenceId" xorm:"ref_ci_type"` RefName string `json:"referenceName" xorm:"ref_name"` RefType string `json:"referenceType" xorm:"ref_type"` RefFilter string `json:"referenceFilter" xorm:"ref_filter"` RefUpdateStateValidate string `json:"refUpdateStateValidate" xorm:"ref_update_state_validate"` RefConfirmStateValidate string `json:"refConfirmStateValidate" xorm:"ref_confirm_state_validate"` SelectList string `json:"selectList" xorm:"select_list"` UiSearchOrder int `json:"uiSearchOrder" xorm:"ui_search_order"` UiFormOrder int `json:"uiFormOrder" xorm:"ui_form_order"` UniqueConstraint string `json:"uniqueConstraint" xorm:"unique_constraint"` UiNullable string `json:"uiNullable" xorm:"ui_nullable"` Nullable string `json:"nullable" xorm:"nullable"` Editable string `json:"editable" xorm:"editable"` DisplayByDefault string `json:"displayByDefault" xorm:"display_by_default"` PermissionUsage string `json:"permissionUsage" xorm:"permission_usage"` ResetOnEdit string `json:"resetOnEdit" xorm:"reset_on_edit"` Source string `json:"source" xorm:"source"` Customizable string `json:"customizable" xorm:"customizable"` AutofillAble string `json:"autofillable" xorm:"autofillable"` AutofillRule string `json:"autoFillRule" xorm:"autofill_rule"` AutofillType string `json:"autoFillType" xorm:"autofill_type"` EditGroupControl string `json:"editGroupControl" xorm:"edit_group_control"` EditGroupValues string `json:"editGroupValues" xorm:"edit_group_value"` }
type SysLogTable ¶
type SysLogTable struct { LogCat string `json:"logCat" xorm:"log_cat"` Operator string `json:"operator" xorm:"operator"` Operation string `json:"operation" xorm:"operation"` Content string `json:"content" xorm:"content"` RequestUrl string `json:"requestUrl" xorm:"request_url"` ClientHost string `json:"clientHost" xorm:"client_host"` CreatedDate string `json:"createdDate" xorm:"created_date"` DataCiType string `json:"dataCiType" xorm:"data_ci_type"` DataGuid string `json:"dataGuid" xorm:"data_guid"` DataKeyName string `json:"dataKeyName" xorm:"data_key_name"` Response string `json:"response" xorm:"response"` }
type TaskApproveParam ¶
type TaskApproveParam struct { FormData []*RequestPreDataTableObj `json:"formData"` Comment string `json:"comment"` ChoseOption string `json:"choseOption"` }
type TaskFormItemQueryObj ¶
type TaskFormItemQueryObj struct { Id string `json:"id" xorm:"id"` Form string `json:"form" xorm:"form"` FormItemTemplate string `json:"formItemTemplate" xorm:"form_item_template"` Name string `json:"name" xorm:"name"` Value string `json:"value" xorm:"value"` ItemGroup string `json:"itemGroup" xorm:"item_group"` RowDataId string `json:"rowDataId" xorm:"row_data_id"` AttrDefDataType string `json:"attrDefDataType" xorm:"attr_def_data_type"` ElementType string `json:"elementType" xorm:"element_type"` }
type TaskListObj ¶
type TaskListObj struct { Id string `json:"id" xorm:"id"` Name string `json:"name" xorm:"name"` Description string `json:"description" xorm:"description"` Status string `json:"status" xorm:"status"` Request string `json:"request" xorm:"request"` TaskTemplate string `json:"taskTemplate" xorm:"task_template"` NodeDefId string `json:"nodeDefId" xorm:"node_def_id"` NodeName string `json:"nodeName" xorm:"node_name"` Emergency int `json:"emergency" xorm:"emergency"` Result string `json:"result" xorm:"result"` Reporter string `json:"reporter" xorm:"reporter"` ReportTime string `json:"reportTime" xorm:"report_time"` ReportRole string `json:"reportRole" xorm:"report_role"` Handler string `json:"handler" xorm:"handler"` NextOption string `json:"nextOption" xorm:"next_option"` ChoseOption string `json:"choseOption" xorm:"chose_option"` CreatedBy string `json:"createdBy" xorm:"created_by"` CreatedTime string `json:"createdTime" xorm:"created_time"` UpdatedBy string `json:"updatedBy" xorm:"updated_by"` UpdatedTime string `json:"updatedTime" xorm:"updated_time"` OperationOptions []string `json:"operationOptions" xorm:"-"` ExpireTime string `json:"expireTime" xorm:"expire_time"` HandleRoles []string `json:"handleRoles" xorm:"-"` RequestObj RequestTable `json:"requestObj" xorm:"-"` ExpirePercentObj ExpireObj `json:"expireObj"` }
type TaskMetaResult ¶
type TaskMetaResult struct { Status string `json:"status"` Message string `json:"message"` Data TaskMetaResultData `json:"data"` }
type TaskMetaResultData ¶
type TaskMetaResultData struct { FormMetaId string `json:"formMetaId"` FormItemMetas []*TaskMetaResultItem `json:"formItemMetas"` }
type TaskMetaResultItem ¶
type TaskQueryObj ¶
type TaskQueryObj struct { RequestId string `json:"requestId"` RequestName string `json:"requestName"` RequestTemplate string `json:"requestTemplate"` ProcInstanceId string `json:"procInstanceId"` Description string `json:"description"` TaskId string `json:"taskId"` TaskName string `json:"taskName"` Reporter string `json:"reporter"` ReportTime string `json:"reportTime"` Comment string `json:"comment"` AttachFiles []*AttachFileTable `json:"attachFiles"` Editable bool `json:"editable"` Status string `json:"status"` NextOption []string `json:"nextOption"` ChoseOption string `json:"choseOption"` ExpireTime string `json:"expireTime"` ExpectTime string `json:"expectTime"` Handler string `json:"handler"` HandleTime string `json:"handleTime"` FormData []*RequestPreDataTableObj `json:"formData"` }
type TaskQueryResult ¶
type TaskQueryResult struct { TimeStep []*TaskQueryTimeStep `json:"timeStep"` Data []*TaskQueryObj `json:"data"` }
type TaskQueryTimeStep ¶
type TaskTable ¶
type TaskTable struct { Id string `json:"id" xorm:"id"` Name string `json:"name" xorm:"name"` Description string `json:"description" xorm:"description"` Form string `json:"form" xorm:"form"` AttachFile string `json:"attachFile" xorm:"attach_file"` Status string `json:"status" xorm:"status"` Version string `json:"version" xorm:"version"` Request string `json:"request" xorm:"request"` Parent string `json:"parent" xorm:"parent"` TaskTemplate string `json:"taskTemplate" xorm:"task_template"` PackageName string `json:"packageName" xorm:"package_name"` EntityName string `json:"entityName" xorm:"entity_name"` ProcDefId string `json:"procDefId" xorm:"proc_def_id"` ProcDefKey string `json:"procDefKey" xorm:"proc_def_key"` ProcDefName string `json:"procDefName" xorm:"proc_def_name"` NodeDefId string `json:"nodeDefId" xorm:"node_def_id"` NodeName string `json:"nodeName" xorm:"node_name"` CallbackUrl string `json:"callbackUrl" xorm:"callback_url"` CallbackParameter string `json:"callbackParameter" xorm:"callback_parameter"` CallbackData string `json:"callbackData" xorm:"callback_data"` Emergency int `json:"emergency" xorm:"emergency"` Result string `json:"result" xorm:"result"` Cache string `json:"cache" xorm:"cache"` CallbackRequestId string `json:"callbackRequestId" xorm:"callback_request_id"` Reporter string `json:"reporter" xorm:"reporter"` ReportTime string `json:"reportTime" xorm:"report_time"` ReportRole string `json:"reportRole" xorm:"report_role"` Handler string `json:"handler" xorm:"handler"` NextOption string `json:"nextOption" xorm:"next_option"` ChoseOption string `json:"choseOption" xorm:"chose_option"` CreatedBy string `json:"createdBy" xorm:"created_by"` CreatedTime string `json:"createdTime" xorm:"created_time"` UpdatedBy string `json:"updatedBy" xorm:"updated_by"` UpdatedTime string `json:"updatedTime" xorm:"updated_time"` DelFlag string `json:"delFlag" xorm:"del_flag"` OperationOptions []string `json:"operationOptions" xorm:"-"` ExpireTime string `json:"expireTime" xorm:"expire_time"` NotifyCount int `json:"notifyCount" xorm:"notify_count"` }
type TaskTemplateDto ¶
type TaskTemplateDto struct { Id string `json:"id"` NodeId string `json:"nodeId"` NodeDefId string `json:"nodeDefId"` NodeDefName string `json:"nodeDefName"` Name string `json:"name"` Description string `json:"description"` ExpireDay int `json:"expireDay"` Handler string `json:"handler"` UpdatedTime string `json:"updatedTime"` UpdatedBy string `json:"updatedBy"` MGMTRoles []string `json:"mgmtRoles"` USERoles []string `json:"useRoles"` MGMTRoleObjs []*RoleTable `json:"mgmtRoleObjs"` USERoleObjs []*RoleTable `json:"useRoleObjs"` Items []*FormItemTemplateTable `json:"items"` }
type TaskTemplateFormStruct ¶
type TaskTemplateFormStruct struct { Id string `json:"id"` Name string `json:"name"` NodeDefId string `json:"nodeDefId"` NodeDefName string `json:"nodeDefName"` FormItems []*FormItemTemplateTable `json:"formItems"` }
type TaskTemplateRoleTable ¶
type TaskTemplateTable ¶
type TaskTemplateTable struct { Id string `json:"id" xorm:"id"` Name string `json:"name" xorm:"name"` Description string `json:"description" xorm:"description"` FormTemplate string `json:"formTemplate" xorm:"form_template"` RequestTemplate string `json:"requestTemplate" xorm:"request_template"` NodeId string `json:"nodeId" xorm:"node_id"` NodeDefId string `json:"nodeDefId" xorm:"node_def_id"` NodeName string `json:"nodeName" xorm:"node_name"` ExpireDay int `json:"expireDay" xorm:"expire_day"` Handler string `json:"handler" xorm:"handler"` CreatedBy string `json:"createdBy" xorm:"created_by"` CreatedTime string `json:"createdTime" xorm:"created_time"` UpdatedBy string `json:"updatedBy" xorm:"updated_by"` UpdatedTime string `json:"updatedTime" xorm:"updated_time"` DelFlag int `json:"delFlag" xorm:"del_flag"` }
type TerminateInstanceParam ¶
type TransFiltersParam ¶
type UserRequestTemplateQueryObj ¶
type UserRequestTemplateQueryObj struct { GroupId string `json:"groupId"` GroupName string `json:"groupName"` GroupDescription string `json:"groupDescription"` Templates []*RequestTemplateTable `json:"-"` Tags []*UserRequestTemplateTagObj `json:"tags"` }
type UserRequestTemplateTagObj ¶
type UserRequestTemplateTagObj struct { Tag string `json:"tag"` Templates []*RequestTemplateTable `json:"templates"` }
type WecubeConfig ¶
type WorkflowEntityDataObj ¶
type WorkflowEntityQuery ¶
type WorkflowEntityQuery struct { Status string `json:"status"` Message string `json:"message"` Data []*WorkflowEntityDataObj `json:"data"` }
Click to show internal directories.
Click to hide internal directories.