/*
 * Copyright (c) 2023 codvision.com All Rights Reserved.
 */

package com.codvision.base.entity;

import cn.hutool.crypto.digest.DigestUtil;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 框架后台管理用户
 *
 * @author lingee
 * @date 2023/11/2
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tbl_backend_user")
@ApiModel(value = "BackendUser", description = "框架后台管理用户")
public class BackendUser implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "唯一标识", hidden = true)
    private Integer id;

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "昵称")
    private String nickname;

    public static void main(String[] args) {
        System.out.println(DigestUtil.bcrypt("Jcpt!@2023"));
    }
}
