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 {
|
||||
id: number;
|
||||
logType: number;
|
||||
traceId: number;
|
||||
traceId: string;
|
||||
userId: number;
|
||||
userType: number;
|
||||
username: string;
|
||||
result: number;
|
||||
status: number;
|
||||
userIp: string;
|
||||
userAgent: string;
|
||||
createTime: string;
|
||||
|
|
|
|||
|
|
@ -13,9 +13,7 @@ export namespace SystemMailAccountApi {
|
|||
port: number;
|
||||
sslEnable: boolean;
|
||||
starttlsEnable: boolean;
|
||||
status: number;
|
||||
createTime: Date;
|
||||
remark: string;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ export namespace SystemMailTemplateApi {
|
|||
title: string;
|
||||
content: string;
|
||||
params: string[];
|
||||
remark?: string;
|
||||
status: number;
|
||||
createTime: Date;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,8 +10,6 @@ export namespace SystemNoticeApi {
|
|||
type: number;
|
||||
content: string;
|
||||
status: number;
|
||||
remark: string;
|
||||
creator?: string;
|
||||
createTime?: Date;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@ export namespace SystemNotifyTemplateApi {
|
|||
params: string[];
|
||||
status: number;
|
||||
remark: string;
|
||||
createTime?: Date;
|
||||
}
|
||||
|
||||
/** 站内信模板精简信息 */
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,8 +19,6 @@ export namespace SystemOperateLogApi {
|
|||
requestUrl: string;
|
||||
userIp: string;
|
||||
userAgent: string;
|
||||
creator: string;
|
||||
creatorName: string;
|
||||
createTime: string;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,6 +13,7 @@ export namespace SystemRoleApi {
|
|||
type: number;
|
||||
dataScope: number;
|
||||
dataScopeDeptIds: number[];
|
||||
remark?: string;
|
||||
createTime?: Date;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,9 +9,6 @@ export namespace SystemTenantPackageApi {
|
|||
name: string;
|
||||
status: number;
|
||||
remark: string;
|
||||
creator: string;
|
||||
updater: string;
|
||||
updateTime: string;
|
||||
menuIds: number[];
|
||||
createTime: Date;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue