|
@@ -18,8 +18,6 @@ import com.yonge.cooleshow.biz.dal.service.TenantAlbumCategoryService;
|
|
import com.yonge.cooleshow.biz.dal.wrapper.TenantAlbumCategoryWrapper;
|
|
import com.yonge.cooleshow.biz.dal.wrapper.TenantAlbumCategoryWrapper;
|
|
import com.yonge.toolset.base.exception.BizException;
|
|
import com.yonge.toolset.base.exception.BizException;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
-import io.swagger.annotations.ApiImplicitParam;
|
|
|
|
-import io.swagger.annotations.ApiImplicitParams;
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -58,14 +56,14 @@ public class TenantAlbumCategoryController {
|
|
private SysUserService sysUserService;
|
|
private SysUserService sysUserService;
|
|
|
|
|
|
@ApiOperation(value = "详情", notes = "机构专辑分类-根据详情ID查询单条, 传入id")
|
|
@ApiOperation(value = "详情", notes = "机构专辑分类-根据详情ID查询单条, 传入id")
|
|
- @PreAuthorize("@auditsvc.hasPermissions('tenantAlbumCategory/detail', {'BACKEND'})")
|
|
|
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('tenantAlbumCategory/detail', {'BACKEND'})")
|
|
@GetMapping("/detail/{id}")
|
|
@GetMapping("/detail/{id}")
|
|
public R<TenantAlbumCategoryWrapper.TenantAlbumCategory> detail(@PathVariable("id") Long id) {
|
|
public R<TenantAlbumCategoryWrapper.TenantAlbumCategory> detail(@PathVariable("id") Long id) {
|
|
return R.from(tenantAlbumCategoryService.detail(id));
|
|
return R.from(tenantAlbumCategoryService.detail(id));
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "查询分页", notes = "机构专辑分类- 传入 TenantAlbumCategoryVo.TenantAlbumCategoryQuery")
|
|
@ApiOperation(value = "查询分页", notes = "机构专辑分类- 传入 TenantAlbumCategoryVo.TenantAlbumCategoryQuery")
|
|
- @PreAuthorize("@auditsvc.hasPermissions('tenantAlbumCategory/page', {'BACKEND'})")
|
|
|
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('tenantAlbumCategory/page', {'BACKEND'})")
|
|
@PostMapping("/page")
|
|
@PostMapping("/page")
|
|
public R<PageInfo<TenantAlbumCategoryVo.TenantAlbumCategory>> page(@RequestBody TenantAlbumCategoryWrapper.TenantAlbumCategoryQuery query) {
|
|
public R<PageInfo<TenantAlbumCategoryVo.TenantAlbumCategory>> page(@RequestBody TenantAlbumCategoryWrapper.TenantAlbumCategoryQuery query) {
|
|
|
|
|
|
@@ -89,7 +87,7 @@ public class TenantAlbumCategoryController {
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "新增", notes = "机构专辑分类- 传入 TenantAlbumCategoryVo.TenantAlbumCategory")
|
|
@ApiOperation(value = "新增", notes = "机构专辑分类- 传入 TenantAlbumCategoryVo.TenantAlbumCategory")
|
|
- @PreAuthorize("@auditsvc.hasPermissions('tenantAlbumCategory/save', {'BACKEND'})")
|
|
|
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('tenantAlbumCategory/save', {'BACKEND'})")
|
|
@PostMapping("/save")
|
|
@PostMapping("/save")
|
|
public R<JSONObject> add(@Validated @RequestBody TenantAlbumCategoryVo.TenantAlbumCategory tenantAlbumCategoryVo) {
|
|
public R<JSONObject> add(@Validated @RequestBody TenantAlbumCategoryVo.TenantAlbumCategory tenantAlbumCategoryVo) {
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
@@ -105,7 +103,7 @@ public class TenantAlbumCategoryController {
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "修改", notes = "机构专辑分类- 传入 TenantAlbumCategoryVo.TenantAlbumCategory")
|
|
@ApiOperation(value = "修改", notes = "机构专辑分类- 传入 TenantAlbumCategoryVo.TenantAlbumCategory")
|
|
- @PreAuthorize("@auditsvc.hasPermissions('tenantAlbumCategory/update', {'BACKEND'})")
|
|
|
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('tenantAlbumCategory/update', {'BACKEND'})")
|
|
@PostMapping("/update")
|
|
@PostMapping("/update")
|
|
public R<JSONObject> update(@Validated @RequestBody TenantAlbumCategoryVo.TenantAlbumCategory tenantAlbumCategoryVo) {
|
|
public R<JSONObject> update(@Validated @RequestBody TenantAlbumCategoryVo.TenantAlbumCategory tenantAlbumCategoryVo) {
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
@@ -120,7 +118,7 @@ public class TenantAlbumCategoryController {
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "删除", notes = "机构专辑分类- 传入id")
|
|
@ApiOperation(value = "删除", notes = "机构专辑分类- 传入id")
|
|
- @PreAuthorize("@auditsvc.hasPermissions('tenantAlbumCategory/remove', {'BACKEND'})")
|
|
|
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('tenantAlbumCategory/remove', {'BACKEND'})")
|
|
@PostMapping("/remove")
|
|
@PostMapping("/remove")
|
|
public R<Boolean> remove(@RequestParam Long id) {
|
|
public R<Boolean> remove(@RequestParam Long id) {
|
|
|
|
|
|
@@ -128,7 +126,7 @@ public class TenantAlbumCategoryController {
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "获取专辑分类值列表")
|
|
@ApiOperation(value = "获取专辑分类值列表")
|
|
- @PreAuthorize("@auditsvc.hasPermissions('tenantAlbumCategory/queryCategoryValue', {'BACKEND'})")
|
|
|
|
|
|
+ @PreAuthorize("@pcs.hasPermissions('tenantAlbumCategory/queryCategoryValue', {'BACKEND'})")
|
|
@GetMapping("/queryCategoryValue")
|
|
@GetMapping("/queryCategoryValue")
|
|
public R<List<TenantAlbumCategoryDetail>> queryCategoryValue(@RequestParam("id") Long id) {
|
|
public R<List<TenantAlbumCategoryDetail>> queryCategoryValue(@RequestParam("id") Long id) {
|
|
TenantAlbumCategory albumCategory = tenantAlbumCategoryService.getById(id);
|
|
TenantAlbumCategory albumCategory = tenantAlbumCategoryService.getById(id);
|