Jelajahi Sumber

系统优化

woody 1 tahun lalu
induk
melakukan
80fbc83fe8

+ 3 - 3
src/main/java/com/chelvc/cloud/admin/controller/EmployeeController.java

@@ -4,7 +4,7 @@ import javax.validation.Valid;
 import javax.validation.constraints.Min;
 
 import com.chelvc.cloud.admin.copier.EmployeeCopier;
-import com.chelvc.cloud.admin.vo.EmployeePersonalVO;
+import com.chelvc.cloud.admin.vo.PersonalVO;
 import com.chelvc.cloud.uc.api.dto.EmployeeDTO;
 import com.chelvc.cloud.uc.api.dto.EmployeeDetailDTO;
 import com.chelvc.cloud.uc.api.param.EmployeeModifyParam;
@@ -91,8 +91,8 @@ public class EmployeeController {
      *
      * @return 员工个人信息
      */
-    @GetMapping("/employee/mine")
-    public EmployeePersonalVO getMine() {
+    @GetMapping("/employee/personal")
+    public PersonalVO getPersonal() {
         EmployeeDetailDTO employee = this.employeeService.getMine();
         return EmployeeCopier.INSTANCE.employee2personal(employee);
     }

+ 6 - 11
src/main/java/com/chelvc/cloud/admin/controller/MenuController.java

@@ -13,7 +13,12 @@ import com.chelvc.framework.base.util.ErrorUtils;
 import org.apache.dubbo.config.annotation.DubboReference;
 import org.springframework.security.access.prepost.PreAuthorize;
 import org.springframework.validation.annotation.Validated;
-import org.springframework.web.bind.annotation.*;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.PutMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RestController;
 
 /**
  * 菜单接口
@@ -75,14 +80,4 @@ public class MenuController {
     public List<MenuDTO> listMenuTrees(@Valid MenuQueryParam param) {
         return this.menuService.listMenuTrees(param);
     }
-
-    /**
-     * 批量删除菜单
-     *
-     * @param ids    菜单主键集合
-     */
-    @DeleteMapping("/menu")
-    public void deleteMenus(@RequestBody List<Long> ids) {
-        this.menuService.deleteMenus(ids);
-    }
 }

+ 2 - 2
src/main/java/com/chelvc/cloud/admin/copier/EmployeeCopier.java

@@ -1,6 +1,6 @@
 package com.chelvc.cloud.admin.copier;
 
-import com.chelvc.cloud.admin.vo.EmployeePersonalVO;
+import com.chelvc.cloud.admin.vo.PersonalVO;
 import com.chelvc.cloud.uc.api.dto.EmployeeDetailDTO;
 import org.mapstruct.Builder;
 import org.mapstruct.Mapper;
@@ -25,5 +25,5 @@ public interface EmployeeCopier {
      * @param employee 员工详细信息
      * @return 个人信息
      */
-    EmployeePersonalVO employee2personal(EmployeeDetailDTO employee);
+    PersonalVO employee2personal(EmployeeDetailDTO employee);
 }

+ 1 - 1
src/main/java/com/chelvc/cloud/admin/vo/EmployeePersonalVO.java → src/main/java/com/chelvc/cloud/admin/vo/PersonalVO.java

@@ -21,7 +21,7 @@ import lombok.experimental.SuperBuilder;
 @SuperBuilder
 @NoArgsConstructor
 @AllArgsConstructor
-public class EmployeePersonalVO implements Serializable {
+public class PersonalVO implements Serializable {
     /**
      * 主键
      */