This commit is contained in:
vipg
2025-11-11 17:33:32 +08:00
parent 77908424e3
commit 6411e96a59
5 changed files with 29 additions and 6 deletions

View File

@@ -21,12 +21,9 @@ func main() {
gin.SetMode(gin.ReleaseMode)
r := gin.Default()
// 登录接口
r.POST("/user/login", logic.LoginHandler)
zap.L().Info("✅ 登录接口注册完成: POST /user/login")
// 注册接口
r.POST("/user/register", logic.RegisterHandler)
zap.L().Info("✅ 登录接口注册完成: POST /user/register")
// 创建接口
r.POST("/country/create", logic.CreateHandler)
zap.L().Info("✅ 登录接口注册完成: POST /country/create")
// 启动服务监听80端口
zap.L().Info("✅ 服务启动在80端口")