| | |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 用户服务Feign实现类 |
| | | * |
| | |
| | | } |
| | | |
| | | @Override |
| | | @GetMapping(USER_INFO_BY_PHONE) |
| | | public R<List<User>> userInfoByPhone(String tenantId, String phone) { |
| | | return R.data(service.userInfoByPhone(tenantId, phone)); |
| | | } |
| | | |
| | | @Override |
| | | @GetMapping(USER_INFO_BY_TYPE) |
| | | public R<UserInfo> userInfo(String tenantId, String account, String userType) { |
| | | return R.data(service.userInfo(tenantId, account, UserEnum.of(userType))); |