Browse Source

修改所有返回值类型null->responsedto

NorthLan 7 years ago
parent
commit
5af7ae9375

+ 3 - 2
zen-web/src/main/kotlin/com/gxzc/zen/web/sys/controller/AuthController.kt

@@ -8,6 +8,7 @@ import com.baomidou.kisso.annotation.Login
 import com.gxzc.zen.api.sys.service.ISysUserService
 import com.gxzc.zen.common.base.BaseController
 import com.gxzc.zen.common.dto.RequestDto
+import com.gxzc.zen.common.dto.ResponseDto
 import com.gxzc.zen.common.exception.ZenException
 import com.gxzc.zen.common.exception.ZenExceptionEnum
 import com.gxzc.zen.umps.util.MD5Salt
@@ -62,13 +63,13 @@ class AuthController : BaseController() {
         SSOHelper.setSSOCookie(getRequest(), getResponse(), SSOToken().also {
             it.uid = user.id.toString()
         }, true)
-        return ResponseEntity.ok(null)
+        return ResponseEntity.ok(ResponseDto())
     }
 
     @ApiOperation(value = "登出")
     @DeleteMapping("/logout")
     fun logout(): ResponseEntity<*> {
         SSOHelper.clearLogin(getRequest(), getResponse())
-        return ResponseEntity.ok(null)
+        return ResponseEntity.ok(ResponseDto())
     }
 }

+ 1 - 1
zen-web/src/main/kotlin/com/gxzc/zen/web/sys/controller/UserController.kt

@@ -54,6 +54,6 @@ class UserController : BaseController() {
 
     @PutMapping("/info")
     fun modifyUserInfo(@RequestBody requestDto: RequestDto): ResponseEntity<*> {
-        return ResponseEntity.ok(null)
+        return ResponseEntity.ok(ResponseDto())
     }
 }