From 58c1d16079fd650560a204761fbad47fab80c777 Mon Sep 17 00:00:00 2001 From: pxqbzjk5c <1499856873@qq.com> Date: Thu, 28 Aug 2025 20:40:05 +0800 Subject: [PATCH] Delete 'DeptController.java' --- DeptController.java | 75 --------------------------------------------- 1 file changed, 75 deletions(-) delete mode 100644 DeptController.java diff --git a/DeptController.java b/DeptController.java deleted file mode 100644 index 5481867..0000000 --- a/DeptController.java +++ /dev/null @@ -1,75 +0,0 @@ -package com.prj.controller; - -import java.util.List; - -import com.prj.common.core.controller.BaseController; -import com.prj.common.core.domain.AjaxResult; -import com.prj.common.core.page.TableDataInfo; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.PutMapping; -import org.springframework.web.bind.annotation.DeleteMapping; -import org.springframework.web.bind.annotation.PathVariable; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RestController; -import com.prj.domain.Dept; -import com.prj.service.IDeptService; - -@RestController -@RequestMapping("/dept_info") -public class DeptController extends BaseController -{ - @Autowired - private IDeptService deptService; - - /** - * 查询部门信息管理列表 - */ - @GetMapping("/list") - public TableDataInfo list(Dept dept) - { - startPage(); - List list = deptService.selectDeptList(dept); - return getDataByPage(list); - } - - /** - * 获取部门信息管理详细信息 - */ - @GetMapping(value = "/{id}") - public AjaxResult getInfo(@PathVariable("id") Long id) - { - return AjaxResult.success(deptService.selectDeptById(id)); - } - - /** - * 新增部门信息管理 - */ - @PostMapping - public AjaxResult add(@RequestBody Dept dept) - { - return toAjax(deptService.insertDept(dept)); - } - - /** - * 修改部门信息管理 - */ - @PutMapping - public AjaxResult edit(@RequestBody Dept dept) - { - return toAjax(deptService.updateDept(dept)); - } - - /** - * 删除部门信息管理 - */ - @DeleteMapping("/{ids}") - public AjaxResult remove(@PathVariable Long[] ids) - { - return toAjax(deptService.deleteDeptByIds(ids)); - } -} - -