已修改角色、新增用户、检测源列表、被检设备列表、检测脚本列表
This commit is contained in:
@@ -2,7 +2,6 @@ import { ResPage } from '@/api/interface'
|
||||
import { User } from './interface'
|
||||
import { ADMIN as rePrefix } from '@/api/config/serviceName'
|
||||
import http from '@/api'
|
||||
import type { Resource } from '../resource/interface'
|
||||
|
||||
/**
|
||||
* @name 用户管理模块
|
||||
@@ -13,9 +12,9 @@ export const getUserList = (params: User.ReqUserParams) => {
|
||||
}
|
||||
|
||||
// 获取树形用户列表
|
||||
export const getUserTreeList = (params: User.ReqUserParams) => {
|
||||
return http.post<ResPage<User.ResUserList>>(`${rePrefix}/user/tree/list`, params)
|
||||
}
|
||||
// export const getUserTreeList = (params: User.ReqUserParams) => {
|
||||
// return http.post<ResPage<User.ResUserList>>(`${rePrefix}/user/tree/list`, params)
|
||||
// }
|
||||
|
||||
// 新增用户
|
||||
export const addUser = (params: { id: string }) => {
|
||||
@@ -56,23 +55,3 @@ export const exportUserInfo = (params: User.ReqUserParams) => {
|
||||
export const getUserStatus = () => {
|
||||
return http.get<User.ResStatus[]>(`${rePrefix}/user/status`)
|
||||
}
|
||||
|
||||
// 获取用户状态字典
|
||||
export const getResourceType = () => {
|
||||
return http.get<Resource.ResType[]>(`${rePrefix}/user/status`)
|
||||
}
|
||||
|
||||
// 获取用户性别字典
|
||||
export const getUserGender = () => {
|
||||
return http.get<User.ResGender[]>(`${rePrefix}/user/gender`)
|
||||
}
|
||||
|
||||
// 获取用户部门列表
|
||||
export const getUserDepartment = () => {
|
||||
return http.get<User.ResDepartment[]>(`${rePrefix}/user/department`)
|
||||
}
|
||||
|
||||
// 获取用户角色字典
|
||||
export const getUserRole = () => {
|
||||
return http.get<User.ResRole[]>(`${rePrefix}/user/role`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user