add
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
module futures_trading_record
|
||||
module futures_trade_record
|
||||
|
||||
go 1.25.0
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"futures_trading_record/db" // 数据库相关操作包
|
||||
"futures_trading_record/logger" // 日志工具包
|
||||
"futures_trading_record/logic" // 业务逻辑处理包
|
||||
"futures_trade_record/db" // 数据库相关操作包
|
||||
"futures_trade_record/logger" // 日志工具包
|
||||
"futures_trade_record/logic" // 业务逻辑处理包
|
||||
|
||||
"github.com/gin-contrib/cors"
|
||||
"github.com/gin-gonic/gin" // Gin框架,用于构建HTTP服务
|
||||
@@ -50,8 +50,8 @@ func main() {
|
||||
zap.L().Info("✅ 配置跨域中间件完成")
|
||||
|
||||
// 注册创建国家的接口,POST请求,由logic.CreateHandler处理
|
||||
// r.POST("/futurestradingrecord/create", logic.CreateHandler)
|
||||
// zap.L().Info("✅ 创建接口注册完成: POST /futurestradingrecord/create")
|
||||
// r.POST("/futurestraderecord/create", logic.CreateHandler)
|
||||
// zap.L().Info("✅ 创建接口注册完成: POST /futurestraderecord/create")
|
||||
|
||||
// 记录服务启动日志,监听80端口
|
||||
zap.L().Info("✅ 服务启动在80端口")
|
||||
|
||||
Reference in New Issue
Block a user