mirror of
https://github.com/suyiiyii/SIMS.git
synced 2025-07-16 20:23:01 +08:00
35 lines
854 B
Java
35 lines
854 B
Java
package top.suyiiyii.sims.entity;
|
|
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
|
import com.tangzc.autotable.annotation.ColumnNotNull;
|
|
import com.tangzc.mpe.autotable.annotation.ColumnId;
|
|
import com.tangzc.mpe.autotable.annotation.Table;
|
|
import lombok.AllArgsConstructor;
|
|
import lombok.Data;
|
|
import lombok.NoArgsConstructor;
|
|
|
|
/**
|
|
* @Author tortoise
|
|
* @Date 2024/8/9 14:02
|
|
* @PackageName:top.suyiiyii.sims.entity
|
|
* @ClassName: RoleMapper
|
|
* @Description: TODO
|
|
* @Version 1.0
|
|
*/
|
|
@Data
|
|
@Table
|
|
@AllArgsConstructor
|
|
@NoArgsConstructor
|
|
public class Role {
|
|
@ColumnId(mode = IdType.AUTO, comment = "id主键")
|
|
private Integer id;
|
|
//管理员,普通用户,组员,组长,队长
|
|
@ColumnNotNull
|
|
private String roleName;
|
|
private String tag;
|
|
|
|
public static Role guest() {
|
|
return new Role(-1, "guest", "");
|
|
}
|
|
}
|