去除final使用@Autowired

This commit is contained in:
lifenlong
2021-05-13 15:07:03 +08:00
parent 3785bdb3bb
commit a10c38f3c1
350 changed files with 1325 additions and 1659 deletions

View File

@@ -27,17 +27,18 @@ import org.springframework.web.bind.annotation.*;
@RestController
@Api(tags = "买家端,分销员接口")
@RequestMapping("/buyer/distribution")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class DistributionBuyerController {
/**
* 分销员
*/
private final DistributionService distributionService;
@Autowired
private DistributionService distributionService;
/**
* 分销员订单
*/
private final DistributionOrderService distributionOrderService;
@Autowired
private DistributionOrderService distributionOrderService;
//申请分销员
@ApiOperation(value = "申请分销员")

View File

@@ -10,7 +10,6 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
@@ -30,17 +29,18 @@ import javax.validation.constraints.NotNull;
@RestController
@Api(tags = "买家端,分销商品佣金提现接口")
@RequestMapping("/buyer/distribution/cash")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class DistributionCashBuyerController {
/**
* 分销佣金
*/
private final DistributionCashService distributionCashService;
@Autowired
private DistributionCashService distributionCashService;
/**
* 分销员提现
*/
private final DistributionCashService distributorCashService;
@Autowired
private DistributionCashService distributorCashService;
@ApiOperation(value = "分销员提现")

View File

@@ -29,17 +29,18 @@ import javax.validation.constraints.NotNull;
@RestController
@Api(tags = "买家端,分销商品接口")
@RequestMapping("/buyer/distributionGoods")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class DistributionGoodsBuyerController {
/**
* 分销商品
*/
private final DistributionGoodsService distributionGoodsService;
@Autowired
private DistributionGoodsService distributionGoodsService;
/**
* 选择分销商品
*/
private final DistributionSelectedGoodsService distributionSelectedGoodsService;
@Autowired
private DistributionSelectedGoodsService distributionSelectedGoodsService;
@ApiOperation(value = "获取分销商商品列表")

View File

@@ -25,17 +25,18 @@ import org.springframework.web.bind.annotation.RestController;
@RestController
@Api(tags = "买家端,分销订单接口")
@RequestMapping("/buyer/distribution/order")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class DistributionOrderBuyerController {
/**
* 分销订单
*/
private final DistributionOrderService distributionOrderService;
@Autowired
private DistributionOrderService distributionOrderService;
/**
* 分销员
*/
private final DistributionService distributionService;
@Autowired
private DistributionService distributionService;
@ApiOperation(value = "分销员订单")

View File

@@ -27,12 +27,12 @@ import java.util.List;
@RestController
@Api(tags = "买家端,商品分类接口")
@RequestMapping("/buyer/category")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class CategoryBuyerController {
/**
* 商品分类
*/
private final CategoryService categoryService;
@Autowired
private CategoryService categoryService;
@ApiOperation(value = "获取商品分类列表")
@ApiImplicitParam(name = "parentId", value = "上级分类ID全部分类为0", required = true, dataType = "Long", paramType = "path")

View File

@@ -42,25 +42,28 @@ import java.util.Map;
@Api(tags = "买家端,商品接口")
@RestController
@RequestMapping("/buyer/goods")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class GoodsBuyerController {
/**
* 商品
*/
private final GoodsService goodsService;
@Autowired
private GoodsService goodsService;
/**
* 商品SKU
*/
private final GoodsSkuService goodsSkuService;
@Autowired
private GoodsSkuService goodsSkuService;
/**
* ES商品搜索
*/
private final EsGoodsSearchService goodsSearchService;
@Autowired
private EsGoodsSearchService goodsSearchService;
/**
* 分销员
*/
private final DistributionService distributionService;
@Autowired
private DistributionService distributionService;
@ApiOperation(value = "通过id获取商品信息")

View File

@@ -33,18 +33,19 @@ import javax.validation.constraints.NotNull;
@RestController
@Api(tags = "买家端,买家优惠券接口")
@RequestMapping("/buyer/promotion/coupon")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class CouponBuyerController {
/**
* 优惠券
*/
private final CouponService couponService;
@Autowired
private CouponService couponService;
/**
* 会员优惠券
*/
private final MemberCouponService memberCouponService;
@Autowired
private MemberCouponService memberCouponService;
@GetMapping
@ApiOperation(value = "获取可领取优惠券列表")

View File

@@ -26,13 +26,13 @@ import java.util.List;
@RestController
@Api(tags = "买家端,浏览历史接口")
@RequestMapping("/buyer/footprint")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class FootprintController {
/**
* 会员足迹
*/
private final FootprintService footprintService;
@Autowired
private FootprintService footprintService;
@ApiOperation(value = "分页获取")
@GetMapping

View File

@@ -28,15 +28,16 @@ import javax.validation.Valid;
@RestController
@Api(tags = "买家端,会员地址接口")
@RequestMapping("/buyer/memberAddress")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class MemberAddressBuyerController {
/**
* 会员收件地址
*/
private final MemberAddressService memberAddressService;
@Autowired
private MemberAddressService memberAddressService;
private final RegionService regionService;
@Autowired
private RegionService regionService;
@ApiOperation(value = "获取会员收件地址分页列表")
@GetMapping

View File

@@ -24,17 +24,18 @@ import javax.validation.constraints.NotNull;
@RestController
@Api(tags = "买家端,会员收藏接口")
@RequestMapping("/buyer/member/collection")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class MemberCollectionController {
/**
* 会员商品收藏
*/
private final GoodsCollectionService goodsCollectionService;
@Autowired
private GoodsCollectionService goodsCollectionService;
/**
* 会员店铺
*/
private final StoreCollectionService storeCollectionService;
@Autowired
private StoreCollectionService storeCollectionService;
@ApiOperation(value = "查询会员收藏列表")
@ApiImplicitParam(name = "type", value = "类型", dataType = "String", paramType = "path", example = "GOODS:商品,STORE:店铺")

View File

@@ -29,13 +29,13 @@ import javax.validation.constraints.NotNull;
@RestController
@Api(tags = "买家端,会员商品评价接口")
@RequestMapping("/buyer/memberEvaluation")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class MemberEvaluationBuyerController {
/**
* 会员商品评价
*/
private final MemberEvaluationService memberEvaluationService;
@Autowired
private MemberEvaluationService memberEvaluationService;
@ApiOperation(value = "添加会员评价")
@PostMapping

View File

@@ -24,13 +24,13 @@ import org.springframework.web.bind.annotation.*;
@RestController
@Api(tags = "买家端,会员站内消息接口")
@RequestMapping("/buyer/member/message")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class MemberMessageBuyerController {
/**
* 会员站内消息
*/
private final MemberMessageService memberMessageService;
@Autowired
private MemberMessageService memberMessageService;
@ApiOperation(value = "分页获取会员站内消息")
@GetMapping

View File

@@ -25,10 +25,10 @@ import org.springframework.web.bind.annotation.*;
@RestController
@Api(tags = "买家端,会员发票接口")
@RequestMapping("/buyer/member/receipt")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class MemberReceiptController {
private final MemberReceiptService memberReceiptService;
@Autowired
private MemberReceiptService memberReceiptService;
@ApiOperation(value = "查询会员发票列表")
@GetMapping

View File

@@ -24,10 +24,9 @@ import java.util.List;
@RestController
@Api(tags = "买家端会员签到API")
@RequestMapping("/buyer/members/sign")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class MemberSignBuyerController {
private final MemberSignService memberSignService;
@Autowired
private MemberSignService memberSignService;
@PostMapping
@ApiOperation(value = "会员签到")

View File

@@ -36,21 +36,23 @@ import javax.validation.constraints.Pattern;
@RestController
@Api(tags = "买家端,会员余额接口")
@RequestMapping("/buyer/members/wallet")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class MemberWalletBuyerController {
/**
* 会员
*/
private final MemberService memberService;
@Autowired
private MemberService memberService;
/**
* 会员余额
*/
private final MemberWalletService memberWalletService;
@Autowired
private MemberWalletService memberWalletService;
/**
* 验证码
*/
private final VerificationService verificationService;
@Autowired
private VerificationService verificationService;
@GetMapping
@ApiOperation(value = "查询会员预存款余额")

View File

@@ -11,10 +11,11 @@ import cn.lili.modules.member.service.MemberWithdrawApplyService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
@@ -27,10 +28,9 @@ import org.springframework.web.bind.annotation.*;
@Api(tags = "买家端,余额提现记录接口")
@RequestMapping("/buyer/member/withdrawApply")
@Transactional(rollbackFor = Exception.class)
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class MemberWithdrawApplyBuyerController {
private final MemberWithdrawApplyService memberWithdrawApplyService;
@Autowired
private MemberWithdrawApplyService memberWithdrawApplyService;
@ApiOperation(value = "分页获取提现记录")

View File

@@ -13,7 +13,6 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
@@ -28,10 +27,9 @@ import org.springframework.web.bind.annotation.RestController;
@RestController
@Api(tags = "买家端,会员积分历史接口")
@RequestMapping("/buyer/member/memberPointsHistory")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class PointsHistoryBuyerController {
private final MemberPointsHistoryService memberPointsHistoryService;
@Autowired
private MemberPointsHistoryService memberPointsHistoryService;
@ApiOperation(value = "分页获取")
@GetMapping(value = "/getByPage")

View File

@@ -27,7 +27,6 @@ import org.springframework.web.bind.annotation.RestController;
@Api(tags = "买家端,预存款充值记录接口")
@RequestMapping("/buyer/member/recharge")
@Transactional(rollbackFor = Exception.class)
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class RechargeBuyerController {
@Autowired

View File

@@ -10,7 +10,6 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
@@ -27,13 +26,13 @@ import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping("/service/notice")
@Api(tags = "买家端,会员站服务消息接口")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class ServiceNoticeBuyerController {
/**
* 服务消息
*/
private final ServiceNoticeService serviceNoticeService;
@Autowired
private ServiceNoticeService serviceNoticeService;
@ApiOperation(value = "获取消息详情")
@ApiImplicitParam(name = "id", value = "商品ID", required = true, dataType = "Long", paramType = "path")

View File

@@ -31,18 +31,19 @@ import java.util.List;
@RestController
@Api(tags = "买家端,文章接口")
@RequestMapping("/buyer/article")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class ArticleBuyerController {
/**
* 文章
*/
private final ArticleService articleService;
@Autowired
private ArticleService articleService;
/**
* 文章分类
*/
private final ArticleCategoryService articleCategoryService;
@Autowired
private ArticleCategoryService articleCategoryService;
@ApiOperation(value = "获取文章分类列表")
@GetMapping(value = "/articleCategory/list")

View File

@@ -23,13 +23,13 @@ import org.springframework.web.bind.annotation.RestController;
@RestController
@Api(tags = "买家端,意见反馈接口")
@RequestMapping("/buyer/feedback")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class FeedbackBuyerController {
/**
* 意见反馈
*/
private final FeedbackService feedbackService;
@Autowired
private FeedbackService feedbackService;
@ApiOperation(value = "添加意见反馈")
@PostMapping()

View File

@@ -23,10 +23,10 @@ import java.util.List;
@RestController
@Api(tags = "买家端,物流公司接口")
@RequestMapping("/buyer/logistics")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class LogisticsBuyerController {
private final LogisticsService logisticsService;
@Autowired
private LogisticsService logisticsService;
@ApiOperation(value = "分页获取物流公司")

View File

@@ -24,13 +24,13 @@ import org.springframework.web.bind.annotation.RestController;
@RestController
@Api(tags = "买家端,页面接口")
@RequestMapping("/buyer/pageData")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class PageBuyerController {
/**
* 页面管理
*/
private final PageDataService pageService;
@Autowired
private PageDataService pageService;
@ApiOperation(value = "获取首页数据")
@GetMapping("/getIndex")

View File

@@ -28,17 +28,14 @@ import javax.validation.constraints.NotNull;
@RestController
@Api(tags = "买家端,会员接口")
@RequestMapping("/buyer/members")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class MemberBuyerController {
/**
* 会员
*/
private final MemberService memberService;
private final SmsUtil smsUtil;
private final VerificationService verificationService;
@Autowired
private MemberService memberService;
@Autowired
private SmsUtil smsUtil;
@Autowired
private VerificationService verificationService;
@ApiOperation(value = "登录接口")

View File

@@ -23,10 +23,10 @@ import java.util.List;
@RestController
@Api(tags = "买家端,app/小程序 联合登录")
@RequestMapping("/buyer/connect/bind")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class ConnectBuyerBindController {
private final ConnectService connectService;
@Autowired
private ConnectService connectService;
@ApiOperation(value = "unionID 绑定")
@ApiImplicitParams({

View File

@@ -32,14 +32,16 @@ import java.io.IOException;
@RestController
@Api(tags = "买家端,web联合登录")
@RequestMapping("/buyer/connect")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class ConnectBuyerWebController {
private final ConnectService connectService;
@Autowired
private ConnectService connectService;
private final MemberService memberService;
@Autowired
private MemberService memberService;
private final ConnectUtil connectUtil;
@Autowired
private ConnectUtil connectUtil;
@GetMapping("/login/web/{type}")

View File

@@ -11,7 +11,6 @@ import cn.lili.modules.message.service.WechatMPMessageService;
import cn.lili.modules.message.util.WechatMpCodeUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
@@ -29,14 +28,16 @@ import java.util.List;
@RestController
@RequestMapping("/buyer/mini-program")
@Api(tags = "买家端,小程序登录接口")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class MiniProgramBuyerController {
public final ConnectService connectService;
public final WechatMpCodeUtil wechatMpCodeUtil;
public final WechatMPMessageService wechatMPMessageService;
public final ShortLinkService shortLinkService;
@Autowired
public ConnectService connectService;
@Autowired
public WechatMpCodeUtil wechatMpCodeUtil;
@Autowired
public WechatMPMessageService wechatMPMessageService;
@Autowired
public ShortLinkService shortLinkService;
@GetMapping("/auto-login")
@ApiOperation(value = "小程序自动登录")

View File

@@ -13,7 +13,6 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
@@ -30,13 +29,12 @@ import javax.servlet.http.HttpServletResponse;
@RestController
@Api(tags = "买家端,收银台接口")
@RequestMapping("/buyer/cashier")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class CashierController {
private final CashierSupport cashierSupport;
private final PaymentService paymentService;
@Autowired
private CashierSupport cashierSupport;
@Autowired
private PaymentService paymentService;
@ApiImplicitParams({

View File

@@ -22,11 +22,10 @@ import javax.servlet.http.HttpServletRequest;
@Api(tags = "买家端,退款回调")
@RestController
@RequestMapping("/buyer/cashier/refund")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class CashierRefundController {
private final RefundSupport refundSupport;
@Autowired
private RefundSupport refundSupport;
@ApiOperation(value = "退款通知")

View File

@@ -33,12 +33,11 @@ import java.util.List;
@Api(tags = "买家端,拼团接口")
@RestController
@RequestMapping("/buyer/promotion/pintuan")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class PintuanBuyerController {
private final PromotionGoodsService promotionGoodsService;
private final PintuanService pintuanService;
@Autowired
private PromotionGoodsService promotionGoodsService;
@Autowired
private PintuanService pintuanService;
@ApiOperation(value = "获取拼团商品")
@GetMapping

View File

@@ -11,7 +11,6 @@ import cn.lili.modules.promotion.service.PointsGoodsService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
@@ -26,12 +25,11 @@ import org.springframework.web.bind.annotation.RestController;
@RestController
@Api(tags = "买家端,积分商品接口")
@RequestMapping("/buyer/promotion/pointsGoods")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class PointsGoodsBuyerController {
private final PointsGoodsService pointsGoodsService;
private final PointsGoodsCategoryService pointsGoodsCategoryService;
@Autowired
private PointsGoodsService pointsGoodsService;
@Autowired
private PointsGoodsCategoryService pointsGoodsCategoryService;
@GetMapping
@ApiOperation(value = "分页获取积分商品")

View File

@@ -7,7 +7,6 @@ import cn.lili.modules.promotion.entity.vos.SeckillTimelineVO;
import cn.lili.modules.promotion.service.SeckillApplyService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
@@ -26,13 +25,13 @@ import java.util.List;
@Api(tags = "买家端,限时抢购接口")
@RestController
@RequestMapping("/buyer/promotion/seckill")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class SeckillBuyerController {
/**
* 限时抢购
*/
private final SeckillApplyService seckillApplyService;
@Autowired
private SeckillApplyService seckillApplyService;
@ApiOperation(value = "获取当天限时抢购信息")
@GetMapping

View File

@@ -12,7 +12,6 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@@ -27,13 +26,13 @@ import javax.validation.constraints.NotNull;
@Api(tags = "买家端,采购接口")
@RestController
@RequestMapping("/buyer/purchase")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class PurchaseBuyerController {
/**
* 采购单
*/
private final PurchaseOrderService purchaseOrderService;
@Autowired
private PurchaseOrderService purchaseOrderService;
@ApiOperation(value = "添加采购单")
@PostMapping

View File

@@ -8,7 +8,6 @@ import cn.lili.modules.purchase.service.PurchaseQuotedService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@@ -24,13 +23,13 @@ import java.util.List;
@Api(tags = "买家端,采购报价接口")
@RestController
@RequestMapping("/buyer/purchaseQuoted")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class PurchaseQuotedController {
/**
* 采购单报价
*/
private final PurchaseQuotedService purchaseQuotedService;
@Autowired
private PurchaseQuotedService purchaseQuotedService;
@ApiOperation(value = "添加采购单报价")
@PostMapping

View File

@@ -19,7 +19,6 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@@ -36,21 +35,23 @@ import java.util.List;
@RestController
@RequestMapping("/buyer/store")
@Api(tags = "买家端,店铺接口")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class StoreBuyerController {
/**
* 店铺
*/
private final StoreService storeService;
@Autowired
private StoreService storeService;
/**
* 店铺商品分类
*/
private final StoreGoodsLabelService storeGoodsLabelService;
@Autowired
private StoreGoodsLabelService storeGoodsLabelService;
/**
* 店铺详情
*/
private final StoreDetailService storeDetailService;
@Autowired
private StoreDetailService storeDetailService;
@ApiOperation(value = "获取店铺列表分页")
@GetMapping

View File

@@ -8,17 +8,16 @@ import cn.lili.modules.order.order.entity.dto.AfterSaleDTO;
import cn.lili.modules.order.order.entity.vo.AfterSaleApplyVO;
import cn.lili.modules.order.order.entity.vo.AfterSaleSearchParams;
import cn.lili.modules.order.order.entity.vo.AfterSaleVO;
import cn.lili.modules.order.order.service.AfterSaleLogService;
import cn.lili.modules.order.order.service.AfterSaleReasonService;
import cn.lili.modules.order.order.service.AfterSaleService;
import cn.lili.modules.store.entity.dto.StoreAfterSaleAddressDTO;
import cn.lili.modules.order.trade.entity.dos.AfterSaleLog;
import cn.lili.modules.order.order.service.AfterSaleLogService;
import cn.lili.modules.store.entity.dto.StoreAfterSaleAddressDTO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.format.annotation.DateTimeFormat;
import org.springframework.web.bind.annotation.*;
@@ -36,23 +35,23 @@ import java.util.List;
@RestController
@Api(tags = "买家端,售后管理接口")
@RequestMapping("/buyer/afterSale")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class AfterSaleBuyerController {
/**
* 售后
*/
private final AfterSaleService afterSaleService;
@Autowired
private AfterSaleService afterSaleService;
/**
* 售后原因
*/
private final AfterSaleReasonService afterSaleReasonService;
@Autowired
private AfterSaleReasonService afterSaleReasonService;
/**
* 售后日志
*/
private final AfterSaleLogService afterSaleLogService;
@Autowired
private AfterSaleLogService afterSaleLogService;
@ApiOperation(value = "查看售后服务详情")
@ApiImplicitParam(name = "sn", value = "售后单号", required = true, paramType = "path")

View File

@@ -32,13 +32,13 @@ import javax.validation.constraints.NotNull;
@RestController
@Api(tags = "买家端,购物车接口")
@RequestMapping("/buyer/trade/carts")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class CartController {
/**
* 购物车
*/
private final CartService cartService;
@Autowired
private CartService cartService;
@ApiOperation(value = "向购物车中添加一个产品")

View File

@@ -33,13 +33,13 @@ import javax.validation.constraints.NotNull;
@RestController
@Api(tags = "买家端,订单接口")
@RequestMapping("/buyer/orders")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class OrderBuyerController {
/**
* 订单
*/
private final OrderService orderService;
@Autowired
private OrderService orderService;
@ApiOperation(value = "查询会员订单列表")
@GetMapping

View File

@@ -19,7 +19,6 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@@ -34,18 +33,19 @@ import javax.validation.Valid;
@RestController
@Api(tags = "买家端,交易投诉接口")
@RequestMapping("/buyer/complain")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class OrderComplaintBuyerController {
/**
* 交易投诉
*/
private final OrderComplaintService orderComplaintService;
@Autowired
private OrderComplaintService orderComplaintService;
/**
* 交易投诉沟通
*/
private final OrderComplaintCommunicationService orderComplaintCommunicationService;
@Autowired
private OrderComplaintCommunicationService orderComplaintCommunicationService;
@ApiOperation(value = "通过id获取")

View File

@@ -10,7 +10,6 @@ import cn.lili.modules.order.order.service.ReceiptService;
import com.baomidou.mybatisplus.core.metadata.IPage;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@@ -25,10 +24,10 @@ import javax.validation.Valid;
@RestController
@Api(tags = "买家端,发票接口")
@RequestMapping("/buyer/trade/receipt")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class ReceiptBuyerController {
private final ReceiptService receiptService;
@Autowired
private ReceiptService receiptService;
@ApiOperation(value = "获取发票详情")
@GetMapping("/{id}")

View File

@@ -8,7 +8,6 @@ import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.bind.annotation.PostMapping;
@@ -28,10 +27,10 @@ import javax.validation.constraints.Min;
@Api(tags = "买家端,预存款充值记录接口")
@RequestMapping("/buyer/trade/recharge")
@Transactional(rollbackFor = Exception.class)
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class RechargeTradeBuyerController {
private final RechargeService rechargeService;
@Autowired
private RechargeService rechargeService;
@PostMapping
@ApiOperation(value = "创建余额充值订单")

View File

@@ -12,7 +12,6 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
@@ -27,10 +26,10 @@ import org.springframework.web.bind.annotation.RestController;
@RestController
@Api(tags = "买家端,预存款变动日志记录接口")
@RequestMapping("/buyer/wallet/log")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class WalletLogBuyerController {
private final WalletLogService walletLogService;
@Autowired
private WalletLogService walletLogService;
@ApiOperation(value = "分页获取预存款变动日志")
@GetMapping

View File

@@ -13,6 +13,7 @@ import io.jsonwebtoken.Claims;
import io.jsonwebtoken.ExpiredJwtException;
import io.jsonwebtoken.Jwts;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.authentication.AuthenticationManager;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.GrantedAuthority;
@@ -45,7 +46,8 @@ public class BuyerAuthenticationFilter extends BasicAuthenticationFilter {
/**
* 缓存
*/
private final Cache cache;
@Autowired
private Cache cache;
/**
* 自定义构造器

View File

@@ -4,7 +4,6 @@ import cn.lili.common.cache.Cache;
import cn.lili.common.security.CustomAccessDeniedHandler;
import cn.lili.common.utils.SpringContextUtil;
import cn.lili.config.properties.IgnoredUrlsProperties;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
@@ -27,23 +26,22 @@ import org.springframework.web.cors.CorsConfigurationSource;
@Slf4j
@Configuration
@EnableGlobalMethodSecurity(prePostEnabled = true)
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class BuyerSecurityConfig extends WebSecurityConfigurerAdapter {
/**
* 忽略验权配置
*/
private final IgnoredUrlsProperties ignoredUrlsProperties;
@Autowired
private IgnoredUrlsProperties ignoredUrlsProperties;
/**
* spring security -》 权限不足处理
*/
private final CustomAccessDeniedHandler accessDeniedHandler;
@Autowired
private CustomAccessDeniedHandler accessDeniedHandler;
private final Cache<String> cache;
@Autowired
private Cache<String> cache;
@Override
protected void configure(HttpSecurity http) throws Exception {