'商家楼层装修权限放开'
This commit is contained in:
parent
e244883165
commit
66c0200457
@ -1,6 +1,5 @@
|
||||
package cn.lili.controller.settings;
|
||||
|
||||
import cn.lili.common.aop.annotation.DemoSite;
|
||||
import cn.lili.common.enums.ResultCode;
|
||||
import cn.lili.common.enums.ResultUtil;
|
||||
import cn.lili.common.exception.ServiceException;
|
||||
@ -50,6 +49,7 @@ public class PageDataStoreController {
|
||||
pageDataDTO.setNum(storeId);
|
||||
return ResultUtil.data(pageDataService.getPageDataList(pageVO, pageDataDTO));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "获取页面信息")
|
||||
@ApiImplicitParam(name = "id", value = "页面ID", required = true, dataType = "String", paramType = "path")
|
||||
@GetMapping(value = "/{id}")
|
||||
@ -76,7 +76,6 @@ public class PageDataStoreController {
|
||||
@ApiImplicitParams({
|
||||
@ApiImplicitParam(name = "id", value = "页面ID", required = true, dataType = "String", paramType = "path")
|
||||
})
|
||||
@DemoSite
|
||||
@PutMapping("/update/{id}")
|
||||
public ResultMessage<PageData> updatePageData(@Valid PageData pageData, @NotNull @PathVariable String id) {
|
||||
|
||||
@ -92,14 +91,12 @@ public class PageDataStoreController {
|
||||
@ApiOperation(value = "发布页面")
|
||||
@ApiImplicitParam(name = "id", value = "页面ID", required = true, dataType = "String", paramType = "path")
|
||||
@PutMapping("/release/{id}")
|
||||
@DemoSite
|
||||
public ResultMessage<PageData> release(@PathVariable String id) {
|
||||
this.checkAuthority(id);
|
||||
return ResultUtil.data(pageDataService.releasePageData(id));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "删除页面")
|
||||
@DemoSite
|
||||
@ApiImplicitParam(name = "id", value = "页面ID", required = true, dataType = "String", paramType = "path")
|
||||
@DeleteMapping("/removePageData/{id}")
|
||||
public ResultMessage<Object> remove(@PathVariable String id) {
|
||||
@ -110,6 +107,7 @@ public class PageDataStoreController {
|
||||
|
||||
/**
|
||||
* 店铺权限判定
|
||||
*
|
||||
* @param id
|
||||
*/
|
||||
private void checkAuthority(String id) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user