fix
This commit is contained in:
@@ -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.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
@@ -31,7 +30,6 @@ public class PlayCustomUserInfoController {
|
||||
/**
|
||||
* 查询顾客列表
|
||||
*/
|
||||
@PreAuthorize("@customSs.hasPermission('custom:user:list')")
|
||||
@PostMapping("/listByPage")
|
||||
public R list(@Validated @RequestBody PlayCustomUserQueryVo vo) {
|
||||
IPage<PlayCustomUserReturnVo> list = playCustomUserInfoService.selectByPage(vo);
|
||||
@@ -41,7 +39,6 @@ public class PlayCustomUserInfoController {
|
||||
/**
|
||||
* 获取顾客详细信息
|
||||
*/
|
||||
@PreAuthorize("@customSs.hasPermission('custom:user:list')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public R getInfo(@PathVariable("id") String id) {
|
||||
return R.ok(playCustomUserInfoService.selectById(id));
|
||||
@@ -50,7 +47,6 @@ public class PlayCustomUserInfoController {
|
||||
/**
|
||||
* 新增顾客
|
||||
*/
|
||||
@PreAuthorize("@customSs.hasPermission('custom:user:add')")
|
||||
@Log(title = "顾客", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/create")
|
||||
public R create(@RequestBody PlayCustomUserInfoEntity playCustomUserInfo) {
|
||||
@@ -64,7 +60,6 @@ public class PlayCustomUserInfoController {
|
||||
/**
|
||||
* 修改顾客状态
|
||||
*/
|
||||
@PreAuthorize("@customSs.hasPermission('custom:user:update')")
|
||||
@Log(title = "顾客", businessType = BusinessType.UPDATE)
|
||||
@PostMapping(value = "/updateState")
|
||||
public R updateState(@Validated @RequestBody PlayCustomUserStateEditVo vo) {
|
||||
@@ -79,7 +74,6 @@ public class PlayCustomUserInfoController {
|
||||
/**
|
||||
* 修改顾客
|
||||
*/
|
||||
@PreAuthorize("@customSs.hasPermission('custom:user:update')")
|
||||
@Log(title = "顾客", businessType = BusinessType.UPDATE)
|
||||
@PostMapping(value = "/update/{id}")
|
||||
public R update(@PathVariable String id, @RequestBody PlayCustomUserInfoEntity playCustomUserInfo) {
|
||||
@@ -94,7 +88,6 @@ public class PlayCustomUserInfoController {
|
||||
/**
|
||||
* 删除顾客
|
||||
*/
|
||||
@PreAuthorize("@customSs.hasPermission('custom:user:delete')")
|
||||
@Log(title = "顾客", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public R remove(@PathVariable String[] ids) {
|
||||
|
||||
Reference in New Issue
Block a user