package OperatorLog import ( "github.com/aarongao/tools" "letu/DB" "time" ) func CreateOperatorLog(ScenicId string, user *DB.SMember, model *DB.SModel, api string, parames interface{}) { DB.COperatorLog.InsertOne(tools.GetContext(), DB.SOperatorLog{ ScenicId, user.Id.Hex(), user.Username, time.Now().Unix(), "", *model, api, parames, }) }