websocket错误提示音

yun-zuoyi
wynne1005 5 years ago
parent 89ec0cbd71
commit 191220442f

@ -4967,4 +4967,36 @@ public class MesPcnEnumUtil {
}
}
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum PROMPT_SOUND {
SUCCESS(10, "扫描成功"),
FAILURE(20, "扫描失败");
private Integer value;
private String description;
PROMPT_SOUND(Integer value, String description) {
this.value = value;
this.description = description;
}
public Integer getValue() {
return value;
}
public String getDescription() {
return description;
}
public static String valueOfDescription(Integer value) {
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == value) {
tmp = values()[i].description;
}
}
return tmp;
}
}
}

@ -65,4 +65,7 @@ public class StationResultBean<T> implements Serializable {
@ApiParam("定时秒数")
private Integer timer;
@ApiParam("提示音 1234与前端约定")
private Integer promptSound;
}

Loading…
Cancel
Save