mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-15 14:03:36 +08:00
perf: 使用/** */替换//注释,对编辑器的智能提示更友好
This commit is contained in:
@@ -9,7 +9,7 @@ type Result = {
|
||||
msg?: string;
|
||||
};
|
||||
|
||||
// 卡片列表
|
||||
/** 卡片列表 */
|
||||
export const getCardList = (data?: object) => {
|
||||
return http.request<Result>("post", "/getCardList", { data });
|
||||
};
|
||||
|
||||
@@ -5,7 +5,7 @@ type Result = {
|
||||
info: Array<any>;
|
||||
};
|
||||
|
||||
// 地图数据
|
||||
/** 地图数据 */
|
||||
export const mapJson = (params?: object) => {
|
||||
return http.request<Result>("get", "/getMapInfo", { params });
|
||||
};
|
||||
|
||||
@@ -11,17 +11,17 @@ type Result = {
|
||||
msg?: string;
|
||||
};
|
||||
|
||||
// 获取用户管理列表
|
||||
/** 获取用户管理列表 */
|
||||
export const getUserList = (data?: object) => {
|
||||
return http.request<Result>("post", "/user", { data });
|
||||
};
|
||||
|
||||
// 获取角色管理列表
|
||||
/** 获取角色管理列表 */
|
||||
export const getRoleList = (data?: object) => {
|
||||
return http.request<Result>("post", "/role", { data });
|
||||
};
|
||||
|
||||
// 获取部门管理列表
|
||||
/** 获取部门管理列表 */
|
||||
export const getDeptList = (data?: object) => {
|
||||
return http.request<Result>("post", "/dept", { data });
|
||||
};
|
||||
|
||||
@@ -6,17 +6,17 @@ type Result = {
|
||||
info?: object;
|
||||
};
|
||||
|
||||
// 获取验证码
|
||||
/** 获取验证码 */
|
||||
export const getVerify = () => {
|
||||
return http.request<Result>("get", "/captcha");
|
||||
};
|
||||
|
||||
// 登录
|
||||
/** 登录 */
|
||||
export const getLogin = (data: object) => {
|
||||
return http.request("post", "/login", { data });
|
||||
};
|
||||
|
||||
// 刷新token
|
||||
/** 刷新token */
|
||||
export const refreshToken = (data: object) => {
|
||||
return http.request("post", "/refreshToken", { data });
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user