中英文切换与添加按钮权限
This commit is contained in:
+3
@@ -16,6 +16,7 @@ import lombok.extern.slf4j.Slf4j;
|
||||
import com.jero.common.system.base.controller.JeroController;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.shiro.SecurityUtils;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
@@ -69,6 +70,7 @@ public class LawsBrowsingHistoryController extends JeroController<LawsBrowsingHi
|
||||
/**
|
||||
* 全部删除
|
||||
*/
|
||||
@RequiresPermissions("personalCenter:browsingHistory:clearBrowsingHistory")
|
||||
@AutoLog(value = "浏览记录-清除浏览记录")
|
||||
@ApiOperation(value="浏览记录-清除浏览记录", notes="浏览记录-清除浏览记录")
|
||||
@PostMapping(value = "/delete")
|
||||
@@ -83,6 +85,7 @@ public class LawsBrowsingHistoryController extends JeroController<LawsBrowsingHi
|
||||
/**
|
||||
* 批量删除
|
||||
*/
|
||||
@RequiresPermissions("personalCenter:browsingHistory:batchDel")
|
||||
@AutoLog(value = "浏览记录-批量删除")
|
||||
@ApiOperation(value="浏览记录-批量删除", notes="浏览记录-批量删除")
|
||||
@PostMapping(value = "/deleteBatch")
|
||||
|
||||
+5
@@ -14,6 +14,7 @@ import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import com.jero.common.system.base.controller.JeroController;
|
||||
import org.apache.shiro.SecurityUtils;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
@@ -41,6 +42,7 @@ public class LawsStandardCollectionController extends JeroController<LawsStandar
|
||||
/**
|
||||
* 分页列表查询
|
||||
*/
|
||||
@RequiresPermissions("personalCenter:myCollection:search")
|
||||
@AutoLog(value = "标准收藏-我的收藏分页列表查询")
|
||||
@ApiOperation(value="标准收藏-分页列表查询", notes="标准收藏-我的收藏分页列表查询")
|
||||
@GetMapping(value = "/page")
|
||||
@@ -55,6 +57,7 @@ public class LawsStandardCollectionController extends JeroController<LawsStandar
|
||||
/**
|
||||
* 收藏
|
||||
*/
|
||||
@RequiresPermissions("domesticStandard:collection")
|
||||
@AutoLog(value = "标准收藏-国内收藏")
|
||||
@ApiOperation(value="标准收藏-国内收藏", notes="标准收藏-国内收藏")
|
||||
@PostMapping(value = "/domestic/add")
|
||||
@@ -75,6 +78,7 @@ public class LawsStandardCollectionController extends JeroController<LawsStandar
|
||||
/**
|
||||
* 取消收藏
|
||||
*/
|
||||
@RequiresPermissions("personalCenter:myCollection:cancelCollect")
|
||||
@AutoLog(value = "标准收藏-国内取消收藏")
|
||||
@ApiOperation(value="标准收藏-国内取消收藏", notes="标准收藏-国内取消收藏")
|
||||
@PostMapping(value = "/domestic/delete")
|
||||
@@ -123,6 +127,7 @@ public class LawsStandardCollectionController extends JeroController<LawsStandar
|
||||
/**
|
||||
* 收藏
|
||||
*/
|
||||
@RequiresPermissions("enterpriseStandard:collection")
|
||||
@AutoLog(value = "标准收藏-企标收藏")
|
||||
@ApiOperation(value="标准收藏-企标收藏", notes="标准收藏-企标收藏")
|
||||
@PostMapping(value = "/enterprise/add")
|
||||
|
||||
+3
@@ -20,6 +20,7 @@ import com.jero.modules.system.service.ISysUserService;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import com.jero.common.system.base.controller.JeroController;
|
||||
import org.apache.shiro.SecurityUtils;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
@@ -56,6 +57,7 @@ public class LawsStandardSharingController extends JeroController<LawsStandardSh
|
||||
/**
|
||||
* 分页列表查询
|
||||
*/
|
||||
@RequiresPermissions("personalCenter:sentShare:search")
|
||||
@AutoLog(value = "标准分享-分页已发分享列表查询")
|
||||
@ApiOperation(value="标准分享-分页已发分享列表查询", notes="标准分享-分页已发分享列表查询")
|
||||
@GetMapping(value = "/issued/page")
|
||||
@@ -73,6 +75,7 @@ public class LawsStandardSharingController extends JeroController<LawsStandardSh
|
||||
/**
|
||||
* 分页列表查询
|
||||
*/
|
||||
@RequiresPermissions("personalCenter:receivedShare:search")
|
||||
@AutoLog(value = "标准分享-分页已收分享列表查询")
|
||||
@ApiOperation(value="标准分享-分页已收分享列表查询", notes="标准分享-分页已收分享列表查询")
|
||||
@GetMapping(value = "/received/page")
|
||||
|
||||
Reference in New Issue
Block a user