接口权限
This commit is contained in:
@@ -23,7 +23,7 @@ public class CommunityUserController extends BaseController {
|
|||||||
|
|
||||||
|
|
||||||
@ApiOperation("查询工作人员列表")
|
@ApiOperation("查询工作人员列表")
|
||||||
@PreAuthorize("@ss.hasPermi('cms:communityUser:list')")
|
@PreAuthorize("@ss.hasPermi('application/msmanagement/index')")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo list(CommunityUser communityUser) {
|
public TableDataInfo list(CommunityUser communityUser) {
|
||||||
startPage();
|
startPage();
|
||||||
@@ -32,21 +32,21 @@ public class CommunityUserController extends BaseController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("新增工作人员")
|
@ApiOperation("新增工作人员")
|
||||||
@PreAuthorize("@ss.hasPermi('cms:communityUser:add')")
|
@PreAuthorize("@ss.hasPermi('application/msmanagement/index')")
|
||||||
@PostMapping
|
@PostMapping
|
||||||
public AjaxResult add(@RequestBody CommunityUser communityUser) {
|
public AjaxResult add(@RequestBody CommunityUser communityUser) {
|
||||||
return toAjax(communityUserService.save(communityUser));
|
return toAjax(communityUserService.save(communityUser));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("修改工作人员")
|
@ApiOperation("修改工作人员")
|
||||||
@PreAuthorize("@ss.hasPermi('cms:communityUser:edit')")
|
@PreAuthorize("@ss.hasPermi('application/msmanagement/index')")
|
||||||
@PutMapping
|
@PutMapping
|
||||||
public AjaxResult update(@RequestBody CommunityUser communityUser) {
|
public AjaxResult update(@RequestBody CommunityUser communityUser) {
|
||||||
return toAjax(communityUserService.updateById(communityUser));
|
return toAjax(communityUserService.updateById(communityUser));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("删除工作人员")
|
@ApiOperation("删除工作人员")
|
||||||
@PreAuthorize("@ss.hasPermi('cms:communityUser:remove')")
|
@PreAuthorize("@ss.hasPermi('application/msmanagement/index')")
|
||||||
@DeleteMapping("/{ids}")
|
@DeleteMapping("/{ids}")
|
||||||
public AjaxResult remove(@PathVariable("ids") Long[] ids) {
|
public AjaxResult remove(@PathVariable("ids") Long[] ids) {
|
||||||
return toAjax(communityUserService.delCommunityUser(ids));
|
return toAjax(communityUserService.delCommunityUser(ids));
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ public class WechatGroupController extends BaseController {
|
|||||||
|
|
||||||
|
|
||||||
@ApiOperation("查询转发对象列表")
|
@ApiOperation("查询转发对象列表")
|
||||||
@PreAuthorize("@ss.hasPermi('cms:wechatGroup:list')")
|
@PreAuthorize("@ss.hasPermi('application:groupManagement:index')")
|
||||||
@GetMapping("/list")
|
@GetMapping("/list")
|
||||||
public TableDataInfo list(WechatGroup wechatGroup) {
|
public TableDataInfo list(WechatGroup wechatGroup) {
|
||||||
startPage();
|
startPage();
|
||||||
@@ -35,21 +35,21 @@ public class WechatGroupController extends BaseController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("新增转发对象")
|
@ApiOperation("新增转发对象")
|
||||||
@PreAuthorize("@ss.hasPermi('cms:wechatGroup:add')")
|
@PreAuthorize("@ss.hasPermi('application:groupManagement:index')")
|
||||||
@PostMapping
|
@PostMapping
|
||||||
public AjaxResult add(@RequestBody WechatGroup wechatGroup) {
|
public AjaxResult add(@RequestBody WechatGroup wechatGroup) {
|
||||||
return toAjax(wechatGroupService.save(wechatGroup));
|
return toAjax(wechatGroupService.save(wechatGroup));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("修改转发对象")
|
@ApiOperation("修改转发对象")
|
||||||
@PreAuthorize("@ss.hasPermi('cms:wechatGroup:edit')")
|
@PreAuthorize("@ss.hasPermi('application:groupManagement:index')")
|
||||||
@PutMapping
|
@PutMapping
|
||||||
public AjaxResult update(@RequestBody WechatGroup wechatGroup) {
|
public AjaxResult update(@RequestBody WechatGroup wechatGroup) {
|
||||||
return toAjax(wechatGroupService.updateById(wechatGroup));
|
return toAjax(wechatGroupService.updateById(wechatGroup));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("删除转发对象")
|
@ApiOperation("删除转发对象")
|
||||||
@PreAuthorize("@ss.hasPermi('cms:wechatGroup:remove')")
|
@PreAuthorize("@ss.hasPermi('application:groupManagement:index')")
|
||||||
@DeleteMapping("/{ids}")
|
@DeleteMapping("/{ids}")
|
||||||
public AjaxResult remove(@PathVariable("ids") Long[] ids) {
|
public AjaxResult remove(@PathVariable("ids") Long[] ids) {
|
||||||
return toAjax(wechatGroupService.removeBatchByIds(CollUtil.newArrayList(ids)));
|
return toAjax(wechatGroupService.removeBatchByIds(CollUtil.newArrayList(ids)));
|
||||||
|
|||||||
Reference in New Issue
Block a user