rk
2 天以前 3aef471b170a703b501ddb4d9d2a12791d07ff28
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
35
36
37
38
39
40
package com.doumee.api.business;
 
import com.doumee.api.BaseController;
import com.doumee.biz.system.OperationConfigBiz;
import com.doumee.core.annotation.pr.PreventRepeat;
import com.doumee.core.model.ApiResponse;
import com.doumee.dao.dto.OperationConfigDTO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
/**
 * 运营配置管理
 * @author rk
 * @date 2026/04/13
 */
@Api(tags = "运营配置")
@RestController
@RequestMapping("/business/operationConfig")
public class OperationConfigController extends BaseController {
 
    @Autowired
    private OperationConfigBiz operationConfigBiz;
 
    @ApiOperation("查询运营配置")
    @GetMapping
    public ApiResponse<OperationConfigDTO> getConfig() {
        return ApiResponse.success(operationConfigBiz.getConfig());
    }
 
    @PreventRepeat
    @ApiOperation("保存运营配置")
    @PostMapping("/save")
    public ApiResponse saveConfig(@RequestBody OperationConfigDTO dto) {
        operationConfigBiz.saveConfig(dto);
        return ApiResponse.success(null);
    }
}