|
|
@@ -1,5 +1,6 @@
|
|
|
package org.jetlinks.community.device.entity;
|
|
|
|
|
|
+import com.fasterxml.jackson.annotation.JsonIgnore;
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
import lombok.Getter;
|
|
|
@@ -56,7 +57,8 @@ public class DeviceDirectivesEntity extends GenericEntity<String> {
|
|
|
|
|
|
@Comment("消息类型")
|
|
|
@Column(name = "message_type",nullable = false)
|
|
|
- @NotBlank(message = "消息类型不能为空", groups = CreateGroup.class)
|
|
|
+ @EnumCodec
|
|
|
+ @JsonIgnore
|
|
|
private MessageType messageType;
|
|
|
|
|
|
@Comment("错误原因")
|