whycxzp
2022-11-09 fdc6e85950d116dc26444a4d259f749944afad78
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package com.whyc.controller;
 
import com.whyc.dto.Response;
import com.whyc.service.MenuConfigService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
import java.util.Map;
 
@RestController
@Api(tags = "配置")
@RequestMapping("menuConfig")
public class MenuConfigController {
    @Autowired
    private MenuConfigService service;
 
    @ApiOperation(value = "查询当前的配置")
    @GetMapping("searchMenuConfig")
    public Response searchMenuConfig(){
        return service.searchMenuConfig();
    }
 
    @ApiOperation(value = "窗口配置显示/隐藏确认提交")
    @PostMapping("updateMenuConfig")
    public Response updateMenuConfig(@RequestBody Map<Integer, Integer> map){
        return service.updateMenuConfig(map);
    }
}