This commit is contained in:
aozhiwei 2024-11-17 13:20:21 +08:00
parent 26afda8f37
commit 663430555e

View File

@ -3,6 +3,7 @@ package service
import ( import (
"q5" "q5"
"sync" "sync"
"main/model"
) )
type logNode struct { type logNode struct {
@ -57,5 +58,12 @@ func (this *log) AddAsyncLog(accountId string, logType string, subLogType string
func (this *log) saveNode(node interface{}) bool { func (this *log) saveNode(node interface{}) bool {
p := node.(*logNode) p := node.(*logNode)
logModel := new(model.Log)
logModel.AccountId = p.accountId
logModel.Type = p.logType
logModel.SubType = p.subLogType
logModel.CreateTime = int32(p.currTime)
logModel.ModifyTime = int32(p.currTime)
logModel.Create()
return true return true
} }