2023-03-06 16:59:57 +08:00
|
|
|
package repository
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"mayfly-go/internal/machine/domain/entity"
|
|
|
|
|
"mayfly-go/pkg/model"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type AuthCert interface {
|
2023-07-08 20:05:55 +08:00
|
|
|
GetPageList(condition *entity.AuthCertQuery, pageParam *model.PageParam, toEntity any, orderBy ...string) *model.PageResult[any]
|
2023-03-06 16:59:57 +08:00
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
}
|