start project
This commit is contained in:
commit
0703810fa3
62 changed files with 12665 additions and 0 deletions
19
src/interfaces/http-success.ts
Normal file
19
src/interfaces/http-success.ts
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import { RequestWithUser } from "../middlewares/user";
|
||||
import HttpStatus from "./http-status";
|
||||
import { addLogSequence } from "./utils";
|
||||
|
||||
class HttpSuccess {
|
||||
/**
|
||||
* HTTP Status Code
|
||||
*/
|
||||
status: HttpStatus;
|
||||
message: string;
|
||||
data?: any;
|
||||
|
||||
constructor(data?: any) {
|
||||
this.status = HttpStatus.OK;
|
||||
this.message = "สำเร็จ";
|
||||
this.data = data;
|
||||
}
|
||||
}
|
||||
export default HttpSuccess;
|
||||
Loading…
Add table
Add a link
Reference in a new issue