Blame view

Lib/OperatorLog/operatorLog.go 364 Bytes
f56bf95d   aarongao   ..
1
2
3
4
package OperatorLog

import (
	"github.com/aarongao/tools"
483ade81   aarongao   v1.1
5
	"letu/DB"
f56bf95d   aarongao   ..
6
7
8
9
10
	"time"
)

func CreateOperatorLog(ScenicId string, user *DB.SMember, model *DB.SModel, api string, parames interface{}) {

483ade81   aarongao   v1.1
11
	DB.COperatorLog.InsertOne(tools.GetContext(), DB.SOperatorLog{
f56bf95d   aarongao   ..
12
		ScenicId,
483ade81   aarongao   v1.1
13
		user.Id.Hex(),
f56bf95d   aarongao   ..
14
15
16
17
18
19
20
21
		user.Username,
		time.Now().Unix(),
		"",
		*model,
		api,
		parames,
	})
}