rankings,trends: added implementation,services and tests

This commit is contained in:
gezimbll
2024-11-01 11:40:13 +01:00
committed by Dan Christian Bogos
parent 766a717b3c
commit 132a2b3bf9
40 changed files with 2223 additions and 402 deletions

View File

@@ -67,12 +67,15 @@ type DataDB interface {
SetRankingProfileDrv(ctx *context.Context, rp *RankingProfile) (err error)
GetRankingProfileDrv(ctx *context.Context, tenant string, id string) (sq *RankingProfile, err error)
RemRankingProfileDrv(ctx *context.Context, tenant string, id string) (err error)
SetRankingDrv(ctx *context.Context, rn *Ranking) (err error)
GetRankingDrv(ctx *context.Context, tenant string, id string) (sq *Ranking, err error)
RemoveRankingDrv(ctx *context.Context, tenant string, id string) (err error)
SetTrendProfileDrv(ctx *context.Context, sq *TrendProfile) (err error)
GetTrendProfileDrv(ctx *context.Context, tenant string, id string) (sq *TrendProfile, err error)
RemTrendProfileDrv(ctx *context.Context, tenant string, id string) (err error)
GetTrendDrv(string, string) (*Trend, error)
SetTrendDrv(*Trend) error
RemoveTrendDrv(string, string) error
GetTrendDrv(ctx *context.Context, tenant string, id string) (*Trend, error)
SetTrendDrv(ctx *context.Context, tr *Trend) error
RemoveTrendDrv(ctx *context.Context, tenant string, id string) error
GetFilterDrv(ctx *context.Context, tnt string, id string) (*Filter, error)
SetFilterDrv(ctx *context.Context, f *Filter) error
RemoveFilterDrv(ctx *context.Context, tnt string, id string) error