mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
feat: 完成代码生成模板(1.0)
This commit is contained in:
7
src/typings/api/api.d.ts
vendored
7
src/typings/api/api.d.ts
vendored
@ -21,7 +21,12 @@ declare namespace Api {
|
||||
}
|
||||
|
||||
/** common search params of table */
|
||||
type CommonSearchParams = Pick<Common.PaginatingCommonParams, 'pageNum' | 'pageSize'>;
|
||||
type CommonSearchParams<T = any> = Pick<Common.PaginatingCommonParams, 'pageNum' | 'pageSize'> &
|
||||
CommonType.RecordNullable<{
|
||||
orderByColumn: keyof T;
|
||||
isAsc: 'asc' | 'desc';
|
||||
params: { [key: string]: any };
|
||||
}>;
|
||||
|
||||
/**
|
||||
* 启用状态
|
||||
|
6
src/typings/api/system.api.d.ts
vendored
6
src/typings/api/system.api.d.ts
vendored
@ -10,8 +10,6 @@ declare namespace Api {
|
||||
* backend api module: "system"
|
||||
*/
|
||||
namespace System {
|
||||
type CommonSearchParams = Pick<Common.PaginatingCommonParams, 'pageNum' | 'pageSize'>;
|
||||
|
||||
/** role */
|
||||
type Role = Common.CommonRecord<{
|
||||
/** 数据范围(1:全部数据权限 2:自定数据权限 3:本部门数据权限 4:本部门及以下数据权限) */
|
||||
@ -40,7 +38,7 @@ declare namespace Api {
|
||||
|
||||
/** role search params */
|
||||
type RoleSearchParams = CommonType.RecordNullable<
|
||||
Pick<Role, 'roleName' | 'roleKey' | 'status'> & CommonSearchParams
|
||||
Pick<Role, 'roleName' | 'roleKey' | 'status'> & Common.CommonSearchParams<Role>
|
||||
>;
|
||||
|
||||
/** role list */
|
||||
@ -93,7 +91,7 @@ declare namespace Api {
|
||||
|
||||
/** user search params */
|
||||
type UserSearchParams = CommonType.RecordNullable<
|
||||
Pick<User, 'userName' | 'sex' | 'nickName' | 'phonenumber' | 'email' | 'status'> & CommonSearchParams
|
||||
Pick<User, 'userName' | 'sex' | 'nickName' | 'phonenumber' | 'email' | 'status'> & Common.CommonSearchParams<User>
|
||||
>;
|
||||
|
||||
/** user list */
|
||||
|
Reference in New Issue
Block a user