| | |
| | | import com.ruoyi.system.api.domain.poji.member.MemberGiftRecord; |
| | | import com.ruoyi.system.api.domain.poji.shop.Shop; |
| | | import com.ruoyi.system.api.domain.vo.*; |
| | | import com.ruoyi.system.api.model.AddIntegralRecordVo; |
| | | import com.ruoyi.system.api.model.AppMiniLoginDto; |
| | | import com.ruoyi.system.api.model.AppMiniLoginVo; |
| | | import com.ruoyi.system.api.service.RemoteShopService; |
| | |
| | | * @return |
| | | */ |
| | | @PostMapping("/addIntegralRecord") |
| | | public R addIntegralRecord(@RequestParam("integral") Integer integral, @RequestParam("userId") Long userId, @RequestParam("orderId") String orderId) { |
| | | return memberService.addIntegralRecord(integral, userId, orderId); |
| | | public R addIntegralRecord(@RequestBody AddIntegralRecordVo addIntegralRecordVo) { |
| | | return memberService.addIntegralRecord(addIntegralRecordVo.getIntegral(), addIntegralRecordVo.getUserId(), addIntegralRecordVo.getOrderId()); |
| | | } |
| | | |
| | | |
| | |
| | | memberGiftRecordService.save(memberGiftRecord); |
| | | return R.ok(); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 获取微信二维码 |
| | | * |
| | | * @param scene |
| | | * @param path |
| | | * @return |
| | | */ |
| | | @PostMapping("/getWeiXinQrCode") |
| | | public String getWeiXinQrCode(@RequestParam("scene") String scene, @RequestParam("path") String path) { |
| | | return memberService.getWeiXinQrCode(scene, path); |
| | | } |
| | | } |