package managesdk type ServiceType string const ( ServiceTypePerson ServiceType = "person" ServiceTypeResource ServiceType = "resource" ServiceTypeActivity ServiceType = "activity" ServiceTypePlan ServiceType = "plan" ) const ( DefaultPersonBaseURL = "http://10.0.0.210:30684/mbpms/api" DefaultResourceBaseURL = "http://10.0.0.210:30684/mbrms/api" DefaultActivityBaseURL = "http://10.0.0.210:30604/mbact/api" DefaultPlanBaseURL = "http://10.0.0.210:30604/mbact/api" ) type BaseQueryParams struct { PageNo int `form:"pageNo"` PageSize int `form:"pageSize"` } type QueryResult struct { Infos []map[string]any `json:"infos"` TotalCount int64 `json:"totalCount"` } type PersonInfo struct { ID string `json:"id"` Name string `json:"name"` UserID string `json:"userId"` ExtendPropertyValues map[string]any `json:"extendProperties"` TenantID string `json:"tenantId"` CreatedTime string `json:"createdTime"` LastUpdatedTime string `json:"lastUpdatedTime"` } type SavePersonParams struct { ID string `json:"id"` Name string `json:"name"` UserID string `json:"userId"` UserName string `json:"operatorUserName"` ExtendProperties map[string]any `json:"extendProperties"` TenantID string `json:"tenantId"` OperatorUserName string `json:"operatorUserName"` } type DeletePersonParams struct { ID string `json:"id"` BusinessType []string `json:"businessType"` DeleteWhole bool `json:"deleteWhole"` DeleteUserID string `json:"deleteUserId"` DeleteUserName string `json:"deleteUserName"` OperatorUserName string `json:"operatorUserName"` } type QueryPersonsParams struct { Name string `form:"name"` UserID string `form:"userId"` ExtendPropertyValues map[string]any `form:"extendPropertyValues"` TenantID string `form:"tenantId"` AdvancedQuery *AdvancedQueryParams `form:"advancedQuery"` BaseQueryParams } type GetPersonParams struct { ID string `form:"id"` } type GenderInfo struct { Gender string `json:"gender"` Label string `json:"label"` } type PersonStateInfo struct { State string `json:"state"` Label string `json:"label"` } type ResourceInfo struct { ID string `json:"id"` Name string `json:"name"` Code string `json:"code"` BusinessType string `json:"businessType"` ExtendPropertyValues map[string]any `json:"extendProperties"` TenantID string `json:"tenantId"` CreateUserID string `json:"createUserId"` LastUpdateUserID string `json:"lastUpdateUserId"` CreatedTime string `json:"createdTime"` LastUpdatedTime string `json:"lastUpdatedTime"` } type SaveResourceParams struct { ID string `json:"id"` Name string `json:"name"` Code string `json:"code"` BusinessType string `json:"businessType"` ExtendProperties map[string]any `json:"extendProperties"` TenantID string `json:"tenantId"` CreateUserID string `json:"createUserId"` UpdateUserID string `json:"updateUserId"` OperatorUserName string `json:"operatorUserName"` } type DeleteResourceParams struct { ID string `form:"id"` DeleteUserID string `form:"deleteUserId"` OperatorUserName string `form:"operatorUserName"` } type QueryResourcesParams struct { Name string `form:"name"` BusinessType string `form:"businessType"` ExtendPropertyValues map[string]any `form:"extendPropertyValues"` UserID string `form:"userId"` QueryMode string `form:"queryMode"` CreateUserID string `form:"createUserId"` TenantID string `form:"tenantId"` AdvancedQuery *AdvancedQueryParams `form:"advancedQuery"` BaseQueryParams } type GetResourceParams struct { ID string `form:"id"` } type CategoryInfo struct { Category string `json:"category"` ExcludeField []string `json:"excludeField"` } type ResourceStateInfo struct { State string `json:"state"` Label string `json:"label"` } type OperateLogQueryParams struct { Resource string `form:"resource"` Action string `form:"action"` OperatorName string `form:"operatorName"` StartTime string `form:"startTime"` EndTime string `form:"endTime"` TenantID string `form:"tenantId"` BaseQueryParams } type OperateLogInfo struct { ID string `json:"id"` Resource string `json:"resource"` Action string `json:"action"` OperatorName string `json:"operatorName"` Content string `json:"content"` TenantID string `json:"tenantId"` CreatedTime string `json:"createdTime"` } type ActivityInfo struct { ID string `json:"id"` Name string `json:"name"` Description string `json:"description"` ActorID string `json:"actorId"` BusinessType []string `json:"businessType"` ExtendPropertyValues map[string]any `json:"extendProperties"` TenantID string `json:"tenantId"` CreateUserID string `json:"createUserId"` LastUpdateUserID string `json:"lastUpdateUserId"` CreatedTime string `json:"createdTime"` LastUpdatedTime string `json:"lastUpdatedTime"` } type SaveActivityParams struct { ID string `json:"id,omitempty"` Name string `json:"name"` Description string `json:"description,omitempty"` ActorID string `json:"actorId"` BusinessType []string `json:"businessType"` ExtendProperties map[string]any `json:"extendProperties,omitempty"` TenantID string `json:"tenantId"` CreateUserID string `json:"createUserId,omitempty"` UpdateUserID string `json:"updateUserId"` OperatorUserName string `json:"operatorUserName"` } type QueryActivitiesParams struct { Name string `json:"name,omitempty"` ActorID string `json:"actorId,omitempty"` BusinessType []string `json:"businessType,omitempty"` ExtendPropertyValues map[string]any `form:"extendPropertyValues"` AdvancedQuery *AdvancedQueryParams `json:"advancedQuery,omitempty"` CreateUserID string `json:"createUserId,omitempty"` TenantID string `json:"tenantId"` PageNo int `json:"pageNo"` PageSize int `json:"pageSize"` } type DeleteActivityParams struct { ID string `json:"id"` BusinessType []string `json:"businessType"` DeleteWhole bool `json:"deleteWhole"` DeleteUserID string `json:"deleteUserId"` OperatorUserName string `json:"operatorUserName"` } type GetActivityParams struct { ID string `json:"id"` } type PlanInfo struct { ID string `json:"id"` PlanType string `json:"planType"` Name string `json:"name"` Description string `json:"description"` ActorID string `json:"actorId"` State string `json:"state"` BusinessType []string `json:"businessType"` TaskIDs []string `json:"taskIds"` Attachments []string `json:"attachments"` ExtendPropertyValues map[string]any `json:"extendProperties"` StartTime string `json:"startTime"` EndTime string `json:"endTime"` CloseTime string `json:"closeTime"` RemindAdvanceDays int `json:"remindAdvanceDays"` RemindTimes []string `json:"remindTimes"` PeriodType string `json:"periodType"` TenantID string `json:"tenantId"` CreateUserID string `json:"createUserId"` LastUpdateUserID string `json:"lastUpdateUserId"` CreatedTime string `json:"createdTime"` LastUpdatedTime string `json:"lastUpdatedTime"` } type SavePlanParams struct { ID string `json:"id,omitempty"` PlanType string `json:"planType"` Name string `json:"name"` Description string `json:"description,omitempty"` ActorID string `json:"actorId"` State string `json:"state,omitempty"` BusinessType []string `json:"businessType"` TaskIDs []string `json:"taskIds,omitempty"` Attachments []string `json:"attachments,omitempty"` ExtendProperties map[string]any `json:"extendProperties,omitempty"` StartTime string `json:"startTime,omitempty"` EndTime string `json:"endTime,omitempty"` CloseTime string `json:"closeTime,omitempty"` RemindAdvanceDays int `json:"remindAdvanceDays,omitempty"` RemindTimes []string `json:"remindTimes,omitempty"` PeriodType string `json:"periodType,omitempty"` TenantID string `json:"tenantId"` CreateUserID string `json:"createUserId,omitempty"` UpdateUserID string `json:"updateUserId"` OperatorUserName string `json:"operatorUserName"` } type QueryPlansParams struct { PlanType string `json:"planType,omitempty"` Name string `json:"name,omitempty"` ActorID string `json:"actorId,omitempty"` State string `json:"state,omitempty"` BusinessType []string `json:"businessType,omitempty"` ExtendPropertyValues map[string]any `form:"extendPropertyValues"` AdvancedQuery *AdvancedQueryParams `json:"advancedQuery,omitempty"` CreateUserID string `json:"createUserId,omitempty"` TenantID string `json:"tenantId"` PageNo int `json:"pageNo"` PageSize int `json:"pageSize"` } type DeletePlanParams struct { ID string `json:"id"` BusinessType []string `json:"businessType"` DeleteWhole bool `json:"deleteWhole"` DeleteUserID string `json:"deleteUserId"` OperatorUserName string `json:"operatorUserName"` } type GetPlanParams struct { ID string `json:"id"` }