mirror of
https://gitee.com/likeadmin/likeadmin_java.git
synced 2026-06-24 20:04:29 +08:00
部门管理、岗位管理接口对接
This commit is contained in:
@@ -40,5 +40,5 @@ export function apiFileRename(params: { id: number; name: string }) {
|
||||
|
||||
// 配置
|
||||
export function apiConfig() {
|
||||
return request.get('/index/config')
|
||||
return request.get('/common/index/config')
|
||||
}
|
||||
|
||||
@@ -1,4 +1,36 @@
|
||||
import request from '@/utils/request'
|
||||
/** 部门 S **/
|
||||
// 部门列表
|
||||
export function apiDeptLists(params: any) {
|
||||
return request.get('/system/dept/list', { params })
|
||||
}
|
||||
|
||||
// 添加部门
|
||||
export function apiDeptAdd(params: any) {
|
||||
return request.post('/system/dept/add', params)
|
||||
}
|
||||
|
||||
// 编辑部门
|
||||
export function apiDeptEdit(params: any) {
|
||||
return request.post('/system/dept/edit', params)
|
||||
}
|
||||
|
||||
// 删除部门
|
||||
export function apiDeptDelete(params: any) {
|
||||
return request.post('/system/dept/del', params)
|
||||
}
|
||||
|
||||
// 部门详情
|
||||
export function apiDeptDetail(params: any) {
|
||||
return request.get('/system/dept/detail', { params })
|
||||
}
|
||||
|
||||
// 所有部门
|
||||
export function apiDeptAll(params: any) {
|
||||
return request.get('/system/dept/all', { params })
|
||||
}
|
||||
/** 部门 E **/
|
||||
|
||||
/** 岗位 S **/
|
||||
// 岗位列表
|
||||
export function apiPostLists(params: any) {
|
||||
|
||||
@@ -2,20 +2,20 @@ import request from '@/utils/request'
|
||||
|
||||
// 获取备案信息
|
||||
export function apiGetCopyright() {
|
||||
return request.get('/setting/getCopyright')
|
||||
return request.get('/setting/basics/getCopyright')
|
||||
}
|
||||
// 设置备案信息
|
||||
export function apiSetCopyright(params: any) {
|
||||
return request.post('/setting/setCopyright', { ...params })
|
||||
return request.post('/setting/basics/setCopyright', { ...params })
|
||||
}
|
||||
|
||||
// 获取网站信息
|
||||
export function apiGetWebsite() {
|
||||
return request.get('/setting/getWebsite')
|
||||
return request.get('/setting/basics/getWebsite')
|
||||
}
|
||||
// 设置网站信息
|
||||
export function apiSetWebsite(params: any) {
|
||||
return request.post('/setting/setWebsite', { ...params })
|
||||
return request.post('/setting/basics/setWebsite', { ...params })
|
||||
}
|
||||
|
||||
// 获取政策协议
|
||||
|
||||
@@ -2,5 +2,5 @@ import request from '@/utils/request'
|
||||
|
||||
// 工作台主页
|
||||
export function apiWorkbench() {
|
||||
return request.get('/index/console')
|
||||
return request.get('/common/index/console')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user