| | |
| | | import com.ruoyi.common.core.web.domain.AjaxResult; |
| | | import com.ruoyi.common.core.web.page.BasePage; |
| | | import com.ruoyi.common.core.web.page.PageInfo; |
| | | import com.ruoyi.common.security.service.TokenService; |
| | | import com.ruoyi.other.api.domain.TCoupon; |
| | | import com.ruoyi.other.api.feignClient.OtherClient; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | |
| | | |
| | | @Autowired |
| | | private TAppUserCarService appUserCarService; |
| | | @Autowired |
| | | private TokenService tokenService; |
| | | /** |
| | | * 查询用户可用优惠券数量 |
| | | * @param dto |
| | |
| | | public AjaxResult<List<TAppUserCar>> carList() { |
| | | // todo 用户id |
| | | List<TAppUserCar> appUserId = appUserCarService.list(new QueryWrapper<TAppUserCar>() |
| | | .eq("app_user_id", 11)); |
| | | .eq("app_user_id",tokenService.getLoginUserApplet().getUserid() )); |
| | | return AjaxResult.ok(appUserId); |
| | | } |
| | | |