| | |
| | | |
| | | 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.common.domain.BaseParam; |
| | | import com.zy.asrs.wcs.common.domain.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; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | /** |
| | | * Created by vincent on 2/13/2024 |
| | |
| | | @PreAuthorize("hasAuthority('sys:role:list')") |
| | | @OperationLog |
| | | @PostMapping("/role/page") |
| | | public R updateInfo(@RequestBody PageParam param) { |
| | | List<Role> list = roleService.list(); |
| | | return R.ok().add(list); |
| | | public R updateInfo(@RequestBody BaseParam param) { |
| | | PageParam<Role, BaseParam> page = new PageParam<>(param); |
| | | return R.ok().add(roleService.page(page, page.getWrapper())); |
| | | } |
| | | |
| | | } |