feat:完善项目

This commit is contained in:
henry
2021-09-28 11:47:19 +08:00
commit da7b3130fe
167 changed files with 456676 additions and 0 deletions

25
app/event/log.go Normal file
View File

@ -0,0 +1,25 @@
package event
import "SciencesServer/app/common/model"
type SysLogProduce struct{}
// Handle
func (this *SysLogProduce) Handle(arg ...interface{}) {
tenantID := arg[0].(uint64)
uid := arg[1].(uint64)
ip := arg[3].(string)
mSysLog := model.NewSysLog()
mSysLog.TenantID = tenantID
mSysLog.UID = uid
mSysLog.Name = ""
mSysLog.Method = ""
mSysLog.Params = ""
mSysLog.IP = ip
_ = model.Create(mSysLog)
}
func NewSysLogProduce() *SysLogProduce {
return &SysLogProduce{}
}