package com.zy.asrs.wcs.sys.controller; import com.zy.asrs.framework.common.R; import com.zy.asrs.wcs.common.annotation.OperationLog; import com.zy.asrs.wcs.sys.controller.param.PageParam; import com.zy.asrs.wcs.sys.entity.Role; import com.zy.asrs.wcs.sys.service.RoleService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.web.bind.annotation.*; import java.util.List; /** * Created by vincent on 2/13/2024 */ @RestController @RequestMapping("/api") public class RoleController extends BaseController { @Autowired private RoleService roleService; @PreAuthorize("hasAuthority('sys:role:list')") @OperationLog @PostMapping("/role/page") public R updateInfo(@RequestBody PageParam param) { System.out.println(param.get("condition")); List list = roleService.list(); return R.ok().add(list); } }