fix: ticket
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
import { http } from '@/services/api/http'
|
||||
import { buildUrl, endpoints } from '@/services/api/endpoints'
|
||||
|
||||
export const apiGetCounselorTickets = (params) =>
|
||||
http.get(endpoints.getCounselorTickets, { params })
|
||||
|
||||
export const apiShowCounselorTicket = (id) =>
|
||||
http.get(buildUrl(endpoints.showCounselorTicket, { id }))
|
||||
|
||||
export const apiSendCounselorTicketMessage = (id, payload) =>
|
||||
http.post(buildUrl(endpoints.sendCounselorTicketMessage, { id }), payload)
|
||||
|
||||
export const apiChangeCounselorTicketStatus = (id, payload) =>
|
||||
http.patch(buildUrl(endpoints.changeCounselorTicketStatus, { id }), payload)
|
||||
Reference in New Issue
Block a user