feat: 重构用户管理页面,集成 msw mock,统一路径别名和 API 命名规范
This commit is contained in:
@@ -34,10 +34,4 @@ export const get = <T>(url: string, params?: object) =>
|
||||
export const post = <T>(url: string, data?: object) =>
|
||||
request.post<API.Response<T>>(url, data).then((res) => res.data);
|
||||
|
||||
export const put = <T>(url: string, data?: object) =>
|
||||
request.put<API.Response<T>>(url, data).then((res) => res.data);
|
||||
|
||||
export const del = <T>(url: string, params?: object) =>
|
||||
request.delete<API.Response<T>>(url, { params }).then((res) => res.data);
|
||||
|
||||
export default request;
|
||||
|
||||
Reference in New Issue
Block a user