team

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Team

type Team interface {
	RegisterTeam(ctx context.Context, dto *TeamRequest) (*TeamResponse, error)
	GetTeamByID(ctx context.Context, id string) (*TeamResponse, error)
	DeleteTeamByID(ctx context.Context, id string) error
}

type TeamRequest

type TeamRequest struct {
	Name     string `json:"name"`
	Universe string `json:"universe"`
}

type TeamResponse

type TeamResponse struct {
	ID        string     `json:"id"`
	Name      string     `json:"name"`
	Universe  string     `json:"universe"`
	CreatedAt time.Time  `json:"createdAt"`
	UpdatedAt *time.Time `json:"updatedAt"`
}

func NewTeamResponse

func NewTeamResponse(id, name, universe string,
	createdAt time.Time, updatedAt *time.Time) *TeamResponse

Jump to

Keyboard shortcuts

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