riku
2024-05-10 f5624d6a7ad32ee475e00edbad26bc98ea4629e1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { $http } from './index';
 
/**
 *
 */
export default {
  fethchMission({ type, page, pageSize }) {
    let params = `page=${page}&perPage=${pageSize}`;
    params += type ? `&type=${type}` : '';
    return $http.get(`air/mission/type?${params}`).then((res) => res.data);
  },
 
  putNewMission(mission) {
    return $http.post(`air/mission/create`, mission).then((res) => res.data);
  },
 
  deleteMission(missionCode) {
    let params = `missionCode=${missionCode}`;
    return $http.post(`air/mission/delete?${params}`).then((res) => res.data);
  }
};