|
|
@@ -17,12 +17,14 @@ import com.ylx.point.service.IPointUserActivityTaskCompletionService;
|
|
|
import com.ylx.point.service.IPointUserLogService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
+import org.springframework.security.access.prepost.PreAuthorize;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
import java.util.List;
|
|
|
|
|
|
+@PreAuthorize("@customerAuth.isCustomer()")
|
|
|
@RestController
|
|
|
@RequestMapping("/user/point")
|
|
|
@Api(tags = {"用户积分"})
|
|
|
@@ -37,12 +39,6 @@ public class UserPointController extends BaseController {
|
|
|
@Resource
|
|
|
private IPointAccountService pointAccountService;
|
|
|
|
|
|
- /**
|
|
|
- * 获取当前用户的积分信息
|
|
|
- *
|
|
|
- * @param cityCode
|
|
|
- * @return R<UserPointInfoVO>
|
|
|
- */
|
|
|
@ApiOperation("获取当前用户的积分信息")
|
|
|
@GetMapping
|
|
|
public R<UserPointInfoVO> getUserPointInfo(@RequestParam String cityCode) {
|