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/creatorNamevo
parent
e6ecade0ee
commit
e3ebfbe933
|
|
@ -7,12 +7,11 @@ export namespace SystemLoginLogApi {
|
||||||
export interface LoginLog {
|
export interface LoginLog {
|
||||||
id: number;
|
id: number;
|
||||||
logType: number;
|
logType: number;
|
||||||
traceId: number;
|
traceId: string;
|
||||||
userId: number;
|
userId: number;
|
||||||
userType: number;
|
userType: number;
|
||||||
username: string;
|
username: string;
|
||||||
result: number;
|
result: number;
|
||||||
status: number;
|
|
||||||
userIp: string;
|
userIp: string;
|
||||||
userAgent: string;
|
userAgent: string;
|
||||||
createTime: string;
|
createTime: string;
|
||||||
|
|
|
||||||
|
|
@ -13,9 +13,7 @@ export namespace SystemMailAccountApi {
|
||||||
port: number;
|
port: number;
|
||||||
sslEnable: boolean;
|
sslEnable: boolean;
|
||||||
starttlsEnable: boolean;
|
starttlsEnable: boolean;
|
||||||
status: number;
|
|
||||||
createTime: Date;
|
createTime: Date;
|
||||||
remark: string;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ export namespace SystemMailLogApi {
|
||||||
templateNickname: string;
|
templateNickname: string;
|
||||||
templateTitle: string;
|
templateTitle: string;
|
||||||
templateContent: string;
|
templateContent: string;
|
||||||
templateParams: string;
|
templateParams: Record<string, any>;
|
||||||
sendStatus: number;
|
sendStatus: number;
|
||||||
sendTime: string;
|
sendTime: string;
|
||||||
sendMessageId: string;
|
sendMessageId: string;
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@ export namespace SystemMailTemplateApi {
|
||||||
title: string;
|
title: string;
|
||||||
content: string;
|
content: string;
|
||||||
params: string[];
|
params: string[];
|
||||||
|
remark?: string;
|
||||||
status: number;
|
status: number;
|
||||||
createTime: Date;
|
createTime: Date;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,6 @@ export namespace SystemNoticeApi {
|
||||||
type: number;
|
type: number;
|
||||||
content: string;
|
content: string;
|
||||||
status: number;
|
status: number;
|
||||||
remark: string;
|
|
||||||
creator?: string;
|
|
||||||
createTime?: Date;
|
createTime?: Date;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ export namespace SystemNotifyMessageApi {
|
||||||
templateNickname: string;
|
templateNickname: string;
|
||||||
templateContent: string;
|
templateContent: string;
|
||||||
templateType: number;
|
templateType: number;
|
||||||
templateParams: string;
|
templateParams: Record<string, any>;
|
||||||
readStatus: boolean;
|
readStatus: boolean;
|
||||||
readTime: Date;
|
readTime: Date;
|
||||||
createTime: Date;
|
createTime: Date;
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,7 @@ export namespace SystemNotifyTemplateApi {
|
||||||
params: string[];
|
params: string[];
|
||||||
status: number;
|
status: number;
|
||||||
remark: string;
|
remark: string;
|
||||||
|
createTime?: Date;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** 站内信模板精简信息 */
|
/** 站内信模板精简信息 */
|
||||||
|
|
|
||||||
|
|
@ -15,13 +15,12 @@ export namespace SystemOAuth2ClientApi {
|
||||||
accessTokenValiditySeconds: number;
|
accessTokenValiditySeconds: number;
|
||||||
refreshTokenValiditySeconds: number;
|
refreshTokenValiditySeconds: number;
|
||||||
redirectUris: string[];
|
redirectUris: string[];
|
||||||
autoApprove: boolean;
|
autoApproveScopes: string[];
|
||||||
authorizedGrantTypes: string[];
|
authorizedGrantTypes: string[];
|
||||||
scopes: string[];
|
scopes: string[];
|
||||||
authorities: string[];
|
authorities: string[];
|
||||||
resourceIds: string[];
|
resourceIds: string[];
|
||||||
additionalInformation: string;
|
additionalInformation: string;
|
||||||
isAdditionalInformationJson: boolean;
|
|
||||||
createTime?: Date;
|
createTime?: Date;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,8 +19,6 @@ export namespace SystemOperateLogApi {
|
||||||
requestUrl: string;
|
requestUrl: string;
|
||||||
userIp: string;
|
userIp: string;
|
||||||
userAgent: string;
|
userAgent: string;
|
||||||
creator: string;
|
|
||||||
creatorName: string;
|
|
||||||
createTime: string;
|
createTime: string;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,7 @@ export namespace SystemRoleApi {
|
||||||
type: number;
|
type: number;
|
||||||
dataScope: number;
|
dataScope: number;
|
||||||
dataScopeDeptIds: number[];
|
dataScopeDeptIds: number[];
|
||||||
|
remark?: string;
|
||||||
createTime?: Date;
|
createTime?: Date;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -9,9 +9,6 @@ export namespace SystemTenantPackageApi {
|
||||||
name: string;
|
name: string;
|
||||||
status: number;
|
status: number;
|
||||||
remark: string;
|
remark: string;
|
||||||
creator: string;
|
|
||||||
updater: string;
|
|
||||||
updateTime: string;
|
|
||||||
menuIds: number[];
|
menuIds: number[];
|
||||||
createTime: Date;
|
createTime: Date;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,9 +11,12 @@ export namespace SystemTenantApi {
|
||||||
contactName: string;
|
contactName: string;
|
||||||
contactMobile: string;
|
contactMobile: string;
|
||||||
accountCount: number;
|
accountCount: number;
|
||||||
|
username?: string;
|
||||||
|
password?: string;
|
||||||
expireTime: Date;
|
expireTime: Date;
|
||||||
websites: string[];
|
websites: string[];
|
||||||
status: number;
|
status: number;
|
||||||
|
createTime?: Date;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,14 +7,17 @@ export namespace SystemUserApi {
|
||||||
export interface User {
|
export interface User {
|
||||||
id?: number;
|
id?: number;
|
||||||
username: string;
|
username: string;
|
||||||
|
password?: string;
|
||||||
nickname: string;
|
nickname: string;
|
||||||
deptId: number;
|
deptId: number;
|
||||||
postIds: string[];
|
deptName?: string;
|
||||||
|
postIds: number[];
|
||||||
email: string;
|
email: string;
|
||||||
mobile: string;
|
mobile: string;
|
||||||
sex: number;
|
sex: number;
|
||||||
avatar: string;
|
avatar: string;
|
||||||
loginIp: string;
|
loginIp: string;
|
||||||
|
loginDate?: string;
|
||||||
status: number;
|
status: number;
|
||||||
remark: string;
|
remark: string;
|
||||||
createTime?: Date;
|
createTime?: Date;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue