• haoyanbin's avatar
    1 · c65e78f1
    haoyanbin authored
    c65e78f1
org_club_team.go 2.22 KB
package dto

import (
	"go-admin/app/operate/models"
	"go-admin/common/dto"
)

type OrgClubTeamGetPageReq struct {
	dto.Pagination `search:"-"`
	TeamId         string `form:"teamId"  search:"type:exact;column:team_id;table:ot" comment:""`
	LeagueId       string `form:"leagueId"  search:"type:exact;column:league_id;table:om" comment:""`
	DivisionId     string `form:"divisionId"  search:"type:exact;column:division_id;table:om" comment:""`
	SeasonId       string `form:"seasonId"  search:"type:exact;column:season_id;table:om" comment:""`
	Rounds         string `form:"rounds"  search:"type:exact;column:rounds;table:om" comment:""`
}

type OrgClubTeamGetPageReply struct {
	Id           string `json:"id"`
	TeamId       string `json:"teamId"`
	Rank         string `json:"rank"`
	LeagueName   string `json:"leagueName"`
	DivisionName string `json:"divisionName"`
	SeasonName   string `json:"seasonName"`
	Rounds       string `json:"rounds"`
	dto.TotalScoring
}

type OrgClubTeamGetInfoReq struct {
}

type OrgClubTeamGetInfoReply struct {
	OrgMatch        models.OrgMatch      `form:"orgMatch"`
	OrgLeagueList   []models.OrgLeague   `form:"orgLeagueList"`
	OrgSeasonList   []models.OrgSeason   `form:"orgSeasonList"`
	OrgDivisionList []models.OrgDivision `form:"orgDivisionList"`
	OrgTeamList     []models.OrgTeam     `form:"orgTeamList"`
}

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

// OrgMatchGetReq 功能获取请求参数
type OrgClubTeamGetReq struct {
	TeamId int `form:"teamId" json:"teamId"`
	Rounds int `form:"rounds" json:"rounds"`
}
type OrgClubTeamGetReply struct {
	OrgMatch            models.OrgMatch             `form:"orgMatch" json:"orgMatch"`
	OrgMatchTeamAPlayer []models.OrgMatchTeamPlayer `form:"orgMatchTeamAPlayer" json:"orgMatchTeamAPlayer"`
	OrgMatchTeamBPlayer []models.OrgMatchTeamPlayer `form:"orgMatchTeamBPlayer" json:"orgMatchTeamBPlayer"`
}

func (s *OrgClubTeamGetReq) GetId() interface{} {
	return s.TeamId
}

type GetPageMatchClubTeamReq struct {
	TeamId int `form:"teamId" json:"teamId"`
}
type GetPageMatchClubTeamReply struct {
	MatchInfo     dto.PageMatchInfo   `json:"matchInfo"`
	TotalScoring  []dto.TotalScoring  `json:"totalScoring"`
	RoundsScoring []dto.RoundsScoring `json:"roundsScoring"`
}