| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- import {axios} from '../utils/request'
- import {FILE_MODULE, SQUARE_MODULE} from "./_prefix";
- export const sharedFileList = userId => {
- return axios.get(`${SQUARE_MODULE}/sharedFileList`, {
- params: {
- userId: userId
- }
- }).then(res => {
- return res;
- }
- )
- }
- export const sharedModelList = userId => {
- return axios.get(`${SQUARE_MODULE}/sharedModelList`, {
- params: {
- userId: userId
- }
- }).then(res => {
- return res;
- }
- )
- }
- export const shareFile = (userId,fileId) => {
- return axios.post(`${SQUARE_MODULE}/shareFile`, {
- userId, fileId
- }).then( res => {
- return res;
- });
- }
- export const shareModel = (userId,modelId) => {
- return axios.post(`${SQUARE_MODULE}/shareModel`, {
- userId, modelId
- }).then( res => {
- return res;
- });
- }
|