1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
package dto
import (
"go-admin/app/operate/models"
"go-admin/common/dto"
common "go-admin/common/models"
"time"
)
type OrgMatchEvaluateGetPageReq struct {
dto.Pagination `search:"-"`
TeamId string `form:"teamId" search:"-"` //联赛级别id
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:"球员名称"` //球员名称
ContentStatus string `form:"contentStatus" search:"type:exact;column:content_status;table:ome" comment:"教练评价状态 1 待评价 2 评价完成"` //教练评价状态 1 待评价 2 评价完成
MvStatus string `form:"mvStatus" search:"type:exact;column:mv_status;table:ome" comment:"视频维护状态 1 待维护 2 维护完成 3 驳回 4 维护完成"` //视频维护状态 1 待维护 2 维护完成 3 驳回 4 维护完成
Status string `form:"status" search:"type:exact;column:status;table:ome" comment:"发布状态 0 保存 1 待审核 3 驳回 4 发布完成"` //发布状态 0 保存 1 待审核 3 驳回 4 发布完成
}
type OrgMatchEvaluateGetPageReply struct {
Id string `json:"id"`
LeagueName string `json:"leagueName"`
DivisionName string `json:"divisionName"`
SeasonName string `json:"seasonName"`
Rounds string `json:"rounds"`
PlayerName string `json:"playerName"`
MatchStartTime time.Time `json:"matchStartTimeOrder"`
MatchEndTime time.Time `json:"matchEndTimeOrder"`
ContentStatus string `json:"contentStatus"`
MvStatus string `json:"mvStatus"`
Status string `json:"status"`
}
type GetPageMatchReq struct {
Id int `form:"id" json:"id"`
}
type GetPageMatchReply struct {
MatchInfo dto.PageMatchInfo `json:"matchInfo"`
MatchImg []dto.Wonderful `json:"matchImg"`
MatchMv []dto.Wonderful `json:"matchMv"`
TotalScoring []dto.TotalScoring `json:"totalScoring"`
RoundsScoring []dto.RoundsScoring `json:"roundsScoring"`
}
func (m *OrgMatchEvaluateGetPageReq) GetNeedSearch() interface{} {
return *m
}
type OrgMatchEvaluateInsertReq struct {
Id int `json:"-" comment:""` //
MatchId string `json:"matchId" comment:""`
Rounds string `json:"rounds" comment:""`
TeamUserId string `json:"teamUserId" comment:"org_team_user表id(教练id)"`
PlayerId string `json:"playerId" comment:"org_player表id(球员id)"`
Content string `json:"content" comment:"教练评价内容"`
ContentStatus string `json:"contentStatus" comment:"教练评价状态 1 待评价 2 评价完成"`
WonderfulMomentImg string `json:"wonderfulMomentImg" comment:"精彩时刻图"`
WonderfulMomentMv string `json:"wonderfulMomentMv" comment:"精彩时刻视频"`
WonderfulMomentImgTitle string `json:"wonderfulMomentImgTitle" comment:"精彩时刻图标题"`
WonderfulMomentMvTitle string `json:"wonderfulMomentMvTitle" comment:"精彩时刻视频标题"`
MvStatus string `json:"mvStatus" comment:"视频维护状态 1 待维护 2 维护完成 3 驳回 4 维护完成"`
Status string `json:"status" comment:"发布状态 1 待审核 3 驳回 4 发布完成"`
Remark string `json:"remark" comment:"驳回原因"`
common.ControlBy
}
func (s *OrgMatchEvaluateInsertReq) Generate(model *models.OrgMatchEvaluate) {
if s.Id == 0 {
model.Model = common.Model{Id: s.Id}
}
model.MatchId = s.MatchId
model.Rounds = s.Rounds
model.TeamUserId = s.TeamUserId
model.PlayerId = s.PlayerId
model.Content = s.Content
model.WonderfulMomentImg = s.WonderfulMomentImg
model.WonderfulMomentMv = s.WonderfulMomentMv
model.WonderfulMomentImgTitle = s.WonderfulMomentImgTitle
model.WonderfulMomentMvTitle = s.WonderfulMomentMvTitle
model.MvStatus = s.MvStatus
model.Status = s.Status
model.Remark = s.Remark
}
func (s *OrgMatchEvaluateInsertReq) GetId() interface{} {
return s.Id
}
type OrgMatchEvaluateUpdateReq struct {
Id int `uri:"id" comment:""` //
MatchId string `json:"matchId" comment:""`
Rounds string `json:"rounds" comment:""`
TeamUserId string `json:"teamUserId" comment:"org_team_user表id(教练id)"`
PlayerId string `json:"playerId" comment:"org_player表id(球员id)"`
Content string `json:"content" comment:"教练评价内容"`
ContentStatus string `json:"contentStatus" comment:"教练评价状态 1 待评价 2 评价完成"`
MvStatus string `json:"mvStatus" comment:"视频维护状态 1 待维护 2 维护完成 3 驳回 4 维护完成"`
Status string `json:"status" comment:"发布状态 1 待审核 3 驳回 4 发布完成"`
Remark string `json:"remark" comment:"驳回原因"`
common.ControlBy
MatchImg []dto.Wonderful `json:"matchImg"`
MatchMv []dto.Wonderful `json:"matchMv"`
}
func (s *OrgMatchEvaluateUpdateReq) Generate(model *models.OrgMatchEvaluate) {
if s.Id == 0 {
model.Model = common.Model{Id: s.Id}
}
model.MatchId = s.MatchId
model.Rounds = s.Rounds
model.TeamUserId = s.TeamUserId
model.PlayerId = s.PlayerId
model.Content = s.Content
model.ContentStatus = s.ContentStatus
model.MvStatus = s.MvStatus
model.Status = s.Status
model.Remark = s.Remark
}
func (s *OrgMatchEvaluateUpdateReq) GetId() interface{} {
return s.Id
}
// OrgMatchEvaluateGetReq 功能获取请求参数
type OrgMatchEvaluateGetReq struct {
Id int `uri:"id"`
}
type OrgMatchEvaluateGetReply struct {
MatchInfo dto.PageMatchInfo `json:"matchInfo"`
RoundsScoring []dto.RoundsScoring `json:"roundsScoring"`
}
func (s *OrgMatchEvaluateGetReq) GetId() interface{} {
return s.Id
}
// OrgMatchEvaluateDeleteReq 功能删除请求参数
type OrgMatchEvaluateDeleteReq struct {
Ids []int `json:"ids"`
}
func (s *OrgMatchEvaluateDeleteReq) GetId() interface{} {
return s.Ids
}