org_match_team_player.go 1.82 KB
Newer Older
haoyanbin's avatar
1  
haoyanbin committed
1 2 3
package models

import (
haoyanbin's avatar
haoyanbin committed
4
	// "gorm.io/gorm"
haoyanbin's avatar
1  
haoyanbin committed
5 6 7 8 9

	"go-admin/common/models"
)

type OrgMatchTeamPlayer struct {
haoyanbin's avatar
haoyanbin committed
10 11
	models.Model
	MatchId        string `json:"matchId" gorm:"type:bigint(20);comment:MatchId"`
haoyanbin's avatar
haoyanbin committed
12
	Rounds         string `json:"rounds" gorm:"type:bigint(20);comment:轮次"`
haoyanbin's avatar
haoyanbin committed
13 14
	ClubId         string `json:"clubId" gorm:"type:bigint(20);comment:ClubId"`
	TeamId         string `json:"teamId" gorm:"type:bigint(20);comment:TeamId"`
haoyanbin's avatar
haoyanbin committed
15
	OtherTeamId    string `json:"otherTeamId" gorm:"type:bigint(20);comment:OtherTeamId"`
haoyanbin's avatar
haoyanbin committed
16
	PlayerId       string `json:"playerId" gorm:"type:bigint(20);comment:PlayerId"`
haoyanbin's avatar
haoyanbin committed
17 18 19 20 21 22 23 24 25 26 27 28 29 30
	PlayerName     string `json:"playerName" gorm:"type:varchar(60);comment:球员名称"`
	PlayerNumber   string `json:"playerNumber" gorm:"type:varchar(60);comment:球员号码"`
	Position       string `json:"position" gorm:"type:varchar(60);comment:场上位置"`
	Scoring        string `json:"scoring" gorm:"type:bigint(20);comment:得分"`
	Rebound        string `json:"rebound" gorm:"type:bigint(20);comment:篮板"`
	Assist         string `json:"assist" gorm:"type:bigint(20);comment:助攻"`
	Steal          string `json:"steal" gorm:"type:bigint(20);comment:抢断"`
	FreeThrow      string `json:"freeThrow" gorm:"type:bigint(20);comment:罚球"`
	BlockShot      string `json:"blockShot" gorm:"type:bigint(20);comment:盖帽"`
	Foul           string `json:"foul" gorm:"type:bigint(20);comment:犯规"`
	TwoPointShot   string `json:"twoPointShot" gorm:"type:bigint(20);comment:2分进球数量"`
	ThreePointShot string `json:"threePointShot" gorm:"type:bigint(20);comment:3分进球数量"`
	models.ModelTime
	models.ControlBy
haoyanbin's avatar
1  
haoyanbin committed
31 32 33
}

func (OrgMatchTeamPlayer) TableName() string {
haoyanbin's avatar
haoyanbin committed
34
	return "org_match_team_player"
haoyanbin's avatar
1  
haoyanbin committed
35 36 37 38 39 40 41 42 43
}

func (e *OrgMatchTeamPlayer) Generate() models.ActiveRecord {
	o := *e
	return &o
}

func (e *OrgMatchTeamPlayer) GetId() interface{} {
	return e.Id
haoyanbin's avatar
haoyanbin committed
44
}