add
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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("✅ 中国期货交易记录接口注册完成")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user