2024-06-13 11:34:25 +07:00
|
|
|
import {
|
|
|
|
|
Controller,
|
|
|
|
|
Get,
|
|
|
|
|
Post,
|
|
|
|
|
Put,
|
|
|
|
|
Delete,
|
|
|
|
|
Route,
|
|
|
|
|
Security,
|
|
|
|
|
Tags,
|
|
|
|
|
Body,
|
|
|
|
|
Path,
|
|
|
|
|
Request,
|
|
|
|
|
Query,
|
|
|
|
|
} from "tsoa";
|
|
|
|
|
import { AppDataSource } from "../database/data-source";
|
|
|
|
|
import { Brackets, Not } from "typeorm";
|
|
|
|
|
import HttpSuccess from "../interfaces/http-success";
|
|
|
|
|
import HttpError from "../interfaces/http-error";
|
|
|
|
|
import HttpStatusCode from "../interfaces/http-status";
|
|
|
|
|
@Route("api/v1/kpi/report")
|
|
|
|
|
@Tags("Report")
|
|
|
|
|
@Security("bearerAuth")
|
|
|
|
|
export class ReportController extends Controller {
|
|
|
|
|
// private developmentScholarshipRepository = AppDataSource.getRepository(DevelopmentScholarship);
|
|
|
|
|
|
|
|
|
|
@Get("announcement/{id}")
|
|
|
|
|
async GetReportAnnouncement(@Path() id: string) {
|
|
|
|
|
const formattedData = {
|
2024-06-13 12:25:27 +07:00
|
|
|
periodId: "",
|
|
|
|
|
root: "",
|
2024-06-13 11:34:25 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
return new HttpSuccess({
|
|
|
|
|
template: "announce",
|
|
|
|
|
reportName: "announce",
|
|
|
|
|
data: formattedData,
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|