mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-04 00:10:25 +08:00
refactor: 组件升级、代码优化
This commit is contained in:
21
server/internal/sys/infrastructure/persistence/syslog.go
Normal file
21
server/internal/sys/infrastructure/persistence/syslog.go
Normal file
@@ -0,0 +1,21 @@
|
||||
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, condition, toEntity, orderBy...)
|
||||
}
|
||||
|
||||
func (m *syslogRepoImpl) Insert(syslog *entity.Syslog) {
|
||||
model.Insert(syslog)
|
||||
}
|
||||
Reference in New Issue
Block a user