1
0
Просмотр исходного кода

refactor: 删除创建gitlab用户功能,功能迁移至门户

370774330@qq.com 5 лет назад
Родитель
Сommit
d301e18050

+ 11 - 12
web/src/main/java/seecoder/devcloud/web/controller/user/UserController.java

@@ -1,13 +1,12 @@
 package seecoder.devcloud.web.controller.user;
 
 import io.swagger.annotations.Api;
-import io.swagger.annotations.ApiImplicitParam;
 import io.swagger.annotations.ApiOperation;
 import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.web.bind.annotation.*;
-import seecoder.devcloud.common.exceptions.ServiceException;
+import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
 import seecoder.devcloud.web.model.vo.Response;
-import seecoder.devcloud.web.model.vo.user.GitlabUserCreateVO;
 import seecoder.devcloud.web.model.vo.user.UserVO;
 import seecoder.devcloud.web.service.user.UserService;
 
@@ -28,14 +27,14 @@ public class UserController {
         this.userService = userService;
     }
 
-    @Deprecated
-    @ApiOperation(value = "创建gitlab用户", httpMethod = "POST")
-    @PostMapping("/gitlab")
-    @ApiImplicitParam(value = "vo",dataType = "object", paramType = "body")
-    public Response createGitlabUser(@RequestBody GitlabUserCreateVO vo) throws ServiceException {
-        userService.createGitlabUser(vo);
-        return Response.buildSuccess();
-    }
+//    @Deprecated
+//    @ApiOperation(value = "创建gitlab用户", httpMethod = "POST")
+//    @PostMapping("/gitlab")
+//    @ApiImplicitParam(value = "vo",dataType = "object", paramType = "body")
+//    public Response createGitlabUser(@RequestBody GitlabUserCreateVO vo) throws ServiceException {
+//        userService.createGitlabUser(vo);
+//        return Response.buildSuccess();
+//    }
 
     @ApiOperation(value = "获取当前登陆的用户信息", httpMethod = "GET")
     @GetMapping("/self")