//构造函数传递对象 public OuterUserInfo(IOuterUserBaseInfo _baseInfo, IOuterUserHomeInfo _homeInfo, IOuterUserOfficeInfo _officeInfo) { this.baseInfo = _baseInfo; this.homeInfo = _homeInfo; this.officeInfo = _officeInfo; //数据处理 this.baseMap = this.baseInfo.GetUserBaseInfo(); this.homeMap = this.homeInfo.GetUserHomeInfo(); this.officeMap = this.officeInfo.GetUserOfficeInfo(); }
public OuterUserInfo(IOuterUserBaseInfo outerUserBaseInfo, IOuterUserHomeInfo outerUserHomeInfo, IOuterUserOfficeInfo outerUserOfficeInfo) { _outerUserBaseInfo = outerUserBaseInfo; _outerUserHomeInfo = outerUserHomeInfo; _outerUserOfficeInfo = outerUserOfficeInfo; userName = outerUserBaseInfo.GetUserBaseInfo()["UserName"]; phone = outerUserHomeInfo.GetUserHomeInfo()["Phone"]; job = outerUserOfficeInfo.GetUserOfficeInfo()["Job"]; }