แก้ไขอุทธรณ์/ร้องทุกข์ => ปรับ API

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-06-19 09:59:55 +07:00
parent d1b1701b58
commit 7d4af6044b
2 changed files with 26 additions and 16 deletions

View file

@ -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}`,
};