puzhibing
2024-12-03 eb0a98a3bc62d94ac94bf457afa165e56474ef32
ruoyi-service/ruoyi-other/src/main/java/com/ruoyi/other/controller/VipSettingController.java
@@ -6,12 +6,18 @@
import com.ruoyi.other.api.domain.VipSetting;
import com.ruoyi.other.service.VipSettingService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.other.api.domain.VipSetting;
import com.ruoyi.other.service.VipSettingService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import javax.annotation.Resource;
import java.util.List;
import javax.annotation.Resource;
/**
 * <p>
@@ -23,6 +29,7 @@
 */
@RestController
@RequestMapping("/vip-setting")
@Api("会员设置")
public class VipSettingController {
    @Resource
    private VipSettingService vipSettingService;
@@ -32,5 +39,12 @@
        List<VipSetting> list = vipSettingService.list();
        return R.ok(list);
    }
    @GetMapping("getVipSettingById")
    @ApiOperation(value = "获取会员设置")
    public R<VipSetting> getVipSettingById(@ApiParam(value = "会员id") @RequestParam Integer id){
        return R.ok(vipSettingService.getById(id));
    }
}