package dto

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

type OrgClubPlayerGetPageReq struct {
	dto.Pagination `search:"-"`
	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 OrgClubPlayerGetPageReply struct {
	Id           string `json:"id"`
	Rank         string `json:"rank"`
	LeagueName   string `json:"leagueName"`
	SeasonName   string `json:"seasonName"`
	Rounds       string `json:"rounds"`
	PlayerName   string `json:"playerName"`
	PlayerNumber string `json:"playerNumber" comment:"球衣号码"`
	Position     string `json:"position" comment:"场上位置"`
	dto.TotalScoring
}

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

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

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

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

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