From 9996998e8c1c64e0f31af2e9c2faa4ccde1c50ec Mon Sep 17 00:00:00 2001 From: junjie Date: Sat, 9 Oct 2021 14:25:32 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=AD=97=E6=AE=B5=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/dataease/base/domain/ChartView.java | 21 +++++++++++-------- .../controller/chart/ChartViewController.java | 2 +- .../request/chart/ChartViewRequest.java | 4 +++- 3 files changed, 16 insertions(+), 11 deletions(-) diff --git a/backend/src/main/java/io/dataease/base/domain/ChartView.java b/backend/src/main/java/io/dataease/base/domain/ChartView.java index f8e662c1d5..ed807bd4fd 100644 --- a/backend/src/main/java/io/dataease/base/domain/ChartView.java +++ b/backend/src/main/java/io/dataease/base/domain/ChartView.java @@ -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; diff --git a/backend/src/main/java/io/dataease/controller/chart/ChartViewController.java b/backend/src/main/java/io/dataease/controller/chart/ChartViewController.java index 18bfca1765..d9498513f6 100644 --- a/backend/src/main/java/io/dataease/controller/chart/ChartViewController.java +++ b/backend/src/main/java/io/dataease/controller/chart/ChartViewController.java @@ -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); diff --git a/backend/src/main/java/io/dataease/controller/request/chart/ChartViewRequest.java b/backend/src/main/java/io/dataease/controller/request/chart/ChartViewRequest.java index 7dbe28f896..ad297454ff 100644 --- a/backend/src/main/java/io/dataease/controller/request/chart/ChartViewRequest.java +++ b/backend/src/main/java/io/dataease/controller/request/chart/ChartViewRequest.java @@ -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; }