feat: 批量去除 vo

This commit is contained in:
xingyu4j
2025-06-15 15:33:18 +08:00
parent 96c4ee974a
commit 93a02573d7
64 changed files with 240 additions and 251 deletions

View File

@@ -19,7 +19,7 @@ export namespace SystemMailTemplateApi {
}
/** 邮件发送信息 */
export interface MailSendReqVO {
export interface MailSendReq {
mail: string;
templateCode: string;
templateParams: Record<string, any>;
@@ -57,6 +57,6 @@ export function deleteMailTemplate(id: number) {
}
/** 发送邮件 */
export function sendMail(data: SystemMailTemplateApi.MailSendReqVO) {
export function sendMail(data: SystemMailTemplateApi.MailSendReq) {
return requestClient.post('/system/mail-template/send-mail', data);
}

View File

@@ -17,7 +17,7 @@ export namespace SystemNotifyTemplateApi {
}
/** 发送站内信请求 */
export interface NotifySendReqVO {
export interface NotifySendReq {
userId: number;
userType: number;
templateCode: string;
@@ -67,6 +67,6 @@ export function exportNotifyTemplate(params: any) {
}
/** 发送站内信 */
export function sendNotify(data: SystemNotifyTemplateApi.NotifySendReqVO) {
export function sendNotify(data: SystemNotifyTemplateApi.NotifySendReq) {
return requestClient.post('/system/notify-template/send-notify', data);
}

View File

@@ -3,7 +3,7 @@ import { requestClient } from '#/api/request';
/** OAuth2.0 授权信息响应 */
export namespace SystemOAuth2ClientApi {
/** 授权信息 */
export interface AuthorizeInfoRespVO {
export interface AuthorizeInfoResp {
client: {
logo: string;
name: string;
@@ -17,7 +17,7 @@ export namespace SystemOAuth2ClientApi {
/** 获得授权信息 */
export function getAuthorize(clientId: string) {
return requestClient.get<SystemOAuth2ClientApi.AuthorizeInfoRespVO>(
return requestClient.get<SystemOAuth2ClientApi.AuthorizeInfoResp>(
`/system/oauth2/authorize?clientId=${clientId}`,
);
}

View File

@@ -2,19 +2,19 @@ import { requestClient } from '#/api/request';
export namespace SystemPermissionApi {
/** 分配用户角色请求 */
export interface AssignUserRoleReqVO {
export interface AssignUserRoleReq {
userId: number;
roleIds: number[];
}
/** 分配角色菜单请求 */
export interface AssignRoleMenuReqVO {
export interface AssignRoleMenuReq {
roleId: number;
menuIds: number[];
}
/** 分配角色数据权限请求 */
export interface AssignRoleDataScopeReqVO {
export interface AssignRoleDataScopeReq {
roleId: number;
dataScope: number;
dataScopeDeptIds: number[];
@@ -30,14 +30,14 @@ export async function getRoleMenuList(roleId: number) {
/** 赋予角色菜单权限 */
export async function assignRoleMenu(
data: SystemPermissionApi.AssignRoleMenuReqVO,
data: SystemPermissionApi.AssignRoleMenuReq,
) {
return requestClient.post('/system/permission/assign-role-menu', data);
}
/** 赋予角色数据权限 */
export async function assignRoleDataScope(
data: SystemPermissionApi.AssignRoleDataScopeReqVO,
data: SystemPermissionApi.AssignRoleDataScopeReq,
) {
return requestClient.post('/system/permission/assign-role-data-scope', data);
}
@@ -51,7 +51,7 @@ export async function getUserRoleList(userId: number) {
/** 赋予用户角色 */
export async function assignUserRole(
data: SystemPermissionApi.AssignUserRoleReqVO,
data: SystemPermissionApi.AssignUserRoleReq,
) {
return requestClient.post('/system/permission/assign-user-role', data);
}

View File

@@ -20,7 +20,7 @@ export namespace SystemSmsTemplateApi {
}
/** 发送短信请求 */
export interface SmsSendReqVO {
export interface SmsSendReq {
mobile: string;
templateCode: string;
templateParams: Record<string, any>;
@@ -65,6 +65,6 @@ export function exportSmsTemplate(params: any) {
}
/** 发送短信 */
export function sendSms(data: SystemSmsTemplateApi.SmsSendReqVO) {
export function sendSms(data: SystemSmsTemplateApi.SmsSendReq) {
return requestClient.post('/system/sms-template/send-sms', data);
}

View File

@@ -20,14 +20,14 @@ export namespace SystemSocialUserApi {
}
/** 社交绑定请求 */
export interface SocialUserBindReqVO {
export interface SocialUserBindReq {
type: number;
code: string;
state: string;
}
/** 取消社交绑定请求 */
export interface SocialUserUnbindReqVO {
export interface SocialUserUnbindReq {
type: number;
openid: string;
}
@@ -49,12 +49,12 @@ export function getSocialUser(id: number) {
}
/** 社交绑定,使用 code 授权码 */
export function socialBind(data: SystemSocialUserApi.SocialUserBindReqVO) {
export function socialBind(data: SystemSocialUserApi.SocialUserBindReq) {
return requestClient.post<boolean>('/system/social-user/bind', data);
}
/** 取消社交绑定 */
export function socialUnbind(data: SystemSocialUserApi.SocialUserUnbindReqVO) {
export function socialUnbind(data: SystemSocialUserApi.SocialUserUnbindReq) {
return requestClient.delete<boolean>('/system/social-user/unbind', { data });
}

View File

@@ -2,7 +2,7 @@ import { requestClient } from '#/api/request';
export namespace SystemUserProfileApi {
/** 用户个人中心信息 */
export interface UserProfileRespVO {
export interface UserProfileResp {
id: number;
username: string;
nickname: string;
@@ -19,13 +19,13 @@ export namespace SystemUserProfileApi {
}
/** 更新密码请求 */
export interface UpdatePasswordReqVO {
export interface UpdatePasswordReq {
oldPassword: string;
newPassword: string;
}
/** 更新个人信息请求 */
export interface UpdateProfileReqVO {
export interface UpdateProfileReq {
nickname?: string;
email?: string;
mobile?: string;
@@ -36,21 +36,19 @@ export namespace SystemUserProfileApi {
/** 获取登录用户信息 */
export function getUserProfile() {
return requestClient.get<SystemUserProfileApi.UserProfileRespVO>(
return requestClient.get<SystemUserProfileApi.UserProfileResp>(
'/system/user/profile/get',
);
}
/** 修改用户个人信息 */
export function updateUserProfile(
data: SystemUserProfileApi.UpdateProfileReqVO,
) {
export function updateUserProfile(data: SystemUserProfileApi.UpdateProfileReq) {
return requestClient.put('/system/user/profile/update', data);
}
/** 修改用户个人密码 */
export function updateUserPassword(
data: SystemUserProfileApi.UpdatePasswordReqVO,
data: SystemUserProfileApi.UpdatePasswordReq,
) {
return requestClient.put('/system/user/profile/update-password', data);
}