You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
696 B
TypeScript
37 lines
696 B
TypeScript
1 year ago
|
import { http } from "@/utils/http";
|
||
|
|
||
|
type Result = {
|
||
|
success: boolean;
|
||
|
data: Array<any>;
|
||
|
};
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @returns 分页查询应用子库
|
||
|
*/
|
||
|
export const getSubLibraryList = (data?: object) => {
|
||
|
return http.request<Result>("get", "/know-sub/applicationSubLibrary/list", {
|
||
|
params: data
|
||
|
});
|
||
|
};
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @returns 分页查询部门信息列表
|
||
|
*/
|
||
|
export const getDeptManageList = (data?: object) => {
|
||
|
return http.request<Result>("get", "/know-sub/deptManage/list", {
|
||
|
params: data
|
||
|
});
|
||
|
};
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @returns 新建子库
|
||
|
*/
|
||
|
export const createSubLibrary = (data?: object) => {
|
||
|
return http.request<Result>("post", "/know-sub/applicationSubLibrary/save", {
|
||
|
data
|
||
|
});
|
||
|
};
|