16 lines
550 B
Go
16 lines
550 B
Go
|
|
package domain
|
||
|
|
|
||
|
|
import "context"
|
||
|
|
|
||
|
|
type Repository interface {
|
||
|
|
InsertEvent(ctx context.Context, e *Event) error
|
||
|
|
ListEvents(ctx context.Context, uid int64, monthKey, keyMode string, limit int) ([]*Event, error)
|
||
|
|
ListEventsAll(ctx context.Context, monthKey string, limit int) ([]*Event, error)
|
||
|
|
|
||
|
|
GetPrefs(ctx context.Context, uid int64) (*MemberPrefs, error)
|
||
|
|
SavePrefs(ctx context.Context, p *MemberPrefs) error
|
||
|
|
|
||
|
|
InsertPurchase(ctx context.Context, p *Purchase) error
|
||
|
|
ListPurchases(ctx context.Context, uid int64, limit int) ([]*Purchase, error)
|
||
|
|
}
|