Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Order ¶
type Order struct { ID string `bson:"_id"` Code string `bson:"code"` Description string `bson:"description"` Name string `bson:"name"` }
Order order model for storage
type Repository ¶
type Repository interface { Create(context.Context, Order) (*uuid.UUID, error) Read(context.Context, uuid.UUID) (*Order, error) Exist(context.Context, uuid.UUID) (*bool, error) Update(context.Context, Order) error Delete(context.Context, uuid.UUID) error List(context.Context, []uuid.UUID) (Orders, error) }
Repository Repository interface
Click to show internal directories.
Click to hide internal directories.