| 1234567891011121314151617181920212223242526272829303132333435363738 |
- package com.coffee.bus.enums;
- import com.baomidou.mybatisplus.annotation.IEnum;
- import com.fasterxml.jackson.annotation.JsonFormat;
- import lombok.AllArgsConstructor;
- import lombok.Getter;
- /**
- * @author lifang
- * @version 1.0.0
- * @ClassName PatientAlarmEnum.java
- * @Description TODO
- * @createTime 2022年04月18日 11:06:00
- */
- @AllArgsConstructor
- @JsonFormat(shape = JsonFormat.Shape.OBJECT)
- @Getter
- public enum PatientAlarmEnum implements IEnum<Integer> {
- NONE(0,"无报警信息"),
- DEVICE_REPEAT(1,"病人绑定多个设备"),
- DEVICE_NONE(2,"病人未绑定设备");
- private Integer value;
- private String text;
- public static PatientAlarmEnum of(int value){
- switch (value){
- case 0:
- return NONE;
- case 1:
- return DEVICE_REPEAT;
- case 2:
- return DEVICE_NONE;
- default:break;
- }
- return null;
- }
- }
|