mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-12-26 01:16:36 +08:00
refactor: 消息模块重构,infra包路径简写等
This commit is contained in:
26
server/internal/flow/infra/persistence/procdef.go
Normal file
26
server/internal/flow/infra/persistence/procdef.go
Normal file
@@ -0,0 +1,26 @@
|
||||
package persistence
|
||||
|
||||
import (
|
||||
"mayfly-go/internal/flow/domain/entity"
|
||||
"mayfly-go/internal/flow/domain/repository"
|
||||
"mayfly-go/pkg/base"
|
||||
"mayfly-go/pkg/gormx"
|
||||
"mayfly-go/pkg/model"
|
||||
)
|
||||
|
||||
type procdefImpl struct {
|
||||
base.RepoImpl[*entity.Procdef]
|
||||
}
|
||||
|
||||
func newProcdefRepo() repository.Procdef {
|
||||
return &procdefImpl{}
|
||||
}
|
||||
|
||||
func (p *procdefImpl) GetPageList(condition *entity.Procdef, pageParam model.PageParam, orderBy ...string) (*model.PageResult[*entity.ProcdefPagePO], error) {
|
||||
qd := model.NewCond().
|
||||
Like("name", condition.Name).
|
||||
Like("def_key", condition.DefKey)
|
||||
|
||||
var res []*entity.ProcdefPagePO
|
||||
return gormx.PageByCond(p.GetModel(), qd, pageParam, res)
|
||||
}
|
||||
Reference in New Issue
Block a user