| | |
| | | |
| | | |
| | | import com.ruoyi.account.api.feignClient.AppUserClient; |
| | | import com.ruoyi.account.api.model.AppUser; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.common.security.service.TokenService; |
| | | import com.ruoyi.other.api.domain.VipGood; |
| | | import com.ruoyi.other.api.domain.VipSetting; |
| | | import com.ruoyi.other.service.VipGoodService; |
| | | import com.ruoyi.other.service.VipSettingService; |
| | | import io.swagger.annotations.ApiOperation; |
| | | 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> |
| | |
| | | @Resource |
| | | private VipGoodService vipGoodService; |
| | | |
| | | @PostMapping("/info") |
| | | @GetMapping("/info") |
| | | @ApiOperation(value = "获取各级会员信息", tags = {"小程序-个人中心首页", "小程序-会员中心"}) |
| | | public R<List<VipSetting>> info() { |
| | | List<VipSetting> list = vipSettingService.list(); |
| | |
| | | |
| | | @GetMapping("getVipSettingById") |
| | | @ApiOperation(value = "获取会员设置") |
| | | public R<VipSetting> getVipSettingById(@ApiParam(value = "会员id") @RequestParam Integer id) { |
| | | public R<VipSetting> getVipSettingById(@ApiParam(value = "会员id") @RequestParam("id") Integer id) { |
| | | return R.ok(vipSettingService.getById(id)); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 查询会员配置 |
| | | * @param id |
| | | * @return |
| | | */ |
| | | @PostMapping("/getVipSetting") |
| | | public R<VipSetting> getVipSetting(@RequestParam("id") Integer id) { |
| | | return R.ok(vipSettingService.getById(id)); |
| | | } |
| | | } |