mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
feat:整合租户管理功能 commit!
This commit is contained in:
139
src/typings/api/system.api.d.ts
vendored
139
src/typings/api/system.api.d.ts
vendored
@ -138,40 +138,6 @@ declare namespace Api {
|
||||
/** user list */
|
||||
type UserList = Common.PaginatingQueryRecord<User>;
|
||||
|
||||
/** tenant */
|
||||
interface Tenant {
|
||||
/** id */
|
||||
id: CommonType.IdType;
|
||||
/** 租户编号 */
|
||||
tenantId: string;
|
||||
/** 联系人 */
|
||||
contactUserName: string;
|
||||
/** 联系电话 */
|
||||
contactPhone: string;
|
||||
/** 企业名称 */
|
||||
companyName: string;
|
||||
/** 统一社会信用代码 */
|
||||
licenseNumber: string;
|
||||
/** 地址 */
|
||||
address: string;
|
||||
/** 域名 */
|
||||
domain: string;
|
||||
/** 企业简介 */
|
||||
intro: string;
|
||||
/** 备注 */
|
||||
remark?: string;
|
||||
/** 租户套餐编号 */
|
||||
packageId: number;
|
||||
/** 过期时间 */
|
||||
expireTime: Date;
|
||||
/** 用户数量(-1不限制) */
|
||||
accountCount: number;
|
||||
/** 租户状态(0正常 1停用) */
|
||||
status: string;
|
||||
/** 删除标志(0代表存在 2代表删除) */
|
||||
delFlag: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* icon type
|
||||
*
|
||||
@ -377,5 +343,110 @@ declare namespace Api {
|
||||
|
||||
/** post list */
|
||||
type PostList = Api.Common.PaginatingQueryRecord<Post>;
|
||||
|
||||
/** 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
|
||||
>;
|
||||
|
||||
/** 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
|
||||
>;
|
||||
|
||||
/** 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'>>;
|
||||
}
|
||||
}
|
||||
|
4
src/typings/components.d.ts
vendored
4
src/typings/components.d.ts
vendored
@ -39,12 +39,16 @@ declare module 'vue' {
|
||||
IconIcRoundUpload: typeof import('~icons/ic/round-upload')['default']
|
||||
IconLocalBanner: typeof import('~icons/local/banner')['default']
|
||||
IconLocalLogo: typeof import('~icons/local/logo')['default']
|
||||
IconMaterialSymbolsHelpOutline: typeof import('~icons/material-symbols/help-outline')['default']
|
||||
IconMdiArrowDownThin: typeof import('~icons/mdi/arrow-down-thin')['default']
|
||||
IconMdiArrowUpThin: typeof import('~icons/mdi/arrow-up-thin')['default']
|
||||
IconMdiDrag: typeof import('~icons/mdi/drag')['default']
|
||||
IconMdiKeyboardEsc: typeof import('~icons/mdi/keyboard-esc')['default']
|
||||
IconMdiKeyboardReturn: typeof import('~icons/mdi/keyboard-return')['default']
|
||||
IconMdiRefresh: typeof import('~icons/mdi/refresh')['default']
|
||||
'IconMingcute:questionLine': typeof import('~icons/mingcute/question-line')['default']
|
||||
'IconPh:questionLight': typeof import('~icons/ph/question-light')['default']
|
||||
'IconStash:questionLight': typeof import('~icons/stash/question-light')['default']
|
||||
IconUilSearch: typeof import('~icons/uil/search')['default']
|
||||
LangSwitch: typeof import('./../components/common/lang-switch.vue')['default']
|
||||
LookForward: typeof import('./../components/custom/look-forward.vue')['default']
|
||||
|
2
src/typings/elegant-router.d.ts
vendored
2
src/typings/elegant-router.d.ts
vendored
@ -25,6 +25,7 @@ declare module "@elegant-router/types" {
|
||||
"login": "/login/:module(pwd-login|code-login|register|reset-pwd|bind-wechat)?";
|
||||
"system": "/system";
|
||||
"system_menu": "/system/menu";
|
||||
"system_tenant": "/system/tenant";
|
||||
"system_user": "/system/user";
|
||||
"tool": "/tool";
|
||||
"tool_gen": "/tool/gen";
|
||||
@ -90,6 +91,7 @@ declare module "@elegant-router/types" {
|
||||
| "login"
|
||||
| "home"
|
||||
| "system_menu"
|
||||
| "system_tenant"
|
||||
| "system_user"
|
||||
| "tool_gen"
|
||||
>;
|
||||
|
Reference in New Issue
Block a user