Documentation ¶
Index ¶
- Constants
- func AnalyzeExprFilters(input string) (filters []*models.Filter, err error)
- func AnalyzeExpression(express string) (result []*models.ExpressionObj, err error)
- func AutoConfirmCMDBView(ctx context.Context, viewId string) (err error)
- func CallPluginCustomForm()
- func ConfigureRoleForUsers(roleId, userToken, language string, userIdList []string) (err error)
- func ConfigureRoleWithAuthoritiesById(roleId, userToken, language string, ...) error
- func ConfigureUserWithRoles(userId, userToken, language string, rolesList []string) (err error)
- func ConfirmCMDBDataList(ctx context.Context, ciTypeEntity string, dataGuidList []string) (err error)
- func CreateEntityData(ctx context.Context, authToken, packageName, entityName string, ...) (map[string]interface{}, error)
- func CreatePluginModelData(ctx context.Context, packageName, entity, token, operation string, ...) (result []map[string]interface{}, err error)
- func DangerousBatchCheck(ctx context.Context, token string, reqParam interface{}) (result *models.ItsdangerousBatchCheckResultData, err error)
- func DangerousWorkflowCheck(ctx context.Context, token string, reqParam interface{}) (result *models.ItsdangerousWorkflowCheckResultData, err error)
- func ExtractExpressionResultColumn(exprList []*models.ExpressionObj, exprResult []map[string]interface{}) (result []interface{})
- func GetComponentLibrary(userToken, language string) (response models.QueryComponentLibraryResponse, err error)
- func GetInputFormMeta(ctx context.Context, procInstId, nodeDefId string, ...) (result *models.TaskMetaResultData, err error)
- func GetOnliePluginPackageList(ctx context.Context) (result []*models.OnlinePackage, err error)
- func GetOnlinePluginPackageFile(ctx context.Context, fileName string) (result *os.File, err error)
- func GetPlatformMailVar() (senderObj *models.SendMailSource, err error)
- func GetPluginDataModels(ctx context.Context, pluginName, token string) (result []*models.SyncDataModelCiType, err error)
- func GetRequestTemplateRoles(dto models.GetRequestTemplateRolesDto, userToken, language string) (response models.QueryRequestTemplateRolesResponse, err error)
- func GetRequestTemplates(dto models.GetRequestTemplatesDto, userToken, language string) (response models.QueryRequestTemplatesResponse, err error)
- func GetRolesByUsername(username, userToken, language string) (response models.QueryRolesResponse, err error)
- func GetToken() string
- func GetUsersByRoleId(roleId, userToken, language string) (response models.QueryUserResponse, err error)
- func ImportComponentLibrary(filePath, userToken, language string) (err error)
- func ImportRequestTemplate(filePath, userToken, language string) (err error)
- func InitToken()
- func ModifyLocalUserPassword(param models.UserPasswordChangeParam, username, userToken, language string) (response models.QuerySingleUserPassResponse, err error)
- func ModifyUserInfo(username, userToken, language string, param *models.UserDto) (err error)
- func PluginInterfaceApi(ctx context.Context, token string, ...) (result *models.PluginInterfaceApiResultData, errCode string, err error)
- func PushPackage(ctx context.Context, token string, unitDesignId string, deployPackageId string, ...) (result *models.PushArtifactPluginPackageData, err error)
- func QueryBusinessList(query models.QueryBusinessListParam) (result []map[string]interface{}, err error)
- func QueryPluginData(ctx context.Context, exprList []*models.ExpressionObj, ...) (result []map[string]interface{}, err error)
- func QueryPluginFullData(ctx context.Context, exprList []*models.ExpressionObj, ...) (resultNodeList []*models.ProcPreviewEntityNode, err error)
- func QueryUser(param models.QueryUserParam, userToken, language string) (pageInfo models.PageInfo, data []*models.SimpleLocalUserDto, err error)
- func RegisterLocalRole(roleDto *models.SimpleLocalRoleDto, userToken, language string) (response models.QuerySingleRolesResponse, err error)
- func RegisterLocalUser(userDto *models.SimpleLocalUserDto, userToken, language string) (response models.QuerySingleUserResponse, err error)
- func RegisterPluginRoute(pluginPackageName, host, port string) (err error)
- func RegisterSubSystem(pluginPackageObj *models.PluginPackages) (subSystemCode, subSystemKey, subSystemPubKey string, err error)
- func RequestPluginModelData(ctx context.Context, packageName, entity, token string, ...) (result []map[string]interface{}, err error)
- func ResetLocalUserPassword(param models.UserPasswordResetParam, userToken, language string) (response models.RestUserPasswordResponse, err error)
- func RetrieveAllLocalRoles(requiredAll, userToken, language string, roleAdmin bool) (response models.QueryRolesResponse, err error)
- func RetrieveAllUsers(userToken, language string) (response models.QueryUserResponse, err error)
- func RetrieveRoleByRoleName(roleName, userToken, language string) (responseData *models.SimpleLocalRoleDto, err error)
- func RetrieveRoleInfo(roleId, userToken, language string) (response models.QuerySingleRolesResponse, err error)
- func RetrieveUserByUserId(userId, userToken, language string) (response models.QuerySingleUserResponse, err error)
- func RetrieveUserByUsername(username, userToken, language string) (responseData *models.SimpleLocalUserDto, err error)
- func RevokeRoleAuthoritiesById(roleId, userToken, language string, ...) error
- func RevokeRoleFromUsers(roleId, userToken, language string, userIdList []string) (err error)
- func SendSmtpMail(smo models.SendMailTarget) (err error)
- func UnregisterLocalUser(userId, userToken, language string) error
- func UpdateEntityData(ctx context.Context, authToken, packageName, entityName string, ...) (map[string]interface{}, error)
- func UpdateLocalRole(userToken, language string, param models.SimpleLocalRoleDto) (response models.QuerySingleRolesResponse, err error)
- func UpdatePluginModelData(ctx context.Context, packageName, entity, token, operation string, ...) (result []map[string]interface{}, err error)
- func UpdatentityDataWithExpr(ctx context.Context, authToken, packageName, entityName string, rootId string, ...) error
- func UploadArtifactPackage(ctx context.Context, token string, unitDesignId string, ...) (deployPackageGuid string, err error)
- func UploadArtifactPackageNew(ctx context.Context, token string, unitDesignId string, ...) (deployPackageGuid string, err error)
Constants ¶
const (
DefaultSystemCode = "SYS_PLATFORM"
)
Variables ¶
This section is empty.
Functions ¶
func AnalyzeExprFilters ¶
func AnalyzeExpression ¶
func AnalyzeExpression(express string) (result []*models.ExpressionObj, err error)
func CallPluginCustomForm ¶
func CallPluginCustomForm()
func ConfigureRoleForUsers ¶
ConfigureRoleForUsers 角色添加用户列表
func ConfigureRoleWithAuthoritiesById ¶
func ConfigureRoleWithAuthoritiesById(roleId, userToken, language string, authoritiesToGrantList []*models.SimpleAuthorityDto) error
ConfigureRoleWithAuthoritiesById 配置角色权限
func ConfigureUserWithRoles ¶
ConfigureUserWithRoles 修改用户角色
func ConfirmCMDBDataList ¶
func CreateEntityData ¶
func CreatePluginModelData ¶
func DangerousBatchCheck ¶
func DangerousWorkflowCheck ¶
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 GetPlatformMailVar ¶
func GetPlatformMailVar() (senderObj *models.SendMailSource, err error)
func GetPluginDataModels ¶
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 GetUsersByRoleId ¶
func GetUsersByRoleId(roleId, userToken, language string) (response models.QueryUserResponse, err error)
GetUsersByRoleId 返回角色用户列表
func ImportComponentLibrary ¶
func ImportRequestTemplate ¶
func ModifyLocalUserPassword ¶
func ModifyLocalUserPassword(param models.UserPasswordChangeParam, username, userToken, language string) (response models.QuerySingleUserPassResponse, err error)
ModifyLocalUserPassword 修改密码
func ModifyUserInfo ¶
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 RegisterSubSystem ¶
func RegisterSubSystem(pluginPackageObj *models.PluginPackages) (subSystemCode, subSystemKey, subSystemPubKey string, err error)
func RequestPluginModelData ¶
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 ¶
RevokeRoleFromUsers 角色移除用户
func SendSmtpMail ¶
func SendSmtpMail(smo models.SendMailTarget) (err error)
func UnregisterLocalUser ¶
UnregisterLocalUser 删除用户
func UpdateEntityData ¶
func UpdateLocalRole ¶
func UpdateLocalRole(userToken, language string, param models.SimpleLocalRoleDto) (response models.QuerySingleRolesResponse, err error)
UpdateLocalRole 更新角色
func UpdatePluginModelData ¶
func UpdatentityDataWithExpr ¶
func UploadArtifactPackage ¶
Types ¶
This section is empty.