package ink.wgink.service.user.excel;

import com.alibaba.excel.annotation.ExcelProperty;

/**
 * When you feel like quitting. Think about why you started
 * 当你想要放弃的时候，想想当初你为何开始
 *
 * @ClassName: UserExcelError
 * @Description: 人员Excel异常
 * @Author: WangGeng
 * @Date: 2020/1/7 12:28 下午
 * @Version: 1.0
 **/
public class UserExcelError {

    @ExcelProperty(index = 0)
    private String userUsername;
    @ExcelProperty(index = 1)
    private String userName;
    @ExcelProperty(index = 2)
    private String userPhone;
    @ExcelProperty(index = 3)
    private String userEmail;
    @ExcelProperty(index = 4)
    private String reason;

    public String getUserUsername() {
        return userUsername == null ? "" : userUsername.trim();
    }

    public void setUserUsername(String userUsername) {
        this.userUsername = userUsername;
    }

    public String getUserName() {
        return userName == null ? "" : userName.trim();
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPhone() {
        return userPhone == null ? "" : userPhone.trim();
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getUserEmail() {
        return userEmail == null ? "" : userEmail.trim();
    }

    public void setUserEmail(String userEmail) {
        this.userEmail = userEmail;
    }

    public String getReason() {
        return reason == null ? "" : reason.trim();
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append("\"userUsername\":")
                .append("\"").append(userUsername).append("\"");
        sb.append(",\"userName\":")
                .append("\"").append(userName).append("\"");
        sb.append(",\"userPhone\":")
                .append("\"").append(userPhone).append("\"");
        sb.append(",\"userEmail\":")
                .append("\"").append(userEmail).append("\"");
        sb.append(",\"reason\":")
                .append("\"").append(reason).append("\"");
        sb.append('}');
        return sb.toString();
    }
}