refactor(system): 重构系统模块接口和数据结构

- 更新了多个控制器的接口设计,使用 CsPageArgs 封装分页参数
- 修改了部分 API 的 HTTP 方法,优化了请求结构
- 统一了查询接口的命名规范
- 调整了部分参数和返回值类型,提高了代码复用性
This commit is contained in:
2025-06-25 19:44:40 +08:00
parent 43d787f1e3
commit 620e076b86
39 changed files with 233 additions and 154 deletions
+5 -5
View File
@@ -3,8 +3,8 @@ import request from '@/utils/request'
export function queryDeptList(params) {
return request({
url: 'api/dept',
method: 'get',
params
method: 'post',
data: params
})
}
@@ -14,7 +14,7 @@ export function queryDeptSuperiorTree(ids, exclude) {
return request({
url: 'api/dept/queryDeptSuperiorTree?exclude=' + exclude,
method: 'post',
data
data: data
})
}
@@ -22,7 +22,7 @@ export function add(data) {
return request({
url: 'api/dept/saveDept',
method: 'post',
data
data: data
})
}
@@ -38,7 +38,7 @@ export function edit(data) {
return request({
url: 'api/dept/modifyDept',
method: 'post',
data
data: data
})
}