package model

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

var _ AgentInviteCodeModel = (*customAgentInviteCodeModel)(nil)

type (
	// AgentInviteCodeModel is an interface to be customized, add more methods here,
	// and implement the added methods in customAgentInviteCodeModel.
	AgentInviteCodeModel interface {
		agentInviteCodeModel
	}

	customAgentInviteCodeModel struct {
		*defaultAgentInviteCodeModel
	}
)

// NewAgentInviteCodeModel returns a model for the database table.
func NewAgentInviteCodeModel(conn sqlx.SqlConn, c cache.CacheConf) AgentInviteCodeModel {
	return &customAgentInviteCodeModel{
		defaultAgentInviteCodeModel: newAgentInviteCodeModel(conn, c),
	}
}
