2022-07-14 11:39:12 +08:00
|
|
|
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-07-14 11:39:12 +08:00
|
|
|
|
2022-09-09 18:26:08 +08:00
|
|
|
func newSyslogRepo() repository.Syslog {
|
|
|
|
|
return new(syslogRepoImpl)
|
|
|
|
|
}
|
2022-07-14 11:39:12 +08:00
|
|
|
|
2023-06-01 12:31:32 +08:00
|
|
|
func (m *syslogRepoImpl) GetPageList(condition *entity.Syslog, pageParam *model.PageParam, toEntity any, orderBy ...string) *model.PageResult {
|
2022-10-26 20:49:29 +08:00
|
|
|
return model.GetPage(pageParam, condition, condition, toEntity, orderBy...)
|
2022-07-14 11:39:12 +08:00
|
|
|
}
|
|
|
|
|
|
2022-09-09 18:26:08 +08:00
|
|
|
func (m *syslogRepoImpl) Insert(syslog *entity.Syslog) {
|
2022-07-14 11:39:12 +08:00
|
|
|
model.Insert(syslog)
|
|
|
|
|
}
|