ruoyi-plus-soybean/src/typings/api/system.api.d.ts

644 lines
17 KiB
TypeScript
Raw Normal View History

2024-08-16 16:33:11 +08:00
/**
* Namespace Api
*
* All backend api type
*/
declare namespace Api {
/**
* namespace System
*
* backend api module: "system"
*/
namespace System {
/** role */
type Role = Common.CommonRecord<{
2024-09-04 09:11:04 +08:00
/** 数据范围1全部数据权限 2自定数据权限 3本部门数据权限 4本部门及以下数据权限 */
2024-09-09 15:40:38 +08:00
dataScope: string;
2024-09-04 09:11:04 +08:00
/** 部门树选择项是否关联显示 */
2024-09-09 15:40:38 +08:00
deptCheckStrictly: boolean;
2024-09-04 09:11:04 +08:00
/** 用户是否存在此角色标识 默认不存在 */
2024-09-09 15:40:38 +08:00
flag: boolean;
2024-09-04 09:11:04 +08:00
/** 菜单树选择项是否关联显示 */
2024-09-09 15:40:38 +08:00
menuCheckStrictly: boolean;
2024-09-04 09:11:04 +08:00
/** 备注 */
remark?: string;
/** 角色ID */
2024-09-09 15:40:38 +08:00
roleId: number;
2024-09-04 09:11:04 +08:00
/** 角色权限字符串 */
2024-09-09 15:40:38 +08:00
roleKey: string;
2024-09-04 09:11:04 +08:00
/** 角色名称 */
2024-09-09 15:40:38 +08:00
roleName: string;
2024-09-04 09:11:04 +08:00
/** 显示顺序 */
2024-09-09 15:40:38 +08:00
roleSort: number;
2024-09-04 09:11:04 +08:00
/** 角色状态0正常 1停用 */
2024-09-09 15:40:38 +08:00
status: string;
2024-09-04 09:11:04 +08:00
/** 是否管理员 */
2024-09-09 15:40:38 +08:00
superAdmin: boolean;
2024-08-16 16:33:11 +08:00
}>;
/** role search params */
type RoleSearchParams = CommonType.RecordNullable<
2024-09-12 16:16:38 +08:00
Pick<Api.System.Role, 'roleName' | 'roleKey' | 'status'> & Api.Common.CommonSearchParams
>;
/** role operate params */
type RoleOperateParams = CommonType.RecordNullable<
Pick<
Api.System.Role,
| 'roleId'
| 'roleName'
| 'roleKey'
| 'roleSort'
| 'dataScope'
| 'menuCheckStrictly'
| 'deptCheckStrictly'
| 'status'
| 'remark'
>
2024-08-16 16:33:11 +08:00
>;
/** role list */
type RoleList = Common.PaginatingQueryRecord<Role>;
/** all role */
type AllRole = Pick<Role, 'roleId' | 'roleName' | 'roleKey'>;
/**
* user gender
*
* - "1": "male"
* - "2": "female"
*/
type UserGender = '1' | '2';
/** user */
2024-09-03 12:19:57 +08:00
type User = Common.CommonTenantRecord<{
/** 用户ID */
2024-09-09 15:40:38 +08:00
userId: CommonType.IdType;
2024-09-03 12:19:57 +08:00
/** 部门ID */
2024-09-09 15:40:38 +08:00
deptId: CommonType.IdType;
/** 部门名称 */
deptName: string;
2024-09-03 12:19:57 +08:00
/** 用户账号 */
2024-09-09 15:40:38 +08:00
userName: string;
2024-09-03 12:19:57 +08:00
/** 用户昵称 */
2024-09-09 15:40:38 +08:00
nickName: string;
2024-09-03 12:19:57 +08:00
/** 用户类型sys_user系统用户 */
2024-09-09 15:40:38 +08:00
userType: string;
2024-09-03 12:19:57 +08:00
/** 用户邮箱 */
2024-09-09 15:40:38 +08:00
email: string;
2024-09-03 12:19:57 +08:00
/** 手机号码 */
2024-09-09 15:40:38 +08:00
phonenumber: string;
2024-09-03 12:19:57 +08:00
/** 用户性别0男 1女 2未知 */
2024-09-09 15:40:38 +08:00
sex: string;
2024-09-03 12:19:57 +08:00
/** 头像地址 */
2024-09-09 15:40:38 +08:00
avatar: string;
2024-09-03 12:19:57 +08:00
/** 密码 */
2024-09-09 15:40:38 +08:00
password: string;
2024-09-03 12:19:57 +08:00
/** 帐号状态0正常 1停用 */
2024-09-09 15:40:38 +08:00
status: string;
2024-09-03 12:19:57 +08:00
/** 最后登录IP */
2024-09-09 15:40:38 +08:00
loginIp: string;
2024-09-03 12:19:57 +08:00
/** 最后登录时间 */
2024-09-09 15:40:38 +08:00
loginDate: Date;
2024-09-03 12:19:57 +08:00
/** 备注 */
remark?: string;
2024-08-16 16:33:11 +08:00
}>;
/** user search params */
type UserSearchParams = CommonType.RecordNullable<
2024-09-09 15:40:38 +08:00
Pick<User, 'deptId' | 'userName' | 'nickName' | 'phonenumber' | 'status'> & Common.CommonSearchParams
>;
/** user operate params */
type UserOperateParams = CommonType.RecordNullable<
Pick<
User,
| 'userId'
| 'deptId'
| 'userName'
| 'nickName'
| 'email'
| 'phonenumber'
| 'sex'
| 'password'
| 'status'
| 'remark'
2024-09-12 16:16:38 +08:00
> & { roleIds: CommonType.IdType[]; postIds: CommonType.IdType[] }
2024-08-16 16:33:11 +08:00
>;
2024-09-12 16:16:38 +08:00
/** user info */
type UserInfo = {
/** user post ids */
postIds: string[];
/** user role ids */
roleIds: string[];
};
2024-08-16 16:33:11 +08:00
/** user list */
type UserList = Common.PaginatingQueryRecord<User>;
2024-09-03 12:19:57 +08:00
/**
* icon type
*
* - "1": iconify icon
* - "2": local icon
*/
type IconType = '1' | '2';
2024-08-16 16:33:11 +08:00
/**
* menu type
*
* - "M": "目录"
* - "C": "菜单"
* - "F": "按钮"
*/
type MenuType = 'M' | 'C' | 'F';
2024-09-07 12:48:39 +08:00
/**
*
*
* - "0": "是"
* - "1": "否"
* - "2": "iframe"
*/
type IsMenuFrame = '0' | '1' | '2';
2024-09-03 12:19:57 +08:00
type Menu = Common.CommonRecord<{
/** 菜单 ID */
2024-09-09 15:40:38 +08:00
menuId: CommonType.IdType;
2024-09-03 12:19:57 +08:00
/** 父菜单 ID */
2024-09-09 15:40:38 +08:00
parentId: CommonType.IdType;
2024-09-03 12:19:57 +08:00
/** 菜单名称 */
2024-09-09 15:40:38 +08:00
menuName: string;
2024-09-03 12:19:57 +08:00
/** 显示顺序 */
2024-09-09 15:40:38 +08:00
orderNum: number;
2024-09-03 12:19:57 +08:00
/** 路由地址 */
2024-09-09 15:40:38 +08:00
path: string;
2024-09-03 12:19:57 +08:00
/** 组件路径 */
2024-09-09 15:40:38 +08:00
component: string;
2024-09-03 12:19:57 +08:00
/** 路由参数 */
2024-09-09 15:40:38 +08:00
queryParam: string;
2024-09-07 12:48:39 +08:00
/** 是否为外链0是 1否 2iframe */
2024-09-09 15:40:38 +08:00
isFrame: IsMenuFrame;
2024-09-03 12:19:57 +08:00
/** 是否缓存0缓存 1不缓存 */
2024-09-09 15:40:38 +08:00
isCache: Common.YesOrNoStatus;
2024-09-03 12:19:57 +08:00
/** 菜单类型M目录 C菜单 F按钮 */
2024-09-09 15:40:38 +08:00
menuType: MenuType;
2024-09-03 12:19:57 +08:00
/** 显示状态0显示 1隐藏 */
2024-09-09 15:40:38 +08:00
visible: Common.VisibleStatus;
2024-09-03 12:19:57 +08:00
/** 菜单状态0正常 1停用 */
2024-09-09 15:40:38 +08:00
status: Common.EnableStatus;
2024-09-03 12:19:57 +08:00
/** 权限标识 */
2024-09-09 15:40:38 +08:00
perms: string;
2024-09-03 12:19:57 +08:00
/** 菜单图标 */
2024-09-09 15:40:38 +08:00
icon: string;
2024-09-03 12:19:57 +08:00
/** 备注 */
remark?: string;
/** 父菜单名称 */
2024-09-09 15:40:38 +08:00
parentName: string;
2024-09-03 12:19:57 +08:00
/** 子菜单 */
2024-09-09 15:40:38 +08:00
children: MenuList;
2024-09-03 12:19:57 +08:00
}>;
2024-08-16 16:33:11 +08:00
/** menu list */
2024-09-04 15:50:09 +08:00
type MenuList = Menu[];
2024-09-03 12:19:57 +08:00
/** menu search params */
type MenuSearchParams = CommonType.RecordNullable<Pick<Menu, 'menuName' | 'status' | 'menuType' | 'parentId'>>;
2024-08-16 16:33:11 +08:00
2024-09-03 12:19:57 +08:00
/** menu operate params */
2024-09-09 15:40:38 +08:00
type MenuOperateParams = CommonType.RecordNullable<
Pick<
Menu,
| 'menuId'
| 'menuName'
| 'parentId'
| 'orderNum'
| 'path'
| 'component'
| 'queryParam'
| 'isFrame'
| 'isCache'
| 'menuType'
| 'visible'
| 'status'
| 'perms'
| 'icon'
| 'remark'
>
2024-09-03 12:19:57 +08:00
>;
2024-09-04 09:11:04 +08:00
2024-09-04 15:50:09 +08:00
/** 字典类型 */
type DictType = Common.CommonRecord<{
/** 字典主键 */
2025-03-23 11:00:34 +08:00
dictId: CommonType.IdType;
2024-09-04 15:50:09 +08:00
/** 字典名称 */
2024-09-09 15:40:38 +08:00
dictName: string;
2024-09-04 15:50:09 +08:00
/** 字典类型 */
2024-09-09 15:40:38 +08:00
dictType: string;
2024-09-04 15:50:09 +08:00
/** 备注 */
2024-09-09 15:40:38 +08:00
remark: string;
2024-09-04 15:50:09 +08:00
}>;
2025-03-23 11:00:34 +08:00
/** dict type search params */
type DictTypeSearchParams = CommonType.RecordNullable<
Pick<Api.System.DictType, 'dictName' | 'dictType'> & Api.Common.CommonSearchParams
>;
/** dict type operate params */
type DictTypeOperateParams = CommonType.RecordNullable<
Pick<Api.System.DictType, 'dictId' | 'dictName' | 'dictType' | 'remark'>
>;
/** dict type list */
type DictTypeList = Api.Common.PaginatingQueryRecord<DictType>;
2024-09-04 09:11:04 +08:00
/** 字典数据 */
2024-09-04 15:50:09 +08:00
type DictData = Common.CommonRecord<{
2024-09-04 09:11:04 +08:00
/** 样式属性(其他样式扩展) */
2024-09-09 15:40:38 +08:00
cssClass: string;
2024-09-04 09:11:04 +08:00
/** 字典编码 */
2025-03-23 11:00:34 +08:00
dictCode: CommonType.IdType;
2024-09-04 09:11:04 +08:00
/** 字典标签 */
2024-09-09 15:40:38 +08:00
dictLabel: string;
2024-09-04 09:11:04 +08:00
/** 字典排序 */
2024-09-09 15:40:38 +08:00
dictSort: number;
2024-09-04 09:11:04 +08:00
/** 字典类型 */
2024-09-09 15:40:38 +08:00
dictType: string;
2024-09-04 09:11:04 +08:00
/** 字典键值 */
2024-09-09 15:40:38 +08:00
dictValue: string;
2024-09-04 09:11:04 +08:00
/** 是否默认Y是 N否 */
2024-09-09 15:40:38 +08:00
isDefault: string;
2024-09-04 09:11:04 +08:00
/** 表格回显样式 */
2024-09-11 16:37:35 +08:00
listClass: NaiveUI.ThemeColor;
2024-09-04 09:11:04 +08:00
/** 备注 */
2024-09-09 15:40:38 +08:00
remark: string;
2024-09-04 09:11:04 +08:00
}>;
2024-09-12 16:16:38 +08:00
2025-03-23 11:00:34 +08:00
/** dict data search params */
type DictDataSearchParams = CommonType.RecordNullable<
Pick<Api.System.DictData, 'dictLabel' | 'dictType'> & Api.Common.CommonSearchParams
>;
/** dict data operate params */
type DictDataOperateParams = CommonType.RecordNullable<
Pick<
Api.System.DictData,
'dictCode' | 'dictSort' | 'dictLabel' | 'dictValue' | 'dictType' | 'cssClass' | 'listClass' | 'remark'
2025-03-23 11:00:34 +08:00
>
>;
/** dict data list */
type DictDataList = Api.Common.PaginatingQueryRecord<DictData>;
2024-09-12 16:16:38 +08:00
/** dept */
type Dept = Api.Common.CommonRecord<{
/** 部门id */
deptId: CommonType.IdType;
/** 租户编号 */
tenantId: CommonType.IdType;
/** 父部门id */
parentId: CommonType.IdType;
/** 祖级列表 */
ancestors: string;
/** 部门名称 */
deptName: string;
/** 部门类别编码 */
deptCategory: string;
/** 显示顺序 */
orderNum: number;
/** 负责人 */
leader: number;
/** 联系电话 */
phone: string;
/** 邮箱 */
email: string;
/** 部门状态0正常 1停用 */
status: string;
/** 子部门 */
children: Dept[];
2024-09-12 16:16:38 +08:00
}>;
/** dept search params */
type DeptSearchParams = CommonType.RecordNullable<
Pick<Api.System.Dept, 'deptName' | 'status'> & Api.Common.CommonSearchParams
2024-09-12 16:16:38 +08:00
>;
/** dept operate params */
type DeptOperateParams = CommonType.RecordNullable<
Pick<
Api.System.Dept,
'deptId' | 'parentId' | 'deptName' | 'deptCategory' | 'orderNum' | 'leader' | 'phone' | 'email' | 'status'
>
>;
/** dept list */
type DeptList = Api.Common.PaginatingQueryRecord<Dept>;
/** post */
type Post = Common.CommonRecord<{
/** 岗位ID */
postId: CommonType.IdType;
/** 租户编号 */
tenantId: CommonType.IdType;
/** 部门id */
deptId: CommonType.IdType;
/** 岗位编码 */
postCode: string;
/** 类别编码 */
postCategory: string;
/** 岗位名称 */
postName: string;
/** 显示顺序 */
postSort: number;
/** 状态0正常 1停用 */
status: string;
/** 备注 */
remark: string;
}>;
/** post search params */
type PostSearchParams = CommonType.RecordNullable<
Pick<Api.System.Post, 'deptId' | 'postCode' | 'postName' | 'status'> & {
belongDeptId: CommonType.IdType;
} & Api.Common.CommonSearchParams
2024-09-12 16:16:38 +08:00
>;
/** post operate params */
type PostOperateParams = CommonType.RecordNullable<
Pick<
Api.System.Post,
'postId' | 'deptId' | 'postCode' | 'postCategory' | 'postName' | 'postSort' | 'status' | 'remark'
>
>;
/** post list */
type PostList = Api.Common.PaginatingQueryRecord<Post>;
2025-03-12 00:03:32 +08:00
/** config */
type Config = Common.CommonRecord<{
/** 参数主键 */
configId: CommonType.IdType;
/** 租户编号 */
tenantId: CommonType.IdType;
/** 参数名称 */
configName: string;
/** 参数键名 */
configKey: string;
/** 参数键值 */
configValue: string;
/** 是否内置 */
configType: string;
/** 备注 */
remark: string;
}>;
/** config search params */
type ConfigSearchParams = CommonType.RecordNullable<
Pick<Api.System.Config, 'configName' | 'configKey' | 'configType' | 'createTime'> & Api.Common.CommonSearchParams
>;
/** config operate params */
type ConfigOperateParams = CommonType.RecordNullable<
Pick<Api.System.Config, 'configId' | 'configName' | 'configKey' | 'configValue' | 'configType' | 'remark'>
>;
/** config list */
type ConfigList = Api.Common.PaginatingQueryRecord<Config>;
2025-03-12 00:03:32 +08:00
/** tenant */
type Tenant = Common.CommonRecord<{
/** id */
id: CommonType.IdType;
/** 租户编号 */
tenantId: CommonType.IdType;
/** 联系人 */
contactUserName: string;
/** 联系电话 */
contactPhone: string;
/** 企业名称 */
companyName: string;
/** 统一社会信用代码 */
licenseNumber: string;
/** 地址 */
address: string;
/** 企业简介 */
intro: string;
/** 域名 */
domain: string;
/** 备注 */
remark: string;
/** 租户套餐编号 */
packageId: CommonType.IdType;
/** 过期时间 */
expireTime: string;
/** 用户数量(-1不限制 */
accountCount: number;
/** 租户状态0正常 1停用 */
status: string;
/** 删除标志0代表存在 1代表删除 */
delFlag: string;
}>;
/** tenant search params */
type TenantSearchParams = CommonType.RecordNullable<
Pick<Api.System.Tenant, 'tenantId' | 'contactUserName' | 'contactPhone' | 'companyName'> &
Api.Common.CommonSearchParams
2025-03-12 00:03:32 +08:00
>;
/** tenant operate params */
type TenantOperateParams = CommonType.RecordNullable<
Pick<
Api.System.Tenant,
| 'id'
| 'tenantId'
| 'contactUserName'
| 'contactPhone'
| 'companyName'
| 'licenseNumber'
| 'address'
| 'intro'
| 'domain'
| 'remark'
| 'packageId'
| 'expireTime'
| 'accountCount'
| 'status'
> & {
username: string;
password: string;
}
>;
/** tenant list */
type TenantList = Api.Common.PaginatingQueryRecord<Tenant>;
/** tenant package */
type TenantPackage = Common.CommonRecord<{
/** 租户套餐id */
packageId: CommonType.IdType;
/** 套餐名称 */
packageName: string;
/** 关联菜单id */
menuIds: CommonType.IdType;
/** 备注 */
remark: string;
/** 菜单树选择项是否关联显示 */
menuCheckStrictly: number;
/** 状态0正常 1停用 */
status: string;
/** 删除标志0代表存在 1代表删除 */
delFlag: string;
}>;
/** tenant package search params */
type TenantPackageSearchParams = CommonType.RecordNullable<
Pick<Api.System.TenantPackage, 'packageName' | 'menuIds' | 'menuCheckStrictly' | 'status'> &
Api.Common.CommonSearchParams
2025-03-12 00:03:32 +08:00
>;
/** tenant package operate params */
type TenantPackageOperateParams = CommonType.RecordNullable<
Pick<
Api.System.TenantPackage,
'packageId' | 'packageName' | 'menuIds' | 'remark' | 'menuCheckStrictly' | 'status'
>
>;
/** tenant package list */
type TenantPackageList = Api.Common.PaginatingQueryRecord<TenantPackage>;
/** tenant package select list */
type TenantPackageSelectList = Common.CommonRecord<Pick<TenantPackage, 'packageId' | 'packageName'>>;
/** notice */
type Notice = Common.CommonRecord<{
/** 公告ID */
noticeId: CommonType.IdType;
/** 租户编号 */
tenantId: CommonType.IdType;
/** 公告标题 */
noticeTitle: string;
/** 公告类型 */
noticeType: string;
/** 公告内容 */
noticeContent: string;
/** 公告状态 */
status: string;
/** 创建者 */
createByName: string;
/** 备注 */
remark: string;
}>;
/** notice search params */
type NoticeSearchParams = CommonType.RecordNullable<
Pick<Api.System.Notice, 'noticeTitle' | 'noticeType'> & Api.Common.CommonSearchParams
>;
/** notice operate params */
type NoticeOperateParams = CommonType.RecordNullable<
Pick<Api.System.Notice, 'noticeId' | 'noticeTitle' | 'noticeType' | 'noticeContent' | 'status'>
>;
/** notice list */
type NoticeList = Api.Common.PaginatingQueryRecord<Notice>;
/** client */
type Client = Common.CommonRecord<{
/** id */
id: CommonType.IdType;
/** 客户端id */
clientId: string;
/** 客户端key */
clientKey: string;
/** 客户端秘钥 */
clientSecret: string;
/** 授权类型 */
grantType: string;
/** 授权类型列表 */
grantTypeList: string[];
/** 设备类型 */
deviceType: string;
/** token活跃超时时间 */
activeTimeout: number;
/** token固定超时 */
timeout: number;
/** 状态 */
status: string;
/** 删除标志0代表存在 1代表删除 */
delFlag: string;
}>;
/** client search params */
type ClientSearchParams = CommonType.RecordNullable<
Pick<Api.System.Client, 'clientKey' | 'clientSecret' | 'status'> & Api.Common.CommonSearchParams
>;
/** client operate params */
type ClientOperateParams = CommonType.RecordNullable<
Pick<
Api.System.Client,
| 'id'
| 'clientId'
| 'clientKey'
| 'clientSecret'
| 'grantTypeList'
| 'deviceType'
| 'activeTimeout'
| 'timeout'
| 'status'
>
>;
/** client list */
type ClientList = Api.Common.PaginatingQueryRecord<Client>;
2025-04-24 17:36:38 +08:00
/** social source */
type SocialSource =
| 'maxkey'
| 'topiam'
| 'qq'
| 'weibo'
| 'gitee'
| 'dingtalk'
| 'baidu'
| 'csdn'
| 'coding'
| 'oschina'
| 'alipay_wallet'
| 'wechat_open'
| 'wechat_mp'
| 'wechat_enterprise'
| 'gitlab';
2025-04-24 22:23:08 +08:00
/** oss */
type Oss = Common.CommonRecord<{
/** 对象存储主键 */
ossId: CommonType.IdType;
/** 租户编号 */
tenantId: CommonType.IdType;
/** 文件名 */
fileName: string;
/** 原名 */
originalName: string;
/** 后缀名 */
fileSuffix: string;
/** 文件预览 */
url: string;
/** 服务商 */
service: string;
/** 创建者 */
createByName: string;
}>;
/** oss search params */
type OssSearchParams = CommonType.RecordNullable<
Pick<Api.System.Oss, 'fileName' | 'originalName' | 'fileSuffix' | 'service'> & Api.Common.CommonSearchParams
>;
/** oss list */
type OssList = Api.Common.PaginatingQueryRecord<Oss>;
2024-08-16 16:33:11 +08:00
}
}