Files
mayfly-go/server/internal/mongo/domain/repository/mongo.go

17 lines
370 B
Go
Raw Normal View History

2022-05-17 20:23:08 +08:00
package repository
import (
2022-09-09 18:26:08 +08:00
"mayfly-go/internal/mongo/domain/entity"
"mayfly-go/pkg/base"
"mayfly-go/pkg/model"
2022-05-17 20:23:08 +08:00
)
type Mongo interface {
base.Repo[*entity.Mongo]
2022-05-17 20:23:08 +08:00
// 分页获取列表
GetList(condition *entity.MongoQuery, pageParam *model.PageParam, toEntity any, orderBy ...string) (*model.PageResult[any], error)
2022-05-17 20:23:08 +08:00
2022-10-26 20:49:29 +08:00
Count(condition *entity.MongoQuery) int64
2022-05-17 20:23:08 +08:00
}