org_team_player.go 2.04 KB
Newer Older
haoyanbin's avatar
1  
haoyanbin committed
1 2 3 4 5 6 7 8
package dto

import (
	"go-admin/common/dto"
)

type OrgTeamPlayerGetPageReq struct {
	dto.Pagination `search:"-"`
haoyanbin's avatar
1  
haoyanbin committed
9
	TeamId         string `form:"reamId"  search:"-"`                                                              //联赛级别id
haoyanbin's avatar
1  
haoyanbin committed
10 11 12 13 14 15 16 17 18 19 20
	LeagueId       string `form:"leagueId"  search:"type:exact;column:league_id;table:om" comment:"联赛级别id"`        //联赛级别id
	DivisionId     string `form:"divisionId"  search:"type:exact;column:division_id;table:om" comment:"赛区id"`      //赛区id
	SeasonId       string `form:"seasonId"  search:"type:exact;column:season_id;table:om" comment:"赛季id"`          //赛季id
	Rounds         string `form:"rounds"  search:"type:exact;column:rounds;table:omtp" comment:"轮次"`               //轮次
	PlayerName     string `form:"playerName"  search:"type:contains;column:player_name;table:omtp" comment:"球员名称"` //球员名称
}

type OrgTeamPlayerGetPageReply struct {
	Id           string `json:"id"`
	Rank         string `json:"rank"`
	LeagueName   string `json:"leagueName"`
haoyanbin's avatar
1  
haoyanbin committed
21
	SeasonId     string `json:"seasonId"`
haoyanbin's avatar
1  
haoyanbin committed
22 23
	SeasonName   string `json:"seasonName"`
	Rounds       string `json:"rounds"`
haoyanbin's avatar
1  
haoyanbin committed
24
	PlayerId     string `json:"playerId"`
haoyanbin's avatar
1  
haoyanbin committed
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
	PlayerName   string `json:"playerName"`
	PlayerNumber string `json:"playerNumber" comment:"球衣号码"`
	Position     string `json:"position" comment:"场上位置"`
	dto.TotalScoring
}

type GetPageMatchTeamPlayerReq struct {
	Id string `form:"id" json:"id"`
}
type GetPageMatchTeamPlayerReply struct {
	MatchInfo     dto.PageMatchInfo   `json:"matchInfo"`
	TotalScoring  []dto.TotalScoring  `json:"totalScoring"`
	RoundsScoring []dto.RoundsScoring `json:"roundsScoring"`
}

func (m *OrgTeamPlayerGetPageReq) GetNeedSearch() interface{} {
	return *m
}

// OrgMatchEvaluateGetReq 功能获取请求参数
type OrgTeamPlayerGetReq struct {
	Id int `uri:"id"`
}

type OrgTeamPlayerGetReply struct {
	MatchInfo     dto.PageMatchInfo   `json:"matchInfo"`
	RoundsScoring []dto.RoundsScoring `json:"roundsScoring"`
}

func (s *OrgTeamPlayerGetReq) GetId() interface{} {
	return s.Id
}