mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-12-25 09:06:34 +08:00
refactor: 后端包结构重构、去除无用的文件
This commit is contained in:
20
server/internal/sys/infrastructure/persistence/msg_repo.go
Normal file
20
server/internal/sys/infrastructure/persistence/msg_repo.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package persistence
|
||||
|
||||
import (
|
||||
"mayfly-go/internal/sys/domain/entity"
|
||||
"mayfly-go/internal/sys/domain/repository"
|
||||
"mayfly-go/pkg/biz"
|
||||
"mayfly-go/pkg/model"
|
||||
)
|
||||
|
||||
type msgRepo struct{}
|
||||
|
||||
var MsgDao repository.Msg = &msgRepo{}
|
||||
|
||||
func (m *msgRepo) GetPageList(condition *entity.Msg, pageParam *model.PageParam, toEntity interface{}, orderBy ...string) *model.PageResult {
|
||||
return model.GetPage(pageParam, condition, toEntity)
|
||||
}
|
||||
|
||||
func (m *msgRepo) Insert(account *entity.Msg) {
|
||||
biz.ErrIsNil(model.Insert(account), "新增消息记录失败")
|
||||
}
|
||||
Reference in New Issue
Block a user