สิทธิ์เมนู เงินเดือน setup(1-3)
This commit is contained in:
parent
927d9563f6
commit
654d1e2470
5 changed files with 21 additions and 7 deletions
|
|
@ -21,6 +21,8 @@ import HttpStatusCode from "../interfaces/http-status";
|
|||
import HttpError from "../interfaces/http-error";
|
||||
import { CreateSalaryRank, SalaryRanks, UpdateSalaryRank } from "../entities/SalaryRanks";
|
||||
import { Salarys } from "../entities/Salarys";
|
||||
import { RequestWithUser } from "../middlewares/user";
|
||||
import permission from "../interfaces/permission";
|
||||
@Route("api/v1/salary/rate")
|
||||
@Tags("SalaryRank")
|
||||
@Security("bearerAuth")
|
||||
|
|
@ -118,10 +120,12 @@ export class SalaryRanksController extends Controller {
|
|||
@Get("{id}")
|
||||
async listSalaryRanks(
|
||||
@Path() id: string,
|
||||
@Request() req: RequestWithUser,
|
||||
@Query("page") page: number = 1,
|
||||
@Query("pageSize") pageSize: number = 10,
|
||||
@Query("keyword") keyword?: string,
|
||||
) {
|
||||
await new permission().PermissionGet(req, "SYS_SALARY_CHART_OFFICER");
|
||||
const [salaryRank, total] = await AppDataSource.getRepository(SalaryRanks)
|
||||
.createQueryBuilder("salaryRank")
|
||||
.andWhere(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue