Back to godoc.org

Package game

v0.0.0-...-c52fe67
Latest Go to latest

The latest major version is .

Published: Oct 5, 2020 | License: GPL3 | Module: github.com/qilin/crm-api

Index

type Handler

type Handler struct {
	Params
}

func New

func New(params Params) Handler

func (Handler) Create

func (h Handler) Create(c echo.Context) error

swagger:route POST /games games reqCreateGameWrapper

Create game object

This endpoint will create the game and return the game structure

Responses:
  200: Game
  400: HTTPError
  404: HTTPError
  500: HTTPError

func (Handler) GetByFilter

func (h Handler) GetByFilter(c echo.Context) error

swagger:route GET /games games reqGetByFilter

Getting a list of games by filter

This endpoint returns a list of extended game structures

Responses:
  200: GameExList
  500: HTTPError

func (Handler) GetByID

func (h Handler) GetByID(c echo.Context) error

swagger:route GET /games/{id} games reqGetByID

Getting a game by ID

This endpoint returns the extended structure of the game

Responses:
  200: GameEx
  400: HTTPError
  404: HTTPError
  500: HTTPError

func (Handler) Publish

func (h Handler) Publish(c echo.Context) error

swagger:route POST /games/{id}/publish games reqPublish

Publishing the game to the store

This endpoint will publish the game to the store and return the extended game structure

Responses:
  200: GameEx
  400: HTTPError
  404: HTTPError
  500: HTTPError

func (Handler) Update

func (h Handler) Update(c echo.Context) error

swagger:route PUT /games/{id} games reqUpdateGameWrapper

Update game object

This endpoint will update the game and return the extended game structure

Responses:
  200: GameEx
  400: HTTPError
  404: HTTPError
  500: HTTPError

type Params

type Params struct {
	fx.In

	GameService service.GameService
	View        View
}

type View

type View struct {
	ViewParams
}

func NewView

func NewView(p ViewParams) View

type ViewParams

type ViewParams struct {
	fx.In

	RegionCurrencyService service.RegionCurrencyService
	MediaService          service.MediaService
	URLBuilder            url_builder.Helper
	TagView               tag.View
	FeatureView           feature.View
	GenreView             genre.View
}

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier