feat: 接入 UserHome 前端业务代码(含真实 src/依赖,保留 projman 标准 CI)
deploy-userbase-front / build-and-deploy (push) Failing after 1m54s
build / build (push) Successful in 3m36s

This commit is contained in:
chenxing
2026-09-09 22:37:59 +08:00
parent a53ce07228
commit 4279f99be1
270 changed files with 12479 additions and 25715 deletions
+113
View File
@@ -0,0 +1,113 @@
import { PageData, PageParams } from "@/types/Basics";
import Abstract from "@/utils/axios/abstract";
import { BschResponse } from "axios";
const path = "/api";
class Base extends Abstract {
/**
*获取个人信息
* @memberof Basic
*/
getUserInfo() {
const url = path + "/user/GetUserInfo";
return this.getRequest({ url, isMsg: false });
}
/**
*获取用户全部角色
* @memberof Basic
*/
getUserRole() {
const url = path + "/user/getUserRole";
return this.getRequest<Array<any>>({ url });
}
/**
*获取用户当前角色
* @memberof Basic
*/
findUserRole() {
const url = path + "/user/findUserRole";
return this.getRequest({ url });
}
/**
*获取用户所有应用
* @memberof Basic
*/
getUserApp(userId: number, schId: number) {
const url = path + "/user/GetUserApp";
return this.getRequest<any[]>({ url, params: { userId, schId } });
}
/**
*获取用户常用应用
* @memberof Basic
*/
getUsedApp(roleId: number, schId: number) {
const url = path + "/usedapp/getUsedApp";
return this.getRequest<any[]>({ url, params: { roleType: roleId, schId } });
}
/**
*获取应用详情
* @memberof Basic
*/
GetAppInfoById(appId: number) {
const url = path + "/user/GetAppInfoById";
return this.getRequest<any>({ url, params: { id: appId } });
}
/**
*获取用户消息
* @memberof Basic
*/
getMessageList() {
const url = path + "/getMessageByUserId";
return this.getRequest<PageData>({ url, params: { page: 1, count: 10 } });
}
/**
*获取用户消息
* @memberof Basic
*/
getMessagePageList(params: PageParams) {
const url = path + "/getMessageByUserId";
return this.getRequest<PageData>({ url, params });
}
/**
* 已读某一条消息
* @memberof Basic
*/
readMessage(id: number) {
const url = path + "/readMessage";
return this.postRequest({ url, params: { id } });
}
/**
* 已读全部消息
* @memberof Basic
*/
readMessageAll() {
const url = path + "/readMessageAll";
return this.postRequest({ url });
}
/**
* 修改密码
* @memberof Basic
*/
updatePassword(oldPassword: string, password: string) {
const url = path + "/updateUserPassword";
return this.postRequest({ url, data: { oldPassword, password } });
}
savUserRole(info: any) {
const url = path + "/user/savUserRole";
return this.postRequest({ url, data: info as any });
}
}
export default new Base();