|
@@ -4,8 +4,10 @@ import java.util.List;
|
|
|
import javax.servlet.http.HttpServletResponse;
|
|
|
|
|
|
import com.ruoyi.common.utils.poi.ExcelUtil;
|
|
|
-import com.ruoyi.web.domain.plotmanage.AdManagement;
|
|
|
-import com.ruoyi.web.service.plotmanage.IAdManagementService;
|
|
|
+import com.ruoyi.web.plotmanage.domain.AdManagement;
|
|
|
+import com.ruoyi.web.plotmanage.service.IAdManagementService;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
@@ -28,6 +30,7 @@ import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
* @author cyx
|
|
|
* @date 2022-11-24
|
|
|
*/
|
|
|
+@Api("广告位管理")
|
|
|
@RestController
|
|
|
@RequestMapping("/plotmanage/management")
|
|
|
public class AdManagementController extends BaseController
|
|
@@ -38,6 +41,7 @@ public class AdManagementController extends BaseController
|
|
|
/**
|
|
|
* 查询广告位管理列表
|
|
|
*/
|
|
|
+ @ApiOperation("查询广告位管理列表")
|
|
|
@PreAuthorize("@ss.hasPermi('plotmanage:management:list')")
|
|
|
@GetMapping("/list")
|
|
|
public TableDataInfo list(AdManagement adManagement)
|
|
@@ -50,6 +54,7 @@ public class AdManagementController extends BaseController
|
|
|
/**
|
|
|
* 导出广告位管理列表
|
|
|
*/
|
|
|
+ @ApiOperation("导出广告位管理列表")
|
|
|
@PreAuthorize("@ss.hasPermi('plotmanage:management:export')")
|
|
|
@Log(title = "广告位管理", businessType = BusinessType.EXPORT)
|
|
|
@PostMapping("/export")
|
|
@@ -63,6 +68,7 @@ public class AdManagementController extends BaseController
|
|
|
/**
|
|
|
* 获取广告位管理详细信息
|
|
|
*/
|
|
|
+ @ApiOperation("获取广告位管理详细信息")
|
|
|
@PreAuthorize("@ss.hasPermi('plotmanage:management:query')")
|
|
|
@GetMapping(value = "/{id}")
|
|
|
public AjaxResult getInfo(@PathVariable("id") Long id)
|
|
@@ -73,6 +79,7 @@ public class AdManagementController extends BaseController
|
|
|
/**
|
|
|
* 新增广告位管理
|
|
|
*/
|
|
|
+ @ApiOperation("新增广告位管理")
|
|
|
@PreAuthorize("@ss.hasPermi('plotmanage:management:add')")
|
|
|
@Log(title = "广告位管理", businessType = BusinessType.INSERT)
|
|
|
@PostMapping
|
|
@@ -84,6 +91,7 @@ public class AdManagementController extends BaseController
|
|
|
/**
|
|
|
* 修改广告位管理
|
|
|
*/
|
|
|
+ @ApiOperation("修改广告位管理")
|
|
|
@PreAuthorize("@ss.hasPermi('plotmanage:management:edit')")
|
|
|
@Log(title = "广告位管理", businessType = BusinessType.UPDATE)
|
|
|
@PutMapping
|
|
@@ -95,6 +103,7 @@ public class AdManagementController extends BaseController
|
|
|
/**
|
|
|
* 删除广告位管理
|
|
|
*/
|
|
|
+ @ApiOperation("删除广告位管理")
|
|
|
@PreAuthorize("@ss.hasPermi('plotmanage:management:remove')")
|
|
|
@Log(title = "广告位管理", businessType = BusinessType.DELETE)
|
|
|
@DeleteMapping("/{ids}")
|