Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- workSchedule: {
- all: (params = { count: 10000 }) => {
- const ENDPOINT = ConturConfig.get().API_SP;
- return axios.get(`${ENDPOINT}/api/wt_schedule/v1/workScheduleList`, {
- params
- });
- },
- find: id => {
- const ENDPOINT = ConturConfig.get().API_SP;
- return axios.get(
- `${ENDPOINT}/api/wt_schedule/v1/workScheduleFull/${id}`
- );
- },
- update: (guid, params) => {
- const ENDPOINT = ConturConfig.get().API_SP;
- if (params.spStatus) {
- return axios.put(
- `${ENDPOINT}/api/wt_schedule/v1/workschedule/${guid}/status`,
- { guid, ...params }
- );
- }
- },
- calendar: (year) => {
- const ENDPOINT = ConturConfig.get().API_SP;
- return axios.get(`${ENDPOINT}/api/wt_schedule/v1/workScheduleCalendar`, {
- params: { year }
- });
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement