instrument usecases & repository methods
This commit is contained in:
parent
39b89fc404
commit
16d38bb3cf
7 changed files with 100 additions and 13 deletions
|
|
@ -10,4 +10,7 @@ type Storage interface {
|
|||
SaveUser(ctx context.Context, user *entities.User) (entities.UserID, error)
|
||||
UserByID(ctx context.Context, id entities.UserID) (*entities.User, error)
|
||||
UserByTelegramID(ctx context.Context, tgID entities.TelegramID) (*entities.User, error)
|
||||
|
||||
InstrumentList(ctx context.Context, offset, limit int) ([]entities.Instrument, error)
|
||||
CreateInstrument(ctx context.Context, instrument *entities.Instrument) (entities.InstrumentID, error)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue