remote

package
v0.0.0-...-8764d5b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultSystemCode = "SYS_PLATFORM"
)

Variables

This section is empty.

Functions

func AnalyzeExprFilters

func AnalyzeExprFilters(input string) (filters []*models.Filter, err error)

func AnalyzeExpression

func AnalyzeExpression(express string) (result []*models.ExpressionObj, err error)

func AutoConfirmCMDBView

func AutoConfirmCMDBView(ctx context.Context, viewId string) (err error)

func CallPluginCustomForm

func CallPluginCustomForm()

func ConfigureRoleForUsers

func ConfigureRoleForUsers(roleId, userToken, language string, userIdList []string) (err error)

ConfigureRoleForUsers 角色添加用户列表

func ConfigureRoleWithAuthoritiesById

func ConfigureRoleWithAuthoritiesById(roleId, userToken, language string, authoritiesToGrantList []*models.SimpleAuthorityDto) error

ConfigureRoleWithAuthoritiesById 配置角色权限

func ConfigureUserWithRoles

func ConfigureUserWithRoles(userId, userToken, language string, rolesList []string) (err error)

ConfigureUserWithRoles 修改用户角色

func ConfirmCMDBDataList

func ConfirmCMDBDataList(ctx context.Context, ciTypeEntity string, dataGuidList []string) (err error)

func CreateEntityData

func CreateEntityData(ctx context.Context, authToken, packageName, entityName string, data map[string]interface{}) (map[string]interface{}, error)

func CreatePluginModelData

func CreatePluginModelData(ctx context.Context, packageName, entity, token, operation string, datas []map[string]interface{}) (result []map[string]interface{}, err error)

func DangerousBatchCheck

func DangerousBatchCheck(ctx context.Context, token string, reqParam interface{}) (result *models.ItsdangerousBatchCheckResultData, err error)

func DangerousWorkflowCheck

func DangerousWorkflowCheck(ctx context.Context, token string, reqParam interface{}) (result *models.ItsdangerousWorkflowCheckResultData, err error)

func ExtractExpressionResultColumn

func ExtractExpressionResultColumn(exprList []*models.ExpressionObj, exprResult []map[string]interface{}) (result []interface{})

func GetComponentLibrary

func GetComponentLibrary(userToken, language string) (response models.QueryComponentLibraryResponse, err error)

GetComponentLibrary 查询taskman组件库列表

func GetInputFormMeta

func GetInputFormMeta(ctx context.Context, procInstId, nodeDefId string, pluginInterface *models.PluginConfigInterfaces) (result *models.TaskMetaResultData, err error)

func GetOnliePluginPackageList

func GetOnliePluginPackageList(ctx context.Context) (result []*models.OnlinePackage, err error)

func GetOnlinePluginPackageFile

func GetOnlinePluginPackageFile(ctx context.Context, fileName string) (result *os.File, err error)

func GetPlatformMailVar

func GetPlatformMailVar() (senderObj *models.SendMailSource, err error)

func GetPluginDataModels

func GetPluginDataModels(ctx context.Context, pluginName, token string) (result []*models.SyncDataModelCiType, err error)

func GetRequestTemplateRoles

func GetRequestTemplateRoles(dto models.GetRequestTemplateRolesDto, userToken, language string) (response models.QueryRequestTemplateRolesResponse, err error)

GetRequestTemplateRoles 查询taskman模版角色

func GetRequestTemplates

func GetRequestTemplates(dto models.GetRequestTemplatesDto, userToken, language string) (response models.QueryRequestTemplatesResponse, err error)

GetRequestTemplates 查询taskman模版列表

func GetRolesByUsername

func GetRolesByUsername(username, userToken, language string) (response models.QueryRolesResponse, err error)

GetRolesByUsername 根据用户名获取角色

func GetToken

func GetToken() string

GetToken 获取鉴权token

func GetUsersByRoleId

func GetUsersByRoleId(roleId, userToken, language string) (response models.QueryUserResponse, err error)

GetUsersByRoleId 返回角色用户列表

func ImportComponentLibrary

func ImportComponentLibrary(filePath, userToken, language string) (err error)

func ImportRequestTemplate

func ImportRequestTemplate(filePath, userToken, language string) (err error)

func InitToken

func InitToken()

InitToken 初始化token

func ModifyLocalUserPassword

func ModifyLocalUserPassword(param models.UserPasswordChangeParam, username, userToken, language string) (response models.QuerySingleUserPassResponse, err error)

ModifyLocalUserPassword 修改密码

func ModifyUserInfo

func ModifyUserInfo(username, userToken, language string, param *models.UserDto) (err error)

ModifyUserInfo 修改用户信息

func PluginInterfaceApi

func PluginInterfaceApi(ctx context.Context, token string, pluginInterface *models.PluginConfigInterfaces, reqParam *models.BatchExecutionPluginExecParam) (result *models.PluginInterfaceApiResultData, errCode string, err error)

func PushPackage

func PushPackage(ctx context.Context, token string, unitDesignId string, deployPackageId string, subDirPath string) (result *models.PushArtifactPluginPackageData, err error)

nexus 推送物料包

func QueryBusinessList

func QueryBusinessList(query models.QueryBusinessListParam) (result []map[string]interface{}, err error)

func QueryPluginData

func QueryPluginData(ctx context.Context, exprList []*models.ExpressionObj, filters []*models.QueryExpressionDataFilter, token string) (result []map[string]interface{}, err error)

func QueryPluginFullData

func QueryPluginFullData(ctx context.Context, exprList []*models.ExpressionObj, rootFilter *models.QueryExpressionDataFilter, rootEntityNode *models.ProcPreviewEntityNode, token string, withEntityData bool) (resultNodeList []*models.ProcPreviewEntityNode, err error)

func QueryUser

func QueryUser(param models.QueryUserParam, userToken, language string) (pageInfo models.PageInfo, data []*models.SimpleLocalUserDto, err error)

func RegisterLocalRole

func RegisterLocalRole(roleDto *models.SimpleLocalRoleDto, userToken, language string) (response models.QuerySingleRolesResponse, err error)

RegisterLocalRole 创建角色

func RegisterLocalUser

func RegisterLocalUser(userDto *models.SimpleLocalUserDto, userToken, language string) (response models.QuerySingleUserResponse, err error)

func RegisterPluginRoute

func RegisterPluginRoute(pluginPackageName, host, port string) (err error)

func RegisterSubSystem

func RegisterSubSystem(pluginPackageObj *models.PluginPackages) (subSystemCode, subSystemKey, subSystemPubKey string, err error)

func RequestPluginModelData

func RequestPluginModelData(ctx context.Context, packageName, entity, token string, filters []*models.EntityQueryObj) (result []map[string]interface{}, err error)

func ResetLocalUserPassword

func ResetLocalUserPassword(param models.UserPasswordResetParam, userToken, language string) (response models.RestUserPasswordResponse, err error)

ResetLocalUserPassword 重置密码

func RetrieveAllLocalRoles

func RetrieveAllLocalRoles(requiredAll, userToken, language string, roleAdmin bool) (response models.QueryRolesResponse, err error)

RetrieveAllLocalRoles 查询所有角色

func RetrieveAllUsers

func RetrieveAllUsers(userToken, language string) (response models.QueryUserResponse, err error)

RetrieveAllUsers 获取所有用户

func RetrieveRoleByRoleName

func RetrieveRoleByRoleName(roleName, userToken, language string) (responseData *models.SimpleLocalRoleDto, err error)

RetrieveRoleByRoleName 通过角色名获取角色信息

func RetrieveRoleInfo

func RetrieveRoleInfo(roleId, userToken, language string) (response models.QuerySingleRolesResponse, err error)

RetrieveRoleInfo 根据roleId获取角色

func RetrieveUserByUserId

func RetrieveUserByUserId(userId, userToken, language string) (response models.QuerySingleUserResponse, err error)

RetrieveUserByUserId 获取用户信息

func RetrieveUserByUsername

func RetrieveUserByUsername(username, userToken, language string) (responseData *models.SimpleLocalUserDto, err error)

RetrieveUserByUsername 通过用户名获取用户信息

func RevokeRoleAuthoritiesById

func RevokeRoleAuthoritiesById(roleId, userToken, language string, authoritiesToRevoke []*models.SimpleAuthorityDto) error

RevokeRoleAuthoritiesById 取消角色授权

func RevokeRoleFromUsers

func RevokeRoleFromUsers(roleId, userToken, language string, userIdList []string) (err error)

RevokeRoleFromUsers 角色移除用户

func SendSmtpMail

func SendSmtpMail(smo models.SendMailTarget) (err error)

func UnregisterLocalUser

func UnregisterLocalUser(userId, userToken, language string) error

UnregisterLocalUser 删除用户

func UpdateEntityData

func UpdateEntityData(ctx context.Context, authToken, packageName, entityName string, data map[string]interface{}) (map[string]interface{}, error)

func UpdateLocalRole

func UpdateLocalRole(userToken, language string, param models.SimpleLocalRoleDto) (response models.QuerySingleRolesResponse, err error)

UpdateLocalRole 更新角色

func UpdatePluginModelData

func UpdatePluginModelData(ctx context.Context, packageName, entity, token, operation string, datas []map[string]interface{}) (result []map[string]interface{}, err error)

func UpdatentityDataWithExpr

func UpdatentityDataWithExpr(ctx context.Context, authToken, packageName, entityName string, rootId string, exprs []*models.ExpressionObj, data map[string]interface{}) error

func UploadArtifactPackage

func UploadArtifactPackage(ctx context.Context, token string, unitDesignId string, localPackagePath string) (deployPackageGuid string, err error)

func UploadArtifactPackageNew

func UploadArtifactPackageNew(ctx context.Context, token string, unitDesignId string, localPackagePath string) (deployPackageGuid string, err error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL