Files
go-kata/01-context-cancellation-concurrency/01-concurrent-aggregator/order/order.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)
}