diff --git a/youlai-admin/admin-boot/src/main/java/com/youlai/admin/controller/SysDeptController.java b/youlai-admin/admin-boot/src/main/java/com/youlai/admin/controller/SysDeptController.java index 21bb0076d..9da30f9fc 100644 --- a/youlai-admin/admin-boot/src/main/java/com/youlai/admin/controller/SysDeptController.java +++ b/youlai-admin/admin-boot/src/main/java/com/youlai/admin/controller/SysDeptController.java @@ -1,15 +1,19 @@ package com.youlai.admin.controller; -import com.youlai.admin.pojo.entity.SysDept; +import com.youlai.admin.pojo.form.DeptForm; import com.youlai.admin.pojo.query.DeptQuery; +import com.youlai.admin.pojo.vo.dept.DeptDetailVO; import com.youlai.admin.pojo.vo.dept.DeptVO; import com.youlai.admin.service.SysDeptService; import com.youlai.common.result.Result; import com.youlai.common.web.domain.Option; -import io.swagger.annotations.*; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; import lombok.RequiredArgsConstructor; import org.springframework.web.bind.annotation.*; +import javax.validation.Valid; import java.util.List; /** @@ -26,44 +30,53 @@ public class SysDeptController { private final SysDeptService deptService; - @ApiOperation(value = "部门列表") + @ApiOperation(value = "获取部门列表") @GetMapping public Result> listDepts(DeptQuery queryParams) { List list = deptService.listDepts(queryParams); return Result.success(list); } - @ApiOperation(value = "部门下拉列表") - @GetMapping("/select_list") - public Result lisetDeptOptions() { + @ApiOperation(value = "获取部门下拉选项") + @GetMapping("/options") + public Result> lisetDeptOptions() { List