suyiiyii 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
..
2025-01-17 17:09:32 +08:00
2025-01-17 17:09:32 +08:00
2025-01-17 17:09:32 +08:00
2025-01-22 13:31:42 +08:00
2025-01-22 13:31:42 +08:00
2025-01-20 16:01:57 +08:00
2025-01-17 17:09:32 +08:00
2025-01-22 12:56:41 +08:00
2025-01-17 17:09:32 +08:00

*** Project

introduce

  • Use the Kitex framework
  • Generating the base code for unit tests.
  • Provides basic config functions
  • Provides the most basic MVC code hierarchy.

Directory structure

catalog introduce
conf Configuration files
main.go Startup file
handler.go Used for request processing return of response.
kitex_gen kitex generated code
biz/service The actual business logic.
biz/dal Logic for operating the storage layer

How to run

sh build.sh
sh output/bootstrap.sh