|
a57e4cac1c
|
feat(log): 在控制台输出日志
|
2025-01-22 14:40:15 +08:00 |
|
|
83d9bbb530
|
feat(user): 生成用户查询接口并优化模型
- 在 model/user.go 中添加 Querier 接口,定义了 GetByEmail 方法- 在 query/users.gen.go 中实现 Querier 接口的 GetByEmail 方法
- 修改 gen.go以使用新的 Querier 接口和 User 模型生成代码
- 将 users.gen.go 中的 ID 类型从 Int64 改为 Uint
|
2025-01-22 13:44:26 +08:00 |
|
|
500f5b3339
|
chore: update deps
|
2025-01-22 13:31:42 +08:00 |
|
|
275221adbd
|
feat: 尝试添加 tracing
|
2025-01-22 12:56:41 +08:00 |
|
|
9ae4838986
|
fix(app): 修复用户注册时的登录信息传递错误
-将固定的字符串 "11" 和 "22" 替换为用户输入的 Email 和 Password
- 确保在注册过程中正确传递用户登录信息
|
2025-01-21 23:34:31 +08:00 |
|
|
0d5fa6e9f7
|
refactor(user): 修改 LoginService 返回值
- 将固定返回值 111 改为根据请求密码动态生成
- 使用密码的第一个字符作为 UserId 的值
|
2025-01-21 23:33:55 +08:00 |
|
|
85d297aeaa
|
build(user): 移除 godotenv 依赖
- 从 user 服务的 go.mod 文件中删除了 github.com/joho/godotenv
- 相应地从 go.sum 文件中移除了 godotenv 的特定版本信息
|
2025-01-21 23:27:39 +08:00 |
|
|
5c31af55db
|
refactor(register): 添加注册服务接口说明注释
- 在 register.go 文件中添加了关于注册服务接口的使用说明注释
- 注释包含了 curl 命令示例和接口调用方式的说明
|
2025-01-21 23:27:31 +08:00 |
|
|
b6cb6875ae
|
Revert "chore(user): 打印配置信息"
This reverts commit b51ab4680f6c553a1925a135adca1ba3fb696f5b.
|
2025-01-21 23:25:50 +08:00 |
|
|
2c85024a08
|
Revert "refactor(app/user): 重构配置文件读取逻辑并移除未使用的依赖"
This reverts commit cedec8b669a814b75f930c04412b9ce328a0eb9d.
|
2025-01-21 23:25:49 +08:00 |
|
|
cedec8b669
|
refactor(app/user): 重构配置文件读取逻辑并移除未使用的依赖
- 重新组织配置文件读取逻辑,提高代码可读性
- 添加远程配置获取测试
- 移除未使用的 godotenv 依赖
|
2025-01-21 22:46:54 +08:00 |
|
|
b51ab4680f
|
chore(user): 打印配置信息
- 在配置加载后打印 RegistryAddress 和 MYSQL_DSN 配置信息
- 用于调试和验证配置是否正确加载
|
2025-01-21 22:29:34 +08:00 |
|
|
9927dbcb94
|
refactor(user): 注释掉 godotenv.Load() 调用
- 在 user 服务的 main 函数中注释掉了 godotenv.Load() 调用- 此修改可能是为了暂时禁用环境变量加载功能,或者准备在其他地方实现环境变量加载
|
2025-01-21 22:18:24 +08:00 |
|
|
1414be406d
|
refactor: 更新 Consul 服务地址配置
- 将配置文件中的 Consul 地址从具体 IP 修改为通用的 consul:8500
- 修改相关代码中的 Consul 解析地址为 consul:8500
-此更改提高了配置的可移植性和一致性,适用于开发、测试和生产环境
|
2025-01-21 21:51:34 +08:00 |
|
|
e204ccb2a7
|
feat(user): update repo deps
|
2025-01-21 10:23:21 +08:00 |
|
|
56839f5ded
|
build(conf): 更新配置文件处理依赖
- 在 app/facade/conf 和 app/user/conf 模块中添加 validator 和 yaml 库的导入
- 调整导入库的顺序,提高代码可读性
|
2025-01-20 23:46:29 +08:00 |
|
|
1f3066be16
|
feat(app): 添加 Dockerfile 和 .dockerignore 文件
- 在 app/facade 和 app/user 目录下新增 Dockerfile 文件,用于构建 Docker 镜像
- 在 app/facade 和 app/user目录下新增 .dockerignore 文件,用于指定不需要复制到容器中的文件和目录
- 更新 app/facade/conf/conf.go 和 app/user/conf/conf.go,使用 embed 包嵌入配置文件
- 移除不必要的库引用,简化代码结构
|
2025-01-20 23:41:18 +08:00 |
|
|
7f02ded1c2
|
build(auth): 添加 Dockerfile 和 .dockerignore 文件
- 新增 Dockerfile 用于构建和运行认证服务
- 添加 .dockerignore 文件以排除不必要的文件和目录
|
2025-01-20 23:24:16 +08:00 |
|
|
770687a2f6
|
feat(auth): 嵌入配置文件到可执行文件
- 使用 go:embed 导入配置文件,避免在运行时读取文件系统中的配置
- 移除了文件读取相关代码,简化了配置加载过程
- 这种方法提高了应用程序的可移植性和安全性
|
2025-01-20 23:21:21 +08:00 |
|
|
bf0daf8742
|
Merge remote-tracking branch 'refs/remotes/origin/main'
|
2025-01-20 23:07:16 +08:00 |
|
|
b1152c9ccd
|
auth: comment out dal.Init() in main function
|
2025-01-20 23:06:31 +08:00 |
|
|
1300485f35
|
update deps
|
2025-01-21 06:39:03 +08:00 |
|
|
7973802d96
|
hertz: add rpc call
|
2025-01-21 06:38:58 +08:00 |
|
|
dcb28a8459
|
update deps
|
2025-01-21 06:33:01 +08:00 |
|
dependabot[bot]
|
38e9008b4f
|
build(deps): bump golang.org/x/net from 0.24.0 to 0.33.0 in /app/facade
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.24.0 to 0.33.0.
- [Commits](https://github.com/golang/net/compare/v0.24.0...v0.33.0)
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
|
2025-01-20 14:52:46 +00:00 |
|
|
19851da7f1
|
successfully run facade
|
2025-01-20 21:45:01 +08:00 |
|
|
98273c7645
|
generate facade service
|
2025-01-20 21:17:47 +08:00 |
|
dependabot[bot]
|
47b4b916e7
|
build(deps): bump golang.org/x/net from 0.27.0 to 0.33.0 in /app/auth
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.27.0 to 0.33.0.
- [Commits](https://github.com/golang/net/compare/v0.27.0...v0.33.0)
---
updated-dependencies:
- dependency-name: golang.org/x/net
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
|
2025-01-20 12:30:09 +00:00 |
|
dependabot[bot]
|
d58ca9e77c
|
build(deps): bump golang.org/x/crypto from 0.25.0 to 0.31.0 in /app/auth
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.25.0 to 0.31.0.
- [Commits](https://github.com/golang/crypto/compare/v0.25.0...v0.31.0)
---
updated-dependencies:
- dependency-name: golang.org/x/crypto
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
|
2025-01-20 12:05:34 +00:00 |
|
|
033579702f
|
使用 viper 从 consul 读取配置文件
|
2025-01-20 20:03:45 +08:00 |
|
|
ac288f01ca
|
import viper
|
2025-01-20 19:50:00 +08:00 |
|
|
2c74372f38
|
Merge branch 'main' of https://github.com/suyiiyii/hertz101
|
2025-01-20 19:49:11 +08:00 |
|
|
a21b42168a
|
成功 rpc 调用
|
2025-01-20 19:47:49 +08:00 |
|
|
82480c4611
|
实现 rpc 调用
|
2025-01-20 17:08:04 +08:00 |
|
|
bda2501bae
|
auth service
|
2025-01-20 16:22:41 +08:00 |
|
|
76d3d6f20a
|
成功注册到consul
|
2025-01-20 16:01:57 +08:00 |
|
|
a53f8f8a5a
|
feat(user): 初始化用户服务
- 新增用户登录和注册功能
- 实现基本的用户信息验证
- 集成数据库连接和查询
|
2025-01-20 13:04:55 +08:00 |
|
|
ae95d9acb6
|
refactor(user): 修正注册接口请求参数类型
- 将 RegisterService.Run 方法的请求参数类型从 RegisterResp 改为 RegisterReq
- 更新 register_test.go 中的测试用例,使用正确的请求参数类型
- 修改 user.proto 中 Register rpc 的请求参数类型
|
2025-01-20 12:03:46 +08:00 |
|
|
087de0cba3
|
refactor(user): 重构用户服务配置和依赖
- 更新 MySQL配置,增加端口变量- 初始化 MySQL 在 gorm_gen工具中
- 更新 go.mod 依赖版本:
- mysql驱动从 1.7.0 到 1.8.1
- gorm相关包从多个版本统一到 1.25.7 - 其他依赖也进行了升级
- 更新 go.sum 文件以反映新的依赖版本
|
2025-01-17 18:04:58 +08:00 |
|
|
e7ff1dc87d
|
feat(user): 添加 GORM 代码生成工具并更新数据库配置
- 在项目中引入 GORM 相关依赖
- 添加 GORM代码生成工具 gen.go
- 更新 MySQL 数据库配置
- 新增 .env 文件到 .gitignore
|
2025-01-17 17:54:00 +08:00 |
|
|
d696206dc7
|
init
|
2025-01-17 17:09:32 +08:00 |
|