models

package
v0.0.0-...-b618969 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2016 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {

	/* error code
	 */
	Code int32 `json:"code,omitempty"`

	/* error message description
	 */
	Message string `json:"message,omitempty"`
}

Error error

swagger:model Error

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

type Game

type Game struct {

	/* gamer1
	 */
	Gamer1 *Gamer `json:"gamer1,omitempty"`

	/* gamer2
	 */
	Gamer2 *Gamer `json:"gamer2,omitempty"`

	/* 联赛赛季uuid
	 */
	Suuid string `json:"suuid,omitempty"`

	/* 比赛开始时间
	 */
	Timestamp int64 `json:"timestamp,omitempty"`

	/* 比赛标识id
	 */
	UUID string `json:"uuid,omitempty"`
}

Game game

swagger:model Game

func (*Game) Validate

func (m *Game) Validate(formats strfmt.Registry) error

Validate validates this game

type Gamer

type Gamer struct {


	Logo string `json:"logo,omitempty"`

	/* 对阵人名称, 如 热火、骑士、勇士
	 */
	Name string `json:"name,omitempty"`

	/* 对阵人id
	 */
	UUID string `json:"uuid,omitempty"`
}

Gamer gamer

swagger:model Gamer

func (*Gamer) Validate

func (m *Gamer) Validate(formats strfmt.Registry) error

Validate validates this gamer

type League

type League struct {

	/* League desc
	 */
	Desc string `json:"desc,omitempty"`


	Logo string `json:"logo,omitempty"`

	/* League name, such as NBA, 西甲, 英超
	 */
	Name string `json:"name,omitempty"`

	/* identity of League
	 */
	UUID string `json:"uuid,omitempty"`
}

League league

swagger:model League

func (*League) Validate

func (m *League) Validate(formats strfmt.Registry) error

Validate validates this league

type Season

type Season struct {

	/* 赛季属于哪个联赛, 此处为联赛uuid
	 */
	Luuid string `json:"luuid,omitempty"`

	/* 赛季名称,如 2016NBA季前赛
	 */
	Name string `json:"name,omitempty"`

	/* 赛季标识
	 */
	UUID string `json:"uuid,omitempty"`
}

Season season

swagger:model Season

func (*Season) Validate

func (m *Season) Validate(formats strfmt.Registry) error

Validate validates this season

Jump to

Keyboard shortcuts

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