feat: 分享页面api
This commit is contained in:
parent
9e9fb73892
commit
760b05e277
20
frontend/src/api/panel/share.js
Normal file
20
frontend/src/api/panel/share.js
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
import request from '@/utils/request'
|
||||||
|
|
||||||
|
export function saveShare(data) {
|
||||||
|
return request({
|
||||||
|
url: '/api/share/',
|
||||||
|
method: 'post',
|
||||||
|
loading: true,
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
export function loadShares(data) {
|
||||||
|
return request({
|
||||||
|
url: '/api/share/queryWithResourceId',
|
||||||
|
method: 'post',
|
||||||
|
loading: true,
|
||||||
|
data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user