小久哥
3 years ago
7 changed files with 39 additions and 6 deletions
@ -0,0 +1,26 @@
|
||||
package cn.iocoder.yudao.module.farm.enums; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.EnumValue; |
||||
import com.fasterxml.jackson.annotation.JsonValue; |
||||
import lombok.Getter; |
||||
|
||||
@Getter |
||||
public enum ProjectStateEnum { |
||||
|
||||
PLAN(0,"计划中"), |
||||
READY(1,"进行中"), |
||||
STARTED(2,"已完成"); |
||||
|
||||
@JsonValue |
||||
@EnumValue |
||||
private final Integer code; |
||||
|
||||
private final String desc; |
||||
|
||||
ProjectStateEnum(Integer code, String desc) { |
||||
this.code = code; |
||||
this.desc = desc; |
||||
} |
||||
|
||||
|
||||
} |
Loading…
Reference in new issue