| | |
| | | |
| | | import com.ruoyi.account.api.factory.UserPointFallbackFactory; |
| | | import com.ruoyi.account.api.model.UserPoint; |
| | | import com.ruoyi.account.api.model.UserPointCopy; |
| | | import com.ruoyi.common.core.constant.ServiceNameConstants; |
| | | import com.ruoyi.common.core.domain.R; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author zhibing.pu |
| | |
| | | @PostMapping("/user-point/saveUserPoint") |
| | | R saveUserPoint(@RequestBody UserPoint userPoint); |
| | | |
| | | @PostMapping("/user-point/saveUserPointCopy") |
| | | R saveUserPointCopy(@RequestBody UserPointCopy userPoint); |
| | | |
| | | @DeleteMapping("/user-point/deleteUserPointCopy") |
| | | R deleteUserPointCopy(@RequestParam("orderId") Long orderId, @RequestParam("type") List<Integer> type); |
| | | |
| | | @DeleteMapping("/user-point/deleteUserPointCopyByIds") |
| | | R deleteUserPointCopyByIds(@RequestParam("ids") List<Long> ids); |
| | | |
| | | @PostMapping("/user-point/getUserPointCopy") |
| | | R<List<UserPointCopy>> getUserPointCopy(@RequestParam("orderId") Long orderId, @RequestParam("type") List<Integer> type); |
| | | |
| | | |
| | | /** |
| | | * 获取积分变动明细 |
| | | * @param userPoint |
| | | * @return |
| | | */ |
| | | @PostMapping("/user-point/getUserPointList") |
| | | R<List<UserPoint>> getUserPointList(@RequestBody UserPoint userPoint); |
| | | |
| | | |
| | | /** |
| | | * 判断当天是否分享获得过积分 |
| | | * @param appUserId |
| | | * @return |
| | | */ |
| | | @PostMapping("/user-point/judgmentDailyShare") |
| | | R<Boolean> judgmentDailyShare(@RequestParam("appUserId") Long appUserId); |
| | | } |