|
|
@ -2,6 +2,7 @@ package org.dromara.business.controller; |
|
|
|
|
|
|
|
|
|
|
|
import cn.dev33.satoken.annotation.SaCheckPermission; |
|
|
|
import io.swagger.v3.oas.annotations.Operation; |
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag; |
|
|
|
import jakarta.validation.constraints.NotEmpty; |
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
@ -22,6 +23,8 @@ import org.dromara.common.web.core.BaseController; |
|
|
|
import org.springframework.validation.annotation.Validated; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
@Slf4j |
|
|
|
@Validated |
|
|
|
@RequiredArgsConstructor |
|
|
@ -34,15 +37,23 @@ public class BusinessLayerController extends BaseController { |
|
|
|
/** |
|
|
|
* 图层模块列表 |
|
|
|
*/ |
|
|
|
@Operation(summary ="图层模块列表",description = "图层模块列表") |
|
|
|
@SaCheckPermission("business:layer:list") |
|
|
|
@GetMapping("/list") |
|
|
|
public TableDataInfo<BusinessLayerVo> list(BusinessLayerBo bo, PageQuery pageQuery) { |
|
|
|
return businessLayerService.queryPageList(bo, pageQuery); |
|
|
|
public R<TableDataInfo<BusinessLayerVo>> list(BusinessLayerBo bo, PageQuery pageQuery) { |
|
|
|
return R.ok(businessLayerService.queryPageList(bo, pageQuery)); |
|
|
|
} |
|
|
|
|
|
|
|
@Operation(summary ="图层下拉列表",description = "图层下拉列表") |
|
|
|
@GetMapping("/optionSelect") |
|
|
|
public R<List<BusinessLayerVo>> optionSelect() { |
|
|
|
return R.ok(businessLayerService.optionSelect()); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 图层新增 |
|
|
|
*/ |
|
|
|
@Operation(summary ="图层新增",description = "图层新增") |
|
|
|
@SaCheckPermission("business:layer:add") |
|
|
|
@Log(title = "图层新增", businessType = BusinessType.INSERT) |
|
|
|
@RepeatSubmit() |
|
|
@ -55,6 +66,7 @@ public class BusinessLayerController extends BaseController { |
|
|
|
* 图层修改 |
|
|
|
*/ |
|
|
|
@SaCheckPermission("business:layer:edit") |
|
|
|
@Operation(summary ="图层修改",description = "图层修改") |
|
|
|
@Log(title = "图层修改", businessType = BusinessType.UPDATE) |
|
|
|
@RepeatSubmit() |
|
|
|
@PutMapping() |
|
|
@ -68,10 +80,10 @@ public class BusinessLayerController extends BaseController { |
|
|
|
* @param id 主键 |
|
|
|
*/ |
|
|
|
@SaCheckPermission("business:task:remove") |
|
|
|
@Operation(summary ="图层删除",description = "图层删除") |
|
|
|
@Log(title = "图层删除", businessType = BusinessType.DELETE) |
|
|
|
@DeleteMapping("/{id}") |
|
|
|
public R<Void> remove(@NotEmpty(message = "主键不能为空") |
|
|
|
@PathVariable Long id) { |
|
|
|
@GetMapping("/delete") |
|
|
|
public R<Void> remove(@RequestParam("id") Long id) { |
|
|
|
return toAjax(businessLayerService.delete(id)); |
|
|
|
} |
|
|
|
} |
|
|
|