package repository

import (
	"mayfly-go/internal/machine/domain/entity"
	"mayfly-go/pkg/model"
)

type AuthCert interface {
	GetPageList(condition *entity.AuthCertQuery, pageParam *model.PageParam, toEntity any, orderBy ...string) *model.PageResult[any]

	Insert(ac *entity.AuthCert)

	Update(ac *entity.AuthCert)

	GetById(id uint64) *entity.AuthCert

	GetByIds(ids ...uint64) []*entity.AuthCert

	GetByCondition(condition *entity.AuthCert, cols ...string) error

	DeleteById(id uint64)
}
