checkpoint
This commit is contained in:
parent
ba60192ec1
commit
d737ecdf11
11 changed files with 452 additions and 49 deletions
18
src/interfaces/http-success.ts
Normal file
18
src/interfaces/http-success.ts
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import HttpStatus from "./http-status";
|
||||
|
||||
class HttpSuccess {
|
||||
/**
|
||||
* HTTP Status Code
|
||||
*/
|
||||
status: HttpStatus;
|
||||
message: string;
|
||||
result?: any;
|
||||
|
||||
constructor(result?: any) {
|
||||
this.status = HttpStatus.OK;
|
||||
this.message = "สำเร็จ";
|
||||
this.result = result;
|
||||
}
|
||||
}
|
||||
|
||||
export default HttpSuccess;
|
||||
Loading…
Add table
Add a link
Reference in a new issue