| | |
| | | import com.ruoyi.common.exception.ServiceException; |
| | | import com.ruoyi.errand.object.dto.sys.FinanceStatisticsDTO; |
| | | import com.ruoyi.errand.object.vo.sys.FinanceStatisticsVO; |
| | | import com.ruoyi.system.object.dto.AddDeptDTO; |
| | | import com.ruoyi.system.object.vo.SysDeptPageVO; |
| | | import io.swagger.annotations.ApiModel; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | @PreAuthorize("@ss.hasPermi('system:dept:list')") |
| | | @Log(title = "部门管理", businessType = BusinessType.INSERT) |
| | | @ApiOperation(value = "部门管理-新增部门", tags = "系统后台-权限管理") |
| | | @GetMapping("/add") |
| | | public AjaxResult add(@RequestParam("name")String name) { |
| | | deptService.add(name); |
| | | @PostMapping("/add") |
| | | public AjaxResult add(@RequestBody AddDeptDTO dto) { |
| | | deptService.add(dto.getName()); |
| | | return success(); |
| | | } |
| | | |