sean.zhou
2022-03-25 b944fff7414cd5d9b274ffcaf0b010ad9be965e1
1
2
3
4
5
6
7
8
9
import request from '/@/api/http/request'
const HTTP_PREFIX = '/wayline/api/v1'
 
// Get Wayline Files
export const getWaylineFiles = async function (wid: string, body: {}): Promise<any> {
  const url = `${HTTP_PREFIX}/workspaces/${wid}/waylines?` + 'order_by=' + body.order_by + '&page=' + body.page + '&page_size=' + body.page_size
  const result = await request.get(url)
  return result.data
}