mirror of
https://gitee.com/guchengwuyue/crm.git
synced 2025-12-06 17:08:28 +08:00
update authorize
This commit is contained in:
parent
2634610ac7
commit
c9faaef06d
@ -67,7 +67,6 @@ public class ProductCategoryController {
|
|||||||
|
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
@Operation(summary = "获得商品分类列表")
|
@Operation(summary = "获得商品分类列表")
|
||||||
@PreAuthorize("@ss.hasPermission('product:category:query')")
|
|
||||||
public CommonResult<List<ProductCategoryRespVO>> getCategoryList(@Valid ProductCategoryListReqVO treeListReqVO) {
|
public CommonResult<List<ProductCategoryRespVO>> getCategoryList(@Valid ProductCategoryListReqVO treeListReqVO) {
|
||||||
List<ProductCategoryDO> list = categoryService.getEnableCategoryList(treeListReqVO);
|
List<ProductCategoryDO> list = categoryService.getEnableCategoryList(treeListReqVO);
|
||||||
list.sort(Comparator.comparing(ProductCategoryDO::getSort));
|
list.sort(Comparator.comparing(ProductCategoryDO::getSort));
|
||||||
|
|||||||
@ -63,7 +63,6 @@ public class StoreProductController {
|
|||||||
@GetMapping("/get")
|
@GetMapping("/get")
|
||||||
@Operation(summary = "获得商品")
|
@Operation(summary = "获得商品")
|
||||||
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
@Parameter(name = "id", description = "编号", required = true, example = "1024")
|
||||||
@PreAuthorize("@ss.hasPermission('shop:store-product:query')")
|
|
||||||
public CommonResult<StoreProductRespVO> getStoreProduct(@RequestParam("id") Long id) {
|
public CommonResult<StoreProductRespVO> getStoreProduct(@RequestParam("id") Long id) {
|
||||||
StoreProductDO storeProduct = storeProductService.getStoreProduct(id);
|
StoreProductDO storeProduct = storeProductService.getStoreProduct(id);
|
||||||
return success(StoreProductConvert.INSTANCE.convert(storeProduct));
|
return success(StoreProductConvert.INSTANCE.convert(storeProduct));
|
||||||
@ -72,7 +71,6 @@ public class StoreProductController {
|
|||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
@Operation(summary = "获得商品列表")
|
@Operation(summary = "获得商品列表")
|
||||||
@Parameter(name = "ids", description = "编号列表", required = true, example = "1024,2048")
|
@Parameter(name = "ids", description = "编号列表", required = true, example = "1024,2048")
|
||||||
@PreAuthorize("@ss.hasPermission('shop:store-product:query')")
|
|
||||||
public CommonResult<List<StoreProductRespVO>> getStoreProductList(@RequestParam("ids") Collection<Long> ids) {
|
public CommonResult<List<StoreProductRespVO>> getStoreProductList(@RequestParam("ids") Collection<Long> ids) {
|
||||||
List<StoreProductDO> list = storeProductService.getStoreProductList(ids);
|
List<StoreProductDO> list = storeProductService.getStoreProductList(ids);
|
||||||
return success(StoreProductConvert.INSTANCE.convertList(list));
|
return success(StoreProductConvert.INSTANCE.convertList(list));
|
||||||
@ -80,7 +78,6 @@ public class StoreProductController {
|
|||||||
|
|
||||||
@GetMapping("/page")
|
@GetMapping("/page")
|
||||||
@Operation(summary = "获得商品分页")
|
@Operation(summary = "获得商品分页")
|
||||||
@PreAuthorize("@ss.hasPermission('shop:store-product:query')")
|
|
||||||
public CommonResult<PageResult<StoreProductRespVO>> getStoreProductPage(@Valid StoreProductPageReqVO pageVO) {
|
public CommonResult<PageResult<StoreProductRespVO>> getStoreProductPage(@Valid StoreProductPageReqVO pageVO) {
|
||||||
PageResult<StoreProductDO> pageResult = storeProductService.getStoreProductPage(pageVO);
|
PageResult<StoreProductDO> pageResult = storeProductService.getStoreProductPage(pageVO);
|
||||||
return success(StoreProductConvert.INSTANCE.convertPage(pageResult));
|
return success(StoreProductConvert.INSTANCE.convertPage(pageResult));
|
||||||
|
|||||||
@ -65,7 +65,6 @@ public class MailTemplateController {
|
|||||||
|
|
||||||
@GetMapping("/page")
|
@GetMapping("/page")
|
||||||
@Operation(summary = "获得邮件模版分页")
|
@Operation(summary = "获得邮件模版分页")
|
||||||
@PreAuthorize("@ss.hasPermission('system:mail-template:query')")
|
|
||||||
public CommonResult<PageResult<MailTemplateRespVO>> getMailTemplatePage(@Valid MailTemplatePageReqVO pageReqVO) {
|
public CommonResult<PageResult<MailTemplateRespVO>> getMailTemplatePage(@Valid MailTemplatePageReqVO pageReqVO) {
|
||||||
PageResult<MailTemplateDO> pageResult = mailTempleService.getMailTemplatePage(pageReqVO);
|
PageResult<MailTemplateDO> pageResult = mailTempleService.getMailTemplatePage(pageReqVO);
|
||||||
return success(BeanUtils.toBean(pageResult, MailTemplateRespVO.class));
|
return success(BeanUtils.toBean(pageResult, MailTemplateRespVO.class));
|
||||||
|
|||||||
@ -70,7 +70,6 @@ public class SmsTemplateController {
|
|||||||
|
|
||||||
@GetMapping("/page")
|
@GetMapping("/page")
|
||||||
@Operation(summary = "获得短信模板分页")
|
@Operation(summary = "获得短信模板分页")
|
||||||
@PreAuthorize("@ss.hasPermission('system:sms-template:query')")
|
|
||||||
public CommonResult<PageResult<SmsTemplateRespVO>> getSmsTemplatePage(@Valid SmsTemplatePageReqVO pageVO) {
|
public CommonResult<PageResult<SmsTemplateRespVO>> getSmsTemplatePage(@Valid SmsTemplatePageReqVO pageVO) {
|
||||||
PageResult<SmsTemplateDO> pageResult = smsTemplateService.getSmsTemplatePage(pageVO);
|
PageResult<SmsTemplateDO> pageResult = smsTemplateService.getSmsTemplatePage(pageVO);
|
||||||
return success(BeanUtils.toBean(pageResult, SmsTemplateRespVO.class));
|
return success(BeanUtils.toBean(pageResult, SmsTemplateRespVO.class));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user