| | |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.system.api.domain.CustomConfig; |
| | | import com.ruoyi.system.domain.dto.PointsConfigDTO; |
| | | import com.ruoyi.system.service.ICustomConfigService; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import javax.annotation.Resource; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | CustomConfig one = iCustomConfigService.getOne(wrapper); |
| | | return R.ok(one); |
| | | } |
| | | |
| | | /** |
| | | * 保存积分设置 |
| | | * |
| | | * @param dto 积分配置数据传输对象 |
| | | */ |
| | | @ApiOperation(value = "保存积分设置") |
| | | @PostMapping("/save-points") |
| | | public R<?> savePointsSettings(@Validated @RequestBody PointsConfigDTO dto) { |
| | | iCustomConfigService.savePointsSettings(dto); |
| | | return R.ok(); |
| | | } |
| | | } |