services

package
v0.0.0-...-bbd1840 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConverDateTime

func ConverDateTime(tz string, dt time.Time) string

func ConvertDateTime

func ConvertDateTime(tz string, dt time.Time) string

Types

type Player

type Player struct {
	gorm.Model
	Name     string `json:"name"`
	Email    string `json:"email"`
	Password string `json:"password"`
	Username string `json:"username"`
}

type ServicesPlayer

type ServicesPlayer struct {
	Player Player
	DB     *gorm.DB
}

func NewServicesPlayer

func NewServicesPlayer(p Player, db *gorm.DB) *ServicesPlayer

func (*ServicesPlayer) CheckEmail

func (sp *ServicesPlayer) CheckEmail(email string) (Player, error)

func (*ServicesPlayer) CreatePlayer

func (sp *ServicesPlayer) CreatePlayer(p Player) error

func (*ServicesPlayer) GetAllPlayers

func (sp *ServicesPlayer) GetAllPlayers() ([]*Player, error)

func (*ServicesPlayer) GetPlayerById

func (sp *ServicesPlayer) GetPlayerById(id int) (Player, error)

func (*ServicesPlayer) UpdatePlayer

func (sp *ServicesPlayer) UpdatePlayer(player Player) error

Jump to

Keyboard shortcuts

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