| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278 |
- 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 `json:"extendPropertyValues,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 `json:"extendPropertyValues,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"`
- }
|