This commit is contained in:
vipg
2025-11-11 18:23:51 +08:00
parent 89838b60be
commit 8d6c211767
3 changed files with 240 additions and 10 deletions

View File

@@ -35,9 +35,13 @@ func main() {
r.POST("/country/create", logic.CreateHandler)
zap.L().Info("✅ 创建接口注册完成: POST /country/create")
// 注册读取国家的接口POST请求由logic.ReadHandler
r.POST("/country/read", logic.ReadHandler)
zap.L().Info("✅ 读取接口注册完成: POST /country/read")
// 注册更新国家的接口POST请求由logic.UpdateHandler
r.POST("/country/update", logic.UpdateHandler)
zap.L().Info("✅ 删除接口注册完成: POST /country/update")
zap.L().Info("✅ 更新接口注册完成: POST /country/update")
// 注册删除国家的接口POST请求由logic.DeleteHandler处理
r.POST("/country/delete", logic.DeleteHandler)