diff --git a/alova.config.ts b/alova.config.ts index 30e5f75..cd54ead 100644 --- a/alova.config.ts +++ b/alova.config.ts @@ -3,7 +3,7 @@ import type { GeneratorConfig } from "@alova/wormhole"; export default { generator: [ { - input: "http://localhost:8060/v2/api-docs", + input: "http://localhost:8060/v3/api-docs", // 文档平台类型 platform: "swagger", diff --git a/src/api/apiDefinitions.ts b/src/api/apiDefinitions.ts index 99da36d..88d01da 100644 --- a/src/api/apiDefinitions.ts +++ b/src/api/apiDefinitions.ts @@ -2,13 +2,12 @@ /* tslint:disable */ /* eslint-disable */ /** - * 用户中心接口文档 - version 0.0.1-SNAPSHOT + * 用户中心接口文档 - version 0.0.1 * - * Demo project for Spring Boot + * UserBase 用户中心 OpenAPI 文档(springdoc-openapi) * - * OpenAPI version: 3.0.0 + * OpenAPI version: 3.0.1 * - * Contact: * * NOTE: This file is auto generated by the alova's vscode plugin. * @@ -17,79 +16,102 @@ * **Do not edit the file manually.** */ export default { - 'AppSettings.addApp': ['POST', '/api/app/AddApp'], - 'AppSettings.addModule': ['POST', '/api/app/AddModule'], - 'AppSettings.addType': ['POST', '/api/app/AddType'], - 'AppSettings.appAuthzList': ['GET', '/api/app/AppAuthzList'], - 'AppSettings.appList': ['GET', '/api/app/AppList'], - 'AppSettings.appSort': ['POST', '/api/app/AppSort'], - 'AppSettings.appSortList': ['GET', '/api/app/AppSortList'], - 'AppSettings.appTypeList': ['GET', '/api/app/AppTypeList'], - 'AppSettings.appTypeSort': ['POST', '/api/app/AppTypeSort'], - 'AppSettings.deleteApp': ['POST', '/api/app/DeleteApp/{id}'], - 'AppSettings.deleteModule': ['POST', '/api/app/DeleteModule/{id}'], - 'AppSettings.deleteType': ['POST', '/api/app/DeleteType/{id}'], - 'AppSettings.editApp': ['POST', '/api/app/EditApp/{id}'], - 'AppSettings.editModule': ['POST', '/api/app/EditModule/{id}'], - 'AppSettings.editType': ['POST', '/api/app/EditType/{id}'], - 'AppSettings.moduleList': ['GET', '/api/app/ModuleList'], - 'AppSettings.resetAppSecret': ['POST', '/api/app/ResetAppSecret/{id}'], - 'AppRole.removeRoleUser': ['POST', '/api/approle/RemoveRoleUser'], - 'AppRole.roleAdd': ['POST', '/api/approle/RoleAdd'], - 'AppRole.roleDelete': ['POST', '/api/approle/RoleDelete/{id}'], - 'AppRole.roleEdit': ['POST', '/api/approle/RoleEdit/{id}'], - 'AppRole.roleList': ['GET', '/api/approle/RoleList'], - 'AppRole.roleModuleTree': ['GET', '/api/approle/RoleModuleTree'], - 'AppRole.roleUsers': ['GET', '/api/approle/RoleUsers'], - 'AppRole.saveRoleModules': ['POST', '/api/approle/SaveRoleModules'], - 'AppRole.saveRoleUsers': ['POST', '/api/approle/SaveRoleUsers'], - 'AppRole.saveUserRoles': ['POST', '/api/approle/SaveUserRoles'], - 'Base.getSysDict': ['GET', '/api/base/GetSysDict'], - 'Base.getUserInfo': ['GET', '/api/base/GetUserInfo'], - 'Base.manualHashCacheDemo': ['GET', '/api/base/ManualHashCacheDemo'], - 'Base.RedirectTo': ['GET', '/api/base/RedirectTo/{id}'], - 'Base.uploadFile': ['POST', '/api/base/UploadFile'], - 'GroupAuthz.assignApps': ['POST', '/api/groupauthz/AssignApps'], - 'GroupAuthz.getSchoolAppId': ['GET', '/api/groupauthz/GetSchoolAppId'], - 'GroupAuthz.groupAppList': ['GET', '/api/groupauthz/GroupAppList'], - 'GroupAuthz.groupModuleTree': ['GET', '/api/groupauthz/GroupModuleTree'], - 'GroupAuthz.groupModuleTreeByCategory': ['GET', '/api/groupauthz/GroupModuleTreeByCategory'], - 'GroupAuthz.groupUsers': ['GET', '/api/groupauthz/GroupUsers'], - 'GroupAuthz.hasModulePerm': ['GET', '/api/groupauthz/HasModulePerm'], - 'GroupAuthz.saveModulePerms': ['POST', '/api/groupauthz/SaveModulePerms'], - 'GroupAuthz.searchUsers': ['GET', '/api/groupauthz/SearchUsers'], - 'GroupAuthz.setGroupModule': ['POST', '/api/groupauthz/SetGroupModule'], - 'GroupAuthz.setSchoolApp': ['POST', '/api/groupauthz/SetSchoolApp'], - 'GroupAuthz.userGroupTree': ['GET', '/api/groupauthz/UserGroupTree'], - 'GroupAuthz.userPermissionTree': ['GET', '/api/groupauthz/UserPermissionTree'], - 'GroupAuthz.userRoles': ['GET', '/api/groupauthz/UserRoles'], - 'OperationLog.list': ['GET', '/api/oplog/List'], - 'OperationLog.download': ['GET', '/api/oplog/Download/{id}'], - 'SysGroup.add': ['POST', '/api/sysgroup/Add'], - 'SysGroup.batchAdd': ['POST', '/api/sysgroup/BatchAdd'], - 'SysGroup.delete': ['POST', '/api/sysgroup/Delete/{id}'], - 'SysGroup.edit': ['POST', '/api/sysgroup/Edit/{id}'], - 'SysGroup.getSchoolTree': ['GET', '/api/sysgroup/GetSchoolTree'], - 'SysGroup.getTree': ['GET', '/api/sysgroup/GetTree'], - 'SysGroup.list': ['GET', '/api/sysgroup/List'], - 'SysGroup.move': ['POST', '/api/sysgroup/Move'], - 'SysGroup.sortChildren': ['POST', '/api/sysgroup/SortChildren'], - 'SysUser.add': ['POST', '/api/sysuser/Add'], - 'SysUser.delete': ['POST', '/api/sysuser/Delete/{id}'], - 'SysUser.deleteFromGroup': ['POST', '/api/sysuser/DeleteFromGroup/{userId}/{groupId}'], - 'SysUser.batchDelete': ['POST', '/api/sysuser/BatchDelete'], - 'SysUser.disable': ['POST', '/api/sysuser/Disable/{id}'], - 'SysUser.edit': ['POST', '/api/sysuser/Edit/{id}'], - 'SysUser.enable': ['POST', '/api/sysuser/Enable/{id}'], - 'SysUser.list': ['GET', '/api/sysuser/List'], - 'SysUser.getGroups': ['GET', '/api/sysuser/Groups/{userId}'], - 'SysUser.changeGroups': ['POST', '/api/sysuser/ChangeGroups'], - 'SysUser.changeSortNo': ['POST', '/api/sysuser/ChangeSortNo/{userId}'], - 'SysUser.batchChangeStatus': ['POST', '/api/sysuser/BatchChangeStatus'], - 'AppSettings.savePushSetting': ['POST', '/api/app/SavePushSetting/{id}'], - 'AppSettings.getPushSetting': ['GET', '/api/app/GetPushSetting/{id}'], - 'Push.test': ['POST', '/api/push/Test'], - 'Push.recordList': ['GET', '/api/push/RecordList'], - 'Push.retry': ['POST', '/api/push/Retry/{id}'], - 'Push.download': ['GET', '/api/push/Download/{id}'] + 'sysUserController.enable': ['POST', '/api/sysuser/Enable/{id}'], + 'sysUserController.edit': ['POST', '/api/sysuser/Edit/{id}'], + 'sysUserController.disable': ['POST', '/api/sysuser/Disable/{id}'], + 'sysUserController.deleteFromGroup': ['POST', '/api/sysuser/DeleteFromGroup/{userId}/{groupId}'], + 'sysUserController.changeSortNo': ['POST', '/api/sysuser/ChangeSortNo/{userId}'], + 'sysUserController.changeGroups': ['POST', '/api/sysuser/ChangeGroups'], + 'sysUserController.batchImport': ['POST', '/api/sysuser/BatchImport'], + 'sysUserController.batchDelete': ['POST', '/api/sysuser/BatchDelete'], + 'sysUserController.batchChangeStatus': ['POST', '/api/sysuser/BatchChangeStatus'], + 'sysUserController.add': ['POST', '/api/sysuser/Add'], + 'sysGroupController.sortChildren': ['POST', '/api/sysgroup/SortChildren'], + 'sysGroupController.move': ['POST', '/api/sysgroup/Move'], + 'sysGroupController.edit_1': ['POST', '/api/sysgroup/Edit/{id}'], + 'sysGroupController.delete_': ['POST', '/api/sysgroup/Delete/{id}'], + 'sysGroupController.batchAdd': ['POST', '/api/sysgroup/BatchAdd'], + 'sysGroupController.add_1': ['POST', '/api/sysgroup/Add'], + 'pushSubscriptionController.test': ['POST', '/api/push/Test'], + 'pushSubscriptionController.retry': ['POST', '/api/push/Retry/{id}'], + 'identityController.switchIdentity': ['POST', '/api/identity/switch'], + 'groupAuthzController.setSchoolApp': ['POST', '/api/groupauthz/SetSchoolApp'], + 'groupAuthzController.setGroupModule': ['POST', '/api/groupauthz/SetGroupModule'], + 'groupAuthzController.saveModulePerms': ['POST', '/api/groupauthz/SaveModulePerms'], + 'groupAuthzController.assignApps': ['POST', '/api/groupauthz/AssignApps'], + 'baseController.uploadFile': ['POST', '/api/base/UploadFile'], + 'appRoleController.saveUserRoles': ['POST', '/api/approle/SaveUserRoles'], + 'appRoleController.saveRoleUsers': ['POST', '/api/approle/SaveRoleUsers'], + 'appRoleController.saveRoleModules': ['POST', '/api/approle/SaveRoleModules'], + 'appRoleController.roleEdit': ['POST', '/api/approle/RoleEdit/{id}'], + 'appRoleController.roleDelete': ['POST', '/api/approle/RoleDelete/{id}'], + 'appRoleController.roleAdd': ['POST', '/api/approle/RoleAdd'], + 'appRoleController.removeRoleUser': ['POST', '/api/approle/RemoveRoleUser'], + 'appSettingsController.savePushSetting': ['POST', '/api/app/SavePushSetting/{id}'], + 'appSettingsController.resetAppSecret': ['POST', '/api/app/ResetAppSecret/{id}'], + 'appSettingsController.refreshSignKeys': ['POST', '/api/app/RefreshSignKeys'], + 'appSettingsController.editType': ['POST', '/api/app/EditType/{id}'], + 'appSettingsController.editModule': ['POST', '/api/app/EditModule/{id}'], + 'appSettingsController.editApp': ['POST', '/api/app/EditApp/{id}'], + 'appSettingsController.deleteType': ['POST', '/api/app/DeleteType/{id}'], + 'appSettingsController.deleteModule': ['POST', '/api/app/DeleteModule/{id}'], + 'appSettingsController.deleteApp': ['POST', '/api/app/DeleteApp/{id}'], + 'appSettingsController.appTypeSort': ['POST', '/api/app/AppTypeSort'], + 'appSettingsController.appSort': ['POST', '/api/app/AppSort'], + 'appSettingsController.addType': ['POST', '/api/app/AddType'], + 'appSettingsController.addModule': ['POST', '/api/app/AddModule'], + 'appSettingsController.addApp': ['POST', '/api/app/AddApp'], + 'userController.moveToGroup': ['POST', '/oapi/user/moveToGroup'], + 'userController.edit_2': ['POST', '/oapi/user/edit/{id}'], + 'userController.delete_1': ['POST', '/oapi/user/delete/{id}/{groupId}'], + 'userController.batchAdd_1': ['POST', '/oapi/user/batchAdd'], + 'userController.add_2': ['POST', '/oapi/user/add'], + 'groupController.edit_3': ['POST', '/oapi/group/edit/{id}'], + 'groupController.delete_2': ['POST', '/oapi/group/delete/{id}'], + 'groupController.batchAdd_2': ['POST', '/oapi/group/batchAdd'], + 'groupController.add_3': ['POST', '/oapi/group/add'], + 'sysUserController.list': ['GET', '/api/sysuser/List'], + 'sysUserController.getUserGroups': ['GET', '/api/sysuser/Groups/{userId}'], + 'sysUserController.export_': ['GET', '/api/sysuser/Export'], + 'sysUserController.downloadTemplate': ['GET', '/api/sysuser/DownloadTemplate'], + 'sysGroupController.list_1': ['GET', '/api/sysgroup/List'], + 'sysGroupController.getTree': ['GET', '/api/sysgroup/GetTree'], + 'sysGroupController.getSchoolTree': ['GET', '/api/sysgroup/GetSchoolTree'], + 'pushSubscriptionController.recordList': ['GET', '/api/push/RecordList'], + 'pushSubscriptionController.download': ['GET', '/api/push/Download/{id}'], + 'sysOperationLogController.list_2': ['GET', '/api/oplog/List'], + 'sysOperationLogController.download_1': ['GET', '/api/oplog/Download/{id}'], + 'identityController.current': ['GET', '/api/identity/current'], + 'identityController.available': ['GET', '/api/identity/available'], + 'groupAuthzController.userRoles': ['GET', '/api/groupauthz/UserRoles'], + 'groupAuthzController.userPermissionTree': ['GET', '/api/groupauthz/UserPermissionTree'], + 'groupAuthzController.userGroupTree': ['GET', '/api/groupauthz/UserGroupTree'], + 'groupAuthzController.searchUsers': ['GET', '/api/groupauthz/SearchUsers'], + 'groupAuthzController.hasModulePerm': ['GET', '/api/groupauthz/HasModulePerm'], + 'groupAuthzController.groupUsers': ['GET', '/api/groupauthz/GroupUsers'], + 'groupAuthzController.groupModuleTree': ['GET', '/api/groupauthz/GroupModuleTree'], + 'groupAuthzController.groupModuleTreeByCategory': ['GET', '/api/groupauthz/GroupModuleTreeByCategory'], + 'groupAuthzController.groupAppList': ['GET', '/api/groupauthz/GroupAppList'], + 'groupAuthzController.getSchoolAppId': ['GET', '/api/groupauthz/GetSchoolAppId'], + 'baseController.RedirectTo': ['GET', '/api/base/RedirectTo/{id}'], + 'baseController.manualHashCacheDemo': ['GET', '/api/base/ManualHashCacheDemo'], + 'baseController.getUserInfo': ['GET', '/api/base/GetUserInfo'], + 'baseController.getSysDict': ['GET', '/api/base/GetSysDict'], + 'appRoleController.roleUsers': ['GET', '/api/approle/RoleUsers'], + 'appRoleController.roleModuleTree': ['GET', '/api/approle/RoleModuleTree'], + 'appRoleController.roleList': ['GET', '/api/approle/RoleList'], + 'appSettingsController.moduleList': ['GET', '/api/app/ModuleList'], + 'appSettingsController.getPushSetting': ['GET', '/api/app/GetPushSetting/{id}'], + 'appSettingsController.appTypeList': ['GET', '/api/app/AppTypeList'], + 'appSettingsController.appSortList': ['GET', '/api/app/AppSortList'], + 'appSettingsController.appList': ['GET', '/api/app/AppList'], + 'appSettingsController.appAuthzList': ['GET', '/api/app/AppAuthzList'], + 'userController.modules': ['GET', '/oapi/user/modules'], + 'userController.byPhone': ['GET', '/oapi/user/byPhone'], + 'userController.byLoginName': ['GET', '/oapi/user/byLoginName'], + 'userController.byId': ['GET', '/oapi/user/byId'], + 'signKeyInternalController.signKey': ['GET', '/oapi/internal/sign-key/{appId}'], + 'groupController.tree': ['GET', '/oapi/group/tree'], + 'groupController.list_3': ['GET', '/oapi/group/list'], + 'groupController.byId_1': ['GET', '/oapi/group/byId'] }; diff --git a/src/api/createApis.ts b/src/api/createApis.ts index b644c89..3617fd5 100644 --- a/src/api/createApis.ts +++ b/src/api/createApis.ts @@ -1,13 +1,12 @@ /* tslint:disable */ /* eslint-disable */ /** - * 用户中心接口文档 - version 0.0.1-SNAPSHOT + * 用户中心接口文档 - version 0.0.1 * - * Demo project for Spring Boot + * UserBase 用户中心 OpenAPI 文档(springdoc-openapi) * - * OpenAPI version: 3.0.0 + * OpenAPI version: 3.0.1 * - * Contact: * * NOTE: This file is auto generated by the alova's vscode plugin. * diff --git a/src/api/globals.d.ts b/src/api/globals.d.ts index 725523a..da8b15d 100644 --- a/src/api/globals.d.ts +++ b/src/api/globals.d.ts @@ -1,13 +1,12 @@ /* tslint:disable */ /* eslint-disable */ /** - * 用户中心接口文档 - version 0.0.1-SNAPSHOT + * 用户中心接口文档 - version 0.0.1 * - * Demo project for Spring Boot + * UserBase 用户中心 OpenAPI 文档(springdoc-openapi) * - * OpenAPI version: 3.0.0 + * OpenAPI version: 3.0.1 * - * Contact: * * NOTE: This file is auto generated by the alova's vscode plugin. * @@ -21,405 +20,750 @@ import type apiDefinitions from './apiDefinitions'; type CollapsedAlova = typeof alovaInstance; type UserMethodConfigMap = typeof $$userConfigMap; -export interface ApplicationInfoRequest { - appIcon?: string; - appUrl?: string; - categoryId?: number; - clients?: number[]; - desc?: string; - dingtalkUrl?: string; - id?: number; +export interface SysUserQuery { + groupId?: number; + withSub?: number; name?: string; - officialAccountUrl?: string; - pcIcon?: string; - pcUrl?: string; + disabled?: number; } -export interface AppModuleRequest { - appId?: number; - customId?: string; - id?: number; +export interface BasePageQuery { + pageIndex?: number; + pageSize?: number; + keyword?: string; +} +export interface SysGroupQuery { name?: string; parentId?: number; - path?: string; - sortNo?: number; } -export interface AppCategoryRequest { - id?: number; - name?: string; - sortNo?: number; +export interface PushRecordQuery { + appKey?: number; + interfacePath?: string; + success?: number; + startTime?: string; + endTime?: string; } -export interface SysAppRoleRequest { - allAppFlag?: boolean; - appId?: number; - disabled?: boolean; - id?: number; - name?: string; - remark?: string; +export interface Sort { + sort?: string[]; } -export interface AppRoleModuleAssignRequest { - moduleIds?: number[]; - roleId?: number; -} -export interface AppRoleUserBindRequest { - roleId?: number; - userIds?: number[]; -} -export interface UserAppRoleBindRequest { - roleIds?: number[]; +export interface SysOperationLogQuery { + logLevel?: number; userId?: number; + username?: string; + requestUri?: string; + requestIp?: string; + operationType?: string; + statusCode?: number; + success?: boolean; + keyword?: string; + startTime?: string; + endTime?: string; } -export interface GroupAppAssignRequest { - appIds?: number[]; - groupId?: number; -} -export interface ModulePermItem { - inheritFlag?: boolean; - moduleId?: number; -} -export interface GroupModulePermRequest { - groupId?: number; - perms?: ModulePermItem[]; -} -export interface GroupModuleAuthzItem { +export interface SysAppRoleQuery { + name?: string; appId?: number; - groupId?: number; - isAll?: number; - mode?: number; - moduleId?: number; + allAppFlag?: boolean; + disabled?: boolean; } -export interface SchoolAppAuthzRequest { - appid?: number; - mode?: number; - schid?: number; +export interface AppModuleQuery { + appId?: number; + name?: string; + parentId?: number; +} +export interface AppCategoryQuery { + name?: string; +} +export interface ApplicationInfoQuery { + name?: string; + categoryId?: number; +} +export interface ChangeGroupsRequest { + userIds: number[]; + groupIds: number[]; +} +export interface BatchDeleteRequest { + userIds: number[]; + groupId: number; +} +export interface BatchChangeStatusRequest { + userIds: number[]; + disabled: boolean; +} +export interface SysUserRequest { + id: number; + groupId: number; + account: string; + password: string; + confirmPassword?: string; + realName?: string; + phone?: string; + birthday?: string; + idcard?: string; + email?: string; + gender?: number; + profilePicture?: string; + roles?: number[]; + disabled?: number; + expired?: boolean; +} +export interface SysGroupSortRequest { + pid: number; + ids: number[]; +} +export interface SysGroupMoveRequest { + moveId: number; + pid: number; +} +export interface BatchItem { + name: string; +} +export interface SysGroupBatchRequest { + pid: number; + type: number; + items: BatchItem[]; } export interface SysGroupRequest { id?: number; - name?: string; - parentId?: number; - sort?: number; - type?: number; -} -export interface _ { - /** - * 子组名称 - */ name: string; -} -export interface _2 { - /** - * 待新增的子组列表,每一项仅需提供 name - */ - items: _[]; - /** - * 父组ID(挂载点,必须存在) - */ - pid: number; - /** - * 组类型(GroupTypeEnum.key,如 4=班级组) - */ + parentId: number; type: number; + sort?: number; } -export interface SysUserRequest { - account?: string; - birthday?: string; - confirmPassword?: string; - disabled?: number; - expired?: boolean; - groupId?: number; +export interface PushTestRequest { + appId?: number; + interfacePath?: string; + targetIds?: number[]; +} +export interface IdentitySwitchRequest { + roleId: number; + schoolId: number; +} +export interface SchoolAppAuthzRequest { + schid: number; + appid: number; + mode: number; +} +export interface GroupModuleAuthzItem { + groupId: number; + appId: number; + moduleId: number; + mode: number; + isAll: number; +} +export interface ModulePermItem { + moduleId: number; + inheritFlag?: boolean; +} +export interface GroupModulePermRequest { + groupId: number; + perms?: ModulePermItem[]; +} +export interface GroupAppAssignRequest { + groupId: number; + appIds?: number[]; +} +export interface UserAppRoleBindRequest { + userId: number; + roleIds?: number[]; +} +export interface AppRoleUserBindRequest { + roleId: number; + userIds?: number[]; +} +export interface AppRoleModuleAssignRequest { + roleId: number; + moduleIds?: number[]; +} +export interface SysAppRoleRequest { + id: number; + name: string; + appId?: number; + allAppFlag: boolean; + remark?: string; + disabled?: boolean; +} +export interface AppCategoryRequest { + id: number; + name: string; + sortNo?: number; +} +export interface AppModuleRequest { + id: number; + appId: number; + parentId?: number; + name: string; + customId: string; + path?: string; + sortNo?: number; +} +export interface ApplicationInfoRequest { + id: number; + name: string; + categoryId: number; + desc?: string; + clients?: number[]; + pcUrl?: string; + pcIcon?: string; + appUrl?: string; + appIcon?: string; + officialAccountUrl?: string; + dingtalkUrl?: string; +} +export interface SysUserMoveRequest { + userId: number; + groupId: number; + schoolId: number; +} +export interface SysGroupVo { id?: number; - idcard?: string; - password?: string; - phone?: string; - profilePicture?: string; - realName?: string; - roles?: number[]; + name?: string; + type?: number; + sort?: number; + children?: SysGroupVo[]; +} +export interface IdentityCurrentVo { + roleId?: number; + roleName?: string; + schoolId?: number; + schoolName?: string; + fallback?: boolean; +} +export interface IdentityOptionVo { + roleId?: number; + roleName?: string; + schoolId?: number; + schoolName?: string; + isMain?: boolean; } export interface AppItem { id?: number; name?: string; } export interface AppAuthzCategoryVo { + id?: number; + name?: string; app?: AppItem[]; - id?: number; - name?: string; } -export interface SysGroupVo { - children?: SysGroupVo[]; +export interface BoaGroup { id?: number; name?: string; - sort?: number; - type?: number; -} -export interface ApplicationInfoVo { - appIcon?: string; - appKey?: number; - appSecret?: string; - appUrl?: string; - categoryId?: number; - clients?: number[]; - desc?: string; - dingtalkUrl?: string; - id?: number; - name?: string; - officialAccountUrl?: string; - pcIcon?: string; - pcUrl?: string; - sortNo?: number; -} -export interface BasePageResultOfApplicationInfoVo { - content?: ApplicationInfoVo[]; - hasNext?: boolean; - pageIndex?: number; - pageSize?: number; - total?: number; - totalPages?: number; -} -export interface ApplicationInfoSortVo { - id?: number; - name?: string; - sortNo?: number; -} -export interface AppCategoryVo { - id?: number; - name?: string; - sortNo?: number; -} -export interface AppModuleVo { - appId?: number; - children?: AppModuleVo[]; - customId?: string; - id?: number; - level?: number; - name?: string; parentId?: number; - path?: string; + type?: number; + sort?: number; + children?: BoaGroup[]; +} +export interface ChangeSortNoRequest { + groupId: number; sortNo?: number; } -export interface SysAppRoleVo { +export interface PushSettingRequest { + pushBaseUrl?: string; + pushEnabled?: number; + pushEventTypes?: string; + pushSchoolIds?: string; + pushRoleIds?: string; + pushSecret?: string; +} +export interface FailItem { + row?: number; + reason?: string; +} +export interface BatchImportResult { + total?: number; + success?: number; + fail?: number; + fails?: FailItem[]; +} +export interface BoaUser { + id?: number; + account?: string; + name?: string; + idcard?: string; + phone?: string; + email?: string; + gender?: number; + profilePicture?: string; + type?: number; + status?: number; + dept?: BoaGroup; + school?: BoaGroup; + bureau?: BoaGroup; + groups?: BoaGroup[]; + roleIds?: number[]; + currentRoleId?: number; + schools?: BoaGroup[]; +} +export interface SysUserVo { + id?: number; + account?: string; + birthday?: string; + realName?: string; + phone?: string; + idcard?: string; + email?: string; + gender?: number; + profilePicture?: string; + roles?: number[]; + disabled?: number; + type?: number; + sortNo?: number; + expired?: boolean; + createTime?: string; + updateTime?: string; +} +export interface BasePageResultSysUserVo { + total?: number; + content?: SysUserVo[]; + pageIndex?: number; + pageSize?: number; + totalPages?: number; + hasNext?: boolean; +} +export interface PushRecordListVo { + id?: number; + subscriberAppKey?: number; + appName?: string; + interfacePath?: string; + interfaceLabel?: string; + requestUrl?: string; + signT?: string; + httpStatus?: number; + respCode?: number; + respMsg?: string; + success?: number; + attemptNo?: number; + costMs?: number; + triggerType?: string; + createdAt?: string; +} +export interface BasePageResultPushRecordListVo { + total?: number; + content?: PushRecordListVo[]; + pageIndex?: number; + pageSize?: number; + totalPages?: number; + hasNext?: boolean; +} +export interface SysOperationLogListVo { + id?: number; + logLevel?: number; + userId?: number; + username?: string; + requestIp?: string; + requestUri?: string; + requestMethod?: string; + operationType?: string; + classMethod?: string; + requestParams?: string; + statusCode?: number; + costTime?: number; + userAgent?: string; + errorMsg?: string; + createTime?: string; +} +export interface BasePageResultSysOperationLogListVo { + total?: number; + content?: SysOperationLogListVo[]; + pageIndex?: number; + pageSize?: number; + totalPages?: number; + hasNext?: boolean; +} +export interface UserRoleVo { + id?: number; + name?: string; allAppFlag?: boolean; appId?: number; appName?: string; disabled?: boolean; - id?: number; - name?: string; - remark?: string; } -export interface BasePageResultOfSysAppRoleVo { - content?: SysAppRoleVo[]; - hasNext?: boolean; - pageIndex?: number; - pageSize?: number; - total?: number; - totalPages?: number; -} -export interface AppRoleAuthzModuleVo { - checked?: boolean; - children?: AppRoleAuthzModuleVo[]; - customId?: string; +export interface UserPermissionModuleVo { id?: number; - level?: number; - name?: string; parentId?: number; + name?: string; + customId?: string; path?: string; + level?: number; sortNo?: number; } -export interface AppRoleAuthzAppVo { - appKey?: number; +export interface UserPermissionAppVo { id?: number; - modules?: AppRoleAuthzModuleVo[]; name?: string; + appKey?: number; pcIcon?: string; sortNo?: number; + modules?: UserPermissionModuleVo[]; } -export interface AppRoleUserVo { - account?: string; +export interface UserPermissionCategoryVo { id?: number; + name?: string; + sortNo?: number; + apps?: UserPermissionAppVo[]; +} +export interface UserGroupNodeVo { + id?: number; + name?: string; + own?: boolean; + children?: UserGroupNodeVo[]; +} +export interface UserPermissionUserVo { + id?: number; + account?: string; realName?: string; + isMain?: number; + groupPath?: string; +} +export interface GroupAuthzModuleVo { + id?: number; + parentId?: number; + name?: string; + customId?: string; + path?: string; + level?: number; + sortNo?: number; + checked?: boolean; + inheritFlag?: boolean; +} +export interface GroupAuthzAppVo { + id?: number; + name?: string; + appKey?: number; + pcIcon?: string; + categoryId?: number; + sortNo?: number; + modules?: GroupAuthzModuleVo[]; +} +export interface GroupAuthzCategoryVo { + id?: number; + name?: string; + apps?: GroupAuthzAppVo[]; +} +export interface GroupAppVo { + id?: number; + name?: string; + categoryId?: number; + appKey?: number; + pcIcon?: string; + checked?: boolean; } export type AutowireCapableBeanFactory = object; -export interface ClassLoader { - parent?: ClassLoader; -} export interface Environment { activeProfiles?: string[]; defaultProfiles?: string[]; } export type BeanFactory = object; export interface ApplicationContext { - applicationName?: string; - /** - * AutowireCapableBeanFactory - * --- - */ - autowireCapableBeanFactory?: AutowireCapableBeanFactory; - beanDefinitionCount?: number; - beanDefinitionNames?: string[]; - /** - * ClassLoader - * --- - */ - classLoader?: ClassLoader; - displayName?: string; - /** - * Environment - * --- - */ - environment?: Environment; - id?: string; parent?: ApplicationContext; - /** - * BeanFactory - * --- - */ - parentBeanFactory?: BeanFactory; + id?: string; + displayName?: string; + autowireCapableBeanFactory?: AutowireCapableBeanFactory; + applicationName?: string; startupDate?: number; + environment?: Environment; + beanDefinitionNames?: string[]; + beanDefinitionCount?: number; + parentBeanFactory?: BeanFactory; + classLoader?: { + parent?: { + defaultAssertionStatus?: boolean; + }; + defaultAssertionStatus?: boolean; + }; } export interface RedirectView { - /** - * ApplicationContext - * --- - */ applicationContext?: ApplicationContext; - attributesMap?: object; - beanName?: string; + servletContext?: { + classLoader?: { + parent?: { + defaultAssertionStatus?: boolean; + }; + defaultAssertionStatus?: boolean; + }; + attributeNames?: object; + majorVersion?: number; + contextPath?: string; + minorVersion?: number; + initParameterNames?: object; + /** + * @deprecated + */ + servletNames?: object; + sessionTimeout?: number; + /** + * @deprecated + */ + servlets?: object; + responseCharacterEncoding?: string; + defaultSessionTrackingModes?: ('COOKIE' | 'URL' | 'SSL')[]; + virtualServerName?: string; + servletContextName?: string; + requestCharacterEncoding?: string; + servletRegistrations?: Record< + string, + { + mappings?: string[]; + runAsRole?: string; + name?: string; + className?: string; + initParameters?: Record; + } + >; + effectiveMajorVersion?: number; + sessionTrackingModes?: ('COOKIE' | 'URL' | 'SSL')[]; + effectiveMinorVersion?: number; + effectiveSessionTrackingModes?: ('COOKIE' | 'URL' | 'SSL')[]; + jspConfigDescriptor?: { + taglibs?: Array<{ + taglibURI?: string; + taglibLocation?: string; + }>; + jspPropertyGroups?: Array<{ + buffer?: string; + defaultContentType?: string; + urlPatterns?: string[]; + deferredSyntaxAllowedAsLiteral?: string; + pageEncoding?: string; + includeCodas?: string[]; + isXml?: string; + elIgnored?: string; + scriptingInvalid?: string; + includePreludes?: string[]; + trimDirectiveWhitespaces?: string; + errorOnUndeclaredNamespace?: string; + }>; + }; + filterRegistrations?: Record< + string, + { + servletNameMappings?: string[]; + urlPatternMappings?: string[]; + name?: string; + className?: string; + initParameters?: Record; + } + >; + sessionCookieConfig?: { + name?: string; + path?: string; + comment?: string; + domain?: string; + secure?: boolean; + maxAge?: number; + httpOnly?: boolean; + }; + serverInfo?: string; + }; contentType?: string; - exposePathVariables?: boolean; - hosts?: string[]; - propagateQueryProperties?: boolean; - redirectView?: boolean; requestContextAttribute?: string; - staticAttributes?: object; + staticAttributes?: Record; + exposePathVariables?: boolean; + exposeContextBeansAsAttributes?: boolean; + exposedContextBeanNames?: string[]; + beanName?: string; url?: string; + contextRelative?: boolean; + http10Compatible?: boolean; + exposeModelAttributes?: boolean; + encodingScheme?: string; + statusCode?: + | '100 CONTINUE' + | '101 SWITCHING_PROTOCOLS' + | '102 PROCESSING' + | '103 CHECKPOINT' + | '200 OK' + | '201 CREATED' + | '202 ACCEPTED' + | '203 NON_AUTHORITATIVE_INFORMATION' + | '204 NO_CONTENT' + | '205 RESET_CONTENT' + | '206 PARTIAL_CONTENT' + | '207 MULTI_STATUS' + | '208 ALREADY_REPORTED' + | '226 IM_USED' + | '300 MULTIPLE_CHOICES' + | '301 MOVED_PERMANENTLY' + | '302 FOUND' + | '302 MOVED_TEMPORARILY' + | '303 SEE_OTHER' + | '304 NOT_MODIFIED' + | '305 USE_PROXY' + | '307 TEMPORARY_REDIRECT' + | '308 PERMANENT_REDIRECT' + | '400 BAD_REQUEST' + | '401 UNAUTHORIZED' + | '402 PAYMENT_REQUIRED' + | '403 FORBIDDEN' + | '404 NOT_FOUND' + | '405 METHOD_NOT_ALLOWED' + | '406 NOT_ACCEPTABLE' + | '407 PROXY_AUTHENTICATION_REQUIRED' + | '408 REQUEST_TIMEOUT' + | '409 CONFLICT' + | '410 GONE' + | '411 LENGTH_REQUIRED' + | '412 PRECONDITION_FAILED' + | '413 PAYLOAD_TOO_LARGE' + | '413 REQUEST_ENTITY_TOO_LARGE' + | '414 URI_TOO_LONG' + | '414 REQUEST_URI_TOO_LONG' + | '415 UNSUPPORTED_MEDIA_TYPE' + | '416 REQUESTED_RANGE_NOT_SATISFIABLE' + | '417 EXPECTATION_FAILED' + | '418 I_AM_A_TEAPOT' + | '419 INSUFFICIENT_SPACE_ON_RESOURCE' + | '420 METHOD_FAILURE' + | '421 DESTINATION_LOCKED' + | '422 UNPROCESSABLE_ENTITY' + | '423 LOCKED' + | '424 FAILED_DEPENDENCY' + | '425 TOO_EARLY' + | '426 UPGRADE_REQUIRED' + | '428 PRECONDITION_REQUIRED' + | '429 TOO_MANY_REQUESTS' + | '431 REQUEST_HEADER_FIELDS_TOO_LARGE' + | '451 UNAVAILABLE_FOR_LEGAL_REASONS' + | '500 INTERNAL_SERVER_ERROR' + | '501 NOT_IMPLEMENTED' + | '502 BAD_GATEWAY' + | '503 SERVICE_UNAVAILABLE' + | '504 GATEWAY_TIMEOUT' + | '505 HTTP_VERSION_NOT_SUPPORTED' + | '506 VARIANT_ALSO_NEGOTIATES' + | '507 INSUFFICIENT_STORAGE' + | '508 LOOP_DETECTED' + | '509 BANDWIDTH_LIMIT_EXCEEDED' + | '510 NOT_EXTENDED' + | '511 NETWORK_AUTHENTICATION_REQUIRED'; + expandUriTemplateVariables?: boolean; + propagateQueryParams?: boolean; + hosts?: string[]; + redirectView?: boolean; + propagateQueryProperties?: boolean; + attributes?: Record; + attributesMap?: Record; + attributesCSV?: string; } -export interface GroupAppVo { - appKey?: number; - categoryId?: number; - checked?: boolean; +export interface AppRoleUserVo { id?: number; - name?: string; - pcIcon?: string; -} -export interface GroupAuthzModuleVo { - checked?: boolean; - children?: GroupAuthzModuleVo[]; - customId?: string; - id?: number; - inheritFlag?: boolean; - level?: number; - name?: string; - parentId?: number; - path?: string; - sortNo?: number; -} -export interface GroupAuthzAppVo { - appKey?: number; - categoryId?: number; - id?: number; - modules?: GroupAuthzModuleVo[]; - name?: string; - pcIcon?: string; - sortNo?: number; -} -export interface GroupAuthzCategoryVo { - apps?: GroupAuthzAppVo[]; - id?: number; - name?: string; -} -export interface UserPermissionUserVo { account?: string; - groupPath?: string; - id?: number; - isMain?: number; realName?: string; } -export interface UserGroupNodeVo { - children?: UserGroupNodeVo[]; +export interface AppRoleAuthzModuleVo { id?: number; - name?: string; - own?: boolean; -} -export interface UserPermissionModuleVo { - children?: UserPermissionModuleVo[]; - customId?: string; - id?: number; - level?: number; - name?: string; parentId?: number; - path?: string; - sortNo?: number; -} -export interface UserPermissionAppVo { - appKey?: number; - id?: number; - modules?: UserPermissionModuleVo[]; name?: string; + customId?: string; + path?: string; + level?: number; + sortNo?: number; + checked?: boolean; +} +export interface AppRoleAuthzAppVo { + id?: number; + name?: string; + appKey?: number; pcIcon?: string; sortNo?: number; + modules?: AppRoleAuthzModuleVo[]; } -export interface UserPermissionCategoryVo { - apps?: UserPermissionAppVo[]; +export interface SysAppRoleVo { id?: number; name?: string; - sortNo?: number; -} -export interface UserRoleVo { - allAppFlag?: boolean; appId?: number; appName?: string; + allAppFlag?: boolean; + remark?: string; disabled?: boolean; - id?: number; - name?: string; } -export interface SysUserVo { - account?: string; - birthday?: string; - createTime?: string; - disabled?: number; - expired?: boolean; - id?: number; - idcard?: string; - phone?: string; - profilePicture?: string; - realName?: string; - roles?: number[]; - updateTime?: string; -} -export interface BasePageResultOfSysUserVo { - content?: SysUserVo[]; - hasNext?: boolean; +export interface BasePageResultSysAppRoleVo { + total?: number; + content?: SysAppRoleVo[]; pageIndex?: number; pageSize?: number; - total?: number; totalPages?: number; + hasNext?: boolean; +} +export interface AppModuleVo { + id?: number; + appId?: number; + parentId?: number; + name?: string; + customId?: string; + path?: string; + level?: number; + sortNo?: number; + children?: AppModuleVo[]; +} +export interface PushSettingVo { + id?: number; + appKey?: number; + name?: string; + pushBaseUrl?: string; + pushEnabled?: number; + pushEventTypes?: string; + pushSchoolIds?: string; + pushRoleIds?: string; + pushSecret?: string; +} +export interface AppCategoryVo { + id?: number; + name?: string; + sortNo?: number; +} +export interface ApplicationInfoSortVo { + id?: number; + name?: string; + sortNo?: number; +} +export interface ApplicationInfoVo { + id?: number; + name?: string; + categoryId?: number; + sortNo?: number; + desc?: string; + appKey?: number; + appSecret?: string; + clients?: number[]; + pcUrl?: string; + pcIcon?: string; + appUrl?: string; + appIcon?: string; + officialAccountUrl?: string; + dingtalkUrl?: string; +} +export interface BasePageResultApplicationInfoVo { + total?: number; + content?: ApplicationInfoVo[]; + pageIndex?: number; + pageSize?: number; + totalPages?: number; + hasNext?: boolean; +} +export interface BoaModule { + id?: number; + parentId?: number; + customId?: string; + name?: string; + path?: string; + level?: number; + sortNo?: number; + icon?: string; } declare global { interface Apis { - AppSettings: { + sysUserController: { /** * --- * - * [POST] addApp + * [POST] * - * **path:** /api/app/AddApp + * **path:** /api/sysuser/Enable/{id} * * --- * - * **RequestBody** + * **Path Parameters** * ```ts - * type RequestBody = { - * appIcon?: string - * appUrl?: string - * categoryId?: number - * // [items] start - * // [items] end - * clients?: number[] - * desc?: string - * dingtalkUrl?: string - * id?: number - * name?: string - * officialAccountUrl?: string - * pcIcon?: string - * pcUrl?: string + * type PathParameters = { + * id: number * } * ``` * @@ -430,19 +774,860 @@ declare global { * type Response = null * ``` */ - addApp< + enable< Config extends Alova2MethodConfig & { - data: ApplicationInfoRequest; + pathParams: { + id: number; + }; } >( config: Config - ): Alova2Method; + ): Alova2Method; /** * --- * - * [POST] addModule + * [POST] * - * **path:** /api/app/AddModule + * **path:** /api/sysuser/Edit/{id} + * + * --- + * + * **Path Parameters** + * ```ts + * type PathParameters = { + * id: number + * } + * ``` + * + * --- + * + * **RequestBody** + * ```ts + * type RequestBody = { + * id: number + * groupId: number + * account: string + * password: string + * confirmPassword?: string + * realName?: string + * phone?: string + * birthday?: string + * idcard?: string + * email?: string + * gender?: number + * profilePicture?: string + * // [items] start + * // [items] end + * roles?: number[] + * disabled?: number + * expired?: boolean + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = null + * ``` + */ + edit< + Config extends Alova2MethodConfig & { + pathParams: { + id: number; + }; + data: SysUserRequest; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [POST] + * + * **path:** /api/sysuser/Disable/{id} + * + * --- + * + * **Path Parameters** + * ```ts + * type PathParameters = { + * id: number + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = null + * ``` + */ + disable< + Config extends Alova2MethodConfig & { + pathParams: { + id: number; + }; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [POST] + * + * **path:** /api/sysuser/DeleteFromGroup/{userId}/{groupId} + * + * --- + * + * **Path Parameters** + * ```ts + * type PathParameters = { + * userId: number + * groupId: number + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = null + * ``` + */ + deleteFromGroup< + Config extends Alova2MethodConfig & { + pathParams: { + userId: number; + groupId: number; + }; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [POST] + * + * **path:** /api/sysuser/ChangeSortNo/{userId} + * + * --- + * + * **Path Parameters** + * ```ts + * type PathParameters = { + * userId: number + * } + * ``` + * + * --- + * + * **RequestBody** + * ```ts + * type RequestBody = { + * groupId: number + * sortNo?: number + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = null + * ``` + */ + changeSortNo< + Config extends Alova2MethodConfig & { + pathParams: { + userId: number; + }; + data: ChangeSortNoRequest; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [POST] + * + * **path:** /api/sysuser/ChangeGroups + * + * --- + * + * **RequestBody** + * ```ts + * type RequestBody = { + * // [items] start + * // [items] end + * userIds: number[] + * // [items] start + * // [items] end + * groupIds: number[] + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = null + * ``` + */ + changeGroups< + Config extends Alova2MethodConfig & { + data: ChangeGroupsRequest; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [POST] + * + * **path:** /api/sysuser/BatchImport + * + * --- + * + * **RequestBody** + * ```ts + * type RequestBody = { + * file: Blob + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = { + * total?: number + * success?: number + * fail?: number + * // [items] start + * // [items] end + * fails?: Array<{ + * row?: number + * reason?: string + * }> + * } + * ``` + */ + batchImport< + Config extends Alova2MethodConfig & { + data: { + file: Blob; + }; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [POST] + * + * **path:** /api/sysuser/BatchDelete + * + * --- + * + * **RequestBody** + * ```ts + * type RequestBody = { + * // [items] start + * // [items] end + * userIds: number[] + * groupId: number + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = null + * ``` + */ + batchDelete< + Config extends Alova2MethodConfig & { + data: BatchDeleteRequest; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [POST] + * + * **path:** /api/sysuser/BatchChangeStatus + * + * --- + * + * **RequestBody** + * ```ts + * type RequestBody = { + * // [items] start + * // [items] end + * userIds: number[] + * disabled: boolean + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = null + * ``` + */ + batchChangeStatus< + Config extends Alova2MethodConfig & { + data: BatchChangeStatusRequest; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [POST] + * + * **path:** /api/sysuser/Add + * + * --- + * + * **RequestBody** + * ```ts + * type RequestBody = { + * id: number + * groupId: number + * account: string + * password: string + * confirmPassword?: string + * realName?: string + * phone?: string + * birthday?: string + * idcard?: string + * email?: string + * gender?: number + * profilePicture?: string + * // [items] start + * // [items] end + * roles?: number[] + * disabled?: number + * expired?: boolean + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = number + * ``` + */ + add< + Config extends Alova2MethodConfig & { + data: SysUserRequest; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [GET] + * + * **path:** /api/sysuser/List + * + * --- + * + * **Query Parameters** + * ```ts + * type QueryParameters = { + * query: { + * groupId?: number + * withSub?: number + * name?: string + * disabled?: number + * } + * pageQuery: { + * pageIndex?: number + * pageSize?: number + * keyword?: string + * } + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = { + * total?: number + * // [items] start + * // [items] end + * content?: Array<{ + * id?: number + * account?: string + * birthday?: string + * realName?: string + * phone?: string + * idcard?: string + * email?: string + * gender?: number + * profilePicture?: string + * // [items] start + * // [items] end + * roles?: number[] + * disabled?: number + * type?: number + * sortNo?: number + * expired?: boolean + * createTime?: string + * updateTime?: string + * }> + * pageIndex?: number + * pageSize?: number + * totalPages?: number + * hasNext?: boolean + * } + * ``` + */ + list< + Config extends Alova2MethodConfig & { + params: { + query: SysUserQuery; + pageQuery: BasePageQuery; + }; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [GET] + * + * **path:** /api/sysuser/Groups/{userId} + * + * --- + * + * **Path Parameters** + * ```ts + * type PathParameters = { + * userId: number + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = number[] + * ``` + */ + getUserGroups< + Config extends Alova2MethodConfig & { + pathParams: { + userId: number; + }; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [GET] + * + * **path:** /api/sysuser/Export + * + * --- + * + * **Query Parameters** + * ```ts + * type QueryParameters = { + * groupId?: number + * withSub?: number + * name?: string + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = null + * ``` + */ + export_< + Config extends Alova2MethodConfig & { + params: { + groupId?: number; + withSub?: number; + name?: string; + }; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [GET] + * + * **path:** /api/sysuser/DownloadTemplate + * + * --- + * + * **Query Parameters** + * ```ts + * type QueryParameters = { + * groupId?: number + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = null + * ``` + */ + downloadTemplate< + Config extends Alova2MethodConfig & { + params: { + groupId?: number; + }; + } + >( + config: Config + ): Alova2Method; + }; + sysGroupController: { + /** + * --- + * + * [POST] + * + * **path:** /api/sysgroup/SortChildren + * + * --- + * + * **RequestBody** + * ```ts + * type RequestBody = { + * pid: number + * // [items] start + * // [items] end + * ids: number[] + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = null + * ``` + */ + sortChildren< + Config extends Alova2MethodConfig & { + data: SysGroupSortRequest; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [POST] + * + * **path:** /api/sysgroup/Move + * + * --- + * + * **RequestBody** + * ```ts + * type RequestBody = { + * moveId: number + * pid: number + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = null + * ``` + */ + move< + Config extends Alova2MethodConfig & { + data: SysGroupMoveRequest; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [POST] + * + * **path:** /api/sysgroup/Edit/{id} + * + * --- + * + * **Path Parameters** + * ```ts + * type PathParameters = { + * id: number + * } + * ``` + * + * --- + * + * **RequestBody** + * ```ts + * type RequestBody = { + * id?: number + * name: string + * parentId: number + * type: number + * sort?: number + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = null + * ``` + */ + edit_1< + Config extends Alova2MethodConfig & { + pathParams: { + id: number; + }; + data: SysGroupRequest; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [POST] + * + * **path:** /api/sysgroup/Delete/{id} + * + * --- + * + * **Path Parameters** + * ```ts + * type PathParameters = { + * id: number + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = null + * ``` + */ + delete_< + Config extends Alova2MethodConfig & { + pathParams: { + id: number; + }; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [POST] + * + * **path:** /api/sysgroup/BatchAdd + * + * --- + * + * **RequestBody** + * ```ts + * type RequestBody = { + * pid: number + * type: number + * // [items] start + * // [items] end + * items: Array<{ + * name: string + * }> + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = null + * ``` + */ + batchAdd< + Config extends Alova2MethodConfig & { + data: SysGroupBatchRequest; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [POST] + * + * **path:** /api/sysgroup/Add + * + * --- + * + * **RequestBody** + * ```ts + * type RequestBody = { + * id?: number + * name: string + * parentId: number + * type: number + * sort?: number + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = null + * ``` + */ + add_1< + Config extends Alova2MethodConfig & { + data: SysGroupRequest; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [GET] + * + * **path:** /api/sysgroup/List + * + * --- + * + * **Query Parameters** + * ```ts + * type QueryParameters = { + * query: { + * name?: string + * parentId?: number + * } + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = Array<{ + * id?: number + * name?: string + * type?: number + * sort?: number + * // [items] start + * // [cycle] $.[] + * // [items] end + * children?: SysGroupVo[] + * }> + * ``` + */ + list_1< + Config extends Alova2MethodConfig & { + params: { + query: SysGroupQuery; + }; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [GET] + * + * **path:** /api/sysgroup/GetTree + * + * --- + * + * **Response** + * ```ts + * type Response = Array<{ + * id?: number + * name?: string + * type?: number + * sort?: number + * // [items] start + * // [cycle] $.[] + * // [items] end + * children?: SysGroupVo[] + * }> + * ``` + */ + getTree>( + config?: Config + ): Alova2Method; + /** + * --- + * + * [GET] + * + * **path:** /api/sysgroup/GetSchoolTree + * + * --- + * + * **Response** + * ```ts + * type Response = Array<{ + * id?: number + * name?: string + * type?: number + * sort?: number + * // [items] start + * // [cycle] $.[] + * // [items] end + * children?: SysGroupVo[] + * }> + * ``` + */ + getSchoolTree>( + config?: Config + ): Alova2Method; + }; + pushSubscriptionController: { + /** + * --- + * + * [POST] + * + * **path:** /api/push/Test * * --- * @@ -450,10 +1635,1735 @@ declare global { * ```ts * type RequestBody = { * appId?: number - * customId?: string + * interfacePath?: string + * // [items] start + * // [items] end + * targetIds?: number[] + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = Record + * ``` + */ + test< + Config extends Alova2MethodConfig> & { + data: PushTestRequest; + } + >( + config: Config + ): Alova2Method, 'pushSubscriptionController.test', Config>; + /** + * --- + * + * [POST] + * + * **path:** /api/push/Retry/{id} + * + * --- + * + * **Path Parameters** + * ```ts + * type PathParameters = { + * id: number + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = null + * ``` + */ + retry< + Config extends Alova2MethodConfig & { + pathParams: { + id: number; + }; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [GET] + * + * **path:** /api/push/RecordList + * + * --- + * + * **Query Parameters** + * ```ts + * type QueryParameters = { + * query: { + * appKey?: number + * interfacePath?: string + * success?: number + * startTime?: string + * endTime?: string + * } + * pageQuery: { + * pageIndex?: number + * pageSize?: number + * keyword?: string + * } + * sort: { + * // [items] start + * // [items] end + * sort?: string[] + * } + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = { + * total?: number + * // [items] start + * // [items] end + * content?: Array<{ + * id?: number + * subscriberAppKey?: number + * appName?: string + * interfacePath?: string + * interfaceLabel?: string + * requestUrl?: string + * signT?: string + * httpStatus?: number + * respCode?: number + * respMsg?: string + * success?: number + * attemptNo?: number + * costMs?: number + * triggerType?: string + * createdAt?: string + * }> + * pageIndex?: number + * pageSize?: number + * totalPages?: number + * hasNext?: boolean + * } + * ``` + */ + recordList< + Config extends Alova2MethodConfig & { + params: { + query: PushRecordQuery; + pageQuery: BasePageQuery; + sort: Sort; + }; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [GET] + * + * **path:** /api/push/Download/{id} + * + * --- + * + * **Path Parameters** + * ```ts + * type PathParameters = { + * id: number + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = Blob + * ``` + */ + download< + Config extends Alova2MethodConfig & { + pathParams: { + id: number; + }; + } + >( + config: Config + ): Alova2Method; + }; + identityController: { + /** + * --- + * + * [POST] + * + * **path:** /api/identity/switch + * + * --- + * + * **RequestBody** + * ```ts + * type RequestBody = { + * roleId: number + * schoolId: number + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = { + * roleId?: number + * roleName?: string + * schoolId?: number + * schoolName?: string + * fallback?: boolean + * } + * ``` + */ + switchIdentity< + Config extends Alova2MethodConfig & { + data: IdentitySwitchRequest; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [GET] + * + * **path:** /api/identity/current + * + * --- + * + * **Response** + * ```ts + * type Response = { + * roleId?: number + * roleName?: string + * schoolId?: number + * schoolName?: string + * fallback?: boolean + * } + * ``` + */ + current>( + config?: Config + ): Alova2Method; + /** + * --- + * + * [GET] + * + * **path:** /api/identity/available + * + * --- + * + * **Response** + * ```ts + * type Response = Array<{ + * roleId?: number + * roleName?: string + * schoolId?: number + * schoolName?: string + * isMain?: boolean + * }> + * ``` + */ + available>( + config?: Config + ): Alova2Method; + }; + groupAuthzController: { + /** + * --- + * + * [POST] + * + * **path:** /api/groupauthz/SetSchoolApp + * + * --- + * + * **RequestBody** + * ```ts + * type RequestBody = { + * schid: number + * appid: number + * mode: number + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = null + * ``` + */ + setSchoolApp< + Config extends Alova2MethodConfig & { + data: SchoolAppAuthzRequest; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [POST] + * + * **path:** /api/groupauthz/SetGroupModule + * + * --- + * + * **RequestBody** + * ```ts + * type RequestBody = Array<{ + * groupId: number + * appId: number + * moduleId: number + * mode: number + * isAll: number + * }> + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = null + * ``` + */ + setGroupModule< + Config extends Alova2MethodConfig & { + data: GroupModuleAuthzItem[]; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [POST] + * + * **path:** /api/groupauthz/SaveModulePerms + * + * --- + * + * **RequestBody** + * ```ts + * type RequestBody = { + * groupId: number + * // [items] start + * // [items] end + * perms?: Array<{ + * moduleId: number + * inheritFlag?: boolean + * }> + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = null + * ``` + */ + saveModulePerms< + Config extends Alova2MethodConfig & { + data: GroupModulePermRequest; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [POST] + * + * **path:** /api/groupauthz/AssignApps + * + * --- + * + * **RequestBody** + * ```ts + * type RequestBody = { + * groupId: number + * // [items] start + * // [items] end + * appIds?: number[] + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = null + * ``` + */ + assignApps< + Config extends Alova2MethodConfig & { + data: GroupAppAssignRequest; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [GET] + * + * **path:** /api/groupauthz/UserRoles + * + * --- + * + * **Query Parameters** + * ```ts + * type QueryParameters = { + * userId: number + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = Array<{ * id?: number * name?: string + * allAppFlag?: boolean + * appId?: number + * appName?: string + * disabled?: boolean + * }> + * ``` + */ + userRoles< + Config extends Alova2MethodConfig & { + params: { + userId: number; + }; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [GET] + * + * **path:** /api/groupauthz/UserPermissionTree + * + * --- + * + * **Query Parameters** + * ```ts + * type QueryParameters = { + * userId: number + * groupId?: number + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = Array<{ + * id?: number + * name?: string + * sortNo?: number + * // [items] start + * // [items] end + * apps?: Array<{ + * id?: number + * name?: string + * appKey?: number + * pcIcon?: string + * sortNo?: number + * // [items] start + * // [items] end + * modules?: Array<{ + * id?: number + * parentId?: number + * name?: string + * customId?: string + * path?: string + * level?: number + * sortNo?: number + * }> + * }> + * }> + * ``` + */ + userPermissionTree< + Config extends Alova2MethodConfig & { + params: { + userId: number; + groupId?: number; + }; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [GET] + * + * **path:** /api/groupauthz/UserGroupTree + * + * --- + * + * **Query Parameters** + * ```ts + * type QueryParameters = { + * userId: number + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = Array<{ + * id?: number + * name?: string + * own?: boolean + * // [items] start + * // [cycle] $.[] + * // [items] end + * children?: UserGroupNodeVo[] + * }> + * ``` + */ + userGroupTree< + Config extends Alova2MethodConfig & { + params: { + userId: number; + }; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [GET] + * + * **path:** /api/groupauthz/SearchUsers + * + * --- + * + * **Query Parameters** + * ```ts + * type QueryParameters = { + * keyword: string + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = Array<{ + * id?: number + * account?: string + * realName?: string + * isMain?: number + * groupPath?: string + * }> + * ``` + */ + searchUsers< + Config extends Alova2MethodConfig & { + params: { + keyword: string; + }; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [GET] + * + * **path:** /api/groupauthz/HasModulePerm + * + * --- + * + * **Query Parameters** + * ```ts + * type QueryParameters = { + * userId: number + * moduleId: number + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = boolean + * ``` + */ + hasModulePerm< + Config extends Alova2MethodConfig & { + params: { + userId: number; + moduleId: number; + }; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [GET] + * + * **path:** /api/groupauthz/GroupUsers + * + * --- + * + * **Query Parameters** + * ```ts + * type QueryParameters = { + * groupId: number + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = Array<{ + * id?: number + * account?: string + * realName?: string + * isMain?: number + * groupPath?: string + * }> + * ``` + */ + groupUsers< + Config extends Alova2MethodConfig & { + params: { + groupId: number; + }; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [GET] + * + * **path:** /api/groupauthz/GroupModuleTree + * + * --- + * + * **Query Parameters** + * ```ts + * type QueryParameters = { + * groupId: number + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = Array<{ + * id?: number + * name?: string + * appKey?: number + * pcIcon?: string + * categoryId?: number + * sortNo?: number + * // [items] start + * // [items] end + * modules?: Array<{ + * id?: number + * parentId?: number + * name?: string + * customId?: string + * path?: string + * level?: number + * sortNo?: number + * checked?: boolean + * inheritFlag?: boolean + * }> + * }> + * ``` + */ + groupModuleTree< + Config extends Alova2MethodConfig & { + params: { + groupId: number; + }; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [GET] + * + * **path:** /api/groupauthz/GroupModuleTreeByCategory + * + * --- + * + * **Query Parameters** + * ```ts + * type QueryParameters = { + * groupId: number + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = Array<{ + * id?: number + * name?: string + * // [items] start + * // [items] end + * apps?: Array<{ + * id?: number + * name?: string + * appKey?: number + * pcIcon?: string + * categoryId?: number + * sortNo?: number + * // [items] start + * // [items] end + * modules?: Array<{ + * id?: number + * parentId?: number + * name?: string + * customId?: string + * path?: string + * level?: number + * sortNo?: number + * checked?: boolean + * inheritFlag?: boolean + * }> + * }> + * }> + * ``` + */ + groupModuleTreeByCategory< + Config extends Alova2MethodConfig & { + params: { + groupId: number; + }; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [GET] + * + * **path:** /api/groupauthz/GroupAppList + * + * --- + * + * **Query Parameters** + * ```ts + * type QueryParameters = { + * groupId: number + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = Array<{ + * id?: number + * name?: string + * categoryId?: number + * appKey?: number + * pcIcon?: string + * checked?: boolean + * }> + * ``` + */ + groupAppList< + Config extends Alova2MethodConfig & { + params: { + groupId: number; + }; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [GET] + * + * **path:** /api/groupauthz/GetSchoolAppId + * + * --- + * + * **Query Parameters** + * ```ts + * type QueryParameters = { + * nodeId: number + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = number[] + * ``` + */ + getSchoolAppId< + Config extends Alova2MethodConfig & { + params: { + nodeId: number; + }; + } + >( + config: Config + ): Alova2Method; + }; + baseController: { + /** + * --- + * + * [POST] + * + * **path:** /api/base/UploadFile + * + * --- + * + * **Query Parameters** + * ```ts + * type QueryParameters = { + * type?: string + * } + * ``` + * + * --- + * + * **RequestBody** + * ```ts + * type RequestBody = { + * file: Blob + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = string + * ``` + */ + uploadFile< + Config extends Alova2MethodConfig & { + params: { + type?: string; + }; + data: { + file: Blob; + }; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [GET] + * + * **path:** /api/base/RedirectTo/{id} + * + * --- + * + * **Path Parameters** + * ```ts + * type PathParameters = { + * id: string + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = { + * applicationContext?: { + * // [cycle] $.applicationContext + * parent?: ApplicationContext + * id?: string + * displayName?: string + * autowireCapableBeanFactory?: object + * applicationName?: string + * startupDate?: number + * environment?: { + * // [items] start + * // [items] end + * activeProfiles?: string[] + * // [items] start + * // [items] end + * defaultProfiles?: string[] + * } + * // [items] start + * // [items] end + * beanDefinitionNames?: string[] + * beanDefinitionCount?: number + * parentBeanFactory?: object + * classLoader?: { + * parent?: { + * defaultAssertionStatus?: boolean + * } + * defaultAssertionStatus?: boolean + * } + * } + * servletContext?: { + * classLoader?: { + * parent?: { + * defaultAssertionStatus?: boolean + * } + * defaultAssertionStatus?: boolean + * } + * attributeNames?: object + * majorVersion?: number + * contextPath?: string + * minorVersion?: number + * initParameterNames?: object + * // [deprecated] + * servletNames?: object + * sessionTimeout?: number + * // [deprecated] + * servlets?: object + * responseCharacterEncoding?: string + * // [items] start + * // [items] end + * defaultSessionTrackingModes?: ('COOKIE' | 'URL' | 'SSL')[] + * virtualServerName?: string + * servletContextName?: string + * requestCharacterEncoding?: string + * servletRegistrations?: Record< + * string, + * { + * // [items] start + * // [items] end + * mappings?: string[] + * runAsRole?: string + * name?: string + * className?: string + * initParameters?: Record + * } + * > + * effectiveMajorVersion?: number + * // [items] start + * // [items] end + * sessionTrackingModes?: ('COOKIE' | 'URL' | 'SSL')[] + * effectiveMinorVersion?: number + * // [items] start + * // [items] end + * effectiveSessionTrackingModes?: ('COOKIE' | 'URL' | 'SSL')[] + * jspConfigDescriptor?: { + * // [items] start + * // [items] end + * taglibs?: Array<{ + * taglibURI?: string + * taglibLocation?: string + * }> + * // [items] start + * // [items] end + * jspPropertyGroups?: Array<{ + * buffer?: string + * defaultContentType?: string + * // [items] start + * // [items] end + * urlPatterns?: string[] + * deferredSyntaxAllowedAsLiteral?: string + * pageEncoding?: string + * // [items] start + * // [items] end + * includeCodas?: string[] + * isXml?: string + * elIgnored?: string + * scriptingInvalid?: string + * // [items] start + * // [items] end + * includePreludes?: string[] + * trimDirectiveWhitespaces?: string + * errorOnUndeclaredNamespace?: string + * }> + * } + * filterRegistrations?: Record< + * string, + * { + * // [items] start + * // [items] end + * servletNameMappings?: string[] + * // [items] start + * // [items] end + * urlPatternMappings?: string[] + * name?: string + * className?: string + * initParameters?: Record + * } + * > + * sessionCookieConfig?: { + * name?: string + * path?: string + * comment?: string + * domain?: string + * secure?: boolean + * maxAge?: number + * httpOnly?: boolean + * } + * serverInfo?: string + * } + * contentType?: string + * requestContextAttribute?: string + * staticAttributes?: Record + * exposePathVariables?: boolean + * exposeContextBeansAsAttributes?: boolean + * // [items] start + * // [items] end + * exposedContextBeanNames?: string[] + * beanName?: string + * url?: string + * contextRelative?: boolean + * http10Compatible?: boolean + * exposeModelAttributes?: boolean + * encodingScheme?: string + * statusCode?: + * | '100 CONTINUE' + * | '101 SWITCHING_PROTOCOLS' + * | '102 PROCESSING' + * | '103 CHECKPOINT' + * | '200 OK' + * | '201 CREATED' + * | '202 ACCEPTED' + * | '203 NON_AUTHORITATIVE_INFORMATION' + * | '204 NO_CONTENT' + * | '205 RESET_CONTENT' + * | '206 PARTIAL_CONTENT' + * | '207 MULTI_STATUS' + * | '208 ALREADY_REPORTED' + * | '226 IM_USED' + * | '300 MULTIPLE_CHOICES' + * | '301 MOVED_PERMANENTLY' + * | '302 FOUND' + * | '302 MOVED_TEMPORARILY' + * | '303 SEE_OTHER' + * | '304 NOT_MODIFIED' + * | '305 USE_PROXY' + * | '307 TEMPORARY_REDIRECT' + * | '308 PERMANENT_REDIRECT' + * | '400 BAD_REQUEST' + * | '401 UNAUTHORIZED' + * | '402 PAYMENT_REQUIRED' + * | '403 FORBIDDEN' + * | '404 NOT_FOUND' + * | '405 METHOD_NOT_ALLOWED' + * | '406 NOT_ACCEPTABLE' + * | '407 PROXY_AUTHENTICATION_REQUIRED' + * | '408 REQUEST_TIMEOUT' + * | '409 CONFLICT' + * | '410 GONE' + * | '411 LENGTH_REQUIRED' + * | '412 PRECONDITION_FAILED' + * | '413 PAYLOAD_TOO_LARGE' + * | '413 REQUEST_ENTITY_TOO_LARGE' + * | '414 URI_TOO_LONG' + * | '414 REQUEST_URI_TOO_LONG' + * | '415 UNSUPPORTED_MEDIA_TYPE' + * | '416 REQUESTED_RANGE_NOT_SATISFIABLE' + * | '417 EXPECTATION_FAILED' + * | '418 I_AM_A_TEAPOT' + * | '419 INSUFFICIENT_SPACE_ON_RESOURCE' + * | '420 METHOD_FAILURE' + * | '421 DESTINATION_LOCKED' + * | '422 UNPROCESSABLE_ENTITY' + * | '423 LOCKED' + * | '424 FAILED_DEPENDENCY' + * | '425 TOO_EARLY' + * | '426 UPGRADE_REQUIRED' + * | '428 PRECONDITION_REQUIRED' + * | '429 TOO_MANY_REQUESTS' + * | '431 REQUEST_HEADER_FIELDS_TOO_LARGE' + * | '451 UNAVAILABLE_FOR_LEGAL_REASONS' + * | '500 INTERNAL_SERVER_ERROR' + * | '501 NOT_IMPLEMENTED' + * | '502 BAD_GATEWAY' + * | '503 SERVICE_UNAVAILABLE' + * | '504 GATEWAY_TIMEOUT' + * | '505 HTTP_VERSION_NOT_SUPPORTED' + * | '506 VARIANT_ALSO_NEGOTIATES' + * | '507 INSUFFICIENT_STORAGE' + * | '508 LOOP_DETECTED' + * | '509 BANDWIDTH_LIMIT_EXCEEDED' + * | '510 NOT_EXTENDED' + * | '511 NETWORK_AUTHENTICATION_REQUIRED' + * expandUriTemplateVariables?: boolean + * propagateQueryParams?: boolean + * // [items] start + * // [items] end + * hosts?: string[] + * redirectView?: boolean + * propagateQueryProperties?: boolean + * attributes?: Record + * attributesMap?: Record + * attributesCSV?: string + * } + * ``` + */ + RedirectTo< + Config extends Alova2MethodConfig & { + pathParams: { + id: string; + }; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [GET] + * + * **path:** /api/base/ManualHashCacheDemo + * + * --- + * + * **Response** + * ```ts + * type Response = Record + * ``` + */ + manualHashCacheDemo>>( + config?: Config + ): Alova2Method, 'baseController.manualHashCacheDemo', Config>; + /** + * --- + * + * [GET] + * + * **path:** /api/base/GetUserInfo + * + * --- + * + * **Response** + * ```ts + * type Response = object + * ``` + */ + getUserInfo>( + config?: Config + ): Alova2Method; + /** + * --- + * + * [GET] + * + * **path:** /api/base/GetSysDict + * + * --- + * + * **Response** + * ```ts + * type Response = Record + * ``` + */ + getSysDict>>( + config?: Config + ): Alova2Method, 'baseController.getSysDict', Config>; + }; + appRoleController: { + /** + * --- + * + * [POST] + * + * **path:** /api/approle/SaveUserRoles + * + * --- + * + * **RequestBody** + * ```ts + * type RequestBody = { + * userId: number + * // [items] start + * // [items] end + * roleIds?: number[] + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = null + * ``` + */ + saveUserRoles< + Config extends Alova2MethodConfig & { + data: UserAppRoleBindRequest; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [POST] + * + * **path:** /api/approle/SaveRoleUsers + * + * --- + * + * **RequestBody** + * ```ts + * type RequestBody = { + * roleId: number + * // [items] start + * // [items] end + * userIds?: number[] + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = null + * ``` + */ + saveRoleUsers< + Config extends Alova2MethodConfig & { + data: AppRoleUserBindRequest; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [POST] + * + * **path:** /api/approle/SaveRoleModules + * + * --- + * + * **RequestBody** + * ```ts + * type RequestBody = { + * roleId: number + * // [items] start + * // [items] end + * moduleIds?: number[] + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = null + * ``` + */ + saveRoleModules< + Config extends Alova2MethodConfig & { + data: AppRoleModuleAssignRequest; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [POST] + * + * **path:** /api/approle/RoleEdit/{id} + * + * --- + * + * **Path Parameters** + * ```ts + * type PathParameters = { + * id: number + * } + * ``` + * + * --- + * + * **RequestBody** + * ```ts + * type RequestBody = { + * id: number + * name: string + * appId?: number + * allAppFlag: boolean + * remark?: string + * disabled?: boolean + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = null + * ``` + */ + roleEdit< + Config extends Alova2MethodConfig & { + pathParams: { + id: number; + }; + data: SysAppRoleRequest; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [POST] + * + * **path:** /api/approle/RoleDelete/{id} + * + * --- + * + * **Path Parameters** + * ```ts + * type PathParameters = { + * id: number + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = null + * ``` + */ + roleDelete< + Config extends Alova2MethodConfig & { + pathParams: { + id: number; + }; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [POST] + * + * **path:** /api/approle/RoleAdd + * + * --- + * + * **RequestBody** + * ```ts + * type RequestBody = { + * id: number + * name: string + * appId?: number + * allAppFlag: boolean + * remark?: string + * disabled?: boolean + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = null + * ``` + */ + roleAdd< + Config extends Alova2MethodConfig & { + data: SysAppRoleRequest; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [POST] + * + * **path:** /api/approle/RemoveRoleUser + * + * --- + * + * **Query Parameters** + * ```ts + * type QueryParameters = { + * roleId: number + * userId: number + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = null + * ``` + */ + removeRoleUser< + Config extends Alova2MethodConfig & { + params: { + roleId: number; + userId: number; + }; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [GET] + * + * **path:** /api/approle/RoleUsers + * + * --- + * + * **Query Parameters** + * ```ts + * type QueryParameters = { + * roleId: number + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = Array<{ + * id?: number + * account?: string + * realName?: string + * }> + * ``` + */ + roleUsers< + Config extends Alova2MethodConfig & { + params: { + roleId: number; + }; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [GET] + * + * **path:** /api/approle/RoleModuleTree + * + * --- + * + * **Query Parameters** + * ```ts + * type QueryParameters = { + * roleId: number + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = Array<{ + * id?: number + * name?: string + * appKey?: number + * pcIcon?: string + * sortNo?: number + * // [items] start + * // [items] end + * modules?: Array<{ + * id?: number + * parentId?: number + * name?: string + * customId?: string + * path?: string + * level?: number + * sortNo?: number + * checked?: boolean + * }> + * }> + * ``` + */ + roleModuleTree< + Config extends Alova2MethodConfig & { + params: { + roleId: number; + }; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [GET] + * + * **path:** /api/approle/RoleList + * + * --- + * + * **Query Parameters** + * ```ts + * type QueryParameters = { + * query: { + * name?: string + * appId?: number + * allAppFlag?: boolean + * disabled?: boolean + * } + * pageQuery: { + * pageIndex?: number + * pageSize?: number + * keyword?: string + * } + * sort: { + * // [items] start + * // [items] end + * sort?: string[] + * } + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = { + * total?: number + * // [items] start + * // [items] end + * content?: Array<{ + * id?: number + * name?: string + * appId?: number + * appName?: string + * allAppFlag?: boolean + * remark?: string + * disabled?: boolean + * }> + * pageIndex?: number + * pageSize?: number + * totalPages?: number + * hasNext?: boolean + * } + * ``` + */ + roleList< + Config extends Alova2MethodConfig & { + params: { + query: SysAppRoleQuery; + pageQuery: BasePageQuery; + sort: Sort; + }; + } + >( + config: Config + ): Alova2Method; + }; + appSettingsController: { + /** + * --- + * + * [POST] + * + * **path:** /api/app/SavePushSetting/{id} + * + * --- + * + * **Path Parameters** + * ```ts + * type PathParameters = { + * id: number + * } + * ``` + * + * --- + * + * **RequestBody** + * ```ts + * type RequestBody = { + * pushBaseUrl?: string + * pushEnabled?: number + * pushEventTypes?: string + * pushSchoolIds?: string + * pushRoleIds?: string + * pushSecret?: string + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = null + * ``` + */ + savePushSetting< + Config extends Alova2MethodConfig & { + pathParams: { + id: number; + }; + data: PushSettingRequest; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [POST] + * + * **path:** /api/app/ResetAppSecret/{id} + * + * --- + * + * **Path Parameters** + * ```ts + * type PathParameters = { + * id: number + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = string + * ``` + */ + resetAppSecret< + Config extends Alova2MethodConfig & { + pathParams: { + id: number; + }; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [POST] + * + * **path:** /api/app/RefreshSignKeys + * + * --- + * + * **Response** + * ```ts + * type Response = Record + * ``` + */ + refreshSignKeys>>( + config?: Config + ): Alova2Method, 'appSettingsController.refreshSignKeys', Config>; + /** + * --- + * + * [POST] + * + * **path:** /api/app/EditType/{id} + * + * --- + * + * **Path Parameters** + * ```ts + * type PathParameters = { + * id: number + * } + * ``` + * + * --- + * + * **RequestBody** + * ```ts + * type RequestBody = { + * id: number + * name: string + * sortNo?: number + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = null + * ``` + */ + editType< + Config extends Alova2MethodConfig & { + pathParams: { + id: number; + }; + data: AppCategoryRequest; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [POST] + * + * **path:** /api/app/EditModule/{id} + * + * --- + * + * **Path Parameters** + * ```ts + * type PathParameters = { + * id: number + * } + * ``` + * + * --- + * + * **RequestBody** + * ```ts + * type RequestBody = { + * id: number + * appId: number * parentId?: number + * name: string + * customId: string * path?: string * sortNo?: number * } @@ -466,183 +3376,50 @@ declare global { * type Response = null * ``` */ - addModule< + editModule< Config extends Alova2MethodConfig & { + pathParams: { + id: number; + }; data: AppModuleRequest; } >( config: Config - ): Alova2Method; + ): Alova2Method; /** * --- * - * [POST] addType + * [POST] * - * **path:** /api/app/AddType + * **path:** /api/app/EditApp/{id} + * + * --- + * + * **Path Parameters** + * ```ts + * type PathParameters = { + * id: number + * } + * ``` * * --- * * **RequestBody** * ```ts * type RequestBody = { - * id?: number - * name?: string - * sortNo?: number - * } - * ``` - * - * --- - * - * **Response** - * ```ts - * type Response = null - * ``` - */ - addType< - Config extends Alova2MethodConfig & { - data: AppCategoryRequest; - } - >( - config: Config - ): Alova2Method; - /** - * --- - * - * [GET] appAuthzList - * - * **path:** /api/app/AppAuthzList - * - * --- - * - * **Response** - * ```ts - * type Response = Array<{ - * // [items] start - * // [title] AppItem - * // [items] end - * app?: Array<{ - * id?: number - * name?: string - * }> - * id?: number - * name?: string - * }> - * ``` - */ - appAuthzList>( - config?: Config - ): Alova2Method; - /** - * --- - * - * [GET] appList - * - * **path:** /api/app/AppList - * - * --- - * - * **Query Parameters** - * ```ts - * type QueryParameters = { - * categoryId?: number - * name?: string - * pageIndex?: number - * pageSize?: number - * sorted?: boolean - * unsorted?: boolean - * } - * ``` - * - * --- - * - * **Response** - * ```ts - * type Response = { - * // [items] start - * // [title] ApplicationInfoVo - * // [items] end - * content?: Array<{ - * appIcon?: string - * appKey?: number - * appSecret?: string - * appUrl?: string - * categoryId?: number - * // [items] start - * // [items] end - * clients?: number[] - * desc?: string - * dingtalkUrl?: string - * id?: number - * name?: string - * officialAccountUrl?: string - * pcIcon?: string - * pcUrl?: string - * sortNo?: number - * }> - * hasNext?: boolean - * pageIndex?: number - * pageSize?: number - * total?: number - * totalPages?: number - * } - * ``` - */ - appList< - Config extends Alova2MethodConfig & { - params: { - categoryId?: number; - name?: string; - pageIndex?: number; - pageSize?: number; - sorted?: boolean; - unsorted?: boolean; - }; - } - >( - config: Config - ): Alova2Method; - /** - * --- - * - * [POST] appSort - * - * **path:** /api/app/AppSort - * - * --- - * - * **RequestBody** - * ```ts - * type RequestBody = number[] - * ``` - * - * --- - * - * **Response** - * ```ts - * type Response = null - * ``` - */ - appSort< - Config extends Alova2MethodConfig & { - data: number[]; - } - >( - config: Config - ): Alova2Method; - /** - * --- - * - * [GET] appSortList - * - * **path:** /api/app/AppSortList - * - * --- - * - * **Query Parameters** - * ```ts - * type QueryParameters = { - * // categoryId + * id: number + * name: string * categoryId: number + * desc?: string + * // [items] start + * // [items] end + * clients?: number[] + * pcUrl?: string + * pcIcon?: string + * appUrl?: string + * appIcon?: string + * officialAccountUrl?: string + * dingtalkUrl?: string * } * ``` * @@ -650,38 +3427,32 @@ declare global { * * **Response** * ```ts - * type Response = Array<{ - * id?: number - * name?: string - * sortNo?: number - * }> + * type Response = null * ``` */ - appSortList< - Config extends Alova2MethodConfig & { - params: { - /** - * categoryId - */ - categoryId: number; + editApp< + Config extends Alova2MethodConfig & { + pathParams: { + id: number; }; + data: ApplicationInfoRequest; } >( config: Config - ): Alova2Method; + ): Alova2Method; /** * --- * - * [GET] appTypeList + * [POST] * - * **path:** /api/app/AppTypeList + * **path:** /api/app/DeleteType/{id} * * --- * - * **Query Parameters** + * **Path Parameters** * ```ts - * type QueryParameters = { - * name?: string + * type PathParameters = { + * id: number * } * ``` * @@ -689,26 +3460,86 @@ declare global { * * **Response** * ```ts - * type Response = Array<{ - * id?: number - * name?: string - * sortNo?: number - * }> + * type Response = null * ``` */ - appTypeList< - Config extends Alova2MethodConfig & { - params: { - name?: string; + deleteType< + Config extends Alova2MethodConfig & { + pathParams: { + id: number; }; } >( config: Config - ): Alova2Method; + ): Alova2Method; /** * --- * - * [POST] appTypeSort + * [POST] + * + * **path:** /api/app/DeleteModule/{id} + * + * --- + * + * **Path Parameters** + * ```ts + * type PathParameters = { + * id: number + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = null + * ``` + */ + deleteModule< + Config extends Alova2MethodConfig & { + pathParams: { + id: number; + }; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [POST] + * + * **path:** /api/app/DeleteApp/{id} + * + * --- + * + * **Path Parameters** + * ```ts + * type PathParameters = { + * id: number + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = null + * ``` + */ + deleteApp< + Config extends Alova2MethodConfig & { + pathParams: { + id: number; + }; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [POST] * * **path:** /api/app/AppTypeSort * @@ -732,22 +3563,19 @@ declare global { } >( config: Config - ): Alova2Method; + ): Alova2Method; /** * --- * - * [POST] deleteApp + * [POST] * - * **path:** /api/app/DeleteApp/{id} + * **path:** /api/app/AppSort * * --- * - * **Path Parameters** + * **RequestBody** * ```ts - * type PathParameters = { - * // id - * id: number - * } + * type RequestBody = number[] * ``` * * --- @@ -757,125 +3585,28 @@ declare global { * type Response = null * ``` */ - deleteApp< + appSort< Config extends Alova2MethodConfig & { - pathParams: { - /** - * id - */ - id: number; - }; + data: number[]; } >( config: Config - ): Alova2Method; + ): Alova2Method; /** * --- * - * [POST] deleteModule + * [POST] * - * **path:** /api/app/DeleteModule/{id} - * - * --- - * - * **Path Parameters** - * ```ts - * type PathParameters = { - * // id - * id: number - * } - * ``` - * - * --- - * - * **Response** - * ```ts - * type Response = null - * ``` - */ - deleteModule< - Config extends Alova2MethodConfig & { - pathParams: { - /** - * id - */ - id: number; - }; - } - >( - config: Config - ): Alova2Method; - /** - * --- - * - * [POST] deleteType - * - * **path:** /api/app/DeleteType/{id} - * - * --- - * - * **Path Parameters** - * ```ts - * type PathParameters = { - * // id - * id: number - * } - * ``` - * - * --- - * - * **Response** - * ```ts - * type Response = null - * ``` - */ - deleteType< - Config extends Alova2MethodConfig & { - pathParams: { - /** - * id - */ - id: number; - }; - } - >( - config: Config - ): Alova2Method; - /** - * --- - * - * [POST] editApp - * - * **path:** /api/app/EditApp/{id} - * - * --- - * - * **Path Parameters** - * ```ts - * type PathParameters = { - * // id - * id: number - * } - * ``` + * **path:** /api/app/AddType * * --- * * **RequestBody** * ```ts * type RequestBody = { - * appIcon?: string - * appUrl?: string - * categoryId?: number - * // [items] start - * // [items] end - * clients?: number[] - * desc?: string - * dingtalkUrl?: string - * id?: number - * name?: string - * officialAccountUrl?: string - * pcIcon?: string - * pcUrl?: string + * id: number + * name: string + * sortNo?: number * } * ``` * @@ -886,46 +3617,30 @@ declare global { * type Response = null * ``` */ - editApp< + addType< Config extends Alova2MethodConfig & { - pathParams: { - /** - * id - */ - id: number; - }; - data: ApplicationInfoRequest; + data: AppCategoryRequest; } >( config: Config - ): Alova2Method; + ): Alova2Method; /** * --- * - * [POST] editModule + * [POST] * - * **path:** /api/app/EditModule/{id} - * - * --- - * - * **Path Parameters** - * ```ts - * type PathParameters = { - * // id - * id: number - * } - * ``` + * **path:** /api/app/AddModule * * --- * * **RequestBody** * ```ts * type RequestBody = { - * appId?: number - * customId?: string - * id?: number - * name?: string + * id: number + * appId: number * parentId?: number + * name: string + * customId: string * path?: string * sortNo?: number * } @@ -938,44 +3653,38 @@ declare global { * type Response = null * ``` */ - editModule< + addModule< Config extends Alova2MethodConfig & { - pathParams: { - /** - * id - */ - id: number; - }; data: AppModuleRequest; } >( config: Config - ): Alova2Method; + ): Alova2Method; /** * --- * - * [POST] editType + * [POST] * - * **path:** /api/app/EditType/{id} - * - * --- - * - * **Path Parameters** - * ```ts - * type PathParameters = { - * // id - * id: number - * } - * ``` + * **path:** /api/app/AddApp * * --- * * **RequestBody** * ```ts * type RequestBody = { - * id?: number - * name?: string - * sortNo?: number + * id: number + * name: string + * categoryId: number + * desc?: string + * // [items] start + * // [items] end + * clients?: number[] + * pcUrl?: string + * pcIcon?: string + * appUrl?: string + * appIcon?: string + * officialAccountUrl?: string + * dingtalkUrl?: string * } * ``` * @@ -986,23 +3695,17 @@ declare global { * type Response = null * ``` */ - editType< + addApp< Config extends Alova2MethodConfig & { - pathParams: { - /** - * id - */ - id: number; - }; - data: AppCategoryRequest; + data: ApplicationInfoRequest; } >( config: Config - ): Alova2Method; + ): Alova2Method; /** * --- * - * [GET] moduleList + * [GET] * * **path:** /api/app/ModuleList * @@ -1011,9 +3714,11 @@ declare global { * **Query Parameters** * ```ts * type QueryParameters = { - * appId?: number - * name?: string - * parentId?: number + * query: { + * appId?: number + * name?: string + * parentId?: number + * } * } * ``` * @@ -1022,45 +3727,42 @@ declare global { * **Response** * ```ts * type Response = Array<{ + * id?: number * appId?: number + * parentId?: number + * name?: string + * customId?: string + * path?: string + * level?: number + * sortNo?: number * // [items] start * // [cycle] $.[] * // [items] end * children?: AppModuleVo[] - * customId?: string - * id?: number - * level?: number - * name?: string - * parentId?: number - * path?: string - * sortNo?: number * }> * ``` */ moduleList< Config extends Alova2MethodConfig & { params: { - appId?: number; - name?: string; - parentId?: number; + query: AppModuleQuery; }; } >( config: Config - ): Alova2Method; + ): Alova2Method; /** * --- * - * [POST] resetAppSecret + * [GET] * - * **path:** /api/app/ResetAppSecret/{id} + * **path:** /api/app/GetPushSetting/{id} * * --- * * **Path Parameters** * ```ts * type PathParameters = { - * // id * id: number * } * ``` @@ -1069,265 +3771,43 @@ declare global { * * **Response** * ```ts - * type Response = string - * ``` - */ - resetAppSecret< - Config extends Alova2MethodConfig & { - pathParams: { - /** - * id - */ - id: number; - }; - } - >( - config: Config - ): Alova2Method; - }; - AppRole: { - /** - * --- - * - * [POST] removeRoleUser - * - * **path:** /api/approle/RemoveRoleUser - * - * --- - * - * **Query Parameters** - * ```ts - * type QueryParameters = { - * // roleId - * roleId: number - * // userId - * userId: number - * } - * ``` - * - * --- - * - * **Response** - * ```ts - * type Response = null - * ``` - */ - removeRoleUser< - Config extends Alova2MethodConfig & { - params: { - /** - * roleId - */ - roleId: number; - /** - * userId - */ - userId: number; - }; - } - >( - config: Config - ): Alova2Method; - /** - * --- - * - * [POST] roleAdd - * - * **path:** /api/approle/RoleAdd - * - * --- - * - * **RequestBody** - * ```ts - * type RequestBody = { - * allAppFlag?: boolean - * appId?: number - * disabled?: boolean - * id?: number - * name?: string - * remark?: string - * } - * ``` - * - * --- - * - * **Response** - * ```ts - * type Response = null - * ``` - */ - roleAdd< - Config extends Alova2MethodConfig & { - data: SysAppRoleRequest; - } - >( - config: Config - ): Alova2Method; - /** - * --- - * - * [POST] roleDelete - * - * **path:** /api/approle/RoleDelete/{id} - * - * --- - * - * **Path Parameters** - * ```ts - * type PathParameters = { - * // id - * id: number - * } - * ``` - * - * --- - * - * **Response** - * ```ts - * type Response = null - * ``` - */ - roleDelete< - Config extends Alova2MethodConfig & { - pathParams: { - /** - * id - */ - id: number; - }; - } - >( - config: Config - ): Alova2Method; - /** - * --- - * - * [POST] roleEdit - * - * **path:** /api/approle/RoleEdit/{id} - * - * --- - * - * **Path Parameters** - * ```ts - * type PathParameters = { - * // id - * id: number - * } - * ``` - * - * --- - * - * **RequestBody** - * ```ts - * type RequestBody = { - * allAppFlag?: boolean - * appId?: number - * disabled?: boolean - * id?: number - * name?: string - * remark?: string - * } - * ``` - * - * --- - * - * **Response** - * ```ts - * type Response = null - * ``` - */ - roleEdit< - Config extends Alova2MethodConfig & { - pathParams: { - /** - * id - */ - id: number; - }; - data: SysAppRoleRequest; - } - >( - config: Config - ): Alova2Method; - /** - * --- - * - * [GET] roleList - * - * **path:** /api/approle/RoleList - * - * --- - * - * **Query Parameters** - * ```ts - * type QueryParameters = { - * allAppFlag?: boolean - * appId?: number - * disabled?: boolean - * name?: string - * pageIndex?: number - * pageSize?: number - * sorted?: boolean - * unsorted?: boolean - * } - * ``` - * - * --- - * - * **Response** - * ```ts * type Response = { - * // [items] start - * // [title] SysAppRoleVo - * // [items] end - * content?: Array<{ - * allAppFlag?: boolean - * appId?: number - * appName?: string - * disabled?: boolean - * id?: number - * name?: string - * remark?: string - * }> - * hasNext?: boolean - * pageIndex?: number - * pageSize?: number - * total?: number - * totalPages?: number + * id?: number + * appKey?: number + * name?: string + * pushBaseUrl?: string + * pushEnabled?: number + * pushEventTypes?: string + * pushSchoolIds?: string + * pushRoleIds?: string + * pushSecret?: string * } * ``` */ - roleList< - Config extends Alova2MethodConfig & { - params: { - allAppFlag?: boolean; - appId?: number; - disabled?: boolean; - name?: string; - pageIndex?: number; - pageSize?: number; - sorted?: boolean; - unsorted?: boolean; + getPushSetting< + Config extends Alova2MethodConfig & { + pathParams: { + id: number; }; } >( config: Config - ): Alova2Method; + ): Alova2Method; /** * --- * - * [GET] roleModuleTree + * [GET] * - * **path:** /api/approle/RoleModuleTree + * **path:** /api/app/AppTypeList * * --- * * **Query Parameters** * ```ts * type QueryParameters = { - * // roleId - * roleId: number + * query: { + * name?: string + * } * } * ``` * @@ -1336,57 +3816,34 @@ declare global { * **Response** * ```ts * type Response = Array<{ - * appKey?: number * id?: number - * // [items] start - * // [title] AppRoleAuthzModuleVo - * // [items] end - * modules?: Array<{ - * checked?: boolean - * // [items] start - * // [cycle] $.[].modules.[] - * // [items] end - * children?: AppRoleAuthzModuleVo[] - * customId?: string - * id?: number - * level?: number - * name?: string - * parentId?: number - * path?: string - * sortNo?: number - * }> * name?: string - * pcIcon?: string * sortNo?: number * }> * ``` */ - roleModuleTree< - Config extends Alova2MethodConfig & { + appTypeList< + Config extends Alova2MethodConfig & { params: { - /** - * roleId - */ - roleId: number; + query: AppCategoryQuery; }; } >( config: Config - ): Alova2Method; + ): Alova2Method; /** * --- * - * [GET] roleUsers + * [GET] * - * **path:** /api/approle/RoleUsers + * **path:** /api/app/AppSortList * * --- * * **Query Parameters** * ```ts * type QueryParameters = { - * // roleId - * roleId: number + * categoryId: number * } * ``` * @@ -1395,40 +3852,47 @@ declare global { * **Response** * ```ts * type Response = Array<{ - * account?: string * id?: number - * realName?: string + * name?: string + * sortNo?: number * }> * ``` */ - roleUsers< - Config extends Alova2MethodConfig & { + appSortList< + Config extends Alova2MethodConfig & { params: { - /** - * roleId - */ - roleId: number; + categoryId: number; }; } >( config: Config - ): Alova2Method; + ): Alova2Method; /** * --- * - * [POST] saveRoleModules + * [GET] * - * **path:** /api/approle/SaveRoleModules + * **path:** /api/app/AppList * * --- * - * **RequestBody** + * **Query Parameters** * ```ts - * type RequestBody = { - * // [items] start - * // [items] end - * moduleIds?: number[] - * roleId?: number + * type QueryParameters = { + * query: { + * name?: string + * categoryId?: number + * } + * pageQuery: { + * pageIndex?: number + * pageSize?: number + * keyword?: string + * } + * sort: { + * // [items] start + * // [items] end + * sort?: string[] + * } * } * ``` * @@ -1436,32 +3900,89 @@ declare global { * * **Response** * ```ts - * type Response = null + * type Response = { + * total?: number + * // [items] start + * // [items] end + * content?: Array<{ + * id?: number + * name?: string + * categoryId?: number + * sortNo?: number + * desc?: string + * appKey?: number + * appSecret?: string + * // [items] start + * // [items] end + * clients?: number[] + * pcUrl?: string + * pcIcon?: string + * appUrl?: string + * appIcon?: string + * officialAccountUrl?: string + * dingtalkUrl?: string + * }> + * pageIndex?: number + * pageSize?: number + * totalPages?: number + * hasNext?: boolean + * } * ``` */ - saveRoleModules< - Config extends Alova2MethodConfig & { - data: AppRoleModuleAssignRequest; + appList< + Config extends Alova2MethodConfig & { + params: { + query: ApplicationInfoQuery; + pageQuery: BasePageQuery; + sort: Sort; + }; } >( config: Config - ): Alova2Method; + ): Alova2Method; /** * --- * - * [POST] saveRoleUsers + * [GET] * - * **path:** /api/approle/SaveRoleUsers + * **path:** /api/app/AppAuthzList + * + * --- + * + * **Response** + * ```ts + * type Response = Array<{ + * id?: number + * name?: string + * // [items] start + * // [items] end + * app?: Array<{ + * id?: number + * name?: string + * }> + * }> + * ``` + */ + appAuthzList>( + config?: Config + ): Alova2Method; + }; + userController: { + /** + * --- + * + * [POST] + * + * **path:** /oapi/user/moveToGroup * * --- * * **RequestBody** * ```ts * type RequestBody = { - * roleId?: number - * // [items] start - * // [items] end - * userIds?: number[] + * userId: number + * groupId: number + * schoolId: number * } * ``` * @@ -1469,116 +3990,128 @@ declare global { * * **Response** * ```ts - * type Response = null - * ``` - */ - saveRoleUsers< - Config extends Alova2MethodConfig & { - data: AppRoleUserBindRequest; - } - >( - config: Config - ): Alova2Method; - /** - * --- - * - * [POST] saveUserRoles - * - * **path:** /api/approle/SaveUserRoles - * - * --- - * - * **RequestBody** - * ```ts - * type RequestBody = { + * type Response = { + * id?: number + * account?: string + * name?: string + * idcard?: string + * phone?: string + * email?: string + * gender?: number + * profilePicture?: string + * type?: number + * status?: number + * dept?: { + * id?: number + * name?: string + * parentId?: number + * type?: number + * sort?: number + * // [items] start + * // [cycle] $.dept + * // [items] end + * children?: BoaGroup[] + * } + * school?: { + * id?: number + * name?: string + * parentId?: number + * type?: number + * sort?: number + * // [items] start + * // [cycle] $.school + * // [items] end + * children?: BoaGroup[] + * } + * bureau?: { + * id?: number + * name?: string + * parentId?: number + * type?: number + * sort?: number + * // [items] start + * // [cycle] $.bureau + * // [items] end + * children?: BoaGroup[] + * } + * // [items] start + * // [items] end + * groups?: Array<{ + * id?: number + * name?: string + * parentId?: number + * type?: number + * sort?: number + * // [items] start + * // [cycle] $.groups.[] + * // [items] end + * children?: BoaGroup[] + * }> * // [items] start * // [items] end * roleIds?: number[] - * userId?: number + * currentRoleId?: number + * // [items] start + * // [items] end + * schools?: Array<{ + * id?: number + * name?: string + * parentId?: number + * type?: number + * sort?: number + * // [items] start + * // [cycle] $.schools.[] + * // [items] end + * children?: BoaGroup[] + * }> * } * ``` - * - * --- - * - * **Response** - * ```ts - * type Response = null - * ``` */ - saveUserRoles< - Config extends Alova2MethodConfig & { - data: UserAppRoleBindRequest; + moveToGroup< + Config extends Alova2MethodConfig & { + data: SysUserMoveRequest; } >( config: Config - ): Alova2Method; - }; - Base: { + ): Alova2Method; /** * --- * - * [GET] getSysDict + * [POST] * - * **path:** /api/base/GetSysDict - * - * --- - * - * **Response** - * ```ts - * type Response = object - * ``` - */ - getSysDict>( - config?: Config - ): Alova2Method; - /** - * --- - * - * [GET] getUserInfo - * - * **path:** /api/base/GetUserInfo - * - * --- - * - * **Response** - * ```ts - * type Response = object - * ``` - */ - getUserInfo>( - config?: Config - ): Alova2Method; - /** - * --- - * - * [GET] manualHashCacheDemo - * - * **path:** /api/base/ManualHashCacheDemo - * - * --- - * - * **Response** - * ```ts - * type Response = object - * ``` - */ - manualHashCacheDemo>( - config?: Config - ): Alova2Method; - /** - * --- - * - * [GET] RedirectTo - * - * **path:** /api/base/RedirectTo/{id} + * **path:** /oapi/user/edit/{id} * * --- * * **Path Parameters** * ```ts * type PathParameters = { - * // id - * id: string + * id: number + * } + * ``` + * + * --- + * + * **RequestBody** + * ```ts + * type RequestBody = { + * id: number + * groupId: number + * account: string + * password: string + * confirmPassword?: string + * realName?: string + * phone?: string + * birthday?: string + * idcard?: string + * email?: string + * gender?: number + * profilePicture?: string + * // [items] start + * // [items] end + * roles?: number[] + * disabled?: number + * expired?: boolean * } * ``` * @@ -1587,463 +4120,106 @@ declare global { * **Response** * ```ts * type Response = { - * // [title] ApplicationContext - * applicationContext?: { - * applicationName?: string - * // [title] AutowireCapableBeanFactory - * autowireCapableBeanFactory?: object - * beanDefinitionCount?: number - * // [items] start - * // [items] end - * beanDefinitionNames?: string[] - * // [title] ClassLoader - * classLoader?: { - * // [cycle] $.applicationContext.classLoader - * parent?: ClassLoader - * } - * displayName?: string - * // [title] Environment - * environment?: { - * // [items] start - * // [items] end - * activeProfiles?: string[] - * // [items] start - * // [items] end - * defaultProfiles?: string[] - * } - * id?: string - * // [cycle] $.applicationContext - * parent?: ApplicationContext - * // [title] BeanFactory - * parentBeanFactory?: object - * startupDate?: number - * } - * attributesMap?: object - * beanName?: string - * contentType?: string - * exposePathVariables?: boolean - * // [items] start - * // [items] end - * hosts?: string[] - * propagateQueryProperties?: boolean - * redirectView?: boolean - * requestContextAttribute?: string - * staticAttributes?: object - * url?: string - * } - * ``` - */ - RedirectTo< - Config extends Alova2MethodConfig & { - pathParams: { - /** - * id - */ - id: string; - }; - } - >( - config: Config - ): Alova2Method; - /** - * --- - * - * [POST] uploadFile - * - * **path:** /api/base/UploadFile - * - * --- - * - * **Query Parameters** - * ```ts - * type QueryParameters = { - * // type - * type?: string - * } - * ``` - * - * --- - * - * **RequestBody** - * ```ts - * type RequestBody = { - * // file - * file: Blob - * } - * ``` - * - * --- - * - * **Response** - * ```ts - * type Response = string - * ``` - */ - uploadFile< - Config extends Alova2MethodConfig & { - params: { - /** - * type - */ - type?: string; - }; - data: { - /** - * file - */ - file: Blob; - }; - } - >( - config: Config - ): Alova2Method; - }; - GroupAuthz: { - /** - * --- - * - * [POST] assignApps - * - * **path:** /api/groupauthz/AssignApps - * - * --- - * - * **RequestBody** - * ```ts - * type RequestBody = { - * // [items] start - * // [items] end - * appIds?: number[] - * groupId?: number - * } - * ``` - * - * --- - * - * **Response** - * ```ts - * type Response = null - * ``` - */ - assignApps< - Config extends Alova2MethodConfig & { - data: GroupAppAssignRequest; - } - >( - config: Config - ): Alova2Method; - /** - * --- - * - * [GET] getSchoolAppId - * - * **path:** /api/groupauthz/GetSchoolAppId - * - * --- - * - * **Query Parameters** - * ```ts - * type QueryParameters = { - * // nodeId - * nodeId: number - * } - * ``` - * - * --- - * - * **Response** - * ```ts - * type Response = number[] - * ``` - */ - getSchoolAppId< - Config extends Alova2MethodConfig & { - params: { - /** - * nodeId - */ - nodeId: number; - }; - } - >( - config: Config - ): Alova2Method; - /** - * --- - * - * [GET] groupAppList - * - * **path:** /api/groupauthz/GroupAppList - * - * --- - * - * **Query Parameters** - * ```ts - * type QueryParameters = { - * // groupId - * groupId: number - * } - * ``` - * - * --- - * - * **Response** - * ```ts - * type Response = Array<{ - * appKey?: number - * categoryId?: number - * checked?: boolean * id?: number + * account?: string * name?: string - * pcIcon?: string - * }> - * ``` - */ - groupAppList< - Config extends Alova2MethodConfig & { - params: { - /** - * groupId - */ - groupId: number; - }; - } - >( - config: Config - ): Alova2Method; - /** - * --- - * - * [GET] groupModuleTree - * - * **path:** /api/groupauthz/GroupModuleTree - * - * --- - * - * **Query Parameters** - * ```ts - * type QueryParameters = { - * // groupId - * groupId: number - * } - * ``` - * - * --- - * - * **Response** - * ```ts - * type Response = Array<{ - * appKey?: number - * categoryId?: number - * id?: number - * // [items] start - * // [title] GroupAuthzModuleVo - * // [items] end - * modules?: Array<{ - * checked?: boolean - * // [items] start - * // [cycle] $.[].modules.[] - * // [items] end - * children?: GroupAuthzModuleVo[] - * customId?: string + * idcard?: string + * phone?: string + * email?: string + * gender?: number + * profilePicture?: string + * type?: number + * status?: number + * dept?: { * id?: number - * inheritFlag?: boolean - * level?: number * name?: string * parentId?: number - * path?: string - * sortNo?: number - * }> - * name?: string - * pcIcon?: string - * sortNo?: number - * }> - * ``` - */ - groupModuleTree< - Config extends Alova2MethodConfig & { - params: { - /** - * groupId - */ - groupId: number; - }; - } - >( - config: Config - ): Alova2Method; - /** - * --- - * - * [GET] groupModuleTreeByCategory - * - * **path:** /api/groupauthz/GroupModuleTreeByCategory - * - * --- - * - * **Query Parameters** - * ```ts - * type QueryParameters = { - * // groupId - * groupId: number - * } - * ``` - * - * --- - * - * **Response** - * ```ts - * type Response = Array<{ - * // [items] start - * // [title] GroupAuthzAppVo - * // [items] end - * apps?: Array<{ - * appKey?: number - * categoryId?: number - * id?: number + * type?: number + * sort?: number * // [items] start - * // [title] GroupAuthzModuleVo + * // [cycle] $.dept * // [items] end - * modules?: Array<{ - * checked?: boolean - * // [items] start - * // [cycle] $.[].apps.[].modules.[] - * // [items] end - * children?: GroupAuthzModuleVo[] - * customId?: string - * id?: number - * inheritFlag?: boolean - * level?: number - * name?: string - * parentId?: number - * path?: string - * sortNo?: number - * }> + * children?: BoaGroup[] + * } + * school?: { + * id?: number * name?: string - * pcIcon?: string - * sortNo?: number - * }> - * id?: number - * name?: string - * }> - * ``` - */ - groupModuleTreeByCategory< - Config extends Alova2MethodConfig & { - params: { - /** - * groupId - */ - groupId: number; - }; - } - >( - config: Config - ): Alova2Method; - /** - * --- - * - * [GET] groupUsers - * - * **path:** /api/groupauthz/GroupUsers - * - * --- - * - * **Query Parameters** - * ```ts - * type QueryParameters = { - * // groupId - * groupId: number - * } - * ``` - * - * --- - * - * **Response** - * ```ts - * type Response = Array<{ - * account?: string - * groupPath?: string - * id?: number - * isMain?: number - * realName?: string - * }> - * ``` - */ - groupUsers< - Config extends Alova2MethodConfig & { - params: { - /** - * groupId - */ - groupId: number; - }; - } - >( - config: Config - ): Alova2Method; - /** - * --- - * - * [GET] hasModulePerm - * - * **path:** /api/groupauthz/HasModulePerm - * - * --- - * - * **Query Parameters** - * ```ts - * type QueryParameters = { - * // moduleId - * moduleId: number - * // userId - * userId: number - * } - * ``` - * - * --- - * - * **Response** - * ```ts - * type Response = boolean - * ``` - */ - hasModulePerm< - Config extends Alova2MethodConfig & { - params: { - /** - * moduleId - */ - moduleId: number; - /** - * userId - */ - userId: number; - }; - } - >( - config: Config - ): Alova2Method; - /** - * --- - * - * [POST] saveModulePerms - * - * **path:** /api/groupauthz/SaveModulePerms - * - * --- - * - * **RequestBody** - * ```ts - * type RequestBody = { - * groupId?: number + * parentId?: number + * type?: number + * sort?: number + * // [items] start + * // [cycle] $.school + * // [items] end + * children?: BoaGroup[] + * } + * bureau?: { + * id?: number + * name?: string + * parentId?: number + * type?: number + * sort?: number + * // [items] start + * // [cycle] $.bureau + * // [items] end + * children?: BoaGroup[] + * } * // [items] start - * // [title] ModulePermItem * // [items] end - * perms?: Array<{ - * inheritFlag?: boolean - * moduleId?: number + * groups?: Array<{ + * id?: number + * name?: string + * parentId?: number + * type?: number + * sort?: number + * // [items] start + * // [cycle] $.groups.[] + * // [items] end + * children?: BoaGroup[] * }> + * // [items] start + * // [items] end + * roleIds?: number[] + * currentRoleId?: number + * // [items] start + * // [items] end + * schools?: Array<{ + * id?: number + * name?: string + * parentId?: number + * type?: number + * sort?: number + * // [items] start + * // [cycle] $.schools.[] + * // [items] end + * children?: BoaGroup[] + * }> + * } + * ``` + */ + edit_2< + Config extends Alova2MethodConfig & { + pathParams: { + id: number; + }; + data: SysUserRequest; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [POST] + * + * **path:** /oapi/user/delete/{id}/{groupId} + * + * --- + * + * **Path Parameters** + * ```ts + * type PathParameters = { + * id: number + * groupId: number * } * ``` * @@ -2054,72 +4230,45 @@ declare global { * type Response = null * ``` */ - saveModulePerms< + delete_1< Config extends Alova2MethodConfig & { - data: GroupModulePermRequest; - } - >( - config: Config - ): Alova2Method; - /** - * --- - * - * [GET] searchUsers - * - * **path:** /api/groupauthz/SearchUsers - * - * --- - * - * **Query Parameters** - * ```ts - * type QueryParameters = { - * // keyword - * keyword: string - * } - * ``` - * - * --- - * - * **Response** - * ```ts - * type Response = Array<{ - * account?: string - * groupPath?: string - * id?: number - * isMain?: number - * realName?: string - * }> - * ``` - */ - searchUsers< - Config extends Alova2MethodConfig & { - params: { - /** - * keyword - */ - keyword: string; + pathParams: { + id: number; + groupId: number; }; } >( config: Config - ): Alova2Method; + ): Alova2Method; /** * --- * - * [POST] setGroupModule + * [POST] * - * **path:** /api/groupauthz/SetGroupModule + * **path:** /oapi/user/batchAdd * * --- * * **RequestBody** * ```ts * type RequestBody = Array<{ - * appId?: number - * groupId?: number - * isAll?: number - * mode?: number - * moduleId?: number + * id: number + * groupId: number + * account: string + * password: string + * confirmPassword?: string + * realName?: string + * phone?: string + * birthday?: string + * idcard?: string + * email?: string + * gender?: number + * profilePicture?: string + * // [items] start + * // [items] end + * roles?: number[] + * disabled?: number + * expired?: boolean * }> * ``` * @@ -2127,806 +4276,119 @@ declare global { * * **Response** * ```ts - * type Response = null - * ``` - */ - setGroupModule< - Config extends Alova2MethodConfig & { - data: GroupModuleAuthzItem[]; - } - >( - config: Config - ): Alova2Method; - /** - * --- - * - * [POST] setSchoolApp - * - * **path:** /api/groupauthz/SetSchoolApp - * - * --- - * - * **RequestBody** - * ```ts - * type RequestBody = { - * appid?: number - * mode?: number - * schid?: number - * } - * ``` - * - * --- - * - * **Response** - * ```ts - * type Response = null - * ``` - */ - setSchoolApp< - Config extends Alova2MethodConfig & { - data: SchoolAppAuthzRequest; - } - >( - config: Config - ): Alova2Method; - /** - * --- - * - * [GET] userGroupTree - * - * **path:** /api/groupauthz/UserGroupTree - * - * --- - * - * **Query Parameters** - * ```ts - * type QueryParameters = { - * // userId - * userId: number - * } - * ``` - * - * --- - * - * **Response** - * ```ts * type Response = Array<{ - * // [items] start - * // [cycle] $.[] - * // [items] end - * children?: UserGroupNodeVo[] * id?: number + * account?: string * name?: string - * own?: boolean - * }> - * ``` - */ - userGroupTree< - Config extends Alova2MethodConfig & { - params: { - /** - * userId - */ - userId: number; - }; - } - >( - config: Config - ): Alova2Method; - /** - * --- - * - * [GET] userPermissionTree - * - * **path:** /api/groupauthz/UserPermissionTree - * - * --- - * - * **Query Parameters** - * ```ts - * type QueryParameters = { - * // groupId - * groupId?: number - * // userId - * userId: number - * } - * ``` - * - * --- - * - * **Response** - * ```ts - * type Response = Array<{ - * // [items] start - * // [title] UserPermissionAppVo - * // [items] end - * apps?: Array<{ - * appKey?: number + * idcard?: string + * phone?: string + * email?: string + * gender?: number + * profilePicture?: string + * type?: number + * status?: number + * dept?: { * id?: number - * // [items] start - * // [title] UserPermissionModuleVo - * // [items] end - * modules?: Array<{ - * // [items] start - * // [cycle] $.[].apps.[].modules.[] - * // [items] end - * children?: UserPermissionModuleVo[] - * customId?: string - * id?: number - * level?: number - * name?: string - * parentId?: number - * path?: string - * sortNo?: number - * }> * name?: string - * pcIcon?: string - * sortNo?: number + * parentId?: number + * type?: number + * sort?: number + * // [items] start + * // [cycle] $.[].dept + * // [items] end + * children?: BoaGroup[] + * } + * school?: { + * id?: number + * name?: string + * parentId?: number + * type?: number + * sort?: number + * // [items] start + * // [cycle] $.[].school + * // [items] end + * children?: BoaGroup[] + * } + * bureau?: { + * id?: number + * name?: string + * parentId?: number + * type?: number + * sort?: number + * // [items] start + * // [cycle] $.[].bureau + * // [items] end + * children?: BoaGroup[] + * } + * // [items] start + * // [items] end + * groups?: Array<{ + * id?: number + * name?: string + * parentId?: number + * type?: number + * sort?: number + * // [items] start + * // [cycle] $.[].groups.[] + * // [items] end + * children?: BoaGroup[] * }> - * id?: number - * name?: string - * sortNo?: number - * }> - * ``` - */ - userPermissionTree< - Config extends Alova2MethodConfig & { - params: { - /** - * groupId - */ - groupId?: number; - /** - * userId - */ - userId: number; - }; - } - >( - config: Config - ): Alova2Method; - /** - * --- - * - * [GET] userRoles - * - * **path:** /api/groupauthz/UserRoles - * - * --- - * - * **Query Parameters** - * ```ts - * type QueryParameters = { - * // userId - * userId: number - * } - * ``` - * - * --- - * - * **Response** - * ```ts - * type Response = Array<{ - * allAppFlag?: boolean - * appId?: number - * appName?: string - * disabled?: boolean - * id?: number - * name?: string - * }> - * ``` - */ - userRoles< - Config extends Alova2MethodConfig & { - params: { - /** - * userId - */ - userId: number; - }; - } - >( - config: Config - ): Alova2Method; - }; - SysGroup: { - /** - * --- - * - * [POST] add - * - * **path:** /api/sysgroup/Add - * - * --- - * - * **RequestBody** - * ```ts - * type RequestBody = { - * id?: number - * name?: string - * parentId?: number - * sort?: number - * type?: number - * } - * ``` - * - * --- - * - * **Response** - * ```ts - * type Response = null - * ``` - */ - add< - Config extends Alova2MethodConfig & { - data: SysGroupRequest; - } - >( - config: Config - ): Alova2Method; - /** - * --- - * - * [POST] batchAdd - * - * **path:** /api/sysgroup/BatchAdd - * - * --- - * - * **RequestBody** - * ```ts - * type RequestBody = { - * // 待新增的子组列表,每一项仅需提供 name * // [items] start - * // [title] 批量新增单项 - * // 仅需提供子组名称 * // [items] end - * items: Array<{ - * // 子组名称 - * name: string + * roleIds?: number[] + * currentRoleId?: number + * // [items] start + * // [items] end + * schools?: Array<{ + * id?: number + * name?: string + * parentId?: number + * type?: number + * sort?: number + * // [items] start + * // [cycle] $.[].schools.[] + * // [items] end + * children?: BoaGroup[] * }> - * // 父组ID(挂载点,必须存在) - * pid: number - * // 组类型(GroupTypeEnum.key,如 4=班级组) - * type: number - * } - * ``` - * - * --- - * - * **Response** - * ```ts - * type Response = null + * }> * ``` */ - batchAdd< - Config extends Alova2MethodConfig & { - data: _2; + batchAdd_1< + Config extends Alova2MethodConfig & { + data: SysUserRequest[]; } >( config: Config - ): Alova2Method; + ): Alova2Method; /** * --- * - * [POST] delete + * [POST] * - * **path:** /api/sysgroup/Delete/{id} - * - * --- - * - * **Path Parameters** - * ```ts - * type PathParameters = { - * // id - * id: number - * } - * ``` - * - * --- - * - * **Response** - * ```ts - * type Response = null - * ``` - */ - delete< - Config extends Alova2MethodConfig & { - pathParams: { - /** - * id - */ - id: number; - }; - } - >( - config: Config - ): Alova2Method; - /** - * --- - * - * [POST] edit - * - * **path:** /api/sysgroup/Edit/{id} - * - * --- - * - * **Path Parameters** - * ```ts - * type PathParameters = { - * // id - * id: number - * } - * ``` + * **path:** /oapi/user/add * * --- * * **RequestBody** * ```ts * type RequestBody = { - * id?: number - * name?: string - * parentId?: number - * sort?: number - * type?: number - * } - * ``` - * - * --- - * - * **Response** - * ```ts - * type Response = null - * ``` - */ - edit< - Config extends Alova2MethodConfig & { - pathParams: { - /** - * id - */ - id: number; - }; - data: SysGroupRequest; - } - >( - config: Config - ): Alova2Method; - /** - * --- - * - * [GET] getSchoolTree - * - * **path:** /api/sysgroup/GetSchoolTree - * - * --- - * - * **Response** - * ```ts - * type Response = Array<{ - * // [items] start - * // [cycle] $.[] - * // [items] end - * children?: SysGroupVo[] - * id?: number - * name?: string - * sort?: number - * type?: number - * }> - * ``` - */ - getSchoolTree>( - config?: Config - ): Alova2Method; - /** - * --- - * - * [GET] getTree - * - * **path:** /api/sysgroup/GetTree - * - * --- - * - * **Response** - * ```ts - * type Response = Array<{ - * // [items] start - * // [cycle] $.[] - * // [items] end - * children?: SysGroupVo[] - * id?: number - * name?: string - * sort?: number - * type?: number - * }> - * ``` - */ - getTree>( - config?: Config - ): Alova2Method; - /** - * --- - * - * [GET] list - * - * **path:** /api/sysgroup/List - * - * --- - * - * **Query Parameters** - * ```ts - * type QueryParameters = { - * name?: string - * parentId?: number - * } - * ``` - * - * --- - * - * **Response** - * ```ts - * type Response = Array<{ - * // [items] start - * // [cycle] $.[] - * // [items] end - * children?: SysGroupVo[] - * id?: number - * name?: string - * sort?: number - * type?: number - * }> - * ``` - */ - list< - Config extends Alova2MethodConfig & { - params: { - name?: string; - parentId?: number; - }; - } - >( - config: Config - ): Alova2Method; - /** - * --- - * - * [POST] move - * - * **path:** /api/sysgroup/Move - * - * --- - * - * **Query Parameters** - * ```ts - * type QueryParameters = { - * moveId?: number - * pid?: number - * } - * ``` - * - * --- - * - * **Response** - * ```ts - * type Response = null - * ``` - */ - move< - Config extends Alova2MethodConfig & { - params: { - moveId?: number; - pid?: number; - }; - } - >( - config: Config - ): Alova2Method; - /** - * --- - * - * [POST] sortChildren - * - * **path:** /api/sysgroup/SortChildren - * - * --- - * - * **Query Parameters** - * ```ts - * type QueryParameters = { - * // [items] start - * // [items] end - * ids?: number[] - * pid?: number - * } - * ``` - * - * --- - * - * **Response** - * ```ts - * type Response = null - * ``` - */ - sortChildren< - Config extends Alova2MethodConfig & { - params: { - ids?: number[]; - pid?: number; - }; - } - >( - config: Config - ): Alova2Method; - }; - SysUser: { - /** - * --- - * - * [GET] getGroups - * - * **path:** /api/sysuser/Groups/{userId} - * - * --- - * - * **Path Parameters** - * ```ts - * type PathParameters = { - * // userId - * userId: number - * } - * ``` - * - * --- - * - * **Response** - * ```ts - * type Response = number[] - * ``` - */ - getGroups< - Config extends Alova2MethodConfig & { - pathParams: { - /** - * userId - */ - userId: number; - }; - } - >( - config: Config - ): Alova2Method; - /** - * --- - * - * [POST] add - * - * **path:** /api/sysuser/Add - * - * --- - * - * **RequestBody** - * ```ts - * type RequestBody = { - * account?: string - * birthday?: string + * id: number + * groupId: number + * account: string + * password: string * confirmPassword?: string - * disabled?: number - * expired?: boolean - * groupId?: number - * id?: number - * idcard?: string - * password?: string - * phone?: string - * profilePicture?: string * realName?: string + * phone?: string + * birthday?: string + * idcard?: string + * email?: string + * gender?: number + * profilePicture?: string * // [items] start * // [items] end * roles?: number[] - * } - * ``` - * - * --- - * - * **Response** - * ```ts - * type Response = number - * ``` - */ - add< - Config extends Alova2MethodConfig & { - data: SysUserRequest; - } - >( - config: Config - ): Alova2Method; - /** - * --- - * - * [POST] delete - * - * **path:** /api/sysuser/Delete/{id} - * - * --- - * - * **Path Parameters** - * ```ts - * type PathParameters = { - * // id - * id: number - * } - * ``` - * - * --- - * - * **Response** - * ```ts - * type Response = null - * ``` - */ - delete< - Config extends Alova2MethodConfig & { - pathParams: { - /** - * id - */ - id: number; - }; - } - >( - config: Config - ): Alova2Method; - /** - * --- - * - * [POST] disable - * - * **path:** /api/sysuser/Disable/{id} - * - * --- - * - * **Path Parameters** - * ```ts - * type PathParameters = { - * // id - * id: number - * } - * ``` - * - * --- - * - * **Response** - * ```ts - * type Response = null - * ``` - */ - disable< - Config extends Alova2MethodConfig & { - pathParams: { - /** - * id - */ - id: number; - }; - } - >( - config: Config - ): Alova2Method; - /** - * --- - * - * [POST] edit - * - * **path:** /api/sysuser/Edit/{id} - * - * --- - * - * **Path Parameters** - * ```ts - * type PathParameters = { - * // id - * id: number - * } - * ``` - * - * --- - * - * **RequestBody** - * ```ts - * type RequestBody = { - * account?: string - * birthday?: string - * confirmPassword?: string * disabled?: number * expired?: boolean - * groupId?: number - * id?: number - * idcard?: string - * password?: string - * phone?: string - * profilePicture?: string - * realName?: string - * // [items] start - * // [items] end - * roles?: number[] - * } - * ``` - * - * --- - * - * **Response** - * ```ts - * type Response = null - * ``` - */ - edit< - Config extends Alova2MethodConfig & { - pathParams: { - /** - * id - */ - id: number; - }; - data: SysUserRequest; - } - >( - config: Config - ): Alova2Method; - /** - * --- - * - * [POST] enable - * - * **path:** /api/sysuser/Enable/{id} - * - * --- - * - * **Path Parameters** - * ```ts - * type PathParameters = { - * // id - * id: number - * } - * ``` - * - * --- - * - * **Response** - * ```ts - * type Response = null - * ``` - */ - enable< - Config extends Alova2MethodConfig & { - pathParams: { - /** - * id - */ - id: number; - }; - } - >( - config: Config - ): Alova2Method; - /** - * --- - * - * [GET] list - * - * **path:** /api/sysuser/List - * - * --- - * - * **Query Parameters** - * ```ts - * type QueryParameters = { - * disabled?: number - * groupId?: number - * name?: string - * pageIndex?: number - * pageSize?: number - * sorted?: boolean - * unsorted?: boolean - * withSub?: number * } * ``` * @@ -2935,49 +4397,888 @@ declare global { * **Response** * ```ts * type Response = { - * // [items] start - * // [title] SysUserVo - * // [items] end - * content?: Array<{ - * account?: string - * birthday?: string - * createTime?: string - * disabled?: number - * expired?: boolean + * id?: number + * account?: string + * name?: string + * idcard?: string + * phone?: string + * email?: string + * gender?: number + * profilePicture?: string + * type?: number + * status?: number + * dept?: { * id?: number - * idcard?: string - * phone?: string - * profilePicture?: string - * realName?: string + * name?: string + * parentId?: number + * type?: number + * sort?: number * // [items] start + * // [cycle] $.dept * // [items] end - * roles?: number[] - * updateTime?: string + * children?: BoaGroup[] + * } + * school?: { + * id?: number + * name?: string + * parentId?: number + * type?: number + * sort?: number + * // [items] start + * // [cycle] $.school + * // [items] end + * children?: BoaGroup[] + * } + * bureau?: { + * id?: number + * name?: string + * parentId?: number + * type?: number + * sort?: number + * // [items] start + * // [cycle] $.bureau + * // [items] end + * children?: BoaGroup[] + * } + * // [items] start + * // [items] end + * groups?: Array<{ + * id?: number + * name?: string + * parentId?: number + * type?: number + * sort?: number + * // [items] start + * // [cycle] $.groups.[] + * // [items] end + * children?: BoaGroup[] + * }> + * // [items] start + * // [items] end + * roleIds?: number[] + * currentRoleId?: number + * // [items] start + * // [items] end + * schools?: Array<{ + * id?: number + * name?: string + * parentId?: number + * type?: number + * sort?: number + * // [items] start + * // [cycle] $.schools.[] + * // [items] end + * children?: BoaGroup[] * }> - * hasNext?: boolean - * pageIndex?: number - * pageSize?: number - * total?: number - * totalPages?: number * } * ``` */ - list< - Config extends Alova2MethodConfig & { + add_2< + Config extends Alova2MethodConfig & { + data: SysUserRequest; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [GET] + * + * **path:** /oapi/user/modules + * + * --- + * + * **Query Parameters** + * ```ts + * type QueryParameters = { + * userId: number + * schId?: number + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = Array<{ + * id?: number + * parentId?: number + * customId?: string + * name?: string + * path?: string + * level?: number + * sortNo?: number + * icon?: string + * }> + * ``` + */ + modules< + Config extends Alova2MethodConfig & { params: { - disabled?: number; - groupId?: number; - name?: string; - pageIndex?: number; - pageSize?: number; - sorted?: boolean; - unsorted?: boolean; - withSub?: number; + userId: number; + schId?: number; }; } >( config: Config - ): Alova2Method; + ): Alova2Method; + /** + * --- + * + * [GET] + * + * **path:** /oapi/user/byPhone + * + * --- + * + * **Query Parameters** + * ```ts + * type QueryParameters = { + * phone: string + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = { + * id?: number + * account?: string + * name?: string + * idcard?: string + * phone?: string + * email?: string + * gender?: number + * profilePicture?: string + * type?: number + * status?: number + * dept?: { + * id?: number + * name?: string + * parentId?: number + * type?: number + * sort?: number + * // [items] start + * // [cycle] $.dept + * // [items] end + * children?: BoaGroup[] + * } + * school?: { + * id?: number + * name?: string + * parentId?: number + * type?: number + * sort?: number + * // [items] start + * // [cycle] $.school + * // [items] end + * children?: BoaGroup[] + * } + * bureau?: { + * id?: number + * name?: string + * parentId?: number + * type?: number + * sort?: number + * // [items] start + * // [cycle] $.bureau + * // [items] end + * children?: BoaGroup[] + * } + * // [items] start + * // [items] end + * groups?: Array<{ + * id?: number + * name?: string + * parentId?: number + * type?: number + * sort?: number + * // [items] start + * // [cycle] $.groups.[] + * // [items] end + * children?: BoaGroup[] + * }> + * // [items] start + * // [items] end + * roleIds?: number[] + * currentRoleId?: number + * // [items] start + * // [items] end + * schools?: Array<{ + * id?: number + * name?: string + * parentId?: number + * type?: number + * sort?: number + * // [items] start + * // [cycle] $.schools.[] + * // [items] end + * children?: BoaGroup[] + * }> + * } + * ``` + */ + byPhone< + Config extends Alova2MethodConfig & { + params: { + phone: string; + }; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [GET] + * + * **path:** /oapi/user/byLoginName + * + * --- + * + * **Query Parameters** + * ```ts + * type QueryParameters = { + * loginName: string + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = { + * id?: number + * account?: string + * name?: string + * idcard?: string + * phone?: string + * email?: string + * gender?: number + * profilePicture?: string + * type?: number + * status?: number + * dept?: { + * id?: number + * name?: string + * parentId?: number + * type?: number + * sort?: number + * // [items] start + * // [cycle] $.dept + * // [items] end + * children?: BoaGroup[] + * } + * school?: { + * id?: number + * name?: string + * parentId?: number + * type?: number + * sort?: number + * // [items] start + * // [cycle] $.school + * // [items] end + * children?: BoaGroup[] + * } + * bureau?: { + * id?: number + * name?: string + * parentId?: number + * type?: number + * sort?: number + * // [items] start + * // [cycle] $.bureau + * // [items] end + * children?: BoaGroup[] + * } + * // [items] start + * // [items] end + * groups?: Array<{ + * id?: number + * name?: string + * parentId?: number + * type?: number + * sort?: number + * // [items] start + * // [cycle] $.groups.[] + * // [items] end + * children?: BoaGroup[] + * }> + * // [items] start + * // [items] end + * roleIds?: number[] + * currentRoleId?: number + * // [items] start + * // [items] end + * schools?: Array<{ + * id?: number + * name?: string + * parentId?: number + * type?: number + * sort?: number + * // [items] start + * // [cycle] $.schools.[] + * // [items] end + * children?: BoaGroup[] + * }> + * } + * ``` + */ + byLoginName< + Config extends Alova2MethodConfig & { + params: { + loginName: string; + }; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [GET] + * + * **path:** /oapi/user/byId + * + * --- + * + * **Query Parameters** + * ```ts + * type QueryParameters = { + * id: number + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = { + * id?: number + * account?: string + * name?: string + * idcard?: string + * phone?: string + * email?: string + * gender?: number + * profilePicture?: string + * type?: number + * status?: number + * dept?: { + * id?: number + * name?: string + * parentId?: number + * type?: number + * sort?: number + * // [items] start + * // [cycle] $.dept + * // [items] end + * children?: BoaGroup[] + * } + * school?: { + * id?: number + * name?: string + * parentId?: number + * type?: number + * sort?: number + * // [items] start + * // [cycle] $.school + * // [items] end + * children?: BoaGroup[] + * } + * bureau?: { + * id?: number + * name?: string + * parentId?: number + * type?: number + * sort?: number + * // [items] start + * // [cycle] $.bureau + * // [items] end + * children?: BoaGroup[] + * } + * // [items] start + * // [items] end + * groups?: Array<{ + * id?: number + * name?: string + * parentId?: number + * type?: number + * sort?: number + * // [items] start + * // [cycle] $.groups.[] + * // [items] end + * children?: BoaGroup[] + * }> + * // [items] start + * // [items] end + * roleIds?: number[] + * currentRoleId?: number + * // [items] start + * // [items] end + * schools?: Array<{ + * id?: number + * name?: string + * parentId?: number + * type?: number + * sort?: number + * // [items] start + * // [cycle] $.schools.[] + * // [items] end + * children?: BoaGroup[] + * }> + * } + * ``` + */ + byId< + Config extends Alova2MethodConfig & { + params: { + id: number; + }; + } + >( + config: Config + ): Alova2Method; + }; + groupController: { + /** + * --- + * + * [POST] + * + * **path:** /oapi/group/edit/{id} + * + * --- + * + * **Path Parameters** + * ```ts + * type PathParameters = { + * id: number + * } + * ``` + * + * --- + * + * **RequestBody** + * ```ts + * type RequestBody = { + * id?: number + * name: string + * parentId: number + * type: number + * sort?: number + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = { + * id?: number + * name?: string + * parentId?: number + * type?: number + * sort?: number + * // [items] start + * // [cycle] $ + * // [items] end + * children?: BoaGroup[] + * } + * ``` + */ + edit_3< + Config extends Alova2MethodConfig & { + pathParams: { + id: number; + }; + data: SysGroupRequest; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [POST] + * + * **path:** /oapi/group/delete/{id} + * + * --- + * + * **Path Parameters** + * ```ts + * type PathParameters = { + * id: number + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = null + * ``` + */ + delete_2< + Config extends Alova2MethodConfig & { + pathParams: { + id: number; + }; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [POST] + * + * **path:** /oapi/group/batchAdd + * + * --- + * + * **RequestBody** + * ```ts + * type RequestBody = { + * pid: number + * type: number + * // [items] start + * // [items] end + * items: Array<{ + * name: string + * }> + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = Array<{ + * id?: number + * name?: string + * parentId?: number + * type?: number + * sort?: number + * // [items] start + * // [cycle] $.[] + * // [items] end + * children?: BoaGroup[] + * }> + * ``` + */ + batchAdd_2< + Config extends Alova2MethodConfig & { + data: SysGroupBatchRequest; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [POST] + * + * **path:** /oapi/group/add + * + * --- + * + * **RequestBody** + * ```ts + * type RequestBody = { + * id?: number + * name: string + * parentId: number + * type: number + * sort?: number + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = { + * id?: number + * name?: string + * parentId?: number + * type?: number + * sort?: number + * // [items] start + * // [cycle] $ + * // [items] end + * children?: BoaGroup[] + * } + * ``` + */ + add_3< + Config extends Alova2MethodConfig & { + data: SysGroupRequest; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [GET] + * + * **path:** /oapi/group/tree + * + * --- + * + * **Response** + * ```ts + * type Response = { + * id?: number + * name?: string + * parentId?: number + * type?: number + * sort?: number + * // [items] start + * // [cycle] $ + * // [items] end + * children?: BoaGroup[] + * } + * ``` + */ + tree>( + config?: Config + ): Alova2Method; + /** + * --- + * + * [GET] + * + * **path:** /oapi/group/list + * + * --- + * + * **Query Parameters** + * ```ts + * type QueryParameters = { + * ids: string + * withSub?: boolean + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = Array<{ + * id?: number + * name?: string + * parentId?: number + * type?: number + * sort?: number + * // [items] start + * // [cycle] $.[] + * // [items] end + * children?: BoaGroup[] + * }> + * ``` + */ + list_3< + Config extends Alova2MethodConfig & { + params: { + ids: string; + withSub?: boolean; + }; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [GET] + * + * **path:** /oapi/group/byId + * + * --- + * + * **Query Parameters** + * ```ts + * type QueryParameters = { + * groupId: number + * withSub?: boolean + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = { + * id?: number + * name?: string + * parentId?: number + * type?: number + * sort?: number + * // [items] start + * // [cycle] $ + * // [items] end + * children?: BoaGroup[] + * } + * ``` + */ + byId_1< + Config extends Alova2MethodConfig & { + params: { + groupId: number; + withSub?: boolean; + }; + } + >( + config: Config + ): Alova2Method; + }; + sysOperationLogController: { + /** + * --- + * + * [GET] + * + * **path:** /api/oplog/List + * + * --- + * + * **Query Parameters** + * ```ts + * type QueryParameters = { + * query: { + * logLevel?: number + * userId?: number + * username?: string + * requestUri?: string + * requestIp?: string + * operationType?: string + * statusCode?: number + * success?: boolean + * keyword?: string + * startTime?: string + * endTime?: string + * } + * pageQuery: { + * pageIndex?: number + * pageSize?: number + * keyword?: string + * } + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = { + * total?: number + * // [items] start + * // [items] end + * content?: Array<{ + * id?: number + * logLevel?: number + * userId?: number + * username?: string + * requestIp?: string + * requestUri?: string + * requestMethod?: string + * operationType?: string + * classMethod?: string + * requestParams?: string + * statusCode?: number + * costTime?: number + * userAgent?: string + * errorMsg?: string + * createTime?: string + * }> + * pageIndex?: number + * pageSize?: number + * totalPages?: number + * hasNext?: boolean + * } + * ``` + */ + list_2< + Config extends Alova2MethodConfig & { + params: { + query: SysOperationLogQuery; + pageQuery: BasePageQuery; + }; + } + >( + config: Config + ): Alova2Method; + /** + * --- + * + * [GET] + * + * **path:** /api/oplog/Download/{id} + * + * --- + * + * **Path Parameters** + * ```ts + * type PathParameters = { + * id: number + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = Blob + * ``` + */ + download_1< + Config extends Alova2MethodConfig & { + pathParams: { + id: number; + }; + } + >( + config: Config + ): Alova2Method; + }; + signKeyInternalController: { + /** + * --- + * + * [GET] + * + * **path:** /oapi/internal/sign-key/{appId} + * + * --- + * + * **Path Parameters** + * ```ts + * type PathParameters = { + * appId: string + * } + * ``` + * + * --- + * + * **Response** + * ```ts + * type Response = Record + * ``` + */ + signKey< + Config extends Alova2MethodConfig> & { + pathParams: { + appId: string; + }; + } + >( + config: Config + ): Alova2Method, 'signKeyInternalController.signKey', Config>; }; } diff --git a/src/components/GroupTreeSearchPanel.vue b/src/components/GroupTreeSearchPanel.vue index 2c4c7c6..2da0ea7 100644 --- a/src/components/GroupTreeSearchPanel.vue +++ b/src/components/GroupTreeSearchPanel.vue @@ -17,7 +17,6 @@ diff --git a/src/views/group-user/AdjustGroupContainer.vue b/src/views/group-user/AdjustGroupContainer.vue index 4b4b9b3..48344ca 100644 --- a/src/views/group-user/AdjustGroupContainer.vue +++ b/src/views/group-user/AdjustGroupContainer.vue @@ -91,7 +91,7 @@ async function loadUserGroups(userId: number) { pendingGroupIds.value = groupIds || []; } } catch (e: any) { - Message.error(e?.message || '加载用户所在组失败'); + console.warn(e?.message || '加载用户所在组失败'); } } @@ -128,7 +128,7 @@ async function handleSubmit() { visible.value = false; onSuccessCallback?.(); } catch (e: any) { - Message.error(e?.message || '调整失败'); + console.warn(e?.message || '调整失败'); } finally { submitting.value = false; } diff --git a/src/views/group-user/group/BatchAddGroup.vue b/src/views/group-user/group/BatchAddGroup.vue index 5ad05ff..a60f68f 100644 --- a/src/views/group-user/group/BatchAddGroup.vue +++ b/src/views/group-user/group/BatchAddGroup.vue @@ -85,7 +85,7 @@ async function submit() { emit('success'); visible.value = false; } catch (e: any) { - Message.error(e?.message || '添加失败'); + console.warn(e?.message || '添加失败'); } finally { loading.value = false; } diff --git a/src/views/group-user/group/GroupMove.vue b/src/views/group-user/group/GroupMove.vue index 3917150..29c375b 100644 --- a/src/views/group-user/group/GroupMove.vue +++ b/src/views/group-user/group/GroupMove.vue @@ -83,7 +83,7 @@ async function confirmMove() { emit('saved', { movedId: props.moveId, newPid: targetPid.value }); visible.value = false; } catch (e: any) { - Message.error(e?.message || '移动失败'); + console.warn(e?.message || '移动失败'); } finally { loading.value = false; } diff --git a/src/views/group-user/group/GroupSort.vue b/src/views/group-user/group/GroupSort.vue index d061d85..431ea91 100644 --- a/src/views/group-user/group/GroupSort.vue +++ b/src/views/group-user/group/GroupSort.vue @@ -73,7 +73,7 @@ async function saveSort() { emit('saved') visible.value = false } catch (e: any) { - Message.error(e?.message || '保存失败') + console.warn(e?.message || '保存失败') } finally { saving.value = false } diff --git a/src/views/group-user/group/index.vue b/src/views/group-user/group/index.vue index 988702e..78d5f3b 100644 --- a/src/views/group-user/group/index.vue +++ b/src/views/group-user/group/index.vue @@ -295,7 +295,7 @@ function showDeleteNode() { Message.success('删除成功!'); refTreePanel.value?.removeNode(node?.id); } catch (e: any) { - Message.error(e?.message || '删除失败'); + console.warn(e?.message || '删除失败'); } }, }); @@ -323,7 +323,7 @@ async function saveEditNode() { } editNodeModal.modal = false; } catch (e: any) { - Message.error(e?.message || '保存失败'); + console.warn(e?.message || '保存失败'); } finally { editNodeModal.loading = false; } diff --git a/src/views/group-user/index.vue b/src/views/group-user/index.vue index d1ef0cd..c11deed 100644 --- a/src/views/group-user/index.vue +++ b/src/views/group-user/index.vue @@ -297,7 +297,7 @@ async function handleDelete(row: any) { Message.success('删除成功!'); tableRef.value?.reloadData(OperatorEnum.del); } catch (e: any) { - Message.error(e?.message || '删除失败'); + console.warn(e?.message || '删除失败'); } }, }); @@ -329,7 +329,7 @@ async function openBatchDelete(checkList: number[]) { Message.success('删除成功!'); tableRef.value?.reloadData(OperatorEnum.del); } catch (e: any) { - Message.error(e?.message || '删除失败'); + console.warn(e?.message || '删除失败'); } }, }); @@ -365,7 +365,7 @@ async function confirmBatchStatus() { statusModal.value = false; tableRef.value?.reloadData(OperatorEnum.sel); } catch (e: any) { - Message.error(e?.message || '设置失败'); + console.warn(e?.message || '设置失败'); } finally { statusSubmitting.value = false; } diff --git a/src/views/group-user/user/AddUserContainer.vue b/src/views/group-user/user/AddUserContainer.vue index 755586a..e8afcf4 100644 --- a/src/views/group-user/user/AddUserContainer.vue +++ b/src/views/group-user/user/AddUserContainer.vue @@ -36,8 +36,8 @@ onSuccess(() => { onSuccessCallback?.(); }); onError((event) => { - const msg = event?.error?.message || '新增失败'; - Message.error(normalizeAccountError(msg, form.value.account)); + // 错误提示已由全局 alova 拦截器统一弹出,这里仅记录日志避免二次弹窗 + console.warn('[AddUserContainer] 新增失败:', event?.error?.message || '新增失败'); }); /* ---------- 打开弹窗 ---------- */ @@ -73,7 +73,8 @@ async function handleSubmit(formData: Record) { try { await Apis.AppRole.saveUserRoles({ data: { userId: newId, roleIds: appRolesToSave } }); } catch (e: any) { - Message.error('用户已创建,但角色属性保存失败:' + (e?.message || '未知错误')); + // 全局拦截器已弹窗,这里仅记录日志避免二次弹窗 + console.warn('[AddUserContainer] 用户已创建,但角色属性保存失败:', e?.message || '未知错误'); } } } @@ -98,13 +99,5 @@ function buildPayload(formData: Record) { }; } -/* ---------- 工具:账号重复提示标准化 ---------- */ -function normalizeAccountError(msg: string, account: string): string { - if (account && /账号/.test(msg) && /(已存在|重复|已被其他用户使用)/.test(msg)) { - return `账号${account}已存在`; - } - return msg; -} - defineExpose({ open, visible }); diff --git a/src/views/group-user/user/EditUserContainer.vue b/src/views/group-user/user/EditUserContainer.vue index 745c57e..5b7e686 100644 --- a/src/views/group-user/user/EditUserContainer.vue +++ b/src/views/group-user/user/EditUserContainer.vue @@ -42,8 +42,8 @@ onSuccess(() => { onSuccessCallback?.(); }); onError((event) => { - const msg = event?.error?.message || '编辑失败'; - Message.error(normalizeAccountError(msg, form.value.account)); + // 错误提示已由全局 alova 拦截器统一弹出,这里仅记录日志避免二次弹窗 + console.warn('[EditUserContainer] 编辑失败:', event?.error?.message || '编辑失败'); }); /* ---------- 打开编辑弹窗 ---------- */ @@ -100,7 +100,8 @@ async function open(row: any, groups: any[], curGroupId?: number | null, onSucce roleOptions.value = list.map((r: any) => ({ id: r.id, name: r.name })); roleOptionsLoaded.value = true; } catch (e: any) { - Message.error('加载角色列表失败:' + (e?.message || '未知错误')); + // 全局拦截器已弹窗,这里仅记录日志避免二次弹窗 + console.warn('[EditUserContainer] 加载角色列表失败:', e?.message || '未知错误'); } // 3) 已绑定角色 -> appRoles 回填(相互独立) @@ -118,7 +119,8 @@ async function open(row: any, groups: any[], curGroupId?: number | null, onSucce } catch (e: any) { // 已绑定角色加载失败:仍回填其它字段,但标记未加载成功(提交时不回写,避免误清空) detailData.value = buildInitForm(row, [], defaultGroupId); - Message.error('加载用户已绑定角色失败:' + (e?.message || '未知错误')); + // 全局拦截器已弹窗,这里仅记录日志避免二次弹窗 + console.warn('[EditUserContainer] 加载用户已绑定角色失败:', e?.message || '未知错误'); } } @@ -159,7 +161,8 @@ async function handleSubmit(formData: Record) { try { await Apis.AppRole.saveUserRoles({ data: { userId: currentId.value as number, roleIds: appRolesToSave } }); } catch (e: any) { - Message.error('用户已更新,但角色属性保存失败:' + (e?.message || '未知错误')); + // 全局拦截器已弹窗,这里仅记录日志避免二次弹窗 + console.warn('[EditUserContainer] 用户已更新,但角色属性保存失败:', e?.message || '未知错误'); } } } @@ -190,13 +193,5 @@ function buildPayload(formData: Record, id: number) { return payload; } -/* ---------- 工具:账号重复提示标准化 ---------- */ -function normalizeAccountError(msg: string, account: string): string { - if (account && /账号/.test(msg) && /(已存在|重复|已被其他用户使用)/.test(msg)) { - return `账号${account}已存在`; - } - return msg; -} - defineExpose({ open, visible }); diff --git a/src/views/group-user/user/UserSort.vue b/src/views/group-user/user/UserSort.vue index c724c5d..e394a90 100644 --- a/src/views/group-user/user/UserSort.vue +++ b/src/views/group-user/user/UserSort.vue @@ -80,7 +80,7 @@ async function handleSubmit() { emit('update:visible', false); emit('saved'); } catch (e: any) { - Message.error(e?.message || '排序设置失败'); + console.warn(e?.message || '排序设置失败'); } finally { submitting.value = false; } diff --git a/src/views/push/PushLog.vue b/src/views/push/PushLog.vue index 765aa67..1a57765 100644 --- a/src/views/push/PushLog.vue +++ b/src/views/push/PushLog.vue @@ -189,7 +189,7 @@ async function handleRetry(row: any) { Message.success('已重新投递,稍后在列表中查看结果'); tableRef.value?.refreshData(); } catch (e: any) { - Message.error(e?.message || '重试失败'); + console.warn(e?.message || '重试失败'); } } diff --git a/src/views/push/PushTest.vue b/src/views/push/PushTest.vue index 0c358d0..ea83e0c 100644 --- a/src/views/push/PushTest.vue +++ b/src/views/push/PushTest.vue @@ -155,7 +155,7 @@ function handleSend() { preview.value = res?.preview || null; sendMessage.value = res?.message || '已发送'; }) - .catch((e: any) => Message.error(e?.message || '发送失败')) + .catch((e: any) => console.warn(e?.message || '发送失败')) .finally(() => (sending.value = false)); } diff --git a/src/views/role-authz/AddRoleContainer.vue b/src/views/role-authz/AddRoleContainer.vue index 8f01cac..fed49b8 100644 --- a/src/views/role-authz/AddRoleContainer.vue +++ b/src/views/role-authz/AddRoleContainer.vue @@ -26,7 +26,8 @@ onSuccess(() => { onSuccessCallback?.(); }); onError((event: any) => { - Message.error(event?.error?.message || "新增失败"); + // 错误提示已由全局 alova 拦截器统一弹出,这里仅记录日志避免二次弹窗 + console.warn('[AddRoleContainer] 新增角色失败:', event?.error?.message || '新增失败'); }); function open(onSuccess?: () => void) { diff --git a/src/views/role-authz/AppModuleCheckTree.vue b/src/views/role-authz/AppModuleCheckTree.vue index dc83235..233727b 100644 --- a/src/views/role-authz/AppModuleCheckTree.vue +++ b/src/views/role-authz/AppModuleCheckTree.vue @@ -44,7 +44,6 @@