transfer_middleware/genModel/serverMiddleRsLogsModel.go

30 lines
949 B
Go
Raw Normal View History

2024-06-18 16:34:14 +08:00
package genModel
import "github.com/zeromicro/go-zero/core/stores/sqlx"
var _ ServerMiddleRsLogsModel = (*customServerMiddleRsLogsModel)(nil)
type (
// ServerMiddleRsLogsModel is an interface to be customized, add more methods here,
// and implement the added methods in customServerMiddleRsLogsModel.
ServerMiddleRsLogsModel interface {
serverMiddleRsLogsModel
withSession(session sqlx.Session) ServerMiddleRsLogsModel
}
customServerMiddleRsLogsModel struct {
*defaultServerMiddleRsLogsModel
}
)
// NewServerMiddleRsLogsModel returns a model for the database table.
func NewServerMiddleRsLogsModel(conn sqlx.SqlConn) ServerMiddleRsLogsModel {
return &customServerMiddleRsLogsModel{
defaultServerMiddleRsLogsModel: newServerMiddleRsLogsModel(conn),
}
}
func (m *customServerMiddleRsLogsModel) withSession(session sqlx.Session) ServerMiddleRsLogsModel {
return NewServerMiddleRsLogsModel(sqlx.NewSqlConnFromSession(session))
}