This commit is contained in:
vipg
2025-11-11 18:05:20 +08:00
parent b01e82b507
commit 0f66f1a09b
3 changed files with 182 additions and 4 deletions

View File

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