feat: Contest mode added
This commit is contained in:
@@ -879,6 +879,27 @@ export namespace cluster {
|
||||
|
||||
}
|
||||
|
||||
export namespace contest {
|
||||
|
||||
export class Def {
|
||||
code: string;
|
||||
name: string;
|
||||
exchange: string;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new Def(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.code = source["code"];
|
||||
this.name = source["name"];
|
||||
this.exchange = source["exchange"];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
export namespace extsvc {
|
||||
|
||||
export class ServiceConfig {
|
||||
|
||||
Reference in New Issue
Block a user