Add crc to responsebody
This commit is contained in:
parent
b55c865715
commit
911b96997e
@ -3,12 +3,14 @@ export class ResponseBody<T>
|
|||||||
public err: number;
|
public err: number;
|
||||||
public errcode: string | null;
|
public errcode: string | null;
|
||||||
public data: T;
|
public data: T;
|
||||||
|
public crc: number;
|
||||||
|
|
||||||
public constructor(data: T, err: number = 0, errcode: string | null = null)
|
public constructor(data: T, crc: number = 0, err: number = 0, errcode: string | null = null)
|
||||||
{
|
{
|
||||||
this.err = err;
|
this.err = err;
|
||||||
this.errcode = errcode;
|
this.errcode = errcode;
|
||||||
this.data = data;
|
this.data = data;
|
||||||
|
this.crc = crc;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user