From e3ebfbe9332e75475df921b28b5854216af1bd77 Mon Sep 17 00:00:00 2001 From: xingyu4j Date: Sun, 7 Jun 2026 12:42:18 +0800 Subject: [PATCH] =?UTF-8?q?fix(api):=20=E5=AF=B9=E9=BD=90=20system=20?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E5=89=8D=E7=AB=AF=20API=20=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E4=B8=8E=E5=90=8E=E7=AB=AF=20VO?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复类型不匹配: - user: 添加 password/deptName/loginDate, postIds string[]→number[] - tenant: 添加 username/password/createTime - login-log: traceId number→string, 删除多余 status - notify/message: templateParams string→Record - mail/log: templateParams string→Record - oauth2/client: autoApprove→autoApproveScopes string[], 删除 isAdditionalInformationJson 补充缺失字段: - role: 添加 remark - notify/template: 添加 createTime - mail/template: 添加 remark 删除未使用的多余字段: - notice: 删除 remark/creator - tenant-package: 删除 creator/updater/updateTime - mail/account: 删除 status/remark - operate-log: 删除 creator/creatorName --- apps/web-antd/src/api/system/login-log/index.ts | 3 +-- apps/web-antd/src/api/system/mail/account/index.ts | 2 -- apps/web-antd/src/api/system/mail/log/index.ts | 2 +- apps/web-antd/src/api/system/mail/template/index.ts | 1 + apps/web-antd/src/api/system/notice/index.ts | 2 -- apps/web-antd/src/api/system/notify/message/index.ts | 2 +- apps/web-antd/src/api/system/notify/template/index.ts | 1 + apps/web-antd/src/api/system/oauth2/client/index.ts | 3 +-- apps/web-antd/src/api/system/operate-log/index.ts | 2 -- apps/web-antd/src/api/system/role/index.ts | 1 + apps/web-antd/src/api/system/tenant-package/index.ts | 3 --- apps/web-antd/src/api/system/tenant/index.ts | 3 +++ apps/web-antd/src/api/system/user/index.ts | 5 ++++- 13 files changed, 14 insertions(+), 16 deletions(-) diff --git a/apps/web-antd/src/api/system/login-log/index.ts b/apps/web-antd/src/api/system/login-log/index.ts index 4be20d9ed..5ad00ac80 100644 --- a/apps/web-antd/src/api/system/login-log/index.ts +++ b/apps/web-antd/src/api/system/login-log/index.ts @@ -7,12 +7,11 @@ export namespace SystemLoginLogApi { export interface LoginLog { id: number; logType: number; - traceId: number; + traceId: string; userId: number; userType: number; username: string; result: number; - status: number; userIp: string; userAgent: string; createTime: string; diff --git a/apps/web-antd/src/api/system/mail/account/index.ts b/apps/web-antd/src/api/system/mail/account/index.ts index 7f506fd87..bb1db9883 100644 --- a/apps/web-antd/src/api/system/mail/account/index.ts +++ b/apps/web-antd/src/api/system/mail/account/index.ts @@ -13,9 +13,7 @@ export namespace SystemMailAccountApi { port: number; sslEnable: boolean; starttlsEnable: boolean; - status: number; createTime: Date; - remark: string; } } diff --git a/apps/web-antd/src/api/system/mail/log/index.ts b/apps/web-antd/src/api/system/mail/log/index.ts index c32b790e1..1bb9e42f3 100644 --- a/apps/web-antd/src/api/system/mail/log/index.ts +++ b/apps/web-antd/src/api/system/mail/log/index.ts @@ -18,7 +18,7 @@ export namespace SystemMailLogApi { templateNickname: string; templateTitle: string; templateContent: string; - templateParams: string; + templateParams: Record; sendStatus: number; sendTime: string; sendMessageId: string; diff --git a/apps/web-antd/src/api/system/mail/template/index.ts b/apps/web-antd/src/api/system/mail/template/index.ts index fffd5d62b..129a4822d 100644 --- a/apps/web-antd/src/api/system/mail/template/index.ts +++ b/apps/web-antd/src/api/system/mail/template/index.ts @@ -13,6 +13,7 @@ export namespace SystemMailTemplateApi { title: string; content: string; params: string[]; + remark?: string; status: number; createTime: Date; } diff --git a/apps/web-antd/src/api/system/notice/index.ts b/apps/web-antd/src/api/system/notice/index.ts index 5ae888538..0d87603d1 100644 --- a/apps/web-antd/src/api/system/notice/index.ts +++ b/apps/web-antd/src/api/system/notice/index.ts @@ -10,8 +10,6 @@ export namespace SystemNoticeApi { type: number; content: string; status: number; - remark: string; - creator?: string; createTime?: Date; } } diff --git a/apps/web-antd/src/api/system/notify/message/index.ts b/apps/web-antd/src/api/system/notify/message/index.ts index a8a4e8968..bab4ee599 100644 --- a/apps/web-antd/src/api/system/notify/message/index.ts +++ b/apps/web-antd/src/api/system/notify/message/index.ts @@ -13,7 +13,7 @@ export namespace SystemNotifyMessageApi { templateNickname: string; templateContent: string; templateType: number; - templateParams: string; + templateParams: Record; readStatus: boolean; readTime: Date; createTime: Date; diff --git a/apps/web-antd/src/api/system/notify/template/index.ts b/apps/web-antd/src/api/system/notify/template/index.ts index 92c7d7bcc..4e996da55 100644 --- a/apps/web-antd/src/api/system/notify/template/index.ts +++ b/apps/web-antd/src/api/system/notify/template/index.ts @@ -14,6 +14,7 @@ export namespace SystemNotifyTemplateApi { params: string[]; status: number; remark: string; + createTime?: Date; } /** 站内信模板精简信息 */ diff --git a/apps/web-antd/src/api/system/oauth2/client/index.ts b/apps/web-antd/src/api/system/oauth2/client/index.ts index 5817b858b..0c79bedc9 100644 --- a/apps/web-antd/src/api/system/oauth2/client/index.ts +++ b/apps/web-antd/src/api/system/oauth2/client/index.ts @@ -15,13 +15,12 @@ export namespace SystemOAuth2ClientApi { accessTokenValiditySeconds: number; refreshTokenValiditySeconds: number; redirectUris: string[]; - autoApprove: boolean; + autoApproveScopes: string[]; authorizedGrantTypes: string[]; scopes: string[]; authorities: string[]; resourceIds: string[]; additionalInformation: string; - isAdditionalInformationJson: boolean; createTime?: Date; } } diff --git a/apps/web-antd/src/api/system/operate-log/index.ts b/apps/web-antd/src/api/system/operate-log/index.ts index 8b84a260e..4f0c7a9eb 100644 --- a/apps/web-antd/src/api/system/operate-log/index.ts +++ b/apps/web-antd/src/api/system/operate-log/index.ts @@ -19,8 +19,6 @@ export namespace SystemOperateLogApi { requestUrl: string; userIp: string; userAgent: string; - creator: string; - creatorName: string; createTime: string; } } diff --git a/apps/web-antd/src/api/system/role/index.ts b/apps/web-antd/src/api/system/role/index.ts index 23d5ade98..3287751c4 100644 --- a/apps/web-antd/src/api/system/role/index.ts +++ b/apps/web-antd/src/api/system/role/index.ts @@ -13,6 +13,7 @@ export namespace SystemRoleApi { type: number; dataScope: number; dataScopeDeptIds: number[]; + remark?: string; createTime?: Date; } } diff --git a/apps/web-antd/src/api/system/tenant-package/index.ts b/apps/web-antd/src/api/system/tenant-package/index.ts index 53be78f73..e90ad69eb 100644 --- a/apps/web-antd/src/api/system/tenant-package/index.ts +++ b/apps/web-antd/src/api/system/tenant-package/index.ts @@ -9,9 +9,6 @@ export namespace SystemTenantPackageApi { name: string; status: number; remark: string; - creator: string; - updater: string; - updateTime: string; menuIds: number[]; createTime: Date; } diff --git a/apps/web-antd/src/api/system/tenant/index.ts b/apps/web-antd/src/api/system/tenant/index.ts index 6ee52e1d6..9b4950cdb 100644 --- a/apps/web-antd/src/api/system/tenant/index.ts +++ b/apps/web-antd/src/api/system/tenant/index.ts @@ -11,9 +11,12 @@ export namespace SystemTenantApi { contactName: string; contactMobile: string; accountCount: number; + username?: string; + password?: string; expireTime: Date; websites: string[]; status: number; + createTime?: Date; } } diff --git a/apps/web-antd/src/api/system/user/index.ts b/apps/web-antd/src/api/system/user/index.ts index c9f23a403..d23548031 100644 --- a/apps/web-antd/src/api/system/user/index.ts +++ b/apps/web-antd/src/api/system/user/index.ts @@ -7,14 +7,17 @@ export namespace SystemUserApi { export interface User { id?: number; username: string; + password?: string; nickname: string; deptId: number; - postIds: string[]; + deptName?: string; + postIds: number[]; email: string; mobile: string; sex: number; avatar: string; loginIp: string; + loginDate?: string; status: number; remark: string; createTime?: Date;