用户id
This commit is contained in:
@@ -4,6 +4,7 @@ import com.czg.account.entity.ShopActivateCouponRecord;
|
||||
import com.czg.account.service.ShopCouponService;
|
||||
import com.czg.account.vo.UserCouponVo;
|
||||
import com.czg.resp.CzgResult;
|
||||
import com.czg.sa.StpKit;
|
||||
import com.mybatisflex.core.paginate.Page;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
@@ -30,10 +31,9 @@ public class UserShopCouponController {
|
||||
*/
|
||||
@GetMapping("/findByUserId")
|
||||
public CzgResult<Page<ShopActivateCouponRecord>> findByUserId(
|
||||
@RequestParam Long userId,
|
||||
@RequestParam(required = false) Integer status,
|
||||
@RequestParam(required = false) Long shopId) {
|
||||
return CzgResult.success(couponService.find(userId, shopId, status));
|
||||
return CzgResult.success(couponService.find(StpKit.USER.getLoginIdAsLong(), shopId, status));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user