|
@@ -2,6 +2,9 @@ package com.yiqi.api.controller;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
|
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
|
|
|
+import com.yiqi.app.domain.AppUserAddress;
|
|
|
|
+import com.yiqi.app.domain.AppUserPointLog;
|
|
|
|
+import com.yiqi.app.service.IAppUserPointLogService;
|
|
import com.yiqi.common.exception.ServiceException;
|
|
import com.yiqi.common.exception.ServiceException;
|
|
import com.yiqi.app.domain.AppCouponItem;
|
|
import com.yiqi.app.domain.AppCouponItem;
|
|
import com.yiqi.app.domain.AppUser;
|
|
import com.yiqi.app.domain.AppUser;
|
|
@@ -43,6 +46,7 @@ import org.springframework.web.bind.annotation.*;
|
|
import javax.validation.Valid;
|
|
import javax.validation.Valid;
|
|
import java.math.BigDecimal;
|
|
import java.math.BigDecimal;
|
|
import java.util.Date;
|
|
import java.util.Date;
|
|
|
|
+import java.util.List;
|
|
|
|
|
|
/**
|
|
/**
|
|
* @author xiaohei
|
|
* @author xiaohei
|
|
@@ -56,6 +60,8 @@ public class WeAppUserController extends BaseController {
|
|
@Autowired
|
|
@Autowired
|
|
private IAppUserService appUserService;
|
|
private IAppUserService appUserService;
|
|
@Autowired
|
|
@Autowired
|
|
|
|
+ private IAppUserPointLogService appUserPointLogService;
|
|
|
|
+ @Autowired
|
|
private IWeAppTokenService weAppTokenService;
|
|
private IWeAppTokenService weAppTokenService;
|
|
@Autowired
|
|
@Autowired
|
|
private ISysSmsService sysSmsService;
|
|
private ISysSmsService sysSmsService;
|
|
@@ -222,6 +228,14 @@ public class WeAppUserController extends BaseController {
|
|
return R.ok(null, "设置成功");
|
|
return R.ok(null, "设置成功");
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ @ApiOperation("获取我的积分记录")
|
|
|
|
+ @GetMapping(value = "pointLogList")
|
|
|
|
+ public R<List<AppUserPointLog>> pointLogList() {
|
|
|
|
+ return R.ok(appUserPointLogService.list(new QueryWrapper<AppUserPointLog>().lambda()
|
|
|
|
+ .eq(AppUserPointLog::getAppUserId, AuthHolder.userId())
|
|
|
|
+ .orderByDesc(AppUserPointLog::getId)));
|
|
|
|
+ }
|
|
|
|
+
|
|
@ApiOperation("设置是否开启支付密码")
|
|
@ApiOperation("设置是否开启支付密码")
|
|
@GetMapping(value = "setIsOpenPayPass")
|
|
@GetMapping(value = "setIsOpenPayPass")
|
|
public R setIsOpenPayPass(@RequestParam @ApiParam("Y=开启,N=关闭") String isOpen) throws Exception {
|
|
public R setIsOpenPayPass(@RequestParam @ApiParam("Y=开启,N=关闭") String isOpen) throws Exception {
|