All Downloads are FREE. Search and download functionalities are using the official Maven repository.

im.shs.tick.mybatis.model.BaseUserModel Maven / Gradle / Ivy

The newest version!
package im.shs.tick.mybatis.model;

import com.fasterxml.jackson.annotation.JsonIgnore;
import im.shs.tick.core.enums.UserGender;
import im.shs.tick.core.enums.UserStatus;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = true)
public abstract class BaseUserModel> extends BaseModel {

    /**
     * 用户名
     */
    protected String userName;
    /**
     * 手机
     */
    protected String mobile;
    /**
     * 昵称
     */
    protected String nickName;
    /**
     * 密码
     */
    protected String password;
    /**
     * 随机盐
     */
    @JsonIgnore
    protected String salt;
    /**
     * 头像
     */
    protected String avatar;
    /**
     * 生日
     */
    protected LocalDateTime birthday;
    /**
     * 性别
     */
    protected UserGender gender = UserGender.UNKNOWN;
    /**
     * 状态
     */
    protected UserStatus status = UserStatus.ENABLE;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy