refactor: 代码结构调整

This commit is contained in:
meilin.huang
2022-09-09 18:26:08 +08:00
parent fb3f89c594
commit be00b90c1d
120 changed files with 944 additions and 561 deletions

View File

@@ -3,7 +3,6 @@ package application
import (
"mayfly-go/internal/sys/domain/entity"
"mayfly-go/internal/sys/domain/repository"
"mayfly-go/internal/sys/infrastructure/persistence"
"mayfly-go/pkg/model"
"mayfly-go/pkg/ws"
"time"
@@ -18,12 +17,14 @@ type Msg interface {
CreateAndSend(la *model.LoginAccount, msg *ws.Msg)
}
type msgAppImpl struct {
msgRepo repository.Msg
func newMsgApp(msgRepo repository.Msg) Msg {
return &msgAppImpl{
msgRepo: msgRepo,
}
}
var MsgApp Msg = &msgAppImpl{
msgRepo: persistence.MsgDao,
type msgAppImpl struct {
msgRepo repository.Msg
}
func (a *msgAppImpl) GetPageList(condition *entity.Msg, pageParam *model.PageParam, toEntity interface{}, orderBy ...string) *model.PageResult {