无关风月
2024-07-04 7b5e3e05c53f6da8b69630f7e9ec2019eddc436a
ruoyi-service/ruoyi-management/src/main/java/com/ruoyi/management/controller/TSysSetController.java
@@ -151,7 +151,7 @@
    @PostMapping("/agreement")
    @ApiOperation(value = "协议", tags = {"后台-协议管理"})
    public AjaxResult agreement(AggrementDTO dto) {
    public AjaxResult agreement(@RequestBody AggrementDTO dto) {
        TProtocol protocol = protocolService.getById(dto.getType());
        if (StringUtils.hasLength(dto.getContent())){
            protocol.setContent(dto.getContent());
@@ -211,7 +211,7 @@
    @PostMapping("/updateUseGuide")
    @ApiOperation(value = "使用指南-添加/编辑/查看详情", tags = {"使用指南"})
    public AjaxResult<TUseGuide> updateUseGuide(UseGuidDTO dto) {
    public AjaxResult<TUseGuide> updateUseGuide(@RequestBody UseGuidDTO dto) {
        switch (dto.getType()) {
            case 1:
                TUseGuide useGuide = new TUseGuide();