1
This commit is contained in:
parent
26afda8f37
commit
663430555e
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user