mirror of
https://github.com/FatttSnake/Pinnacle-OA.git
synced 2026-04-04 22:41:24 +08:00
69 lines
1.3 KiB
Java
69 lines
1.3 KiB
Java
package com.cfive.pinnacle.entity;
|
|
|
|
import com.baomidou.mybatisplus.annotation.TableField;
|
|
import com.baomidou.mybatisplus.annotation.TableId;
|
|
import com.baomidou.mybatisplus.annotation.TableLogic;
|
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
import com.baomidou.mybatisplus.annotation.Version;
|
|
|
|
import java.io.Serial;
|
|
import java.io.Serializable;
|
|
|
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
|
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
|
import lombok.Data;
|
|
import lombok.experimental.Accessors;
|
|
|
|
/**
|
|
* <p>
|
|
* 用户
|
|
* </p>
|
|
*
|
|
* @author FatttSnake
|
|
* @since 2023-04-30
|
|
*/
|
|
@Data
|
|
@Accessors(chain = true)
|
|
@TableName("t_user")
|
|
public class User implements Serializable {
|
|
|
|
@Serial
|
|
private static final long serialVersionUID = 1L;
|
|
|
|
@TableId("id")
|
|
@JsonSerialize(using = ToStringSerializer.class)
|
|
private Long id;
|
|
|
|
/**
|
|
* 用户名
|
|
*/
|
|
@TableField("username")
|
|
private String username;
|
|
|
|
/**
|
|
* 密码
|
|
*/
|
|
@TableField("passwd")
|
|
private String passwd;
|
|
|
|
/**
|
|
* 部门
|
|
*/
|
|
@TableField("department_id")
|
|
private Long departmentId;
|
|
|
|
/**
|
|
* 启用
|
|
*/
|
|
@TableField("enable")
|
|
private Integer enable;
|
|
|
|
@TableField("deleted")
|
|
@TableLogic
|
|
private Integer deleted;
|
|
|
|
@TableField("version")
|
|
@Version
|
|
private Integer version;
|
|
}
|