17 lines
400 B
Java
17 lines
400 B
Java
|
|
package com.labelsys.backend.enums;
|
|||
|
|
|
|||
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|||
|
|
import lombok.Getter;
|
|||
|
|
import lombok.RequiredArgsConstructor;
|
|||
|
|
|
|||
|
|
@Getter
|
|||
|
|
@RequiredArgsConstructor
|
|||
|
|
@Schema(description = "角色枚举,枚举值:EMPLOYEE员工、MANAGER部门经理、ENGINEER总工程师")
|
|||
|
|
public enum UserRole {
|
|||
|
|
EMPLOYEE(1),
|
|||
|
|
MANAGER(2),
|
|||
|
|
ENGINEER(3);
|
|||
|
|
|
|||
|
|
private final int level;
|
|||
|
|
}
|