refactor: 字段注释

This commit is contained in:
junjie 2021-10-09 14:25:32 +08:00
parent 4da24c0cf5
commit 9996998e8c
3 changed files with 16 additions and 11 deletions

View File

@ -1,28 +1,31 @@
package io.dataease.base.domain;
import java.io.Serializable;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
@Data
public class ChartView implements Serializable {
@ApiModelProperty("ID")
private String id;
@ApiModelProperty("名称")
private String name;
@ApiModelProperty("分组ID")
private String sceneId;
@ApiModelProperty("数据集ID")
private String tableId;
@ApiModelProperty("图表类型")
private String type;
@ApiModelProperty("标题")
private String title;
@ApiModelProperty("创建人")
private String createBy;
@ApiModelProperty("创建时间")
private Long createTime;
@ApiModelProperty("更新时间")
private Long updateTime;
@ApiModelProperty("样式优先级")
private String stylePriority;
private static final long serialVersionUID = 1L;

View File

@ -46,7 +46,7 @@ public class ChartViewController {
return chartViewService.listAndGroup(chartViewRequest);
}
@ApiOperation("")
@ApiOperation("细信")
@PostMapping("/get/{id}")
public ChartViewWithBLOBs get(@PathVariable String id) {
return chartViewService.get(id);

View File

@ -1,6 +1,7 @@
package io.dataease.controller.request.chart;
import io.dataease.base.domain.ChartViewWithBLOBs;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
@ -11,7 +12,8 @@ import lombok.Setter;
@Setter
@Getter
public class ChartViewRequest extends ChartViewWithBLOBs {
@ApiModelProperty("排序")
private String sort;
@ApiModelProperty("当前登陆用户ID")
private String userId;
}