openreplay/backend/pkg/conditions/conditions.go
2024-01-26 14:25:44 +01:00

19 lines
380 B
Go

package conditions
import (
"openreplay/backend/pkg/db/postgres/pool"
)
type Conditions interface {
GetRate(projectID uint32, condition string, def int) (int, error)
}
type conditionsImpl struct{}
func (c *conditionsImpl) GetRate(projectID uint32, condition string, def int) (int, error) {
return def, nil
}
func New(db pool.Pool) Conditions {
return &conditionsImpl{}
}