import _ from "lodash"; export interface IJudicialSaleItemResponse { judicialSaleItemId: number; judicialSaleId: number; /** * 拍卖起止时间 */ scopeDate: string; /** * 拍卖标的 */ targetObject: string; /** * 拍卖阶段 */ auctionType: string; /** * 执行法院 */ court: string; /** * 公告标题 */ title: string; /** * 公告日期 */ subTime: number; /** * 竞买公告 */ content: string; /** * 起拍价(元) */ startingPrice: number; /** * 评估价(元) */ evaluationPrice: number; /** * 竞买须知链接 */ biddingInstructionsUrl: string; /** * 标的物介绍链接 */ itemFormUrl: string; /** * 标的物位置 */ itemAddressDetail: string; } export class TJudicialSaleItemResponse implements IJudicialSaleItemResponse { judicialSaleItemId: number = 0; judicialSaleId: number = 0; scopeDate: string = ""; targetObject: string = ""; auctionType: string = ""; court: string = ""; title: string = ""; subTime: number = 0; content: string = ""; startingPrice: number = 0; evaluationPrice: number = 0; biddingInstructionsUrl: string = ""; itemFormUrl: string = ""; itemAddressDetail: string = ""; constructor(data: Partial = {}) { if (data) { _.merge(this, _.pick(data, Object.keys(this))); } } }