Files
mayfly-go/server/internal/sys/infrastructure/persistence/syslog_repo.go

22 lines
555 B
Go
Raw Normal View History

package persistence
import (
"mayfly-go/internal/sys/domain/entity"
"mayfly-go/internal/sys/domain/repository"
"mayfly-go/pkg/model"
)
2022-09-09 18:26:08 +08:00
type syslogRepoImpl struct{}
2022-09-09 18:26:08 +08:00
func newSyslogRepo() repository.Syslog {
return new(syslogRepoImpl)
}
2022-09-09 18:26:08 +08:00
func (m *syslogRepoImpl) GetPageList(condition *entity.Syslog, pageParam *model.PageParam, toEntity interface{}, orderBy ...string) *model.PageResult {
2022-10-26 20:49:29 +08:00
return model.GetPage(pageParam, condition, condition, toEntity, orderBy...)
}
2022-09-09 18:26:08 +08:00
func (m *syslogRepoImpl) Insert(syslog *entity.Syslog) {
model.Insert(syslog)
}