Files

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)
}