ตัดฟิลด์ซ้ำและฟิลด์ id ออก
This commit is contained in:
parent
12e8cdb080
commit
9fe91ce49c
1 changed files with 22 additions and 1 deletions
|
|
@ -325,7 +325,28 @@ export class ApiManageController extends Controller {
|
|||
];
|
||||
|
||||
private readonly DEFAULT_PAGE_SIZE = 10; // ขนาดหน้าเริ่มต้น
|
||||
private readonly EXCLUDED_COLUMNS = ["createdUserId", "lastUpdateUserId"]; // ฟิลด์ที่ไม่ต้องการแสดงในผลลัพธ์
|
||||
private readonly EXCLUDED_COLUMNS = [
|
||||
"createdUserId",
|
||||
"lastUpdateUserId",
|
||||
"createdAt",
|
||||
"createdFullName",
|
||||
"lastUpdateFullName",
|
||||
"avatarName",
|
||||
"profileId",
|
||||
"prefixId",
|
||||
"profileEmployeeId",
|
||||
"documentId",
|
||||
"orgRevisionId",
|
||||
"posMasterId",
|
||||
"orgRootId",
|
||||
"orgChild1Id",
|
||||
"orgChild2Id",
|
||||
"orgChild3Id",
|
||||
"orgChild4Id",
|
||||
"ancestorDNA",
|
||||
"keycloak",
|
||||
"commandId",
|
||||
]; // ฟิลด์ที่ไม่ต้องการแสดงในผลลัพธ์
|
||||
|
||||
private validateSuperAdminRole(user: any): void {
|
||||
if (!user.role.includes("SUPER_ADMIN")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue