User.java
507 字节
package com.example.studyspringboot01.domain;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
@TableName("tb_user")
@Data
public class User {
public Integer id;
public String username;
public String password;
//逻辑删除字段,标记当前字段是否被删除
//@TableLogic(value = "0",delval = "1") //0表示未删除,1表示已删除
public Integer deleted;
public Integer version;
}