Merge pull request #32 from dromara/feature_add_mysql
feat: 代码优化 #I4U9BT
This commit is contained in:
@@ -15,7 +15,6 @@ public class JsonOptionListAttributeConverter implements AttributeConverter<List
|
|||||||
@Override
|
@Override
|
||||||
public String convertToDatabaseColumn(List<ParamDefine.Option> attribute) {
|
public String convertToDatabaseColumn(List<ParamDefine.Option> attribute) {
|
||||||
return GsonUtil.toJson(attribute);
|
return GsonUtil.toJson(attribute);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -35,6 +35,9 @@ import static io.swagger.annotations.ApiModelProperty.AccessMode.READ_WRITE;
|
|||||||
@ApiModel(description = "监控实体")
|
@ApiModel(description = "监控实体")
|
||||||
public class Monitor {
|
public class Monitor {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 主键ID
|
||||||
|
*/
|
||||||
@Id
|
@Id
|
||||||
@ApiModelProperty(value = "监控ID", example = "87584674384", accessMode = READ_ONLY, position = 0)
|
@ApiModelProperty(value = "监控ID", example = "87584674384", accessMode = READ_ONLY, position = 0)
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|||||||
Reference in New Issue
Block a user