import _ from "lodash"; export interface IBaseInfoIndustryResponse { baseInfoIndustryId: number; baseInfoId: number; /** * 国民经济行业分类门类 */ category: string; /** * 国民经济行业分类大类 */ categoryBig: string; /** * 国民经济行业分类中类 */ categoryMiddle: string; /** * 国民经济行业分类小类 */ categorySmall: string; } export class TBaseInfoIndustryResponse implements IBaseInfoIndustryResponse { baseInfoIndustryId: number = 0; baseInfoId: number = 0; category: string = ""; categoryBig: string = ""; categoryMiddle: string = ""; categorySmall: string = ""; constructor(data: Partial = {}) { if (data) { _.merge(this, _.pick(data, Object.keys(this))); } } }