refactor(auth):重构认证服务,分离用户逻辑到独立服务

- 将用户相关业务迁移至用户模块,通过OpenFeign远程调用。
This commit is contained in:
Hanserwei
2025-10-04 22:03:09 +08:00
parent 19457b5638
commit 534a49a358
48 changed files with 697 additions and 521 deletions

View File

@@ -0,0 +1,20 @@
import com.hanserwei.hannote.user.biz.HannoteUserBizApplication;
import com.hanserwei.hannote.user.biz.constant.RedisKeyConstants;
import jakarta.annotation.Resource;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.redis.core.RedisTemplate;
@SpringBootTest(classes = HannoteUserBizApplication.class)
public class HannoteIdGenerateTest {
@Resource
private RedisTemplate<String, Object> redisTemplate;
@Test
public void test() {
// Long id = redisTemplate.opsForValue().increment(RedisKeyConstants.HAN_NOTE_ID_GENERATOR_KEY);
Object id = redisTemplate.opsForValue().get(RedisKeyConstants.HAN_NOTE_ID_GENERATOR_KEY);
System.out.println(id);
}
}