数通互联化工云平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
1.6 KiB

import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { matterPage,createDir,matterTreeList} from './type';
/**
*
*/
export function getSpaceMatterList( uid:string,data?: matterPage): AxiosPromise<matterTreeList> {
return request({
url: '/hxpan/api/space/page',
method: 'post',
headers: {
'Identifier':uid,
'Content-Type': 'application/x-www-form-urlencoded'
},
data: data
});
}
/**
*
*/
export function doCreateSpaceDir(uid:string,data?: createDir){
return request({
url: '/hxpan/api/space/directory',
method: 'post',
headers: {
'Identifier':uid,
'Content-Type': 'application/x-www-form-urlencoded'
},
data: data
});
}
/**
*
*/
export function doAccessManage(uid:string,data?: any){
return request({
url: '/hxpan/api/space/access',
method: 'post',
headers: {
'Identifier':uid,
'Content-Type': 'application/x-www-form-urlencoded'
},
data: data
});
}
/**
*
*/
export function doDelSpace(uid:string,data?: any){
return request({
url: '/hxpan/api/space/delete',
method: 'post',
headers: {
'Identifier':uid,
'Content-Type': 'application/x-www-form-urlencoded'
},
data: data
});
}
/**
*
*/
export function doDelSpaceMatter(uid:string,data?: any){
return request({
url: '/hxpan/api/space/materdelete',
method: 'post',
headers: {
'Identifier':uid,
'Content-Type': 'application/x-www-form-urlencoded'
},
data: data
});
}