service.xpcool.com/internal/dao/server_security_log.go

19 lines
504 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Package dao 服务器安全日志数据访问(主库默认分组,手写)。
package dao
import (
"context"
"github.com/gogf/gf/v2/database/gdb"
"github.com/gogf/gf/v2/frame/g"
)
type serverSecurityLogDao struct{ table string }
// ServerSecurityLog 安全日志表全局访问对象(主库 service
var ServerSecurityLog = serverSecurityLogDao{table: "server_security_log"}
func (d serverSecurityLogDao) Ctx(ctx context.Context) *gdb.Model {
return g.DB().Model(d.table).Safe()
}