order

package
v0.0.0-...-3778cc8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 4, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetReq

type GetReq struct {
	ID string `json:"id"`
}

type GetResp

type GetResp struct {
	ID        string     `json:"id"`
	CreatedAt time.Time  `json:"created_at"`
	UpdatedAt *time.Time `json:"updated_at"`
	UserID    string     `json:"user_id"`
	Payload   string     `json:"payload"`
}

type Repo

type Repo interface {
	GetOrderByID(ctx context.Context, id string) (*model.Order, error)
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(
	repo Repo,
) *Service

func (*Service) Get

func (s *Service) Get(ctx context.Context, req *GetReq) (*GetResp, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL