fix(api): 对齐 system 模块前端 API 类型与后端 VO

修复类型不匹配:
- user: 添加 password/deptName/loginDate, postIds string[]→number[]
- tenant: 添加 username/password/createTime
- login-log: traceId number→string, 删除多余 status
- notify/message: templateParams string→Record<string, any>
- mail/log: templateParams string→Record<string, any>
- 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
vo
xingyu4j 2026-06-07 12:42:18 +08:00
parent e6ecade0ee
commit e3ebfbe933
13 changed files with 14 additions and 16 deletions

View File

@ -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;

View File

@ -13,9 +13,7 @@ export namespace SystemMailAccountApi {
port: number;
sslEnable: boolean;
starttlsEnable: boolean;
status: number;
createTime: Date;
remark: string;
}
}

View File

@ -18,7 +18,7 @@ export namespace SystemMailLogApi {
templateNickname: string;
templateTitle: string;
templateContent: string;
templateParams: string;
templateParams: Record<string, any>;
sendStatus: number;
sendTime: string;
sendMessageId: string;

View File

@ -13,6 +13,7 @@ export namespace SystemMailTemplateApi {
title: string;
content: string;
params: string[];
remark?: string;
status: number;
createTime: Date;
}

View File

@ -10,8 +10,6 @@ export namespace SystemNoticeApi {
type: number;
content: string;
status: number;
remark: string;
creator?: string;
createTime?: Date;
}
}

View File

@ -13,7 +13,7 @@ export namespace SystemNotifyMessageApi {
templateNickname: string;
templateContent: string;
templateType: number;
templateParams: string;
templateParams: Record<string, any>;
readStatus: boolean;
readTime: Date;
createTime: Date;

View File

@ -14,6 +14,7 @@ export namespace SystemNotifyTemplateApi {
params: string[];
status: number;
remark: string;
createTime?: Date;
}
/** 站内信模板精简信息 */

View File

@ -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;
}
}

View File

@ -19,8 +19,6 @@ export namespace SystemOperateLogApi {
requestUrl: string;
userIp: string;
userAgent: string;
creator: string;
creatorName: string;
createTime: string;
}
}

View File

@ -13,6 +13,7 @@ export namespace SystemRoleApi {
type: number;
dataScope: number;
dataScopeDeptIds: number[];
remark?: string;
createTime?: Date;
}
}

View File

@ -9,9 +9,6 @@ export namespace SystemTenantPackageApi {
name: string;
status: number;
remark: string;
creator: string;
updater: string;
updateTime: string;
menuIds: number[];
createTime: Date;
}

View File

@ -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;
}
}

View File

@ -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;