mirror of
https://github.com/MedUnes/go-kata.git
synced 2026-03-12 21:55:53 +07:00
feat(add solutions reference for challenge 01-concurrent-aggregator)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
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)
|
||||
}
|
||||
Reference in New Issue
Block a user