แก้ไขอุทธรณ์/ร้องทุกข์ => ปรับ API
This commit is contained in:
parent
d1b1701b58
commit
7d4af6044b
2 changed files with 26 additions and 16 deletions
|
|
@ -1,14 +1,24 @@
|
|||
import env from "../index"
|
||||
import env from "../index";
|
||||
|
||||
const appeal = `${env.API_URI}/discipline/complaint_appeal`
|
||||
const profile = `${env.API_URI}/profile/keycloak`
|
||||
const appeal = `${env.API_URI}/discipline/complaint_appeal`;
|
||||
const profile = `${env.API_URI}/profile/keycloak`;
|
||||
|
||||
export default {
|
||||
profileBykeycloak:()=>`${profile}`,
|
||||
appealMainList:(status: string, type: string, year: number, page: number, pageSize: number, keyword: string)=>`${appeal}/user?status=${status}&type=${type}&year=${year}&page=${page}&pageSize=${pageSize}&keyword=${keyword}`,
|
||||
appealAdd:()=>`${appeal}`,
|
||||
profileBykeycloak: () => `${profile}`,
|
||||
positionBykeycloak: () => `${env.API_URI}/org/profile/keycloak/position`,
|
||||
|
||||
appealByID:(id:string)=>`${appeal}/${id}`,
|
||||
appealMainList: (
|
||||
status: string,
|
||||
type: string,
|
||||
year: number,
|
||||
page: number,
|
||||
pageSize: number,
|
||||
keyword: string
|
||||
) =>
|
||||
`${appeal}/user?status=${status}&type=${type}&year=${year}&page=${page}&pageSize=${pageSize}&keyword=${keyword}`,
|
||||
appealAdd: () => `${appeal}`,
|
||||
|
||||
appealByPrintReport:(id:string)=>`${appeal}/report/${id}`
|
||||
}
|
||||
appealByID: (id: string) => `${appeal}/${id}`,
|
||||
|
||||
appealByPrintReport: (id: string) => `${appeal}/report/${id}`,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue