Files
utility_go/service/system_log.go
2025-03-06 11:50:17 +08:00

35 lines
902 B
Go

// ================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// You can delete these comments if you wish manually maintain this interface file.
// ================================================================================
package service
import (
"github.com/gogf/gf/v2/frame/g"
v1 "new-gitlab.adesk.com/public_project/utility_go/api/admin/v1"
)
type (
ISystemLog interface {
List(page int) (list []*v1.SystemLog, max int, err error)
// 写入操作日志
AddLog(uid int, url string, ip string, data g.Map) (id int64, err error)
}
)
var (
localSystemLog ISystemLog
)
func SystemLog() ISystemLog {
if localSystemLog == nil {
panic("implement not found for interface ISystemLog, forgot register?")
}
return localSystemLog
}
func RegisterSystemLog(i ISystemLog) {
localSystemLog = i
}