mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
feat: 测试代码生成
This commit is contained in:
191
src/typings/api/system.api.d.ts
vendored
191
src/typings/api/system.api.d.ts
vendored
@ -13,32 +13,32 @@ declare namespace Api {
|
||||
/** role */
|
||||
type Role = Common.CommonRecord<{
|
||||
/** 数据范围(1:全部数据权限 2:自定数据权限 3:本部门数据权限 4:本部门及以下数据权限) */
|
||||
dataScope?: string;
|
||||
dataScope: string;
|
||||
/** 部门树选择项是否关联显示 */
|
||||
deptCheckStrictly?: boolean;
|
||||
deptCheckStrictly: boolean;
|
||||
/** 用户是否存在此角色标识 默认不存在 */
|
||||
flag?: boolean;
|
||||
flag: boolean;
|
||||
/** 菜单树选择项是否关联显示 */
|
||||
menuCheckStrictly?: boolean;
|
||||
menuCheckStrictly: boolean;
|
||||
/** 备注 */
|
||||
remark?: string;
|
||||
/** 角色ID */
|
||||
roleId?: number;
|
||||
roleId: number;
|
||||
/** 角色权限字符串 */
|
||||
roleKey?: string;
|
||||
roleKey: string;
|
||||
/** 角色名称 */
|
||||
roleName?: string;
|
||||
roleName: string;
|
||||
/** 显示顺序 */
|
||||
roleSort?: number;
|
||||
roleSort: number;
|
||||
/** 角色状态(0正常 1停用) */
|
||||
status?: string;
|
||||
status: string;
|
||||
/** 是否管理员 */
|
||||
superAdmin?: boolean;
|
||||
superAdmin: boolean;
|
||||
}>;
|
||||
|
||||
/** role search params */
|
||||
type RoleSearchParams = CommonType.RecordNullable<
|
||||
Pick<Role, 'roleName' | 'roleKey' | 'status'> & Common.CommonSearchParams<Role>
|
||||
Pick<Role, 'roleName' | 'roleKey' | 'status'> & Common.CommonSearchParams
|
||||
>;
|
||||
|
||||
/** role list */
|
||||
@ -58,40 +58,59 @@ declare namespace Api {
|
||||
/** user */
|
||||
type User = Common.CommonTenantRecord<{
|
||||
/** 用户ID */
|
||||
userId?: CommonType.IdType;
|
||||
userId: CommonType.IdType;
|
||||
/** 部门ID */
|
||||
deptId?: CommonType.IdType;
|
||||
deptId: CommonType.IdType;
|
||||
/** 部门名称 */
|
||||
deptName: string;
|
||||
/** 用户账号 */
|
||||
userName?: string;
|
||||
userName: string;
|
||||
/** 用户昵称 */
|
||||
nickName?: string;
|
||||
nickName: string;
|
||||
/** 用户类型(sys_user系统用户) */
|
||||
userType?: string;
|
||||
userType: string;
|
||||
/** 用户邮箱 */
|
||||
email?: string;
|
||||
email: string;
|
||||
/** 手机号码 */
|
||||
phonenumber?: string;
|
||||
phonenumber: string;
|
||||
/** 用户性别(0男 1女 2未知) */
|
||||
sex?: string;
|
||||
sex: string;
|
||||
/** 头像地址 */
|
||||
avatar?: number;
|
||||
avatar: string;
|
||||
/** 密码 */
|
||||
password?: string;
|
||||
password: string;
|
||||
/** 帐号状态(0正常 1停用) */
|
||||
status?: string;
|
||||
status: string;
|
||||
/** 删除标志(0代表存在 2代表删除) */
|
||||
delFlag?: string;
|
||||
delFlag: string;
|
||||
/** 最后登录IP */
|
||||
loginIp?: string;
|
||||
loginIp: string;
|
||||
/** 最后登录时间 */
|
||||
loginDate?: Date;
|
||||
loginDate: Date;
|
||||
/** 备注 */
|
||||
remark?: string;
|
||||
}>;
|
||||
|
||||
/** user search params */
|
||||
type UserSearchParams = CommonType.RecordNullable<
|
||||
Pick<User, 'userName' | 'sex' | 'nickName' | 'phonenumber' | 'email' | 'status'> & Common.CommonSearchParams<User>
|
||||
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'
|
||||
> & { roleIds: string[] }
|
||||
>;
|
||||
|
||||
/** user list */
|
||||
@ -100,33 +119,33 @@ declare namespace Api {
|
||||
/** tenant */
|
||||
interface Tenant {
|
||||
/** id */
|
||||
id?: CommonType.IdType;
|
||||
id: CommonType.IdType;
|
||||
/** 租户编号 */
|
||||
tenantId?: string;
|
||||
tenantId: string;
|
||||
/** 联系人 */
|
||||
contactUserName?: string;
|
||||
contactUserName: string;
|
||||
/** 联系电话 */
|
||||
contactPhone?: string;
|
||||
contactPhone: string;
|
||||
/** 企业名称 */
|
||||
companyName?: string;
|
||||
companyName: string;
|
||||
/** 统一社会信用代码 */
|
||||
licenseNumber?: string;
|
||||
licenseNumber: string;
|
||||
/** 地址 */
|
||||
address?: string;
|
||||
address: string;
|
||||
/** 域名 */
|
||||
domain?: string;
|
||||
domain: string;
|
||||
/** 企业简介 */
|
||||
intro?: string;
|
||||
intro: string;
|
||||
/** 备注 */
|
||||
remark?: string;
|
||||
/** 租户套餐编号 */
|
||||
packageId?: number;
|
||||
packageId: number;
|
||||
/** 过期时间 */
|
||||
expireTime?: Date;
|
||||
expireTime: Date;
|
||||
/** 用户数量(-1不限制) */
|
||||
accountCount?: number;
|
||||
accountCount: number;
|
||||
/** 租户状态(0正常 1停用) */
|
||||
status?: string;
|
||||
status: string;
|
||||
/** 删除标志(0代表存在 2代表删除) */
|
||||
delFlag: string;
|
||||
}
|
||||
@ -159,39 +178,39 @@ declare namespace Api {
|
||||
|
||||
type Menu = Common.CommonRecord<{
|
||||
/** 菜单 ID */
|
||||
menuId?: CommonType.IdType;
|
||||
menuId: CommonType.IdType;
|
||||
/** 父菜单 ID */
|
||||
parentId?: CommonType.IdType;
|
||||
parentId: CommonType.IdType;
|
||||
/** 菜单名称 */
|
||||
menuName?: string;
|
||||
menuName: string;
|
||||
/** 显示顺序 */
|
||||
orderNum?: number;
|
||||
orderNum: number;
|
||||
/** 路由地址 */
|
||||
path?: string;
|
||||
path: string;
|
||||
/** 组件路径 */
|
||||
component?: string;
|
||||
component: string;
|
||||
/** 路由参数 */
|
||||
queryParam?: string;
|
||||
queryParam: string;
|
||||
/** 是否为外链(0是 1否 2iframe) */
|
||||
isFrame?: IsMenuFrame;
|
||||
isFrame: IsMenuFrame;
|
||||
/** 是否缓存(0缓存 1不缓存) */
|
||||
isCache?: Common.YesOrNoStatus;
|
||||
isCache: Common.YesOrNoStatus;
|
||||
/** 菜单类型(M目录 C菜单 F按钮) */
|
||||
menuType?: MenuType;
|
||||
menuType: MenuType;
|
||||
/** 显示状态(0显示 1隐藏) */
|
||||
visible?: Common.VisibleStatus;
|
||||
visible: Common.VisibleStatus;
|
||||
/** 菜单状态(0正常 1停用) */
|
||||
status?: Common.EnableStatus;
|
||||
status: Common.EnableStatus;
|
||||
/** 权限标识 */
|
||||
perms?: string;
|
||||
perms: string;
|
||||
/** 菜单图标 */
|
||||
icon?: string;
|
||||
icon: string;
|
||||
/** 备注 */
|
||||
remark?: string;
|
||||
/** 父菜单名称 */
|
||||
parentName?: string;
|
||||
parentName: string;
|
||||
/** 子菜单 */
|
||||
children?: MenuList;
|
||||
children: MenuList;
|
||||
}>;
|
||||
|
||||
/** menu list */
|
||||
@ -201,57 +220,59 @@ declare namespace Api {
|
||||
type MenuSearchParams = CommonType.RecordNullable<Pick<Menu, 'menuName' | 'status' | 'menuType' | 'parentId'>>;
|
||||
|
||||
/** menu operate params */
|
||||
type MenuOperateParams = Pick<
|
||||
Menu,
|
||||
| 'menuId'
|
||||
| 'menuName'
|
||||
| 'parentId'
|
||||
| 'orderNum'
|
||||
| 'path'
|
||||
| 'component'
|
||||
| 'queryParam'
|
||||
| 'isFrame'
|
||||
| 'isCache'
|
||||
| 'menuType'
|
||||
| 'visible'
|
||||
| 'status'
|
||||
| 'perms'
|
||||
| 'icon'
|
||||
| 'remark'
|
||||
type MenuOperateParams = CommonType.RecordNullable<
|
||||
Pick<
|
||||
Menu,
|
||||
| 'menuId'
|
||||
| 'menuName'
|
||||
| 'parentId'
|
||||
| 'orderNum'
|
||||
| 'path'
|
||||
| 'component'
|
||||
| 'queryParam'
|
||||
| 'isFrame'
|
||||
| 'isCache'
|
||||
| 'menuType'
|
||||
| 'visible'
|
||||
| 'status'
|
||||
| 'perms'
|
||||
| 'icon'
|
||||
| 'remark'
|
||||
>
|
||||
>;
|
||||
|
||||
/** 字典类型 */
|
||||
type DictType = Common.CommonRecord<{
|
||||
/** 字典主键 */
|
||||
dictId?: number;
|
||||
dictId: number;
|
||||
/** 字典名称 */
|
||||
dictName?: string;
|
||||
dictName: string;
|
||||
/** 字典类型 */
|
||||
dictType?: string;
|
||||
dictType: string;
|
||||
/** 备注 */
|
||||
remark?: string;
|
||||
remark: string;
|
||||
}>;
|
||||
|
||||
/** 字典数据 */
|
||||
type DictData = Common.CommonRecord<{
|
||||
/** 样式属性(其他样式扩展) */
|
||||
cssClass?: string;
|
||||
cssClass: string;
|
||||
/** 字典编码 */
|
||||
dictCode?: number;
|
||||
dictCode: number;
|
||||
/** 字典标签 */
|
||||
dictLabel?: string;
|
||||
dictLabel: string;
|
||||
/** 字典排序 */
|
||||
dictSort?: number;
|
||||
dictSort: number;
|
||||
/** 字典类型 */
|
||||
dictType?: string;
|
||||
dictType: string;
|
||||
/** 字典键值 */
|
||||
dictValue?: string;
|
||||
dictValue: string;
|
||||
/** 是否默认(Y是 N否) */
|
||||
isDefault?: string;
|
||||
isDefault: string;
|
||||
/** 表格回显样式 */
|
||||
listClass?: string;
|
||||
listClass: string;
|
||||
/** 备注 */
|
||||
remark?: string;
|
||||
remark: string;
|
||||
}>;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user