fuint-application/application-web/src/main/java/com/fuint/application/web/rest/PointsController.java
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
package com.fuint.application.web.rest;
import com.fuint.application.dto.PointDto;
import com.fuint.application.enums.StatusEnum;
import com.fuint.base.dao.pagination.PaginationRequest;
import com.fuint.base.dao.pagination.PaginationResponse;
import com.fuint.base.util.RequestHandler;
import com.fuint.exception.BusinessCheckException;
import com.fuint.application.service.point.PointService;
import com.fuint.application.service.token.TokenService;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;
import com.fuint.application.BaseController;
import com.fuint.application.ResponseObject;
import com.fuint.application.dao.entities.MtUser;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.HashMap;
import java.util.Map;
/**
* 积分相关controller
* Created by FSQ
* Contact wx fsq_better
* Site https://www.fuint.cn
*/
@RestController
@RequestMapping(value = "/rest/points")
public class PointsController extends BaseController {
/**
* 积分服务接口
*/
@Autowired
private PointService pointService;
/**
* Token服务接口
*/
@Autowired
private TokenService tokenService;
/**
* 查询我的积分明细
*
* @param request Request对象
*/
@RequestMapping(value = "/list", method = RequestMethod.GET)
@CrossOrigin
public ResponseObject list(HttpServletRequest request, HttpServletResponse response, Model model) throws BusinessCheckException {
String token = request.getHeader("Access-Token");
if (StringUtils.isEmpty(token)) {
return getFailureResult(1001);
}
MtUser mtUser = tokenService.getUserInfoByToken(token);
if (null == mtUser) {
后面还有 15 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。