Projekt

Obecné

Profil

Stáhnout (592 Bajtů) Statistiky
| Větev: | Tag: | Revize:
1
import { axiosInstance } from "./api"
2

    
3

    
4
export const getPlanAllRequest = async () => {
5
    return await axiosInstance.get(
6
        `/plan/all`
7
    )
8
}
9

    
10
export const getPlanListRequest = async () => {
11
    return await axiosInstance.get(
12
        `/plan/list`
13
    )
14
}
15

    
16
export const getPlanItemsRequest = async (page: number, pageSize: number, room: number, place?: number) => {
17
    let url = `search_v2?activeTab=0&tabbed=false&cursor=0&page=${page}&items=${pageSize}&room=${room}`
18

    
19
    if(place){
20
        url += `&place=${place}`
21
    }
22

    
23
    return await axiosInstance.get(
24
        url
25
    )
26
}
27

    
(7-7/9)