Skip to content

Instantly share code, notes, and snippets.

@bykof
Created February 18, 2020 09:54
Show Gist options
  • Save bykof/c4c4b3bcfef72b9b325f1e15bb6d3364 to your computer and use it in GitHub Desktop.
Save bykof/c4c4b3bcfef72b9b325f1e15bb6d3364 to your computer and use it in GitHub Desktop.
package infrastructure
import (
"dashboard/order/domain/entity"
)
type FakeOrderService struct{}
func (fakeOrderService FakeOrderService) GetOrder(id string) (entity.Order, error) {
return entity.Order{
ID: id,
UserID: "1234",
Sum: 12.4,
}, nil
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment