| | |
| | | package com.ruoyi.other.controller; |
| | | |
| | | |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.core.web.controller.BaseController; |
| | | import com.ruoyi.other.api.domain.PointSetting; |
| | | import com.ruoyi.other.service.PointSettingService; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | */ |
| | | @RestController |
| | | @RequestMapping("/point-setting") |
| | | public class PointSettingController { |
| | | public class PointSettingController extends BaseController { |
| | | |
| | | @Resource |
| | | private PointSettingService pointSettingService; |
| | | |
| | | @GetMapping("/getBaseSetting") |
| | | public R<PointSetting> getBaseSetting(@RequestParam Integer id) { |
| | | PointSetting pointSetting = pointSettingService.getById(id); |
| | | return R.ok(pointSetting); |
| | | } |
| | | |
| | | } |
| | | |