refactor: flatten dto entity and mapper packages
This commit is contained in:
46
src/main/java/com/label/entity/SysUser.java
Normal file
46
src/main/java/com/label/entity/SysUser.java
Normal file
@@ -0,0 +1,46 @@
|
||||
package com.label.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnore;
|
||||
import lombok.Data;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 绯荤粺鐢ㄦ埛瀹炰綋锛屽搴?sys_user 琛ㄣ€? * role 鍙栧€硷細UPLOADER / ANNOTATOR / REVIEWER / ADMIN
|
||||
* status 鍙栧€硷細ACTIVE / DISABLED
|
||||
*/
|
||||
@Data
|
||||
@TableName("sys_user")
|
||||
public class SysUser {
|
||||
|
||||
/** 鐢ㄦ埛涓婚敭锛岃嚜澧?*/
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/** 鎵€灞炲叕鍙?ID锛堝绉熸埛閿級 */
|
||||
private Long companyId;
|
||||
|
||||
/** 鐧诲綍鐢ㄦ埛鍚嶏紙鍚屽叕鍙稿唴鍞竴锛?*/
|
||||
private String username;
|
||||
|
||||
/**
|
||||
* BCrypt 鍝堝笇瀵嗙爜锛坰trength 鈮?10锛夈€? * 搴忓垪鍖栨椂鎺掗櫎锛岄槻姝㈠瘑鐮佸搱甯屾硠婕忓埌 API 鍝嶅簲銆? */
|
||||
@JsonIgnore
|
||||
private String passwordHash;
|
||||
|
||||
/** 鐪熷疄濮撳悕 */
|
||||
private String realName;
|
||||
|
||||
/** 瑙掕壊锛歎PLOADER / ANNOTATOR / REVIEWER / ADMIN */
|
||||
private String role;
|
||||
|
||||
/** 鐘舵€侊細ACTIVE / DISABLED */
|
||||
private String status;
|
||||
|
||||
private LocalDateTime createdAt;
|
||||
|
||||
private LocalDateTime updatedAt;
|
||||
}
|
||||
Reference in New Issue
Block a user