feat(go, ts): add system-region mapping and highlight functionality
This commit is contained in:
@@ -53,6 +53,20 @@ export namespace main {
|
||||
return a;
|
||||
}
|
||||
}
|
||||
export class SystemRegion {
|
||||
system: string;
|
||||
region: string;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new SystemRegion(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.system = source["system"];
|
||||
this.region = source["region"];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user