去除final使用@Autowired
This commit is contained in:
@@ -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.*;
|
||||
|
||||
@@ -25,10 +24,10 @@ import javax.validation.constraints.NotNull;
|
||||
@RestController
|
||||
@Api(tags = "管理端,分销佣金管理接口")
|
||||
@RequestMapping("/manager/distribution/cash")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class DistributionCashManagerController {
|
||||
|
||||
private final DistributionCashService distributorCashService;
|
||||
@Autowired
|
||||
private DistributionCashService distributorCashService;
|
||||
|
||||
@ApiOperation(value = "通过id获取分销佣金详情")
|
||||
@GetMapping(value = "/get/{id}")
|
||||
|
||||
@@ -24,10 +24,10 @@ import java.util.List;
|
||||
@RestController
|
||||
@Api(tags = "管理端,分销商品管理接口")
|
||||
@RequestMapping("/manager/distribution/goods")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class DistributionGoodsManagerController {
|
||||
|
||||
private final DistributionGoodsService distributionGoodsService;
|
||||
@Autowired
|
||||
private DistributionGoodsService distributionGoodsService;
|
||||
|
||||
@GetMapping(value = "/getByPage")
|
||||
@ApiOperation(value = "分页获取")
|
||||
|
||||
@@ -27,10 +27,10 @@ import javax.validation.constraints.NotNull;
|
||||
@RestController
|
||||
@Api(tags = "管理端,分销员管理接口")
|
||||
@RequestMapping("/manager/distribution")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class DistributionManagerController {
|
||||
|
||||
private final DistributionService distributionService;
|
||||
@Autowired
|
||||
private DistributionService distributionService;
|
||||
|
||||
@ApiOperation(value = "分页获取")
|
||||
@GetMapping(value = "/getByPage")
|
||||
|
||||
@@ -24,10 +24,10 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
@RestController
|
||||
@Api(tags = "管理端,分销订单管理接口")
|
||||
@RequestMapping("/manager/distribution/order")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class DistributionOrderManagerController {
|
||||
|
||||
private final DistributionOrderService distributionOrderService;
|
||||
@Autowired
|
||||
private DistributionOrderService distributionOrderService;
|
||||
|
||||
@ApiOperation(value = "通过id获取分销订单")
|
||||
@GetMapping(value = "/get/{id}")
|
||||
|
||||
@@ -11,7 +11,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,10 +26,10 @@ import java.util.List;
|
||||
@RestController
|
||||
@Api(tags = "管理端,文件管理管理接口")
|
||||
@RequestMapping("/manager/file")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class FileManagerController {
|
||||
|
||||
private final FileService fileService;
|
||||
@Autowired
|
||||
private FileService fileService;
|
||||
|
||||
|
||||
@ApiOperation(value = "管理端管理所有图片")
|
||||
|
||||
@@ -33,13 +33,13 @@ import java.util.List;
|
||||
@RestController
|
||||
@Api(tags = "管理端,品牌接口")
|
||||
@RequestMapping("/manager/goods/brand")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class BrandManagerController {
|
||||
|
||||
/**
|
||||
* 品牌
|
||||
*/
|
||||
private final BrandService brandService;
|
||||
@Autowired
|
||||
private BrandService brandService;
|
||||
|
||||
@ApiOperation(value = "通过id获取")
|
||||
@ApiImplicitParam(name = "id", value = "品牌ID", required = true, dataType = "String", paramType = "path")
|
||||
|
||||
@@ -26,13 +26,13 @@ import java.util.List;
|
||||
@RestController
|
||||
@Api(tags = "管理端,分类品牌接口")
|
||||
@RequestMapping("/manager/category/brand")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class CategoryBrandManagerController {
|
||||
|
||||
/**
|
||||
* 规格品牌管理
|
||||
*/
|
||||
private final CategoryBrandService categoryBrandService;
|
||||
@Autowired
|
||||
private CategoryBrandService categoryBrandService;
|
||||
|
||||
@ApiOperation(value = "查询某分类下绑定的品牌信息")
|
||||
@ApiImplicitParam(name = "categoryId", value = "分类id", required = true, dataType = "String", paramType = "path")
|
||||
|
||||
@@ -31,18 +31,19 @@ import java.util.List;
|
||||
@Api(tags = "管理端,商品分类接口")
|
||||
@RequestMapping("/manager/goods/category")
|
||||
@CacheConfig(cacheNames = "category")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class CategoryManagerController {
|
||||
|
||||
/**
|
||||
* 分类
|
||||
*/
|
||||
private final CategoryService categoryService;
|
||||
@Autowired
|
||||
private CategoryService categoryService;
|
||||
|
||||
/**
|
||||
* 商品
|
||||
*/
|
||||
private final GoodsService goodsService;
|
||||
@Autowired
|
||||
private GoodsService goodsService;
|
||||
|
||||
@ApiOperation(value = "查询某分类下的全部子分类列表")
|
||||
@ApiImplicitParam(name = "parentId", value = "父id,顶级为0", required = true, dataType = "String", paramType = "path")
|
||||
|
||||
@@ -27,18 +27,19 @@ import java.util.List;
|
||||
@RestController
|
||||
@Api(tags = "管理端,分类绑定参数组接口")
|
||||
@RequestMapping("/manager/goods/category/parameters")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class CategoryParameterGroupManagerController {
|
||||
|
||||
/**
|
||||
* 参数组
|
||||
*/
|
||||
private final ParametersService parametersService;
|
||||
@Autowired
|
||||
private ParametersService parametersService;
|
||||
|
||||
/**
|
||||
* 分类参数
|
||||
*/
|
||||
private final CategoryParameterGroupService categoryParameterGroupService;
|
||||
@Autowired
|
||||
private CategoryParameterGroupService categoryParameterGroupService;
|
||||
|
||||
@ApiOperation(value = "查询某分类下绑定的参数信息")
|
||||
@GetMapping(value = "/{categoryId}")
|
||||
|
||||
@@ -28,18 +28,19 @@ import java.util.List;
|
||||
@RestController
|
||||
@Api(tags = "管理端,商品分类规格接口")
|
||||
@RequestMapping("/manager/goods/category/spec")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class CategorySpecificationManagerController {
|
||||
|
||||
/**
|
||||
* 分类规格
|
||||
*/
|
||||
private final CategorySpecificationService categorySpecificationService;
|
||||
@Autowired
|
||||
private CategorySpecificationService categorySpecificationService;
|
||||
|
||||
/**
|
||||
* 规格
|
||||
*/
|
||||
private final SpecificationService specificationService;
|
||||
@Autowired
|
||||
private SpecificationService specificationService;
|
||||
|
||||
|
||||
@ApiOperation(value = "查询某分类下绑定的规格信息")
|
||||
|
||||
@@ -33,12 +33,13 @@ import java.util.List;
|
||||
@RestController
|
||||
@Api(tags = "管理端,商品管理接口")
|
||||
@RequestMapping("/manager/goods")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class GoodsManagerController {
|
||||
//商品
|
||||
private final GoodsService goodsService;
|
||||
@Autowired
|
||||
private GoodsService goodsService;
|
||||
//规格商品
|
||||
private final GoodsSkuService goodsSkuService;
|
||||
@Autowired
|
||||
private GoodsSkuService goodsSkuService;
|
||||
|
||||
@ApiOperation(value = "分页获取")
|
||||
@GetMapping(value = "/list")
|
||||
|
||||
@@ -26,10 +26,10 @@ import java.util.List;
|
||||
@RestController
|
||||
@Api(tags = "管理端,商品关联参数管理接口")
|
||||
@RequestMapping("/manager/goods/parameters")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class GoodsParameterManagerController {
|
||||
|
||||
private final GoodsParamsService goodsParamsService;
|
||||
@Autowired
|
||||
private GoodsParamsService goodsParamsService;
|
||||
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "goodsId", value = "商品ID", required = true, paramType = "path", dataType = "String"),
|
||||
|
||||
@@ -30,10 +30,10 @@ import java.util.List;
|
||||
@RestController
|
||||
@Api(tags = "管理端,商品计量单位接口")
|
||||
@RequestMapping("/manager/goods/goodsUnit")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class GoodsUnitManagerController {
|
||||
|
||||
private final GoodsUnitService goodsUnitService;
|
||||
@Autowired
|
||||
private GoodsUnitService goodsUnitService;
|
||||
|
||||
|
||||
@ApiOperation(value = "分页获取商品计量单位")
|
||||
|
||||
@@ -8,7 +8,6 @@ import cn.lili.modules.goods.service.ParametersService;
|
||||
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.*;
|
||||
|
||||
@@ -23,10 +22,10 @@ import javax.validation.Valid;
|
||||
@RestController
|
||||
@Api(tags = "管理端,分类绑定参数组管理接口")
|
||||
@RequestMapping("/manager/goods/parameters")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class ParameterManagerController {
|
||||
|
||||
private final ParametersService parametersService;
|
||||
@Autowired
|
||||
private ParametersService parametersService;
|
||||
|
||||
@ApiOperation(value = "添加参数")
|
||||
@PostMapping
|
||||
|
||||
@@ -9,7 +9,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.*;
|
||||
|
||||
@@ -25,10 +24,10 @@ import java.util.List;
|
||||
@RestController
|
||||
@Api(tags = "管理端,规格项管理接口")
|
||||
@RequestMapping("/manager/goods/specValues")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class SpecValuesManagerController {
|
||||
|
||||
private final SpecValuesService specValuesService;
|
||||
@Autowired
|
||||
private SpecValuesService specValuesService;
|
||||
|
||||
@GetMapping(value = "/values/{id}")
|
||||
@ApiImplicitParam(name = "id", value = "规格项ID", required = true, dataType = "String", paramType = "path")
|
||||
|
||||
@@ -31,10 +31,10 @@ import java.util.List;
|
||||
@RestController
|
||||
@Api(tags = "管理端,商品规格接口")
|
||||
@RequestMapping("/manager/goods/spec")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class SpecificationManagerController {
|
||||
|
||||
private final SpecificationService specificationService;
|
||||
@Autowired
|
||||
private SpecificationService specificationService;
|
||||
|
||||
@GetMapping(value = "/{id}")
|
||||
@ApiImplicitParam(name = "id", value = "商品规格ID", required = true, dataType = "String", paramType = "path")
|
||||
|
||||
@@ -7,7 +7,6 @@ import cn.lili.modules.connect.entity.vo.ConnectConfigForm;
|
||||
import cn.lili.modules.connect.service.ConnectConfigService;
|
||||
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.*;
|
||||
|
||||
@@ -23,10 +22,10 @@ import java.util.List;
|
||||
@RestController
|
||||
@Api(tags = "管理端,联合登陆配置接口")
|
||||
@RequestMapping("/manager/connectConfig")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class ConnectConfigManagerController {
|
||||
|
||||
private final ConnectConfigService connectConfigService;
|
||||
@Autowired
|
||||
private ConnectConfigService connectConfigService;
|
||||
|
||||
@GetMapping(value = "/list")
|
||||
@ApiOperation(value = "获取所有联合配置")
|
||||
|
||||
@@ -5,7 +5,6 @@ import cn.lili.common.utils.ResultUtil;
|
||||
import cn.lili.common.vo.ResultMessage;
|
||||
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.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
@@ -22,10 +21,9 @@ import javax.servlet.http.HttpServletRequest;
|
||||
@RestController
|
||||
@Api(tags = "管理端,IP接口")
|
||||
@RequestMapping("/manager/common/ip")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class IpInfoManagerController {
|
||||
|
||||
private final IpHelper ipHelper;
|
||||
@Autowired
|
||||
private IpHelper ipHelper;
|
||||
|
||||
@RequestMapping(value = "/info", method = RequestMethod.GET)
|
||||
@ApiOperation(value = "IP及天气相关信息")
|
||||
|
||||
@@ -25,10 +25,9 @@ import javax.validation.Valid;
|
||||
@RestController
|
||||
@Api(tags = "管理端,会员地址API")
|
||||
@RequestMapping("/manager/member/address")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class MemberAddressManagerController {
|
||||
|
||||
private final MemberAddressService memberAddressService;
|
||||
@Autowired
|
||||
private MemberAddressService memberAddressService;
|
||||
|
||||
@ApiOperation(value = "会员地址分页列表")
|
||||
@GetMapping("/{memberId}")
|
||||
|
||||
@@ -28,10 +28,9 @@ import javax.validation.constraints.NotNull;
|
||||
@RestController
|
||||
@Api(tags = "管理端,会员商品评价接口")
|
||||
@RequestMapping("/manager/memberEvaluation")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class MemberEvaluationManagerController {
|
||||
|
||||
private final MemberEvaluationService memberEvaluationService;
|
||||
@Autowired
|
||||
private MemberEvaluationService memberEvaluationService;
|
||||
|
||||
@ApiOperation(value = "通过id获取评论")
|
||||
@ApiImplicitParam(name = "id", value = "评价ID", required = true, dataType = "String", paramType = "path")
|
||||
|
||||
@@ -14,7 +14,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.*;
|
||||
|
||||
@@ -30,10 +29,9 @@ import java.util.List;
|
||||
@RestController
|
||||
@Api(tags = "管理端,会员接口")
|
||||
@RequestMapping("/manager/member")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class MemberManagerController {
|
||||
|
||||
private final MemberService memberService;
|
||||
@Autowired
|
||||
private MemberService memberService;
|
||||
|
||||
@ApiOperation(value = "会员分页列表")
|
||||
@GetMapping
|
||||
|
||||
@@ -25,10 +25,9 @@ import java.util.List;
|
||||
@RestController
|
||||
@Api(tags = "管理端,会员消息接口")
|
||||
@RequestMapping("/manager/memberNoticeLog")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class MemberNoticeLogManagerController {
|
||||
|
||||
private final MemberNoticeLogService memberNoticeLogService;
|
||||
@Autowired
|
||||
private MemberNoticeLogService memberNoticeLogService;
|
||||
|
||||
@ApiOperation(value = "通过id获取")
|
||||
@GetMapping(value = "/get/{id}")
|
||||
|
||||
@@ -26,10 +26,9 @@ import java.util.List;
|
||||
@RestController
|
||||
@Api(tags = "管理端,会员消息接口")
|
||||
@RequestMapping("/manager/memberNoticeSenter")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class MemberNoticeSenterManagerController {
|
||||
|
||||
private final MemberNoticeSenterService memberNoticeSenterService;
|
||||
@Autowired
|
||||
private MemberNoticeSenterService memberNoticeSenterService;
|
||||
|
||||
@ApiOperation(value = "通过id获取")
|
||||
@GetMapping(value = "/get/{id}")
|
||||
|
||||
@@ -28,10 +28,9 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
@RestController
|
||||
@Api(tags = "管理端,会员积分历史接口")
|
||||
@RequestMapping("/manager/member/memberPointsHistory")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class MemberPointsHistoryManagerController {
|
||||
|
||||
private final MemberPointsHistoryService memberPointsHistoryService;
|
||||
@Autowired
|
||||
private MemberPointsHistoryService memberPointsHistoryService;
|
||||
|
||||
@ApiOperation(value = "分页获取")
|
||||
@ApiImplicitParams({
|
||||
|
||||
@@ -7,7 +7,6 @@ import cn.lili.modules.member.service.MemberWalletService;
|
||||
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.RequestMapping;
|
||||
@@ -23,10 +22,9 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
@RestController
|
||||
@Api(tags = "管理端,预存款接口")
|
||||
@RequestMapping("/manager/members/wallet")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class MemberWalletManagerController {
|
||||
|
||||
private final MemberWalletService memberWalletService;
|
||||
@Autowired
|
||||
private MemberWalletService memberWalletService;
|
||||
|
||||
@GetMapping
|
||||
@ApiOperation(value = "查询会员预存款余额")
|
||||
|
||||
@@ -12,10 +12,12 @@ 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.*;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
|
||||
/**
|
||||
@@ -28,10 +30,9 @@ import org.springframework.web.bind.annotation.*;
|
||||
@Api(tags = "管理端,余额提现记录接口")
|
||||
@RequestMapping("/manager/members/withdraw-apply")
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class MemberWithdrawApplyManagerController {
|
||||
|
||||
private final MemberWithdrawApplyService memberWithdrawApplyService;
|
||||
@Autowired
|
||||
private MemberWithdrawApplyService memberWithdrawApplyService;
|
||||
|
||||
|
||||
@ApiOperation(value = "分页获取提现记录")
|
||||
|
||||
@@ -9,7 +9,6 @@ import cn.lili.modules.page.service.ArticleCategoryService;
|
||||
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.*;
|
||||
|
||||
@@ -25,13 +24,13 @@ import java.util.List;
|
||||
@RestController
|
||||
@Api(tags = "管理端,文章分类管理接口")
|
||||
@RequestMapping("/manager/article-category")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class ArticleCategoryManagerController {
|
||||
|
||||
/**
|
||||
* 文章分类
|
||||
*/
|
||||
private final ArticleCategoryService articleCategoryService;
|
||||
@Autowired
|
||||
private ArticleCategoryService articleCategoryService;
|
||||
|
||||
@ApiOperation(value = "查询分类列表")
|
||||
@GetMapping(value = "/all-children")
|
||||
|
||||
@@ -28,13 +28,13 @@ import javax.validation.Valid;
|
||||
@RestController
|
||||
@Api(tags = "管理端,文章接口")
|
||||
@RequestMapping("/manager/article")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class ArticleManagerController {
|
||||
|
||||
/**
|
||||
* 文章
|
||||
*/
|
||||
private final ArticleService articleService;
|
||||
@Autowired
|
||||
private ArticleService articleService;
|
||||
|
||||
@ApiOperation(value = "查看文章")
|
||||
@ApiImplicitParam(name = "id", value = "文章ID", required = true, dataType = "String", paramType = "path")
|
||||
|
||||
@@ -7,7 +7,6 @@ import cn.lili.modules.search.service.CustomWordsService;
|
||||
import cn.lili.modules.system.entity.dos.Setting;
|
||||
import cn.lili.modules.system.service.SettingService;
|
||||
import io.swagger.annotations.Api;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
@@ -24,17 +23,18 @@ import java.nio.charset.StandardCharsets;
|
||||
@RestController
|
||||
@Api(tags = "管理端,自定义分词接口")
|
||||
@RequestMapping("/manager/custom-words")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class CustomWordsController {
|
||||
|
||||
/**
|
||||
* 分词
|
||||
*/
|
||||
private final CustomWordsService customWordsService;
|
||||
@Autowired
|
||||
private CustomWordsService customWordsService;
|
||||
/**
|
||||
* 设置
|
||||
*/
|
||||
private final SettingService settingService;
|
||||
@Autowired
|
||||
private SettingService settingService;
|
||||
|
||||
@GetMapping
|
||||
public String getCustomWords(String secretKey) {
|
||||
|
||||
@@ -11,7 +11,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;
|
||||
@RestController
|
||||
@Api(tags = "管理端,自定义分词接口")
|
||||
@RequestMapping("/manager/manager/custom-words")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class CustomWordsManagerController {
|
||||
|
||||
/**
|
||||
* 分词
|
||||
*/
|
||||
private final CustomWordsService customWordsService;
|
||||
@Autowired
|
||||
private CustomWordsService customWordsService;
|
||||
|
||||
@ApiOperation(value = "添加自定义分词")
|
||||
@PostMapping
|
||||
|
||||
@@ -26,13 +26,13 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
@RestController
|
||||
@Api(tags = "管理端,意见反馈接口")
|
||||
@RequestMapping("/manager/feedback")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class FeedbackManagerController {
|
||||
|
||||
/**
|
||||
* 意见反馈
|
||||
*/
|
||||
private final FeedbackService feedbackService;
|
||||
@Autowired
|
||||
private FeedbackService feedbackService;
|
||||
|
||||
@ApiOperation(value = "查询意见反馈列表")
|
||||
@ApiImplicitParam(name = "parentId", value = "父id,顶级为0", required = true, dataType = "String", paramType = "path")
|
||||
|
||||
@@ -24,10 +24,9 @@ import org.springframework.web.bind.annotation.*;
|
||||
@RestController
|
||||
@Api(tags = "管理端,消息发送管理接口")
|
||||
@RequestMapping("/manager/message")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class MessageManagerController {
|
||||
|
||||
private final MessageService messageService;
|
||||
@Autowired
|
||||
private MessageService messageService;
|
||||
|
||||
|
||||
@GetMapping
|
||||
|
||||
@@ -12,7 +12,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.*;
|
||||
|
||||
@@ -28,10 +27,10 @@ import javax.validation.constraints.NotNull;
|
||||
@RestController
|
||||
@Api(tags = "管理端,页面设置管理接口")
|
||||
@RequestMapping("/manager/pageData")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class PageDataManagerController {
|
||||
|
||||
private final PageDataService pageDataService;
|
||||
@Autowired
|
||||
private PageDataService pageDataService;
|
||||
|
||||
@ApiOperation(value = "获取页面信息")
|
||||
@ApiImplicitParam(name = "id", value = "页面ID", required = true, dataType = "String", paramType = "path")
|
||||
|
||||
@@ -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.*;
|
||||
|
||||
@@ -28,10 +27,10 @@ import java.util.List;
|
||||
@RestController
|
||||
@Api(tags = "管理端,敏感词管理接口")
|
||||
@RequestMapping("/manager/sensitiveWords")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class SensitiveWordsManagerController {
|
||||
|
||||
private final SensitiveWordsService sensitiveWordsService;
|
||||
@Autowired
|
||||
private SensitiveWordsService sensitiveWordsService;
|
||||
|
||||
@ApiOperation(value = "通过id获取")
|
||||
@ApiImplicitParam(name = "id", value = "敏感词ID", required = true, dataType = "String", paramType = "path")
|
||||
|
||||
@@ -28,10 +28,10 @@ import java.util.List;
|
||||
@RestController
|
||||
@Api(tags = "管理端,专题活动接口")
|
||||
@RequestMapping("/manager/special")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class SpecialManagerController {
|
||||
|
||||
private final SpecialService specialService;
|
||||
@Autowired
|
||||
private SpecialService specialService;
|
||||
|
||||
@ApiOperation(value = "添加专题活动")
|
||||
@PostMapping("/addSpecial")
|
||||
|
||||
@@ -11,7 +11,6 @@ import cn.lili.modules.base.service.VerificationSourceService;
|
||||
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.*;
|
||||
@@ -29,10 +28,10 @@ import java.util.List;
|
||||
@Api(tags = "管理端,验证码资源维护接口")
|
||||
@RequestMapping("/manager/verificationSource")
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class VerificationSourceController {
|
||||
|
||||
private final VerificationSourceService verificationSourceService;
|
||||
@Autowired
|
||||
private VerificationSourceService verificationSourceService;
|
||||
|
||||
@GetMapping(value = "/{id}")
|
||||
@ApiOperation(value = "查看验证码资源维护详情")
|
||||
|
||||
@@ -19,7 +19,6 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
@@ -42,12 +41,11 @@ import java.util.List;
|
||||
@RequestMapping("/manager/user")
|
||||
@Transactional
|
||||
@Validated
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class AdminUserManagerController {
|
||||
|
||||
private final AdminUserService adminUserService;
|
||||
|
||||
private final DepartmentService departmentService;
|
||||
@Autowired
|
||||
private AdminUserService adminUserService;
|
||||
@Autowired
|
||||
private DepartmentService departmentService;
|
||||
|
||||
|
||||
@GetMapping(value = "/login")
|
||||
|
||||
@@ -26,10 +26,9 @@ import java.util.List;
|
||||
@RestController
|
||||
@Api(tags = "管理端,部门管理接口")
|
||||
@RequestMapping("/manager/department")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class DepartmentManagerController {
|
||||
|
||||
private final DepartmentService departmentService;
|
||||
@Autowired
|
||||
private DepartmentService departmentService;
|
||||
|
||||
@GetMapping(value = "/{id}")
|
||||
@ApiOperation(value = "查看部门详情")
|
||||
|
||||
@@ -23,10 +23,9 @@ import java.util.List;
|
||||
@RestController
|
||||
@Api(tags = "管理端,部门角色接口")
|
||||
@RequestMapping("/manager/departmentRole")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class DepartmentRoleManagerController {
|
||||
|
||||
private final DepartmentRoleService departmentRoleService;
|
||||
@Autowired
|
||||
private DepartmentRoleService departmentRoleService;
|
||||
|
||||
@GetMapping(value = "/{departmentId}")
|
||||
@ApiOperation(value = "查看部门拥有的角色")
|
||||
|
||||
@@ -26,11 +26,9 @@ import java.util.List;
|
||||
@RestController
|
||||
@Api(tags = "管理端,菜单管理接口")
|
||||
@RequestMapping("/manager/menu")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class MenuManagerController {
|
||||
|
||||
private final MenuService menuService;
|
||||
|
||||
@Autowired
|
||||
private MenuService menuService;
|
||||
|
||||
@ApiOperation(value = "搜索菜单")
|
||||
@GetMapping
|
||||
|
||||
@@ -26,10 +26,9 @@ import java.util.List;
|
||||
@RestController
|
||||
@Api(tags = "管理端,角色管理接口")
|
||||
@RequestMapping("/manager/role")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class RoleManagerController {
|
||||
|
||||
private final RoleService roleService;
|
||||
@Autowired
|
||||
private RoleService roleService;
|
||||
|
||||
@PostMapping
|
||||
@ApiOperation(value = "添加")
|
||||
|
||||
@@ -23,10 +23,9 @@ import java.util.List;
|
||||
@RestController
|
||||
@Api(tags = "管理端,角色菜单接口")
|
||||
@RequestMapping("/manager/roleMenu")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class RoleMenuManagerController {
|
||||
|
||||
private final RoleMenuService roleMenuService;
|
||||
@Autowired
|
||||
private RoleMenuService roleMenuService;
|
||||
|
||||
@GetMapping(value = "/{roleId}")
|
||||
@ApiOperation(value = "查看某角色拥有到菜单")
|
||||
|
||||
@@ -7,7 +7,6 @@ import cn.lili.modules.permission.entity.dos.UserRole;
|
||||
import cn.lili.modules.permission.service.UserRoleService;
|
||||
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.*;
|
||||
|
||||
@@ -23,10 +22,9 @@ import java.util.List;
|
||||
@RestController
|
||||
@Api(tags = "管理端,管理员角色接口")
|
||||
@RequestMapping("/manager/userRole")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class UserRoleManagerController {
|
||||
|
||||
private final UserRoleService userRoleService;
|
||||
@Autowired
|
||||
private UserRoleService userRoleService;
|
||||
|
||||
@GetMapping(value = "/{userId}")
|
||||
@ApiOperation(value = "查看管理员角色")
|
||||
|
||||
@@ -19,7 +19,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.*;
|
||||
|
||||
@@ -35,11 +34,11 @@ import java.util.List;
|
||||
@RestController
|
||||
@Api(tags = "管理端,优惠券接口")
|
||||
@RequestMapping("/manager/promotion/coupon")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class CouponManagerController {
|
||||
|
||||
private final CouponService couponService;
|
||||
private final MemberCouponService memberCouponService;
|
||||
@Autowired
|
||||
private CouponService couponService;
|
||||
@Autowired
|
||||
private MemberCouponService memberCouponService;
|
||||
|
||||
@ApiOperation(value = "获取优惠券列表")
|
||||
@GetMapping
|
||||
|
||||
@@ -25,10 +25,9 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
@RestController
|
||||
@Api(tags = "管理端,满额活动接口")
|
||||
@RequestMapping("/manager/promotion/fullDiscount")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class FullDiscountManagerController {
|
||||
|
||||
private final FullDiscountService fullDiscountService;
|
||||
@Autowired
|
||||
private FullDiscountService fullDiscountService;
|
||||
|
||||
@ApiOperation(value = "获取满优惠列表")
|
||||
@GetMapping
|
||||
|
||||
@@ -30,11 +30,11 @@ import java.util.Date;
|
||||
@RestController
|
||||
@Api(tags = "管理端,平台拼团接口")
|
||||
@RequestMapping("/manager/promotion/pintuan")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class PintuanManagerController {
|
||||
|
||||
private final PintuanService pintuanService;
|
||||
private final PromotionGoodsService promotionGoodsService;
|
||||
@Autowired
|
||||
private PintuanService pintuanService;
|
||||
@Autowired
|
||||
private PromotionGoodsService promotionGoodsService;
|
||||
|
||||
@GetMapping(value = "/{id}")
|
||||
@ApiOperation(value = "通过id获取")
|
||||
|
||||
@@ -10,7 +10,6 @@ import cn.lili.modules.promotion.service.PointsGoodsCategoryService;
|
||||
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.*;
|
||||
|
||||
@@ -23,10 +22,9 @@ import org.springframework.web.bind.annotation.*;
|
||||
@RestController
|
||||
@Api(tags = "管理端,积分商品分类接口")
|
||||
@RequestMapping("/manager/promotion/pointsGoodsCategory")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class PointsGoodsCategoryManagerController {
|
||||
|
||||
private final PointsGoodsCategoryService pointsGoodsCategoryService;
|
||||
@Autowired
|
||||
private PointsGoodsCategoryService pointsGoodsCategoryService;
|
||||
|
||||
@PostMapping
|
||||
@ApiOperation(value = "添加积分商品分类")
|
||||
|
||||
@@ -29,10 +29,9 @@ import java.util.List;
|
||||
@RestController
|
||||
@Api(tags = "管理端,积分商品接口")
|
||||
@RequestMapping("/manager/promotion/pointsGoods")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class PointsGoodsManagerController {
|
||||
|
||||
private final PointsGoodsService pointsGoodsService;
|
||||
@Autowired
|
||||
private PointsGoodsService pointsGoodsService;
|
||||
|
||||
@PostMapping(consumes = "application/json", produces = "application/json")
|
||||
@ApiOperation(value = "添加积分商品")
|
||||
|
||||
@@ -27,12 +27,12 @@ import java.util.Map;
|
||||
@RestController
|
||||
@Api(tags = "管理端,促销接口")
|
||||
@RequestMapping("/manager/promotion")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class PromotionManagerController {
|
||||
|
||||
private final PromotionService promotionService;
|
||||
|
||||
private final PromotionGoodsService promotionGoodsService;
|
||||
@Autowired
|
||||
private PromotionService promotionService;
|
||||
@Autowired
|
||||
private PromotionGoodsService promotionGoodsService;
|
||||
|
||||
@GetMapping("/current")
|
||||
@ApiOperation(value = "获取当前进行中的促销活动")
|
||||
|
||||
@@ -16,7 +16,6 @@ import cn.lili.modules.promotion.service.SeckillService;
|
||||
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.*;
|
||||
|
||||
@@ -29,11 +28,11 @@ import org.springframework.web.bind.annotation.*;
|
||||
@RestController
|
||||
@Api(tags = "管理端,限时抢购接口")
|
||||
@RequestMapping("/manager/promotion/seckill")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class SeckillManagerController {
|
||||
|
||||
private final SeckillService seckillService;
|
||||
private final SeckillApplyService seckillApplyService;
|
||||
@Autowired
|
||||
private SeckillService seckillService;
|
||||
@Autowired
|
||||
private SeckillApplyService seckillApplyService;
|
||||
|
||||
@PostMapping
|
||||
@ApiOperation(value = "添加限时抢购")
|
||||
|
||||
@@ -14,7 +14,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.*;
|
||||
|
||||
@@ -30,17 +29,18 @@ import java.util.List;
|
||||
@Api(tags = "管理端,采购接口")
|
||||
@RestController
|
||||
@RequestMapping("/manager/purchase")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class PurchaseManagerController {
|
||||
|
||||
/**
|
||||
* 采购单
|
||||
*/
|
||||
private final PurchaseOrderService purchaseOrderService;
|
||||
@Autowired
|
||||
private PurchaseOrderService purchaseOrderService;
|
||||
/**
|
||||
* 采购单报价
|
||||
*/
|
||||
private final PurchaseQuotedService purchaseQuotedService;
|
||||
@Autowired
|
||||
private PurchaseQuotedService purchaseQuotedService;
|
||||
|
||||
|
||||
@ApiOperation(value = "采购单分页")
|
||||
|
||||
@@ -28,10 +28,9 @@ import javax.validation.Valid;
|
||||
@RestController
|
||||
@Api("管理端,app版本控制器")
|
||||
@RequestMapping("/manager/systems/app/version")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class AppVersionManagerController {
|
||||
|
||||
private final AppVersionService appVersionService;
|
||||
@Autowired
|
||||
private AppVersionService appVersionService;
|
||||
|
||||
|
||||
@ApiOperation(value = "查询app升级消息", response = AppVersionDO.class)
|
||||
|
||||
@@ -30,10 +30,9 @@ import java.util.List;
|
||||
@RestController
|
||||
@Api(tags = "管理端,即时配送接口")
|
||||
@RequestMapping("/manager/instant-delivery")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class InstantDeliveryManagerController {
|
||||
|
||||
private final InstantDeliveryService instantDeliveryService;
|
||||
@Autowired
|
||||
private InstantDeliveryService instantDeliveryService;
|
||||
|
||||
@GetMapping(value = "/getByPage")
|
||||
@ApiOperation(value = "分页获取")
|
||||
|
||||
@@ -28,10 +28,9 @@ import java.util.List;
|
||||
@RestController
|
||||
@Api(tags = "日志管理接口")
|
||||
@RequestMapping("/manager/log")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class LogManagerController {
|
||||
|
||||
private final SystemLogService systemLogService;
|
||||
@Autowired
|
||||
private SystemLogService systemLogService;
|
||||
|
||||
@GetMapping(value = "/getAllByPage")
|
||||
@ApiOperation(value = "分页获取全部")
|
||||
|
||||
@@ -27,10 +27,9 @@ import javax.validation.constraints.NotNull;
|
||||
@RestController
|
||||
@Api(tags = "管理端,物流公司接口")
|
||||
@RequestMapping("/manager/logistics")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class LogisticsManagerController {
|
||||
|
||||
private final LogisticsService logisticsService;
|
||||
@Autowired
|
||||
private LogisticsService logisticsService;
|
||||
|
||||
@ApiOperation(value = "通过id获取物流公司")
|
||||
@GetMapping(value = "/get/{id}")
|
||||
|
||||
@@ -13,7 +13,6 @@ import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
||||
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.*;
|
||||
|
||||
@@ -28,10 +27,9 @@ import java.util.List;
|
||||
@RestController
|
||||
@Api(tags = "管理端,会员站内信管理API")
|
||||
@RequestMapping("/manager/member/notice")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class MemberNoticeManagerController {
|
||||
|
||||
private final MemberNoticeService memberNoticeService;
|
||||
@Autowired
|
||||
private MemberNoticeService memberNoticeService;
|
||||
|
||||
@ApiOperation(value = "获取详情")
|
||||
@GetMapping(value = "/{id}")
|
||||
|
||||
@@ -36,10 +36,9 @@ import java.util.List;
|
||||
@RestController
|
||||
@Api(tags = "管理端,会员站内信管理接口")
|
||||
@RequestMapping("/manager/noticeMessage")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class NoticeMessageManagerController {
|
||||
|
||||
private final NoticeMessageService noticeMessageService;
|
||||
@Autowired
|
||||
private NoticeMessageService noticeMessageService;
|
||||
|
||||
@ApiOperation(value = "消息模板分页")
|
||||
@GetMapping
|
||||
|
||||
@@ -27,10 +27,9 @@ import java.util.List;
|
||||
@Api(tags = "管理端,行政地区管理接口")
|
||||
@RequestMapping("/manager/region")
|
||||
@Transactional
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class RegionManagerController {
|
||||
|
||||
private final RegionService regionService;
|
||||
@Autowired
|
||||
private RegionService regionService;
|
||||
|
||||
@PostMapping(value = "/sync")
|
||||
@ApiOperation(value = "同步高德行政地区数据")
|
||||
|
||||
@@ -11,7 +11,6 @@ import cn.lili.modules.system.service.ServiceNoticeService;
|
||||
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.*;
|
||||
|
||||
@@ -27,10 +26,9 @@ import java.util.List;
|
||||
@RestController
|
||||
@Api(tags = "管理端,服务订阅消息接口")
|
||||
@RequestMapping("/manager/admin/notice")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class ServiceNoticeManagerController {
|
||||
|
||||
private final ServiceNoticeService serviceNoticeService;
|
||||
@Autowired
|
||||
private ServiceNoticeService serviceNoticeService;
|
||||
|
||||
@ApiOperation(value = "查看服务订阅消息详情")
|
||||
@GetMapping(value = "/{id}")
|
||||
|
||||
@@ -18,7 +18,6 @@ import cn.lili.modules.system.service.SettingService;
|
||||
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.*;
|
||||
|
||||
@@ -33,10 +32,9 @@ import java.util.Collections;
|
||||
@RestController
|
||||
@Api(tags = "管理端,系统设置接口")
|
||||
@RequestMapping("/manager/system/setting")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class SettingManagerController {
|
||||
|
||||
private final SettingService settingService;
|
||||
@Autowired
|
||||
private SettingService settingService;
|
||||
|
||||
|
||||
@DemoSite
|
||||
|
||||
@@ -5,8 +5,6 @@ import cn.lili.common.vo.ResultMessage;
|
||||
import cn.lili.modules.system.entity.dto.payment.dto.PaymentSupportForm;
|
||||
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;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
@@ -21,7 +19,6 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
@RestController
|
||||
@Api(tags = "管理端,系统设置扩展接口")
|
||||
@RequestMapping("/manager/system/settingx")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class SettingXManagerController {
|
||||
|
||||
@ApiOperation(value = "支持支付方式表单")
|
||||
|
||||
@@ -11,7 +11,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.*;
|
||||
|
||||
@@ -26,10 +25,9 @@ import java.util.List;
|
||||
@RestController
|
||||
@Api(tags = "管理端,短信接口")
|
||||
@RequestMapping("/manager/sms")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class SmsManagerController {
|
||||
|
||||
private final SmsReachService smsReachService;
|
||||
@Autowired
|
||||
private SmsReachService smsReachService;
|
||||
|
||||
@ApiOperation(value = "接口批量发送短信")
|
||||
@PostMapping
|
||||
|
||||
@@ -25,9 +25,9 @@ import javax.validation.Valid;
|
||||
@RestController
|
||||
@Api(tags = "管理端,短信签名接口")
|
||||
@RequestMapping("/manager/sms/sign")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class SmsSignManagerController {
|
||||
private final SmsSignService smsSignService;
|
||||
@Autowired
|
||||
private SmsSignService smsSignService;
|
||||
|
||||
|
||||
@ApiOperation(value = "新增短信签名")
|
||||
|
||||
@@ -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.*;
|
||||
|
||||
@@ -25,9 +24,9 @@ import javax.validation.Valid;
|
||||
@RestController
|
||||
@Api(tags = "管理端,短信模板接口")
|
||||
@RequestMapping("/manager/sms/template")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class SmsTemplateManagerController {
|
||||
private final SmsTemplateService smsTemplateService;
|
||||
@Autowired
|
||||
private SmsTemplateService smsTemplateService;
|
||||
|
||||
@ApiOperation(value = "新增短信模板")
|
||||
@PostMapping
|
||||
|
||||
@@ -11,7 +11,6 @@ import cn.lili.modules.message.service.WechatMPMessageService;
|
||||
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.*;
|
||||
@@ -26,10 +25,9 @@ import java.util.List;
|
||||
@Api(tags = "微信小程序消息订阅接口")
|
||||
@RequestMapping("/manager/message/wechatMPMessage")
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class WechatMPMessageManagerController {
|
||||
|
||||
private final WechatMPMessageService wechatMPMessageService;
|
||||
@Autowired
|
||||
private WechatMPMessageService wechatMPMessageService;
|
||||
|
||||
@GetMapping(value = "/init")
|
||||
@ApiOperation(value = "初始化微信小程序消息订阅")
|
||||
|
||||
@@ -26,10 +26,9 @@ import java.util.List;
|
||||
@RestController
|
||||
@Api(tags = "管理端,微信消息接口")
|
||||
@RequestMapping("/manager/message/wechat")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class WechatMessageManageController {
|
||||
|
||||
private final WechatMessageService wechatMessageService;
|
||||
@Autowired
|
||||
private WechatMessageService wechatMessageService;
|
||||
|
||||
|
||||
@GetMapping(value = "/init")
|
||||
|
||||
@@ -25,10 +25,9 @@ import java.util.List;
|
||||
@Api(tags = "管理端,商品统计接口")
|
||||
@RestController
|
||||
@RequestMapping("/manager/statistics/goods")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class GoodsStatisticsManagerController {
|
||||
|
||||
private final GoodsStatisticsDataService goodsStatisticsDataService;
|
||||
@Autowired
|
||||
private GoodsStatisticsDataService goodsStatisticsDataService;
|
||||
|
||||
@ApiOperation(value = "获取统计列表,排行前一百的数据")
|
||||
@GetMapping
|
||||
|
||||
@@ -26,13 +26,13 @@ import java.util.List;
|
||||
@Api(tags = "管理端,首页统计数据接口")
|
||||
@RestController
|
||||
@RequestMapping("/manager/statistics/index")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class IndexStatisticsManagerController {
|
||||
|
||||
/**
|
||||
* 首页统计
|
||||
*/
|
||||
private final IndexStatisticsService indexStatisticsService;
|
||||
@Autowired
|
||||
private IndexStatisticsService indexStatisticsService;
|
||||
|
||||
@ApiOperation(value = "获取首页查询数据")
|
||||
@GetMapping
|
||||
|
||||
@@ -24,10 +24,9 @@ import java.util.List;
|
||||
@Api(tags = "管理端,会员统计接口")
|
||||
@RestController
|
||||
@RequestMapping("/manager/statistics/member")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class MemberStatisticsManagerController {
|
||||
|
||||
private final MemberStatisticsDataService memberStatisticsDataService;
|
||||
@Autowired
|
||||
private MemberStatisticsDataService memberStatisticsDataService;
|
||||
|
||||
@ApiOperation(value = "获取会员统计")
|
||||
@GetMapping
|
||||
|
||||
@@ -31,14 +31,13 @@ import java.util.List;
|
||||
@Api(tags = "管理端,订单统计接口")
|
||||
@RestController
|
||||
@RequestMapping("/manager/statistics/order")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class OrderStatisticsManagerController {
|
||||
|
||||
private final OrderStatisticsDataService orderStatisticsDataService;
|
||||
|
||||
private final OrderService orderService;
|
||||
|
||||
private final AfterSaleService afterSaleService;
|
||||
@Autowired
|
||||
private OrderStatisticsDataService orderStatisticsDataService;
|
||||
@Autowired
|
||||
private OrderService orderService;
|
||||
@Autowired
|
||||
private AfterSaleService afterSaleService;
|
||||
|
||||
@ApiOperation(value = "订单概览统计")
|
||||
@GetMapping("/overview")
|
||||
|
||||
@@ -9,7 +9,6 @@ import cn.lili.modules.statistics.service.RefundOrderStatisticsService;
|
||||
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;
|
||||
@@ -24,10 +23,9 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
@Api(tags = "管理端,退款统计接口")
|
||||
@RestController
|
||||
@RequestMapping("/manager/statistics/refund/order")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class RefundOrderStatisticsManagerController {
|
||||
|
||||
private final RefundOrderStatisticsService refundOrderStatisticsService;
|
||||
@Autowired
|
||||
private RefundOrderStatisticsService refundOrderStatisticsService;
|
||||
|
||||
@ApiOperation(value = "获取退款统计列表")
|
||||
@GetMapping("/getByPage")
|
||||
|
||||
@@ -9,7 +9,6 @@ import cn.lili.modules.statistics.model.vo.PlatformViewVO;
|
||||
import cn.lili.modules.statistics.service.PlatformViewDataService;
|
||||
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,10 +25,9 @@ import java.util.List;
|
||||
@Api(tags = "管理端,流量统计接口")
|
||||
@RestController
|
||||
@RequestMapping("/manager/statistics/view")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class ViewStatisticsManagerController {
|
||||
|
||||
private final PlatformViewDataService platformViewDataService;
|
||||
@Autowired
|
||||
private PlatformViewDataService platformViewDataService;
|
||||
|
||||
@ApiOperation(value = "流量数据 表单获取")
|
||||
@GetMapping("/list")
|
||||
|
||||
@@ -29,10 +29,9 @@ import javax.validation.constraints.NotNull;
|
||||
@RestController
|
||||
@Api(tags = "管理端,商家结算单接口")
|
||||
@RequestMapping("/manager/store/bill")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class BillManagerController {
|
||||
|
||||
private final BillService billService;
|
||||
@Autowired
|
||||
private BillService billService;
|
||||
|
||||
@ApiOperation(value = "通过id获取结算单")
|
||||
@ApiImplicitParam(name = "id", value = "结算单ID", required = true, paramType = "path")
|
||||
|
||||
@@ -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.*;
|
||||
|
||||
@@ -35,17 +34,18 @@ import java.util.List;
|
||||
@Api(tags = "管理端,店铺管理接口")
|
||||
@RestController
|
||||
@RequestMapping("/manager/store")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class StoreManagerController {
|
||||
|
||||
/**
|
||||
* 店铺
|
||||
*/
|
||||
private final StoreService storeService;
|
||||
@Autowired
|
||||
private StoreService storeService;
|
||||
/**
|
||||
* 店铺详情
|
||||
*/
|
||||
private final StoreDetailService storeDetailService;
|
||||
@Autowired
|
||||
private StoreDetailService storeDetailService;
|
||||
|
||||
@ApiOperation(value = "获取店铺分页列表")
|
||||
@GetMapping("/all")
|
||||
|
||||
@@ -9,7 +9,6 @@ import cn.lili.modules.message.service.StoreMessageService;
|
||||
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.GetMapping;
|
||||
@@ -27,10 +26,9 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
@RestController
|
||||
@Api(tags = "管理端,店铺消息消息管理接口")
|
||||
@RequestMapping("/manager/message/store")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class StoreMessageManagerController {
|
||||
|
||||
private final StoreMessageService storeMessageService;
|
||||
@Autowired
|
||||
private StoreMessageService storeMessageService;
|
||||
|
||||
|
||||
@GetMapping
|
||||
|
||||
@@ -27,13 +27,13 @@ import javax.validation.constraints.NotNull;
|
||||
@RestController
|
||||
@RequestMapping("/manager/afterSale")
|
||||
@Api(tags = "管理端,售后接口")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class AfterSaleManagerController {
|
||||
|
||||
/**
|
||||
* 售后
|
||||
*/
|
||||
private final AfterSaleService afterSaleService;
|
||||
@Autowired
|
||||
private AfterSaleService afterSaleService;
|
||||
|
||||
@ApiOperation(value = "分页获取售后服务")
|
||||
@GetMapping(value = "/page")
|
||||
|
||||
@@ -27,13 +27,13 @@ import javax.validation.Valid;
|
||||
@RestController
|
||||
@RequestMapping("/manager/afterSaleReason")
|
||||
@Api(tags = "管理端,售后原因接口")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class AfterSaleReasonManagerController {
|
||||
|
||||
/**
|
||||
* 售后原因
|
||||
*/
|
||||
private final AfterSaleReasonService afterSaleReasonService;
|
||||
@Autowired
|
||||
private AfterSaleReasonService afterSaleReasonService;
|
||||
|
||||
@ApiOperation(value = "查看售后原因")
|
||||
@ApiImplicitParam(name = "id", value = "售后原因ID", required = true, dataType = "String", paramType = "path")
|
||||
|
||||
@@ -33,18 +33,19 @@ import org.springframework.web.bind.annotation.*;
|
||||
@RestController
|
||||
@Api(tags = "管理端,交易投诉接口")
|
||||
@RequestMapping("/manager/complain")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class OrderComplaintManagerController {
|
||||
|
||||
/**
|
||||
* 交易投诉
|
||||
*/
|
||||
private final OrderComplaintService orderComplaintService;
|
||||
@Autowired
|
||||
private OrderComplaintService orderComplaintService;
|
||||
|
||||
/**
|
||||
* 交易投诉沟通
|
||||
*/
|
||||
private final OrderComplaintCommunicationService orderComplaintCommunicationService;
|
||||
@Autowired
|
||||
private OrderComplaintCommunicationService orderComplaintCommunicationService;
|
||||
|
||||
@ApiOperation(value = "通过id获取")
|
||||
@ApiImplicitParam(name = "id", value = "投诉单ID", required = true, paramType = "path")
|
||||
|
||||
@@ -28,10 +28,9 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
@RestController
|
||||
@Api(tags = "管理端,订单日志管理接口")
|
||||
@RequestMapping("/manager/orderLog")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class OrderLogManagerController {
|
||||
|
||||
private final OrderLogService orderLogService;
|
||||
@Autowired
|
||||
private OrderLogService orderLogService;
|
||||
|
||||
@GetMapping(value = "/get/{id}")
|
||||
@ApiOperation(value = "通过id获取")
|
||||
|
||||
@@ -32,13 +32,15 @@ import javax.validation.constraints.NotNull;
|
||||
@RestController
|
||||
@RequestMapping("/manager/orders")
|
||||
@Api(tags = "管理端,订单API")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
|
||||
public class OrderManagerController {
|
||||
|
||||
//订单
|
||||
private final OrderService orderService;
|
||||
@Autowired
|
||||
private OrderService orderService;
|
||||
//订单价格
|
||||
private final OrderPriceService orderPriceService;
|
||||
@Autowired
|
||||
private OrderPriceService orderPriceService;
|
||||
|
||||
|
||||
@ApiOperation(value = "查询订单列表分页")
|
||||
|
||||
@@ -29,10 +29,10 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
@Api(tags = "管理端,收款日志接口")
|
||||
@RequestMapping("/manager/paymentLog")
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class PaymentLogManagerController {
|
||||
|
||||
private final PaymentService paymentService;
|
||||
@Autowired
|
||||
private PaymentService paymentService;
|
||||
|
||||
|
||||
@GetMapping
|
||||
|
||||
@@ -9,7 +9,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.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
@@ -24,10 +23,10 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
@RestController
|
||||
@Api(tags = "管理端,发票记录接口")
|
||||
@RequestMapping("/manager/receipt")
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class ReceiptManagerController {
|
||||
|
||||
private final ReceiptService receiptService;
|
||||
@Autowired
|
||||
private ReceiptService receiptService;
|
||||
|
||||
|
||||
@ApiOperation(value = "获取发票分页信息")
|
||||
|
||||
@@ -25,10 +25,9 @@ import org.springframework.web.bind.annotation.*;
|
||||
@Api(tags = "管理端,预存款充值记录接口")
|
||||
@RequestMapping("/manager/recharge")
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class RechargeManagerController {
|
||||
|
||||
private final RechargeService rechargeService;
|
||||
@Autowired
|
||||
private RechargeService rechargeService;
|
||||
|
||||
@ApiOperation(value = "分页获取预存款充值记录")
|
||||
@GetMapping
|
||||
|
||||
@@ -28,10 +28,9 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
@Api(tags = "管理端,退款日志接口")
|
||||
@RequestMapping("/manager/refundLog")
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class RefundLogManagerController {
|
||||
|
||||
private final RefundLogService refundLogService;
|
||||
@Autowired
|
||||
private RefundLogService refundLogService;
|
||||
|
||||
@GetMapping(value = "/{id}")
|
||||
@ApiOperation(value = "查看退款日志详情")
|
||||
|
||||
@@ -26,10 +26,9 @@ import org.springframework.web.bind.annotation.RestController;
|
||||
@Api(tags = "管理端,预存款充值记录接口")
|
||||
@RequestMapping("/manager/wallet/log")
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class WalletLogManagerController {
|
||||
|
||||
private final WalletLogService walletLogService;
|
||||
@Autowired
|
||||
private WalletLogService walletLogService;
|
||||
|
||||
@ApiOperation(value = "分页获取预存款充值记录")
|
||||
@GetMapping
|
||||
|
||||
@@ -3,7 +3,6 @@ package cn.lili.security;
|
||||
import cn.lili.common.cache.Cache;
|
||||
import cn.lili.common.security.CustomAccessDeniedHandler;
|
||||
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;
|
||||
@@ -23,24 +22,25 @@ import org.springframework.web.cors.CorsConfigurationSource;
|
||||
@Slf4j
|
||||
@Configuration
|
||||
@EnableGlobalMethodSecurity(prePostEnabled = true)
|
||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||
public class ManagerSecurityConfig 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;
|
||||
|
||||
private final CorsConfigurationSource corsConfigurationSource;
|
||||
@Autowired
|
||||
private Cache<String> cache;
|
||||
@Autowired
|
||||
private CorsConfigurationSource corsConfigurationSource;
|
||||
|
||||
@Override
|
||||
protected void configure(HttpSecurity http) throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user