/// <summary>
 /// 构造器
 /// </summary>
 /// <param name="tenantTypeId">租户类型Id</param>
 /// <param name="attitudeRepository">顶踩数据访问</param>
 /// <param name="attitudeRecordRepository">顶踩记录数据访问</param>
 public AttitudeService(string tenantTypeId, IAttitudeRepository attitudeRepository, IAttitudeRecordRepository attitudeRecordRepository, AttitudeMode mode = AttitudeMode.Bidirection)
 {
     this.mode = mode;
     this.tenantTypeId = tenantTypeId;
     this.attitudeRepository = attitudeRepository;
     this.attitudeRecordRepository = attitudeRecordRepository;
 }
Exemple #2
0
 /// <summary>
 /// 构造器
 /// </summary>
 /// <param name="tenantTypeId">租户类型Id</param>
 /// <param name="attitudeRepository">顶踩数据访问</param>
 /// <param name="attitudeRecordRepository">顶踩记录数据访问</param>
 public AttitudeService(string tenantTypeId, IAttitudeRepository attitudeRepository, IAttitudeRecordRepository attitudeRecordRepository, AttitudeMode mode = AttitudeMode.Bidirection)
 {
     this.mode                     = mode;
     this.tenantTypeId             = tenantTypeId;
     this.attitudeRepository       = attitudeRepository;
     this.attitudeRecordRepository = attitudeRecordRepository;
 }