mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-12-16 12:46:35 +08:00
首页、个人中心内容调整
This commit is contained in:
20
server/sys/infrastructure/persistence/msg_repo.go
Normal file
20
server/sys/infrastructure/persistence/msg_repo.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package persistence
|
||||
|
||||
import (
|
||||
"mayfly-go/base/biz"
|
||||
"mayfly-go/base/model"
|
||||
"mayfly-go/server/sys/domain/entity"
|
||||
"mayfly-go/server/sys/domain/repository"
|
||||
)
|
||||
|
||||
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