|
|
@@ -1,5 +1,6 @@
|
|
|
package com.usoftchina.bi.server.controller.chart;
|
|
|
|
|
|
+import com.usoftchina.bi.auth.annotation.Auth;
|
|
|
import com.usoftchina.bi.core.base.RepEntity;
|
|
|
import com.usoftchina.bi.core.base.TestPage;
|
|
|
import com.usoftchina.bi.server.model.bo.GroupUpdateId;
|
|
|
@@ -62,6 +63,7 @@ public class ChartsConfigController {
|
|
|
*/
|
|
|
@ApiOperation(value = "更新图表分组", notes = "更新图表分组", response = RepEntity.class)
|
|
|
@CheckToken
|
|
|
+ @Auth(user = "admin")
|
|
|
@PostMapping("/updateChartConfigGroup")
|
|
|
public RepEntity updateConfigGroup(@RequestHeader String token, @RequestBody GroupUpdateId body){
|
|
|
return chartsConfigService.updateConfigGroup(body);
|
|
|
@@ -102,6 +104,7 @@ public class ChartsConfigController {
|
|
|
*/
|
|
|
@ApiOperation(value = "添加图表分组", notes = "添加图表分组", response = RepEntity.class)
|
|
|
@CheckToken
|
|
|
+ @Auth(user = "admin")
|
|
|
@PostMapping("/setChartsGroup")
|
|
|
public RepEntity setChartsGroup(@RequestHeader String token, @RequestBody GroupInfo body){
|
|
|
return chartsConfigService.setDataConnectorGroup(body);
|
|
|
@@ -112,6 +115,7 @@ public class ChartsConfigController {
|
|
|
*/
|
|
|
@ApiOperation(value = "更新图表分组", notes = "更新图表分组", response = RepEntity.class)
|
|
|
@CheckToken
|
|
|
+ @Auth(user = "admin")
|
|
|
@PostMapping("/updataChartsGroup")
|
|
|
public RepEntity updataChartsGroup(@RequestHeader String token,@RequestBody GroupInfo body){
|
|
|
return chartsConfigService.updataDataConnectorGroup(body);
|
|
|
@@ -119,6 +123,7 @@ public class ChartsConfigController {
|
|
|
|
|
|
@ApiOperation(value = "批量更新数据源分组", notes = "批量更新数据源分组", response = RepEntity.class)
|
|
|
@CheckToken
|
|
|
+ @Auth(user = "admin")
|
|
|
@PostMapping("/batchUpdateChartsGroup")
|
|
|
public RepEntity saveChartsGroup(@RequestHeader String token, @RequestBody List<GroupInfo> groupInfoList){
|
|
|
return chartsConfigService.saveChartsGroup(groupInfoList);
|
|
|
@@ -139,6 +144,7 @@ public class ChartsConfigController {
|
|
|
*/
|
|
|
@ApiOperation(value = "删除图表分组", notes = "删除图表分组", response = RepEntity.class)
|
|
|
@CheckToken
|
|
|
+ @Auth(user = "admin")
|
|
|
@PostMapping("/delChartsGroup")
|
|
|
public RepEntity delChartsGroup(@RequestHeader String token,@RequestBody List<Integer> body){
|
|
|
return chartsConfigService.delDataConnectorGroup(body);
|