/** * API 调用类,该文件的API为自动生成,请勿手动修改 */ import { ApiCall } from 'moyan-api'; import type { MoMethod } from 'moyan-api'; import type { LoginDto, LoginResponseDto, UserInfoDto, LogoutDto, AppInstanceItemDto, PermissionTreeNodeDto, UserPermissionsResponseDto, RegisterDto, CheckAvailabilityResponseDto, CreateUserDto, UserResponseDto, AdminCreateUserDto, PageResponseDto, UpdateUserDto, StatusDto, ResetPasswordDto, CreateRoleDto, RoleResponseDto, UpdateRoleDto, AssignPermissionsDto, RolePermissionResponseDto, CreatePermissionDto, PermissionResponseDto, UpdatePermissionDto, SyncPermissionDto, CreateAppTypeDto, AppTypeResponseDto, PermissionPoolResponseDto, UpdatePermissionPoolDto, UpdatePermissionPoolResponseDto, UpdateAppTypeDto, SaveCustomMenuDto, CreateAppDto, AppDetailResponseDto, UpdateAppDto, AddMemberDto, MemberResponseDto, UpdateMemberRolesDto, AvailableAvailableRoleDto, AuditLogResponseDto, InitStatusResponseDto, InitRequestDto, InitResponseDto } from './schemas'; /** * auth|认证相关接口->用户登录 */ export declare class ApiAuthLogin extends ApiCall<{ body: LoginDto; }, LoginResponseDto> { readonly path = "/api/auth/login"; readonly method: MoMethod; readonly auth = false; } /** * auth|认证相关接口->刷新 Token */ export declare class ApiAuthRefreshToken extends ApiCall<{}, LoginResponseDto> { readonly path = "/api/auth/refresh"; readonly method: MoMethod; readonly auth = false; } /** * auth|认证相关接口->获取当前用户信息 */ export declare class ApiAuthGetCurrentUser extends ApiCall<{}, UserInfoDto> { readonly path = "/api/auth/userinfo"; readonly method: MoMethod; readonly auth = true; } /** * auth|认证相关接口->退出登录 */ export declare class ApiAuthLogout extends ApiCall<{ body: LogoutDto; }, unknown> { readonly path = "/api/auth/logout"; readonly method: MoMethod; readonly auth = true; } /** * auth|认证相关接口->获取用户应用列表 */ export declare class ApiAuthGetUserApps extends ApiCall<{}, Array> { readonly path = "/api/auth/apps"; readonly method: MoMethod; readonly auth = true; } /** * auth|认证相关接口->获取用户权限菜单 */ export declare class ApiAuthGetUserPermissions extends ApiCall<{}, UserPermissionsResponseDto> { readonly path = "/api/auth/permissions"; readonly method: MoMethod; readonly auth = true; } /** * auth|认证相关接口->用户注册 */ export declare class ApiAuthRegister extends ApiCall<{ body: RegisterDto; }, LoginResponseDto> { readonly path = "/api/auth/register"; readonly method: MoMethod; readonly auth = false; } /** * auth|认证相关接口->检查可用性 */ export declare class ApiAuthCheckAvailability extends ApiCall<{ query: { username?: string; email?: string; phone?: string; }; }, CheckAvailabilityResponseDto> { readonly path = "/api/auth/check-availability"; readonly method: MoMethod; readonly auth = false; } /** * auth|认证相关接口->修改密码 */ export declare class ApiAuthChangePassword extends ApiCall<{}, unknown> { readonly path = "/api/auth/change-password"; readonly method: MoMethod; readonly auth = true; } /** * auth|认证相关接口->同步权限 */ export declare class ApiAuthSyncPermissions extends ApiCall<{}, UserPermissionsResponseDto> { readonly path = "/api/auth/sync-permissions"; readonly method: MoMethod; readonly auth = true; } /** * user|用户相关接口->创建用户 */ export declare class ApiUserCreate extends ApiCall<{ body: CreateUserDto; }, UserResponseDto> { readonly path = "/api/users"; readonly method: MoMethod; readonly auth = true; } /** * user|用户相关接口->查询用户列表 */ export declare class ApiUserFindAll extends ApiCall<{ query: { page: number; pageSize: number; sortField?: string; sortOrder?: string; username?: string; phone?: string; userStatus?: number; }; }, PageResponseDto & { list: Array; }> { readonly path = "/api/users"; readonly method: MoMethod; readonly auth = true; } /** * user|用户相关接口->管理员创建用户 */ export declare class ApiUserAdminCreate extends ApiCall<{ body: AdminCreateUserDto; }, UserResponseDto> { readonly path = "/api/users/admin-create"; readonly method: MoMethod; readonly auth = true; } /** * user|用户相关接口->精确查找用户 */ export declare class ApiUserFindOneByKeyword extends ApiCall<{ query: { keyword: string; searchBy?: string; }; }, UserResponseDto> { readonly path = "/api/users/find-one"; readonly method: MoMethod; readonly auth = true; } /** * user|用户相关接口->根据 ID 查询用户 */ export declare class ApiUserFindById extends ApiCall<{ params: { id: string; }; }, UserResponseDto> { readonly path = "/api/users/{id}"; readonly method: MoMethod; readonly auth = true; } /** * user|用户相关接口->更新用户 */ export declare class ApiUserUpdate extends ApiCall<{ body: UpdateUserDto; params: { id: string; }; }, UserResponseDto> { readonly path = "/api/users/{id}"; readonly method: MoMethod; readonly auth = true; } /** * user|用户相关接口->删除用户 */ export declare class ApiUserDelete extends ApiCall<{ params: { id: string; }; }, unknown> { readonly path = "/api/users/{id}"; readonly method: MoMethod; readonly auth = true; } /** * user|用户相关接口->更新用户状态 */ export declare class ApiUserUpdateStatus extends ApiCall<{ body: StatusDto; params: { id: string; }; }, UserResponseDto> { readonly path = "/api/users/{id}/status"; readonly method: MoMethod; readonly auth = true; } /** * user|用户相关接口->重置用户密码 */ export declare class ApiUserResetPassword extends ApiCall<{ body: ResetPasswordDto; params: { id: string; }; }, unknown> { readonly path = "/api/users/{id}/reset-password"; readonly method: MoMethod; readonly auth = true; } /** * role|角色相关接口->创建角色 */ export declare class ApiRoleCreate extends ApiCall<{ body: CreateRoleDto; }, RoleResponseDto> { readonly path = "/api/roles"; readonly method: MoMethod; readonly auth = true; } /** * role|角色相关接口->查询角色列表 */ export declare class ApiRoleFindAll extends ApiCall<{ query: { page: number; pageSize: number; sortField?: string; sortOrder?: string; roleCode?: string; roleName?: string; roleStatus?: number; appTypeId?: string; appId?: string; }; }, PageResponseDto & { list: Array; }> { readonly path = "/api/roles"; readonly method: MoMethod; readonly auth = true; } /** * role|角色相关接口->根据 ID 查询角色 */ export declare class ApiRoleFindById extends ApiCall<{ params: { id: string; }; }, RoleResponseDto> { readonly path = "/api/roles/{id}"; readonly method: MoMethod; readonly auth = true; } /** * role|角色相关接口->更新角色 */ export declare class ApiRoleUpdate extends ApiCall<{ body: UpdateRoleDto; params: { id: string; }; }, RoleResponseDto> { readonly path = "/api/roles/{id}"; readonly method: MoMethod; readonly auth = true; } /** * role|角色相关接口->删除角色 */ export declare class ApiRoleDelete extends ApiCall<{ params: { id: string; }; }, unknown> { readonly path = "/api/roles/{id}"; readonly method: MoMethod; readonly auth = true; } /** * role|角色相关接口->分配权限 */ export declare class ApiRoleAssignPermissions extends ApiCall<{ body: AssignPermissionsDto; params: { id: string; }; }, unknown> { readonly path = "/api/roles/{id}/permissions"; readonly method: MoMethod; readonly auth = true; } /** * role|角色相关接口->获取角色权限 */ export declare class ApiRoleGetRolePermissions extends ApiCall<{ params: { id: string; }; }, RolePermissionResponseDto> { readonly path = "/api/roles/{id}/permissions"; readonly method: MoMethod; readonly auth = true; } /** * permission|权限相关接口->创建权限 */ export declare class ApiPermissionCreate extends ApiCall<{ body: CreatePermissionDto; }, PermissionResponseDto> { readonly path = "/api/permissions"; readonly method: MoMethod; readonly auth = true; } /** * permission|权限相关接口->查询权限列表 */ export declare class ApiPermissionFindAll extends ApiCall<{ query: { page: number; pageSize: number; sortField?: string; sortOrder?: string; appTypeId?: string; permName?: string; permCode?: string; permissionType?: string; nodeType?: string; parentId?: string; }; }, PageResponseDto & { list: Array; }> { readonly path = "/api/permissions"; readonly method: MoMethod; readonly auth = true; } /** * permission|权限相关接口->查询所有权限树 */ export declare class ApiPermissionFindAllTree extends ApiCall<{ query: { permissionType?: string; }; }, Array> { readonly path = "/api/permissions/tree/all"; readonly method: MoMethod; readonly auth = true; } /** * permission|权限相关接口->获取权限树 */ export declare class ApiPermissionGetPermissionTree extends ApiCall<{ query: { parentId?: string; }; }, Array> { readonly path = "/api/permissions/tree"; readonly method: MoMethod; readonly auth = true; } /** * permission|权限相关接口->根据 ID 查询权限 */ export declare class ApiPermissionFindById extends ApiCall<{ params: { id: string; }; }, PermissionResponseDto> { readonly path = "/api/permissions/{id}"; readonly method: MoMethod; readonly auth = true; } /** * permission|权限相关接口->更新权限 */ export declare class ApiPermissionUpdate extends ApiCall<{ body: UpdatePermissionDto; params: { id: string; }; }, PermissionResponseDto> { readonly path = "/api/permissions/{id}"; readonly method: MoMethod; readonly auth = true; } /** * permission|权限相关接口->删除权限 */ export declare class ApiPermissionDelete extends ApiCall<{ params: { id: string; }; }, unknown> { readonly path = "/api/permissions/{id}"; readonly method: MoMethod; readonly auth = true; } /** * permission|权限相关接口->批量创建权限 */ export declare class ApiPermissionBatchCreate extends ApiCall<{ body: Array; }, Array> { readonly path = "/api/permissions/batch"; readonly method: MoMethod; readonly auth = true; } /** * permission|权限相关接口->同步路由到权限表 */ export declare class ApiPermissionSyncPermissions extends ApiCall<{ body: SyncPermissionDto; }, Array> { readonly path = "/api/permissions/sync"; readonly method: MoMethod; readonly auth = true; } /** * permission-values|权限值标签映射->获取权限值标签映射表 */ export declare class ApiPermissionValuesGetPermissionValues extends ApiCall<{}, unknown> { readonly path = "/api/permission-values"; readonly method: MoMethod; readonly auth = false; } /** * app-type|应用类型相关接口->创建应用类型 */ export declare class ApiAppTypeCreate extends ApiCall<{ body: CreateAppTypeDto; }, AppTypeResponseDto> { readonly path = "/api/app-types"; readonly method: MoMethod; readonly auth = true; } /** * app-type|应用类型相关接口->查询应用类型列表 */ export declare class ApiAppTypeFindAll extends ApiCall<{ query: { page: number; pageSize: number; sortField?: string; sortOrder?: string; typeName?: string; typeCode?: string; typeStatus?: number; }; }, PageResponseDto & { list: Array; }> { readonly path = "/api/app-types"; readonly method: MoMethod; readonly auth = true; } /** * app-type|应用类型相关接口->查询所有应用类型 */ export declare class ApiAppTypeFindAllList extends ApiCall<{}, Array> { readonly path = "/api/app-types/all"; readonly method: MoMethod; readonly auth = true; } /** * app-type|应用类型相关接口->根据 ID 查询应用类型 */ export declare class ApiAppTypeFindById extends ApiCall<{ params: { id: string; }; }, AppTypeResponseDto> { readonly path = "/api/app-types/{id}"; readonly method: MoMethod; readonly auth = true; } /** * app-type|应用类型相关接口->更新应用类型 */ export declare class ApiAppTypeUpdate extends ApiCall<{ body: UpdateAppTypeDto; params: { id: string; }; }, AppTypeResponseDto> { readonly path = "/api/app-types/{id}"; readonly method: MoMethod; readonly auth = true; } /** * app-type|应用类型相关接口->删除应用类型 */ export declare class ApiAppTypeDelete extends ApiCall<{ params: { id: string; }; }, unknown> { readonly path = "/api/app-types/{id}"; readonly method: MoMethod; readonly auth = true; } /** * app-type|应用类型相关接口->获取权限池配置 */ export declare class ApiAppTypeGetPermissionPool extends ApiCall<{ params: { appTypeId: string; }; }, PermissionPoolResponseDto> { readonly path = "/api/app-types/{appTypeId}/permission-pool"; readonly method: MoMethod; readonly auth = true; } /** * app-type|应用类型相关接口->更新权限池配置 */ export declare class ApiAppTypeUpdatePermissionPool extends ApiCall<{ body: UpdatePermissionPoolDto; params: { appTypeId: string; }; }, UpdatePermissionPoolResponseDto> { readonly path = "/api/app-types/{appTypeId}/permission-pool"; readonly method: MoMethod; readonly auth = true; } /** * app-type|应用类型相关接口->更新应用类型状态 */ export declare class ApiAppTypeUpdateStatus extends ApiCall<{ body: StatusDto; params: { id: string; }; query: { status: number; }; }, AppTypeResponseDto> { readonly path = "/api/app-types/{id}/status"; readonly method: MoMethod; readonly auth = true; } /** * app-type|应用类型相关接口->获取自定义菜单 */ export declare class ApiAppTypeGetCustomMenu extends ApiCall<{ params: { id: string; }; }, unknown> { readonly path = "/api/app-types/{id}/custom-menu"; readonly method: MoMethod; readonly auth = true; } /** * app-type|应用类型相关接口->保存自定义菜单 */ export declare class ApiAppTypeSaveCustomMenu extends ApiCall<{ body: SaveCustomMenuDto; params: { id: string; }; }, unknown> { readonly path = "/api/app-types/{id}/custom-menu"; readonly method: MoMethod; readonly auth = true; } /** * app-type|应用类型相关接口->清空自定义菜单 */ export declare class ApiAppTypeClearCustomMenu extends ApiCall<{ params: { id: string; }; }, unknown> { readonly path = "/api/app-types/{id}/custom-menu"; readonly method: MoMethod; readonly auth = true; } /** * app|应用实例相关接口->创建应用实例 */ export declare class ApiAppCreate extends ApiCall<{ body: CreateAppDto; }, AppDetailResponseDto> { readonly path = "/api/apps"; readonly method: MoMethod; readonly auth = true; } /** * app|应用实例相关接口->查询应用实例列表 */ export declare class ApiAppFindAll extends ApiCall<{ query: { page: number; pageSize: number; sortField?: string; sortOrder?: string; appName?: string; appCode?: string; appTypeId?: string; ownerId?: string; appStatus?: number; }; }, PageResponseDto & { list: Array; }> { readonly path = "/api/apps"; readonly method: MoMethod; readonly auth = true; } /** * app|应用实例相关接口->根据 ID 查询应用实例 */ export declare class ApiAppFindById extends ApiCall<{ params: { id: string; }; }, AppDetailResponseDto> { readonly path = "/api/apps/{id}"; readonly method: MoMethod; readonly auth = true; } /** * app|应用实例相关接口->更新应用实例 */ export declare class ApiAppUpdate extends ApiCall<{ body: UpdateAppDto; params: { id: string; }; }, AppDetailResponseDto> { readonly path = "/api/apps/{id}"; readonly method: MoMethod; readonly auth = true; } /** * app|应用实例相关接口->删除应用实例 */ export declare class ApiAppDelete extends ApiCall<{ params: { id: string; }; }, unknown> { readonly path = "/api/apps/{id}"; readonly method: MoMethod; readonly auth = true; } /** * app|应用实例相关接口->变更负责人 */ export declare class ApiAppChangeOwner extends ApiCall<{ params: { id: string; }; query: { ownerId: string; }; }, AppDetailResponseDto> { readonly path = "/api/apps/{id}/owner"; readonly method: MoMethod; readonly auth = true; } /** * app|应用实例相关接口->更新应用实例状态 */ export declare class ApiAppUpdateStatus extends ApiCall<{ params: { id: string; }; query: { status: number; }; }, AppDetailResponseDto> { readonly path = "/api/apps/{id}/status"; readonly method: MoMethod; readonly auth = true; } /** * member|应用成员相关接口->添加应用成员 */ export declare class ApiAppMemberAddMember extends ApiCall<{ body: AddMemberDto; params: { appId: string; }; }, unknown> { readonly path = "/api/apps/{appId}/members"; readonly method: MoMethod; readonly auth = true; } /** * member|应用成员相关接口->获取应用成员列表 */ export declare class ApiAppMemberGetMembers extends ApiCall<{ params: { appId: string; }; query: { page: number; pageSize: number; sortField?: string; sortOrder?: string; nickname?: string; username?: string; }; }, PageResponseDto & { list: Array; }> { readonly path = "/api/apps/{appId}/members"; readonly method: MoMethod; readonly auth = true; } /** * member|应用成员相关接口->更新成员角色 */ export declare class ApiAppMemberUpdateRoles extends ApiCall<{ body: UpdateMemberRolesDto; params: { appId: string; userId: string; }; }, unknown> { readonly path = "/api/apps/{appId}/members/{userId}/roles"; readonly method: MoMethod; readonly auth = true; } /** * member|应用成员相关接口->移除应用成员 */ export declare class ApiAppMemberRemoveMember extends ApiCall<{ params: { appId: string; userId: string; }; }, unknown> { readonly path = "/api/apps/{appId}/members/{userId}"; readonly method: MoMethod; readonly auth = true; } /** * member|应用成员相关接口->获取可选角色列表 */ export declare class ApiAppMemberGetAvailableRoles extends ApiCall<{ params: { appId: string; }; }, Array> { readonly path = "/api/apps/{appId}/members/available-roles"; readonly method: MoMethod; readonly auth = true; } /** * audit-log|审计日志相关接口->查询审计日志列表 */ export declare class ApiAuditLogFindAll extends ApiCall<{ query: { page: number; pageSize: number; sortField?: string; sortOrder?: string; module?: string; event?: string; operatorId?: string; targetId?: string; startTime?: string; endTime?: string; }; }, PageResponseDto & { list: Array; }> { readonly path = "/api/audit-logs"; readonly method: MoMethod; readonly auth = true; } /** * audit-log|审计日志相关接口->根据 ID 查询审计日志 */ export declare class ApiAuditLogFindById extends ApiCall<{ params: { id: string; }; }, AuditLogResponseDto> { readonly path = "/api/audit-logs/{id}"; readonly method: MoMethod; readonly auth = true; } /** * audit-log|审计日志相关接口->根据目标 ID 查询审计日志 */ export declare class ApiAuditLogFindByTargetId extends ApiCall<{ params: { targetId: string; }; }, Array> { readonly path = "/api/audit-logs/target/{targetId}"; readonly method: MoMethod; readonly auth = true; } /** * audit-log|审计日志相关接口->根据操作人 ID 查询审计日志 */ export declare class ApiAuditLogFindByOperatorId extends ApiCall<{ params: { operatorId: string; }; }, Array> { readonly path = "/api/audit-logs/operator/{operatorId}"; readonly method: MoMethod; readonly auth = true; } /** * audit-log|审计日志相关接口->清理审计日志 */ export declare class ApiAuditLogDeleteBeforeDate extends ApiCall<{ params: { beforeDate: string; }; }, unknown> { readonly path = "/api/audit-logs/before/{beforeDate}"; readonly method: MoMethod; readonly auth = true; } /** * 系统初始化->检查系统是否已初始化 */ export declare class ApiInstallGetStatus extends ApiCall<{}, InitStatusResponseDto> { readonly path = "/api/install/status"; readonly method: MoMethod; readonly auth = false; } /** * 系统初始化->执行系统初始化 */ export declare class ApiInstallInitialize extends ApiCall<{ body: InitRequestDto; }, InitResponseDto> { readonly path = "/api/install/init"; readonly method: MoMethod; readonly auth = false; } /** * upload|文件上传相关接口->上传单个文件 */ export declare class ApiUploadFileUploadFile extends ApiCall<{ query: { businessType: string; }; }, unknown> { readonly path = "/api/upload-files"; readonly method: MoMethod; readonly auth = true; } /** * upload|文件上传相关接口->批量上传文件 */ export declare class ApiUploadFileUploadFiles extends ApiCall<{ query: { businessType: string; }; }, unknown> { readonly path = "/api/upload-files/batch"; readonly method: MoMethod; readonly auth = true; } //# sourceMappingURL=index.d.ts.map