Documentation ¶
Index ¶
Constants ¶
View Source
const TableName = "basket"
Variables ¶
View Source
var IDColumn = []string{"id"}
View Source
var InsertColumns = []string{"user_id"}
View Source
var SelectColumns = []string{"id", "user_id", "created", "updated"}
Functions ¶
This section is empty.
Types ¶
type Repo ¶
type Repo interface { Add(ctx context.Context, basket *model.Basket) (uint64, error) Update(ctx context.Context, basket *model.Basket) (bool, error) Get(ctx context.Context, basketID uint64) (*model.Basket, error) List(ctx context.Context, limit uint64, offset uint64) (model.Baskets, error) Remove(ctx context.Context, basketID uint64) (bool, error) }
Repo is the interface that wraps the basic methods of the database.
Click to show internal directories.
Click to hide internal directories.