fix(core): update
This commit is contained in:
parent
e8dbd7d793
commit
09e3ea8733
@ -2,12 +2,12 @@ export type TStatusGroup = 'clientError' | 'serverError';
|
|||||||
|
|
||||||
export class HttpStatus {
|
export class HttpStatus {
|
||||||
protected static statusMap: {[key:string]: HttpStatus} = {};
|
protected static statusMap: {[key:string]: HttpStatus} = {};
|
||||||
public static getHttpStatusByString (codeArg: number) {
|
public static getHttpStatusByString (codeStringArg: string) {
|
||||||
return HttpStatus.statusMap[codeArg.toString()];
|
return HttpStatus.statusMap[codeStringArg];
|
||||||
}
|
}
|
||||||
code: number;
|
public code: number;
|
||||||
text: string;
|
public text: string;
|
||||||
description: string;
|
public description: string;
|
||||||
constructor(optionsArg: { code: number; text: string; description: string }) {
|
constructor(optionsArg: { code: number; text: string; description: string }) {
|
||||||
this.code = optionsArg.code;
|
this.code = optionsArg.code;
|
||||||
this.text = optionsArg.text;
|
this.text = optionsArg.text;
|
||||||
|
Loading…
Reference in New Issue
Block a user