เพิ่ม api (support)
This commit is contained in:
parent
830ad6d3f1
commit
12ac44c7c2
3 changed files with 24 additions and 6 deletions
12
src/api/support/api.support.ts
Normal file
12
src/api/support/api.support.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import env from "../index";
|
||||
|
||||
const support = `${env.API_URL_SUPPORT}`;
|
||||
|
||||
export default {
|
||||
supportMessageStatus: (id: string) => `${support}/issue/${id}/message-status`,
|
||||
supportMessage: (id: string, pageSize: number = 999, page: number = 1) =>
|
||||
`${support}/issue/${id}/message?pageSize=${pageSize}&page=${page}`,
|
||||
supportIssueUserId: (userId: string) => `${support}/issue?userId=${userId}`,
|
||||
supportIssue: `${support}/issue`,
|
||||
supportIssueCategory: `${support}/issue-category`,
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue