player

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePlayer

func CreatePlayer(svc *svc.Context) gin.HandlerFunc

func CreatePlayerImages

func CreatePlayerImages(svc *svc.Context) gin.HandlerFunc

func DeletePlayer

func DeletePlayer(svc *svc.Context) gin.HandlerFunc

func GetPlayer

func GetPlayer(svc *svc.Context) gin.HandlerFunc

func GetPlayerImages

func GetPlayerImages(svc *svc.Context) gin.HandlerFunc

func GetPlayers

func GetPlayers(svc *svc.Context) gin.HandlerFunc

func UpdatePlayer

func UpdatePlayer(svc *svc.Context) gin.HandlerFunc

Types

type CommonRequest

type CommonRequest struct {
	Id uint `uri:"player_id"`
}

type Images

type Images struct {
	gorm.Model
	PlayerID   uint   `json:"PlayerID"  gorm:"unique;not null;column:player_id"`
	Avatar     string `json:"Avatar"`
	Background string `json:"Background"`
}

func (Images) TableName

func (Images) TableName() string

type PlayersResponse

type PlayersResponse struct {
	Size    int64          `json:"Size"`
	Count   int64          `json:"Count"`
	Players []model.Player `json:"Players"`
}

Jump to

Keyboard shortcuts

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