package model

import (
	"github.com/zeromicro/go-zero/core/stores/cache"
	"github.com/zeromicro/go-zero/core/stores/sqlx"
)

var _ AgentRebateModel = (*customAgentRebateModel)(nil)

type (
	// AgentRebateModel is an interface to be customized, add more methods here,
	// and implement the added methods in customAgentRebateModel.
	AgentRebateModel interface {
		agentRebateModel
	}

	customAgentRebateModel struct {
		*defaultAgentRebateModel
	}
)

// NewAgentRebateModel returns a model for the database table.
func NewAgentRebateModel(conn sqlx.SqlConn, c cache.CacheConf) AgentRebateModel {
	return &customAgentRebateModel{
		defaultAgentRebateModel: newAgentRebateModel(conn, c),
	}
}
