Browse Source

修改获取用户信息的服务

tuonina 6 years ago
parent
commit
6c82a803cc

+ 3 - 3
zen-api/src/main/kotlin/cn/gygxzc/envir/sys/service/IFUserService.kt

@@ -15,12 +15,12 @@ interface IFUserService {
     fun getAccountByIds(@RequestBody ids: List<Long>): List<String>
 
     @RequestMapping(value = ["/feign/user/account/{id}"], method = [RequestMethod.GET])
-    fun getAccountById(@PathVariable("id") id: Long): String
+    fun getAccountById(@PathVariable("id") id: Long): String?
 
     @RequestMapping(value = ["/feign/user/{id}"], method = [RequestMethod.GET])
-    fun getUserInfo(@PathVariable("id") id: Long): User
+    fun getUserInfo(@PathVariable("id") id: Long): User?
 
     @RequestMapping(value = ["/feign/user/info/{account}"], method = [RequestMethod.GET])
-    fun getUserByAccount(@PathVariable("account") account: String): User
+    fun getUserByAccount(@PathVariable("account") account: String): User?
 
 }