package com.rongyichuang.rating.dto.response;
|
|
import com.rongyichuang.rating.entity.RatingItem;
|
|
/**
|
* 评分条目响应DTO
|
*/
|
public class RatingItemResponse {
|
|
private Long id;
|
private String name;
|
private Integer maxScore;
|
private Integer orderNo;
|
|
// 构造函数
|
public RatingItemResponse() {}
|
|
public RatingItemResponse(RatingItem item) {
|
this.id = item.getId();
|
this.name = item.getName();
|
this.maxScore = item.getMaxScore();
|
this.orderNo = item.getOrderNo();
|
}
|
|
// Getter和Setter方法
|
public Long getId() {
|
return id;
|
}
|
|
public void setId(Long id) {
|
this.id = id;
|
}
|
|
public String getName() {
|
return name;
|
}
|
|
public void setName(String name) {
|
this.name = name;
|
}
|
|
public Integer getMaxScore() {
|
return maxScore;
|
}
|
|
public void setMaxScore(Integer maxScore) {
|
this.maxScore = maxScore;
|
}
|
|
public Integer getOrderNo() {
|
return orderNo;
|
}
|
|
public void setOrderNo(Integer orderNo) {
|
this.orderNo = orderNo;
|
}
|
}
|