物料后端和大屏接口

This commit is contained in:
方亮 2025-09-12 18:09:41 +08:00
parent 4c76be44ab
commit 567f0cea59
1 changed files with 5 additions and 5 deletions

View File

@ -35,7 +35,7 @@ public class MaterialController extends BaseController {
/**
* 查询宣传物料信息列表
*/
// @PreAuthorize("@ss.hasPermi('system:material:list')")
@PreAuthorize("@ss.hasPermi('system:material:list')")
@GetMapping("/list")
public TableDataInfo list(TbPromotionMaterial tbPromotionMaterial) {
try {
@ -52,7 +52,7 @@ public class MaterialController extends BaseController {
/**
* 获取宣传物料信息详细信息
*/
// @PreAuthorize("@ss.hasPermi('system:material:query')")
@PreAuthorize("@ss.hasPermi('system:material:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) {
try {
@ -66,7 +66,7 @@ public class MaterialController extends BaseController {
/**
* 新增宣传物料信息
*/
// @PreAuthorize("@ss.hasPermi('system:material:add')")
@PreAuthorize("@ss.hasPermi('system:material:add')")
@Log(title = "新增宣传物料信息", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestParam(value = "files") MultipartFile[] files,@RequestParam(value = "fileMsg") String fileMsg, @RequestParam(value = "params")String params) {
@ -92,7 +92,7 @@ public class MaterialController extends BaseController {
/**
* 修改宣传物料信息
*/
// @PreAuthorize("@ss.hasPermi('system:material:edit')")
@PreAuthorize("@ss.hasPermi('system:material:edit')")
@Log(title = "修改宣传物料信息", businessType = BusinessType.UPDATE)
@PostMapping("/edit")
public AjaxResult edit(@RequestParam(value = "files",required = false) MultipartFile[] files,@RequestParam(value = "fileMsg",required = false) String fileMsg, @RequestParam(value = "params")String params) {
@ -121,7 +121,7 @@ public class MaterialController extends BaseController {
/**
* 删除宣传物料信息
*/
// @PreAuthorize("@ss.hasPermi('system:material:remove')")
@PreAuthorize("@ss.hasPermi('system:material:remove')")
@Log(title = "宣传物料信息", businessType = BusinessType.DELETE)
@PostMapping("/{id}")
public AjaxResult remove(@PathVariable Long id) {