com.github.fanzezhen.common.mp.enums.WorkingStatusEnum Maven / Gradle / Ivy
package com.github.fanzezhen.common.mp.enums;
import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;
/**
* @author zezhen.fan
*/
public enum WorkingStatusEnum {
/**
* 在职的
*/
INCUMBENT(0, "在职的"),
/**
* 离职的
*/
OUTGOING(1, "离职的");
@EnumValue
@JsonValue
public final int code;
@Getter
private final String desc;
WorkingStatusEnum(int code, String desc) {
this.code = code;
this.desc = desc;
}
}