// 定义 CodeView 类 class CodeView { public Value: string; public Key: string; constructor() { this.Value = ""; this.Key = ""; } } // 定义 Province 类 class Province extends CodeView { public Child: City[]; constructor() { super(); this.Child = []; } } // 定义 City 类 class City extends CodeView { public Child: County[]; constructor() { super(); this.Child = []; } } // 定义 County 类 class County extends CodeView { constructor() { super(); } } export { CodeView, Province, City, County };