| 1234567891011121314151617 |
- import service from '@/utils/request'
- export const getIncidentList = (params) => {
- return service({ url: '/incident/list', method: 'get', params })
- }
- export const getIncidentDetail = (id) => {
- return service({ url: `/incident/${id}`, method: 'get' })
- }
- export const createIncident = (data) => {
- return service({ url: '/incident', method: 'post', data })
- }
- export const transitionIncident = (id, data) => {
- return service({ url: `/incident/${id}/transition`, method: 'post', data })
- }
- export const getIncidentStats = () => {
- return service({ url: '/incident/stats', method: 'get' })
- }
|