mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-06 09:20:25 +08:00
22 lines
544 B
Go
22 lines
544 B
Go
package persistence
|
|
|
|
import (
|
|
"mayfly-go/internal/sys/domain/entity"
|
|
"mayfly-go/internal/sys/domain/repository"
|
|
"mayfly-go/pkg/model"
|
|
)
|
|
|
|
type syslogRepoImpl struct{}
|
|
|
|
func newSyslogRepo() repository.Syslog {
|
|
return new(syslogRepoImpl)
|
|
}
|
|
|
|
func (m *syslogRepoImpl) GetPageList(condition *entity.Syslog, pageParam *model.PageParam, toEntity interface{}, orderBy ...string) *model.PageResult {
|
|
return model.GetPage(pageParam, condition, toEntity, orderBy...)
|
|
}
|
|
|
|
func (m *syslogRepoImpl) Insert(syslog *entity.Syslog) {
|
|
model.Insert(syslog)
|
|
}
|