package shop.alien.entity.store;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * life_user 个性化设置
 */
@Data
@JsonInclude
@TableName("life_user_personalization_setting")
@ApiModel(value = "LifeUserPersonalizationSetting", description = "用户个性化设置")
public class LifeUserPersonalizationSetting implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "用户id，对应 life_user.id")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty(value = "个性化推荐 0不推荐 1推荐")
    @TableField("personalized_recommendation")
    private Integer personalizedRecommendation;

    @ApiModelProperty(value = "允许关注的人评论我 0不允许 1允许")
    @TableField("only_followers_comment")
    private Integer onlyFollowersComment;

    @ApiModelProperty(value = "粉丝列表 0不可见 1可见")
    @TableField("hide_fans_list")
    private Integer hideFansList;

    @ApiModelProperty(value = "关注列表 0不可见 1可见")
    @TableField("hide_follow_list")
    private Integer hideFollowList;

    @ApiModelProperty(value = "接收消息 0不接收 1可接收")
    @TableField("notify_receive_message")
    private Integer notifyReceiveMessage;

    @ApiModelProperty(value = "点赞 0不可点赞 1可点赞")
    @TableField("notify_like")
    private Integer notifyLike;

    @ApiModelProperty(value = "关注 0不可关注 1可关注")
    @TableField("notify_follow")
    private Integer notifyFollow;

    @ApiModelProperty(value = "评论 0不可评论 1可评论")
    @TableField("notify_comment")
    private Integer notifyComment;

    @ApiModelProperty(value = "是否跟随系统字体 0不跟随 1跟随；为1时不更新 chatFontLevel")
    @TableField("follow_system_font")
    private Integer followSystemFont;

    @ApiModelProperty(value = "字体档位 0～4，仅 followSystemFont=0 时可调整")
    @TableField("chat_font_level")
    private Integer chatFontLevel;

    @ApiModelProperty(value = "允许自动刷新 0不允许 1允许")
    @TableField("auto_refresh")
    private Integer autoRefresh;

    @ApiModelProperty(value = "个人主页设置 0关闭 1打开")
    @TableField("personal_homepage_setting")
    private Integer personalHomepageSetting;

    @ApiModelProperty(value = "删除标记 0未删除 1已删除")
    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "created_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;

    @ApiModelProperty(value = "创建人ID")
    @TableField("created_user_id")
    private Integer createdUserId;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "updated_time", fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatedTime;

    @ApiModelProperty(value = "修改人ID")
    @TableField("updated_user_id")
    private Integer updatedUserId;
}
