2021-07-28 18:03:19 +08:00
|
|
|
package repository
|
|
|
|
|
|
|
|
|
|
import (
|
2022-09-09 18:26:08 +08:00
|
|
|
"mayfly-go/internal/redis/domain/entity"
|
2022-06-02 17:41:11 +08:00
|
|
|
"mayfly-go/pkg/model"
|
2021-07-28 18:03:19 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
type Redis interface {
|
|
|
|
|
// 分页获取机器信息列表
|
|
|
|
|
GetRedisList(condition *entity.Redis, pageParam *model.PageParam, toEntity interface{}, orderBy ...string) *model.PageResult
|
|
|
|
|
|
2021-09-11 14:04:09 +08:00
|
|
|
Count(condition *entity.Redis) int64
|
|
|
|
|
|
2021-07-28 18:03:19 +08:00
|
|
|
// 根据id获取
|
|
|
|
|
GetById(id uint64, cols ...string) *entity.Redis
|
|
|
|
|
|
|
|
|
|
GetRedis(condition *entity.Redis, cols ...string) error
|
|
|
|
|
|
|
|
|
|
Insert(redis *entity.Redis)
|
|
|
|
|
|
|
|
|
|
Update(redis *entity.Redis)
|
|
|
|
|
|
|
|
|
|
Delete(id uint64)
|
|
|
|
|
}
|