tuonina преди 6 години
родител
ревизия
7e10927c41

+ 2 - 3
zen-web/src/main/kotlin/cn/gygxzc/envir/api/sys/controller/LoginController.kt

@@ -1,8 +1,7 @@
 package cn.gygxzc.envir.api.sys.controller
 
-import cn.gygxzc.envir.api.sys.dto.LoginDto
+import cn.gygxzc.envir.sys.dto.LoginDto
 import cn.gygxzc.envir.sys.service.ILoginService
-import com.gxzc.zen.common.dto.ResponseDto
 import io.swagger.annotations.Api
 import io.swagger.annotations.ApiOperation
 import org.springframework.beans.factory.annotation.Autowired
@@ -34,7 +33,7 @@ class LoginController {
     @PostMapping("/app")
     @ApiOperation("用户登陆,返回jwt token")
     fun loginForJwt(@RequestBody dto: LoginDto): Any {
-        return ResponseDto().data(loginService.login(dto.username, dto.password))
+        return loginService.login(dto)
     }
 
 }

+ 0 - 9
zen-web/src/main/kotlin/cn/gygxzc/envir/api/sys/dto/LoginDto.kt

@@ -1,9 +0,0 @@
-package cn.gygxzc.envir.api.sys.dto
-
-/**
- * Created by niantuo on 2018/9/21.
- * 原则上这些数据传输中需要加密
- * 后期可以把这块做进去
- */
-data class LoginDto(var username: String = "",
-                    var password: String = "")

+ 1 - 1
zen-web/src/main/resources/application-orm.yml

@@ -39,7 +39,7 @@ spring:
   datasource:
     username: root
     password: tuonina
-    url: jdbc:mysql://192.168.1.206:3307/archives_sys?useInformationSchema=true&autoReconnect=true&useUnicode=true&characterEncoding=utf-8&useSSL=false&zeroDateTimeBehavior=convertToNull
+    url: jdbc:mysql://192.168.1.206:3307/envir_sys?useInformationSchema=true&autoReconnect=true&useUnicode=true&characterEncoding=utf-8&useSSL=false&zeroDateTimeBehavior=convertToNull
 # &useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC