19 changed files with 289 additions and 125 deletions
@ -0,0 +1,32 @@
@@ -0,0 +1,32 @@
|
||||
package com.cloud.kicc.system.api.feign; |
||||
|
||||
import com.cloud.kicc.common.core.api.R; |
||||
import com.cloud.kicc.common.core.constant.AppConstants; |
||||
import com.cloud.kicc.common.core.constant.SecurityConstants; |
||||
import com.cloud.kicc.common.core.constant.ServiceNameConstants; |
||||
import com.cloud.kicc.common.data.entity.KiccUser; |
||||
import com.cloud.kicc.system.api.entity.SsoUser; |
||||
import org.springframework.cloud.openfeign.FeignClient; |
||||
import org.springframework.web.bind.annotation.GetMapping; |
||||
import org.springframework.web.bind.annotation.PathVariable; |
||||
|
||||
/** |
||||
*<p> |
||||
* 远程移动端api |
||||
*</p> |
||||
* |
||||
* @Author: wangxiang4 |
||||
* @Date: 2022/2/17 |
||||
*/ |
||||
@FeignClient(contextId = "remoteAppService", value = ServiceNameConstants.SYSTEM_SERVICE) |
||||
public interface RemoteAppService { |
||||
|
||||
/** |
||||
* 通过手机号码查询用户 |
||||
* @param phone 手机号码 |
||||
* @return R |
||||
*/ |
||||
@GetMapping(value = AppConstants.APP_SYSTEM + "/app/selectByPhone/{phone}", headers = SecurityConstants.HEADER_FROM_IN) |
||||
R<SsoUser> selectByPhone(@PathVariable("phone") String phone); |
||||
|
||||
} |
@ -0,0 +1,32 @@
@@ -0,0 +1,32 @@
|
||||
package com.cloud.kicc.system.api.feign; |
||||
|
||||
import com.cloud.kicc.common.core.api.R; |
||||
import com.cloud.kicc.common.core.constant.AppConstants; |
||||
import com.cloud.kicc.common.core.constant.SecurityConstants; |
||||
import com.cloud.kicc.common.core.constant.ServiceNameConstants; |
||||
import com.cloud.kicc.common.data.entity.KiccUser; |
||||
import com.cloud.kicc.system.api.entity.SsoUser; |
||||
import org.springframework.cloud.openfeign.FeignClient; |
||||
import org.springframework.web.bind.annotation.GetMapping; |
||||
import org.springframework.web.bind.annotation.PathVariable; |
||||
|
||||
/** |
||||
*<p> |
||||
* 远程SSO用户api |
||||
*</p> |
||||
* |
||||
* @Author: wangxiang4 |
||||
* @Date: 2022/2/17 |
||||
*/ |
||||
@FeignClient(contextId = "remoteSsoUserService", value = ServiceNameConstants.SYSTEM_SERVICE) |
||||
public interface RemoteSsoUserService { |
||||
|
||||
/** |
||||
* 通过用户名查询用户 |
||||
* @param userName 用户名 |
||||
* @return R |
||||
*/ |
||||
@GetMapping(value = AppConstants.APP_SYSTEM + "/ssoUser/selectByUserName/{userName}", headers = SecurityConstants.HEADER_FROM_IN) |
||||
R<SsoUser> selectByUserName(@PathVariable("userName") String userName); |
||||
|
||||
} |
@ -1,3 +1,6 @@
@@ -1,3 +1,6 @@
|
||||
com.cloud.kicc.common.feign.KiccFeignAutoConfiguration=\ |
||||
com.cloud.kicc.system.api.feign.RemoteDictService,\ |
||||
com.cloud.kicc.system.api.feign.RemoteUserService |
||||
com.cloud.kicc.system.api.feign.RemoteUserService,\ |
||||
com.cloud.kicc.system.api.feign.RemoteAppService,\ |
||||
com.cloud.kicc.system.api.feign.RemoteRegionService,\ |
||||
com.cloud.kicc.system.api.feign.RemoteSsoUserService |
||||
|
Loading…
Reference in new issue