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

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

type OrgTeamTeamGetPageReq struct {
	dto.Pagination `search:"-"`
haoyanbin's avatar
haoyanbin committed
10
	TeamId         string `form:"teamId"  search:"type:exact;column:team_id;table:omtp" comment:""`
haoyanbin's avatar
1  
haoyanbin committed
11 12 13
	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:""`
haoyanbin's avatar
haoyanbin committed
14
	Rounds         string `form:"rounds"  search:"type:exact;column:rounds;table:omtp" comment:""`
haoyanbin's avatar
1  
haoyanbin committed
15 16 17 18 19 20 21
}

type OrgTeamTeamGetPageReply struct {
	TeamId       string `json:"teamId"`
	Rank         string `json:"rank"`
	LeagueName   string `json:"leagueName"`
	DivisionName string `json:"divisionName"`
haoyanbin's avatar
1  
haoyanbin committed
22
	SeasonId     string `json:"seasonId"`
haoyanbin's avatar
1  
haoyanbin committed
23 24 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 57 58
	SeasonName   string `json:"seasonName"`
	Rounds       string `json:"rounds"`
	dto.TotalScoring
}

type OrgTeamTeamGetInfoReq struct {
}

type OrgTeamTeamGetInfoReply 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 *OrgTeamTeamGetPageReq) GetNeedSearch() interface{} {
	return *m
}

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

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

type GetPageMatchTeamTeamReq struct {
haoyanbin's avatar
1  
haoyanbin committed
59
	TeamId int `form:"id" json:"id"`
haoyanbin's avatar
1  
haoyanbin committed
60 61 62 63 64 65
}
type GetPageMatchTeamTeamReply struct {
	MatchInfo     dto.PageMatchInfo   `json:"matchInfo"`
	TotalScoring  []dto.TotalScoring  `json:"totalScoring"`
	RoundsScoring []dto.RoundsScoring `json:"roundsScoring"`
}