This commit is contained in:
vipg
2025-12-19 16:45:10 +08:00
parent 630f8d425f
commit 7866342529
2 changed files with 2 additions and 2 deletions

View File

@@ -119,7 +119,7 @@ func CreateHandler(c *gin.Context) {
var recordID string
err = tx.QueryRow(
`INSERT INTO trading_records (event_type, payload)
VALUES ($1, $2)
VALUES ('交易中', $2)
RETURNING id`,
req.EventType,
req.Payload,

View File

@@ -55,7 +55,7 @@ func main() {
// 注册用户接口
trading := r.Group("/cn_futures_trading_record")
{
trading.POST("/register", crud.CreateHandler)
trading.POST("/open", crud.CreateHandler)
}
zap.L().Info("✅ 中国期货交易记录接口注册完成")