|
@@ -0,0 +1,31 @@
|
|
|
|
|
+package space.anyi.openAPI.service.impl.inside;
|
|
|
|
|
+
|
|
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
|
|
+import org.apache.dubbo.config.annotation.DubboService;
|
|
|
|
|
+import space.anyi.openAPI.comom.model.user.User;
|
|
|
|
|
+import space.anyi.openAPI.comom.service.inside.InsideUserService;
|
|
|
|
|
+import space.anyi.openAPI.mapper.UserMapper;
|
|
|
|
|
+
|
|
|
|
|
+import java.util.Objects;
|
|
|
|
|
+
|
|
|
|
|
+/**
|
|
|
|
|
+ * @ProjectName: yangyi-open-api-platform
|
|
|
|
|
+ * @FileName: InsideUserServiceImpl
|
|
|
|
|
+ * @Author: 杨逸
|
|
|
|
|
+ * @Data:2025/11/27 11:33
|
|
|
|
|
+ * @Description:
|
|
|
|
|
+ */
|
|
|
|
|
+@DubboService(registry = "nacos-registry")
|
|
|
|
|
+public class InsideUserServiceImpl implements InsideUserService {
|
|
|
|
|
+ private final UserMapper userMapper;
|
|
|
|
|
+
|
|
|
|
|
+ public InsideUserServiceImpl(UserMapper userMapper) {
|
|
|
|
|
+ this.userMapper = userMapper;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public User getUserByAccessKey(String accessKey) {
|
|
|
|
|
+ LambdaQueryWrapper<User> lambdaQueryWrapper = new LambdaQueryWrapper<User>().eq(User::getAccessKey, accessKey);
|
|
|
|
|
+ return userMapper.selectOne(lambdaQueryWrapper);
|
|
|
|
|
+ }
|
|
|
|
|
+}
|