2023-08-21 18:31:23 +07:00
|
|
|
/**
|
|
|
|
|
* api รายงานทั้งหมด
|
|
|
|
|
*/
|
|
|
|
|
import env from "../index";
|
|
|
|
|
const reportOrder = `${env.API_REPORT2_URI}/report/order`;
|
2023-08-25 14:48:10 +07:00
|
|
|
const reportRetire = `${env.API_REPORT2_URI}/report/retire`;
|
2023-08-21 18:31:23 +07:00
|
|
|
|
|
|
|
|
export default {
|
2023-08-25 14:48:10 +07:00
|
|
|
reportOrderCover: (fileType: string, id: string) =>
|
|
|
|
|
`${reportOrder}/cover/${fileType}/${id}`,
|
|
|
|
|
reportOrderAttachment: (fileType: string, id: string) =>
|
|
|
|
|
`${reportOrder}/attachment/${fileType}/${id}`,
|
|
|
|
|
reportRetireList: (fileType: string, id: string) =>
|
|
|
|
|
`${reportRetire}/${fileType}/${id}`,
|
2023-08-21 18:31:23 +07:00
|
|
|
};
|