fuint-application/application-web/src/main/java/com/fuint/application/web/rest/RefundController.java
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
package com.fuint.application.web.rest;
import com.fuint.application.dao.entities.MtRefund;
import com.fuint.application.dto.RefundDto;
import com.fuint.application.dto.UserOrderDto;
import com.fuint.application.service.order.OrderService;
import com.fuint.application.service.refund.RefundService;
import com.fuint.exception.BusinessCheckException;
import com.fuint.application.ResponseObject;
import com.fuint.application.BaseController;
import com.fuint.application.dao.entities.MtUser;
import com.fuint.application.service.token.TokenService;
import jodd.util.StringUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletRequest;
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/refund")
public class RefundController extends BaseController {
@Autowired
private TokenService tokenService;
/**
* 售后服务接口
* */
@Autowired
private RefundService refundService;
/**
* 订单服务接口
* */
@Autowired
private OrderService orderService;
/**
* 获取订单列表
*/
@RequestMapping(value = "/list", method = RequestMethod.GET)
@CrossOrigin
public ResponseObject list(HttpServletRequest request, @RequestParam Map<String, Object> param) throws BusinessCheckException{
String userToken = request.getHeader("Access-Token");
MtUser userInfo = tokenService.getUserInfoByToken(userToken);
if (userInfo == null) {
return getFailureResult(1001, "用户未登录");
}
param.put("userId", userInfo.getId());
ResponseObject orderData = refundService.getUserRefundList(param);
return getSuccessResult(orderData.getData());
后面还有 68 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。