fix
Helius
2022-07-07 07326eeadfd578b7f9e19305b6ecdde992efaea7
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
31
32
33
34
package com.xcong.farmer.cms.modules.system.controller;
 
import com.xcong.farmer.cms.common.response.Result;
import com.xcong.farmer.cms.modules.system.dto.AdminUpdateWebSetDto;
import com.xcong.farmer.cms.modules.system.service.IWebSetService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
 
import javax.annotation.Resource;
import javax.validation.Valid;
 
@RestController
@RequestMapping(value = "/api/webset")
@Slf4j
@Api(value = "网页设置", tags = "网页设置")
public class AdminWebSetController {
 
    @Resource
    private IWebSetService iWebSetService;
 
    @ApiOperation(value = "查看网页设置", notes = "查看网页设置")
    @GetMapping(value = "/seeWebSetInfo")
    public Result seeWebSetInfo() {
        return iWebSetService.seeWebSetInfo();
    }
 
    @ApiOperation(value = "更新网页设置", notes = "更新网页设置")
    @PostMapping(value = "/updateWebSet")
    public Result updateWebSet(@RequestBody @Valid AdminUpdateWebSetDto adminUpdateWebSetDto) {
        return iWebSetService.updateWebSet(adminUpdateWebSetDto);
    }
}