Skip to content

Commit

Permalink
去除final使用@Autowired
Browse files Browse the repository at this point in the history
  • Loading branch information
lifenlong committed May 13, 2021
1 parent 3785bdb commit a10c38f
Show file tree
Hide file tree
Showing 350 changed files with 1,323 additions and 1,657 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,18 @@
@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 = "申请分销员")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
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;
Expand All @@ -30,17 +29,18 @@
@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 = "分销员提现")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,18 @@
@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 = "获取分销商商品列表")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,18 @@
@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 = "分销员订单")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@
@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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,25 +42,28 @@
@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获取商品信息")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,19 @@
@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 = "获取可领取优惠券列表")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@
@RestController
@Api(tags = "买家端,浏览历史接口")
@RequestMapping("/buyer/footprint")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class FootprintController {

/**
* 会员足迹
*/
private final FootprintService footprintService;
@Autowired
private FootprintService footprintService;

@ApiOperation(value = "分页获取")
@GetMapping
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,16 @@
@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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,18 @@
@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:店铺")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@
@RestController
@Api(tags = "买家端,会员商品评价接口")
@RequestMapping("/buyer/memberEvaluation")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class MemberEvaluationBuyerController {

/**
* 会员商品评价
*/
private final MemberEvaluationService memberEvaluationService;
@Autowired
private MemberEvaluationService memberEvaluationService;

@ApiOperation(value = "添加会员评价")
@PostMapping
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@
@RestController
@Api(tags = "买家端,会员站内消息接口")
@RequestMapping("/buyer/member/message")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class MemberMessageBuyerController {

/**
* 会员站内消息
*/
private final MemberMessageService memberMessageService;
@Autowired
private MemberMessageService memberMessageService;

@ApiOperation(value = "分页获取会员站内消息")
@GetMapping
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
@RestController
@Api(tags = "买家端,会员发票接口")
@RequestMapping("/buyer/member/receipt")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class MemberReceiptController {

private final MemberReceiptService memberReceiptService;
@Autowired
private MemberReceiptService memberReceiptService;

@ApiOperation(value = "查询会员发票列表")
@GetMapping
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,9 @@
@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 = "会员签到")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,23 @@
@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 = "查询会员预存款余额")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@
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;


/**
Expand All @@ -27,10 +28,9 @@
@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 = "分页获取提现记录")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
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;
Expand All @@ -28,10 +27,9 @@
@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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
@Api(tags = "买家端,预存款充值记录接口")
@RequestMapping("/buyer/member/recharge")
@Transactional(rollbackFor = Exception.class)
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class RechargeBuyerController {

@Autowired
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
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;
Expand All @@ -27,13 +26,13 @@
@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")
Expand Down
Loading

0 comments on commit a10c38f

Please sign in to comment.