package com.github.wxiaoqi.security.admin.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.util.StringUtils;

/**
 * @author libin
 * @version 1.0
 * @description
 * @data 2019/7/11 10:39
 */
@Data
public class UserMemberSaveDTO {


    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "会员名")
    private String memberName;

    /**
     *  会员等级
     */
    @ApiModelProperty(value = "会员等级")
    private Integer memberLevel;

    /**
     *  赠送总天数
     */
    @ApiModelProperty(value = "赠送总天数")
    private Integer totalNumber;

    /**
     *  剩余天数
     */
    @ApiModelProperty(value = "剩余天数")
    private Integer rentFreeDays;


    /**
     *  剩余天数
     */
    @ApiModelProperty(value = "剩余天数")
    private Integer source;

    public String getPhone() {
        return StringUtils.hasText(phone)?phone.trim():"";
    }
}
