mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-05 00:40:24 +08:00
20 lines
509 B
Go
20 lines
509 B
Go
|
|
package persistence
|
||
|
|
|
||
|
|
import (
|
||
|
|
"mayfly-go/internal/sys/domain/entity"
|
||
|
|
"mayfly-go/internal/sys/domain/repository"
|
||
|
|
"mayfly-go/pkg/model"
|
||
|
|
)
|
||
|
|
|
||
|
|
type syslogRepo struct{}
|
||
|
|
|
||
|
|
var SyslogDao repository.Syslog = &syslogRepo{}
|
||
|
|
|
||
|
|
func (m *syslogRepo) GetPageList(condition *entity.Syslog, pageParam *model.PageParam, toEntity interface{}, orderBy ...string) *model.PageResult {
|
||
|
|
return model.GetPage(pageParam, condition, toEntity, orderBy...)
|
||
|
|
}
|
||
|
|
|
||
|
|
func (m *syslogRepo) Insert(syslog *entity.Syslog) {
|
||
|
|
model.Insert(syslog)
|
||
|
|
}
|