mirror of
https://github.com/fastapiadmin/FastapiAdmin.git
synced 2026-09-25 13:51:04 +00:00
refactor(api): 统一更新接口使用路径参数传递ID
refactor(backend): 重构CRUD基类查询方法去除重复结果 feat(application): 新增应用系统模块基础结构 fix(backend): 修复多处日志记录ID变量名错误 style(backend): 清理无用代码和注释 fix(frontend): 修复用户导入功能参数错误 docs(backend): 更新环境配置示例注释 perf(backend): 优化导出功能数据处理逻辑 test(frontend): 添加任务日志功能开发中提示 chore: 更新角色菜单权限数据
This commit is contained in:
@@ -0,0 +1 @@
|
||||
// 待开发
|
||||
@@ -24,9 +24,9 @@ const ExampleAPI = {
|
||||
});
|
||||
},
|
||||
|
||||
updateExample(body: ExampleForm) {
|
||||
updateExample(id: number, body: ExampleForm) {
|
||||
return request<ApiResponse>({
|
||||
url: `/demo/example/update`,
|
||||
url: `/demo/example/update/${id}`,
|
||||
method: "put",
|
||||
data: body,
|
||||
});
|
||||
|
||||
@@ -24,9 +24,9 @@ const JobAPI = {
|
||||
});
|
||||
},
|
||||
|
||||
updateJob(body: JobForm) {
|
||||
updateJob(id: number, body: JobForm) {
|
||||
return request<ApiResponse>({
|
||||
url: `/monitor/job/update`,
|
||||
url: `/monitor/job/update/${id}`,
|
||||
method: "put",
|
||||
data: body,
|
||||
});
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
// 待开发
|
||||
@@ -40,9 +40,9 @@ const ConfigAPI = {
|
||||
});
|
||||
},
|
||||
|
||||
updateConfig(body: ConfigForm) {
|
||||
updateConfig(id: number, body: ConfigForm) {
|
||||
return request<ApiResponse>({
|
||||
url: `/system/config/update`,
|
||||
url: `/system/config/update/${id}`,
|
||||
method: "put",
|
||||
data: body,
|
||||
});
|
||||
|
||||
@@ -24,9 +24,9 @@ const DeptAPI = {
|
||||
});
|
||||
},
|
||||
|
||||
updateDept(body: DeptForm) {
|
||||
updateDept(id: number, body: DeptForm) {
|
||||
return request<ApiResponse>({
|
||||
url: `/system/dept/update`,
|
||||
url: `/system/dept/update/${id}`,
|
||||
method: "put",
|
||||
data: body,
|
||||
});
|
||||
|
||||
@@ -31,9 +31,9 @@ const DictAPI = {
|
||||
});
|
||||
},
|
||||
|
||||
updateDictType(body: DictForm) {
|
||||
updateDictType(id: number, body: DictForm) {
|
||||
return request<ApiResponse>({
|
||||
url: `/system/dict/type/update`,
|
||||
url: `/system/dict/type/update/${id}`,
|
||||
method: "put",
|
||||
data: body,
|
||||
});
|
||||
@@ -87,9 +87,9 @@ const DictAPI = {
|
||||
});
|
||||
},
|
||||
|
||||
updateDictData(body: DictDataForm) {
|
||||
updateDictData(id: number, body: DictDataForm) {
|
||||
return request<ApiResponse>({
|
||||
url: `/system/dict/data/update`,
|
||||
url: `/system/dict/data/update/${id}`,
|
||||
method: "put",
|
||||
data: body,
|
||||
});
|
||||
|
||||
@@ -24,9 +24,9 @@ const MenuAPI = {
|
||||
});
|
||||
},
|
||||
|
||||
updateMenu(body: MenuForm) {
|
||||
updateMenu(id: number, body: MenuForm) {
|
||||
return request<ApiResponse>({
|
||||
url: `/system/menu/update`,
|
||||
url: `/system/menu/update/${id}`,
|
||||
method: "put",
|
||||
data: body,
|
||||
});
|
||||
@@ -112,4 +112,4 @@ export interface MenuForm {
|
||||
export interface KeyValue {
|
||||
key: string;
|
||||
value: string;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -31,9 +31,9 @@ const NoticeAPI = {
|
||||
});
|
||||
},
|
||||
|
||||
updateNotice(body: NoticeForm) {
|
||||
updateNotice(id: number, body: NoticeForm) {
|
||||
return request<ApiResponse>({
|
||||
url: `/system/notice/update`,
|
||||
url: `/system/notice/update/${id}`,
|
||||
method: "put",
|
||||
data: body,
|
||||
});
|
||||
|
||||
@@ -24,9 +24,9 @@ const PositionAPI = {
|
||||
});
|
||||
},
|
||||
|
||||
updatePosition(body: PositionForm) {
|
||||
updatePosition(id: number, body: PositionForm) {
|
||||
return request<ApiResponse>({
|
||||
url: `/system/position/update`,
|
||||
url: `/system/position/update/${id}`,
|
||||
method: "put",
|
||||
data: body,
|
||||
});
|
||||
|
||||
@@ -24,9 +24,9 @@ const RoleAPI = {
|
||||
});
|
||||
},
|
||||
|
||||
updateRole(body: RoleForm) {
|
||||
updateRole(id: number, body: RoleForm) {
|
||||
return request<ApiResponse>({
|
||||
url: `/system/role/update`,
|
||||
url: `/system/role/update/${id}`,
|
||||
method: "put",
|
||||
data: body,
|
||||
});
|
||||
|
||||
@@ -81,9 +81,9 @@ export const UserAPI = {
|
||||
});
|
||||
},
|
||||
|
||||
updateUser(body: UserForm) {
|
||||
updateUser(id: number, body: UserForm) {
|
||||
return request<ApiResponse>({
|
||||
url: `/system/user/update`,
|
||||
url: `/system/user/update/${id}`,
|
||||
method: "put",
|
||||
data: body,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user