@@ -38,6 +38,7 @@ export const endpoints = {
|
||||
// Unified student tickets — handles services (type=service), consultants
|
||||
// (type=advise) and inbox (type=ticket) via the same endpoint with a filter.
|
||||
getStudentTickets: '/student/tickets',
|
||||
getStudentTicketStats: '/student/tickets/stats',
|
||||
createStudentTicket: '/student/tickets',
|
||||
showStudentTicket: '/student/tickets/:id',
|
||||
sendStudentTicketMessage: '/student/tickets/:id/messages',
|
||||
|
||||
@@ -3,6 +3,9 @@ import { buildUrl, endpoints } from '@/services/api/endpoints'
|
||||
|
||||
export const apiGetStudentTickets = (params) => http.get(endpoints.getStudentTickets, { params })
|
||||
|
||||
export const apiGetStudentTicketStats = (params) =>
|
||||
http.get(endpoints.getStudentTicketStats, { params })
|
||||
|
||||
export const apiShowStudentTicket = (id) => http.get(buildUrl(endpoints.showStudentTicket, { id }))
|
||||
|
||||
export const apiCreateStudentTicket = (payload) => http.post(endpoints.createStudentTicket, payload)
|
||||
|
||||
Reference in New Issue
Block a user