| | |
| | | * 查询用户列表 |
| | | */ |
| | | @ApiOperation("查询用户列表") |
| | | @PreAuthorize("@ss.hasPermi('system:info:list')") |
| | | //@PreAuthorize("@ss.hasPermi('system:info:list')") |
| | | @PostMapping("/list") |
| | | public TableDataInfo list(@RequestBody BaseUserInfo baseUserInfo) { |
| | | startPage(); |
| | |
| | | * 导出用户列表 |
| | | */ |
| | | @ApiOperation("导出用户列表") |
| | | @PreAuthorize("@ss.hasPermi('system:info:export')") |
| | | //@PreAuthorize("@ss.hasPermi('system:info:export')") |
| | | @Log(title = "用户" , businessType = BusinessType.EXPORT) |
| | | @PostMapping("/export") |
| | | public void export(HttpServletResponse response, BaseUserInfo baseUserInfo) { |
| | |
| | | * 获取用户详细信息 |
| | | */ |
| | | @ApiOperation("获取用户详细信息") |
| | | @PreAuthorize("@ss.hasPermi('system:info:query')") |
| | | //@PreAuthorize("@ss.hasPermi('system:info:query')") |
| | | @GetMapping(value = "/{userid}") |
| | | public AjaxResult getInfo(@PathVariable("userid") Long userid) { |
| | | return success(baseUserInfoService.selectBaseUserInfoByUserid(userid)); |
| | |
| | | * 新增用户 |
| | | */ |
| | | @ApiOperation("新增用户") |
| | | @PreAuthorize("@ss.hasPermi('system:info:add')") |
| | | //@PreAuthorize("@ss.hasPermi('system:info:add')") |
| | | @Log(title = "用户" , businessType = BusinessType.INSERT) |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody BaseUserInfo baseUserInfo) { |
| | |
| | | * 修改用户 |
| | | */ |
| | | @ApiOperation("修改用户") |
| | | @PreAuthorize("@ss.hasPermi('system:info:edit')") |
| | | //@PreAuthorize("@ss.hasPermi('system:info:edit')") |
| | | @Log(title = "用户" , businessType = BusinessType.UPDATE) |
| | | @PostMapping("/edit") |
| | | public AjaxResult edit(@RequestBody BaseUserInfo baseUserInfo) { |
| | |
| | | * 删除用户 |
| | | */ |
| | | @ApiOperation("删除用户") |
| | | @PreAuthorize("@ss.hasPermi('system:info:remove')") |
| | | //@PreAuthorize("@ss.hasPermi('system:info:remove')") |
| | | @Log(title = "用户" , businessType = BusinessType.DELETE) |
| | | @GetMapping("/remove/{userids}") |
| | | public AjaxResult remove(@PathVariable Long[] userids) { |