|
@@ -12,6 +12,7 @@ import lombok.RequiredArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
import javax.servlet.http.HttpServletRequest;
|
|
@@ -40,9 +41,10 @@ public class VipController {
|
|
|
* 会员信息
|
|
* 会员信息
|
|
|
*/
|
|
*/
|
|
|
@GetMapping("/get/info")
|
|
@GetMapping("/get/info")
|
|
|
- public Result<VipUserPageResp> getVipInfo() {
|
|
|
|
|
|
|
+ public Result<VipUserPageResp> getVipInfo(@RequestParam(defaultValue = "1") Integer months) {
|
|
|
Long userId = StpUserUtil.getUserIdAfterLogin();
|
|
Long userId = StpUserUtil.getUserIdAfterLogin();
|
|
|
VipUserPageResp vipUserPageResp = new VipUserPageResp();
|
|
VipUserPageResp vipUserPageResp = new VipUserPageResp();
|
|
|
|
|
+ vipUserPageResp.setMonths(months);
|
|
|
//填充会员信息
|
|
//填充会员信息
|
|
|
vipFrontService.fillVipInfo(userId, vipUserPageResp);
|
|
vipFrontService.fillVipInfo(userId, vipUserPageResp);
|
|
|
List<VipGoodsSkuFrontView> vipGoodsSkuFrontViews = beanSearcher.searchAll(VipGoodsSkuFrontView.class, MapUtils.flatBuilder(request.getParameterMap()).orderBy(VipGoodsSkuFrontView::getGoodsId).build());
|
|
List<VipGoodsSkuFrontView> vipGoodsSkuFrontViews = beanSearcher.searchAll(VipGoodsSkuFrontView.class, MapUtils.flatBuilder(request.getParameterMap()).orderBy(VipGoodsSkuFrontView::getGoodsId).build());
|