เพิ่มฟัง์ชันและ api การค้นหาหัวข้อปัญหา (support)
This commit is contained in:
parent
12ac44c7c2
commit
7ac8cbc87c
3 changed files with 105 additions and 31 deletions
|
|
@ -4,9 +4,21 @@ 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`,
|
||||
|
||||
supportIssue: (pageSize: number = 999, page: number = 1) =>
|
||||
`${support}/issue?pageSize=${pageSize}&page=${page}`,
|
||||
|
||||
supportSearchIssue: (
|
||||
search: string,
|
||||
pageSize: number = 999,
|
||||
page: number = 1
|
||||
) => `${support}/issue?pageSize=${pageSize}&page=${page}&search=${search}`,
|
||||
|
||||
supportIssueCategory: `${support}/issue-category`,
|
||||
supportNewIssue: `${support}/issue`,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue