update entity

This commit is contained in:
2024-11-30 16:15:19 +07:00
parent c7ae68aa46
commit 191e542de4
7 changed files with 3 additions and 19 deletions

View File

@ -5,7 +5,7 @@ import { OrmHelper } from "../helpers/orm";
import Joi from "joi"; import Joi from "joi";
import { ILogObj, Logger } from "tslog"; import { ILogObj, Logger } from "tslog";
import { Language } from "../langs/lang"; import { Language } from "../langs/lang";
import { Paging } from "../types/paging"; import { Paging } from "entity";
import CommonHelper from "../helpers/common"; import CommonHelper from "../helpers/common";
import * as fastcsv from 'fast-csv'; import * as fastcsv from 'fast-csv';
import dayjs from "dayjs"; import dayjs from "dayjs";

View File

@ -5,7 +5,7 @@ import { OrmHelper } from "../helpers/orm";
import Joi from "joi"; import Joi from "joi";
import { ILogObj, Logger } from "tslog"; import { ILogObj, Logger } from "tslog";
import { Language } from "../langs/lang"; import { Language } from "../langs/lang";
import { Paging } from "../types/paging"; import { Paging } from "entity";
import CommonHelper from "../helpers/common"; import CommonHelper from "../helpers/common";
import * as fastcsv from 'fast-csv'; import * as fastcsv from 'fast-csv';
import dayjs from "dayjs"; import dayjs from "dayjs";

View File

@ -1,5 +1,5 @@
import { Response } from 'express'; import { Response } from 'express';
import { ErrorType, ErrorValidation } from '../../types/error'; import { ErrorType, ErrorValidation } from 'entity';
export class ReturnHelper { export class ReturnHelper {
static successResponseAny( static successResponseAny(

View File

@ -1,3 +0,0 @@
export type ErrorType = 'General' | 'Raw' | 'Validation' | 'Unauthorized';
export type ErrorValidation = { [key: string]: string };

View File

@ -1,8 +0,0 @@
export interface Paging {
page: number,
limit: number,
filter: any,
with_deleted: boolean,
order_field: string,
order_direction: 'ASC' | 'DESC'
}

View File

@ -1 +0,0 @@
export type Role = 'ADMINISTRATOR' | 'HR' | 'STAFF';

View File

@ -1,4 +0,0 @@
export enum Status {
"Active" = "Y",
"Not Active" = "N"
};