mirror of
https://github.com/MedUnes/go-kata.git
synced 2026-03-12 21:55:53 +07:00
14 lines
233 B
Go
14 lines
233 B
Go
package order
|
|
|
|
import "context"
|
|
|
|
type Order struct {
|
|
Id int `json:"id"`
|
|
UserId int `json:"user_id"`
|
|
Cost float64 `json:"cost"`
|
|
}
|
|
|
|
type Service interface {
|
|
GetAll(ctx context.Context, userId int) ([]*Order, error)
|
|
}
|