fix
This commit is contained in:
@@ -8,7 +8,6 @@ import com.starry.common.annotation.Log;
|
||||
import com.starry.common.enums.BusinessType;
|
||||
import com.starry.common.result.R;
|
||||
import com.starry.common.utils.ConvertUtil;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
@@ -28,7 +27,6 @@ public class PlayCommodityInfoController {
|
||||
/**
|
||||
* 查询服务项目列表
|
||||
*/
|
||||
@PreAuthorize("@customSs.hasPermission('play:info:list')")
|
||||
@GetMapping("/list")
|
||||
public R list(PlayCommodityInfoEntity playCommodityInfo) {
|
||||
IPage<PlayCommodityInfoEntity> list = playCommodityInfoService.selectPlayCommodityInfoByPage(playCommodityInfo);
|
||||
@@ -38,7 +36,6 @@ public class PlayCommodityInfoController {
|
||||
/**
|
||||
* 获取服务项目详细信息
|
||||
*/
|
||||
@PreAuthorize("@customSs.hasPermission('play:info:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public R getInfo(@PathVariable("id") String id) {
|
||||
return R.ok(playCommodityInfoService.selectPlayCommodityInfoById(id));
|
||||
@@ -47,7 +44,6 @@ public class PlayCommodityInfoController {
|
||||
/**
|
||||
* 新增服务项目
|
||||
*/
|
||||
@PreAuthorize("@customSs.hasPermission('play:info:create')")
|
||||
@Log(title = "服务项目", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/create")
|
||||
public R create(@RequestBody PlayCommodityInfoAddVo vo) {
|
||||
@@ -62,7 +58,6 @@ public class PlayCommodityInfoController {
|
||||
/**
|
||||
* 修改服务项目
|
||||
*/
|
||||
@PreAuthorize("@customSs.hasPermission('play:info:edit')")
|
||||
@Log(title = "服务项目", businessType = BusinessType.UPDATE)
|
||||
@PostMapping(value = "/update/{id}")
|
||||
public R update(@PathVariable String id, @RequestBody PlayCommodityInfoEntity playCommodityInfo) {
|
||||
@@ -77,7 +72,6 @@ public class PlayCommodityInfoController {
|
||||
/**
|
||||
* 删除服务项目
|
||||
*/
|
||||
@PreAuthorize("@customSs.hasPermission('play:info:remove')")
|
||||
@Log(title = "服务项目", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public R remove(@PathVariable String[] ids) {
|
||||
|
||||
@@ -8,7 +8,6 @@ import com.starry.common.annotation.Log;
|
||||
import com.starry.common.enums.BusinessType;
|
||||
import com.starry.common.result.R;
|
||||
import com.starry.common.utils.ConvertUtil;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
@@ -30,7 +29,6 @@ public class PlayNoticeInfoController {
|
||||
/**
|
||||
* 查询公告列表
|
||||
*/
|
||||
@PreAuthorize("@customSs.hasPermission('play:info:list')")
|
||||
@GetMapping("/listAll")
|
||||
public R listAll(PlayNoticeInfoEntity playNoticeInfo) {
|
||||
IPage<PlayNoticeInfoEntity> list = playNoticeInfoService.selectPlayNoticeInfoByPage(playNoticeInfo);
|
||||
@@ -40,7 +38,6 @@ public class PlayNoticeInfoController {
|
||||
/**
|
||||
* 查询公告列表
|
||||
*/
|
||||
@PreAuthorize("@customSs.hasPermission('play:info:list')")
|
||||
@GetMapping("/list")
|
||||
public R list(PlayNoticeInfoEntity playNoticeInfo) {
|
||||
IPage<PlayNoticeInfoEntity> list = playNoticeInfoService.selectPlayNoticeInfoByPage(playNoticeInfo);
|
||||
@@ -50,7 +47,6 @@ public class PlayNoticeInfoController {
|
||||
/**
|
||||
* 获取公告详细信息
|
||||
*/
|
||||
@PreAuthorize("@customSs.hasPermission('play:info:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public R getInfo(@PathVariable("id") String id) {
|
||||
return R.ok(playNoticeInfoService.selectPlayNoticeInfoById(id));
|
||||
@@ -59,7 +55,6 @@ public class PlayNoticeInfoController {
|
||||
/**
|
||||
* 新增公告
|
||||
*/
|
||||
@PreAuthorize("@customSs.hasPermission('play:info:create')")
|
||||
@Log(title = "公告", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/create")
|
||||
public R create(@Validated @RequestBody PlayNoticeInfoAddVo vo) {
|
||||
@@ -75,7 +70,6 @@ public class PlayNoticeInfoController {
|
||||
/**
|
||||
* 删除公告
|
||||
*/
|
||||
@PreAuthorize("@customSs.hasPermission('play:info:remove')")
|
||||
@Log(title = "公告", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public R remove(@PathVariable String[] ids) {
|
||||
|
||||
@@ -10,7 +10,6 @@ import com.starry.common.annotation.Log;
|
||||
import com.starry.common.enums.BusinessType;
|
||||
import com.starry.common.result.R;
|
||||
import com.starry.common.utils.ConvertUtil;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
@@ -36,7 +35,6 @@ public class PlayResourcesInfoController {
|
||||
/**
|
||||
* 查询陪聊资源列表
|
||||
*/
|
||||
@PreAuthorize("@customSs.hasPermission('play:info:list')")
|
||||
@GetMapping("/list")
|
||||
public R list(PlayResourcesInfoEntity playResourcesInfo) {
|
||||
IPage<PlayResourcesInfoEntity> list = playResourcesInfoService.selectPlayResourcesInfoByPage(playResourcesInfo);
|
||||
@@ -47,7 +45,6 @@ public class PlayResourcesInfoController {
|
||||
/**
|
||||
* 获取陪聊资源详细信息
|
||||
*/
|
||||
@PreAuthorize("@customSs.hasPermission('play:info:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public R getInfo(@PathVariable("id") String id) {
|
||||
return R.ok(playResourcesInfoService.selectPlayResourcesInfoById(id));
|
||||
@@ -56,7 +53,6 @@ public class PlayResourcesInfoController {
|
||||
/**
|
||||
* 陪聊上传资源(图片/签名/视频/录音小样等)
|
||||
*/
|
||||
@PreAuthorize("@customSs.hasPermission('play:info:create')")
|
||||
@Log(title = "陪聊资源", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/create")
|
||||
public R create(@RequestBody PlayResourcesInfoAddVo vo, @RequestParam("file") MultipartFile file) throws IOException {
|
||||
@@ -82,7 +78,6 @@ public class PlayResourcesInfoController {
|
||||
/**
|
||||
* 陪聊资料审核
|
||||
*/
|
||||
@PreAuthorize("@customSs.hasPermission('play:info:edit')")
|
||||
@Log(title = "陪聊资源审核", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/examine")
|
||||
public R examinePlayResourcesInfo(@RequestBody PlayResourcesInfoReviewVo vo) {
|
||||
@@ -97,7 +92,6 @@ public class PlayResourcesInfoController {
|
||||
/**
|
||||
* 删除陪聊资源
|
||||
*/
|
||||
@PreAuthorize("@customSs.hasPermission('play:info:remove')")
|
||||
@Log(title = "陪聊资源", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public R remove(@PathVariable String[] ids) {
|
||||
|
||||
Reference in New Issue
Block a user