| | |
| | | |
| | | import com.rongyichuang.common.entity.BaseEntity; |
| | | import jakarta.persistence.*; |
| | | import org.hibernate.annotations.Where; |
| | | |
| | | import java.math.BigDecimal; |
| | | |
| | |
| | | */ |
| | | @Entity |
| | | @Table(name = "t_player") |
| | | @Where(clause = "state = 1") |
| | | public class Player extends BaseEntity { |
| | | |
| | | /** |
| | |
| | | @Column(name = "introduction", columnDefinition = "TEXT") |
| | | private String introduction; |
| | | |
| | | /** |
| | | * 审核状态:0-等待审核,1-审核通过,2-不通过 |
| | | */ |
| | | @Column(name = "audit_state", nullable = false) |
| | | private Integer auditState; |
| | | |
| | | |
| | | /** |
| | | * 驳回原因 |
| | |
| | | @Column(name = "user_id", nullable = false) |
| | | private Long userId; |
| | | |
| | | /** |
| | | * 状态:1-正常,0-删除 |
| | | */ |
| | | @Column(name = "state", nullable = false) |
| | | private Integer state = 1; |
| | | |
| | | // 构造函数 |
| | | public Player() {} |
| | | |
| | | public Player(String name, String phone, Long roleId, Integer auditState, Long userId) { |
| | | public Player(String name, String phone, Long roleId, Long userId) { |
| | | this.name = name; |
| | | this.phone = phone; |
| | | this.roleId = roleId; |
| | | this.auditState = auditState; |
| | | this.userId = userId; |
| | | } |
| | | |
| | |
| | | this.introduction = introduction; |
| | | } |
| | | |
| | | public Integer getAuditState() { |
| | | return auditState; |
| | | } |
| | | |
| | | public void setAuditState(Integer auditState) { |
| | | this.auditState = auditState; |
| | | } |
| | | |
| | | public String getRejectReason() { |
| | | return rejectReason; |
| | |
| | | this.userId = userId; |
| | | } |
| | | |
| | | public Integer getState() { |
| | | return state; |
| | | } |
| | | |
| | | public void setState(Integer state) { |
| | | this.state = state; |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "Player{" + |
| | |
| | | ", name='" + name + '\'' + |
| | | ", phone='" + phone + '\'' + |
| | | ", roleId=" + roleId + |
| | | ", auditState=" + auditState + |
| | | ", userId=" + userId + |
| | | '}'; |
| | | } |