2024-02-29 22:12:50 +08:00
|
|
|
package persistence
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"mayfly-go/internal/flow/domain/entity"
|
|
|
|
|
"mayfly-go/internal/flow/domain/repository"
|
|
|
|
|
"mayfly-go/pkg/base"
|
|
|
|
|
"mayfly-go/pkg/model"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type procinstImpl struct {
|
|
|
|
|
base.RepoImpl[*entity.Procinst]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func newProcinstRepo() repository.Procinst {
|
2024-12-08 13:04:23 +08:00
|
|
|
return &procinstImpl{}
|
2024-02-29 22:12:50 +08:00
|
|
|
}
|
|
|
|
|
|
2025-05-20 21:04:47 +08:00
|
|
|
func (p *procinstImpl) GetPageList(condition *entity.ProcinstQuery, orderBy ...string) (*model.PageResult[*entity.Procinst], error) {
|
2024-04-28 23:45:57 +08:00
|
|
|
qd := model.NewModelCond(condition)
|
2025-05-20 21:04:47 +08:00
|
|
|
return p.PageByCond(qd, condition.PageParam)
|
2024-02-29 22:12:50 +08:00
|
|
|
}
|