Commit b3491d06 authored by haoyanbin's avatar haoyanbin

Time

parent 1539b3c7
......@@ -76,23 +76,23 @@ func (m *OrgMatchGetPageReq) GetNeedSearch() interface{} {
}
type OrgMatchInsertReq struct {
Id int `json:"-" comment:""` //
LeagueId string `json:"leagueId" comment:""`
DivisionId string `json:"divisionId" comment:""`
SeasonId string `json:"seasonId" comment:""`
ClubId string `json:"clubId" comment:""`
TeamId string `json:"teamId" comment:""`
Status string `json:"status" comment:"比赛状态 1 未开始 2 比赛中 3 已结束"`
Rounds string `json:"rounds" comment:"轮次"`
Grouping string `json:"grouping" comment:"分组"`
MatchStartTime time.Time `json:"matchStartTime" comment:"比赛开始时间"`
MatchEndTime time.Time `json:"matchEndTime" comment:"比赛结束时间"`
TeamAId string `json:"teamAId" comment:"a队id"`
TeamBId string `json:"teamBId" comment:"b队id"`
TeamAScore string `json:"teamAScore" comment:"a队比分"`
TeamBScore string `json:"teamBScore" comment:"b队比分"`
TeamAIntegral string `json:"teamAIntegral" comment:"a队积分"`
TeamBIntegral string `json:"teamBIntegral" comment:"a队积分"`
Id int `json:"-" comment:""` //
LeagueId string `json:"leagueId" comment:""`
DivisionId string `json:"divisionId" comment:""`
SeasonId string `json:"seasonId" comment:""`
ClubId string `json:"clubId" comment:""`
TeamId string `json:"teamId" comment:""`
Status string `json:"status" comment:"比赛状态 1 未开始 2 比赛中 3 已结束"`
Rounds string `json:"rounds" comment:"轮次"`
Grouping string `json:"grouping" comment:"分组"`
MatchStartTime string `json:"matchStartTime" comment:"比赛开始时间"`
MatchEndTime string `json:"matchEndTime" comment:"比赛结束时间"`
TeamAId string `json:"teamAId" comment:"a队id"`
TeamBId string `json:"teamBId" comment:"b队id"`
TeamAScore string `json:"teamAScore" comment:"a队比分"`
TeamBScore string `json:"teamBScore" comment:"b队比分"`
TeamAIntegral string `json:"teamAIntegral" comment:"a队积分"`
TeamBIntegral string `json:"teamBIntegral" comment:"a队积分"`
common.ControlBy
}
......@@ -100,6 +100,7 @@ func (s *OrgMatchInsertReq) Generate(model *models.OrgMatch) {
if s.Id == 0 {
model.Model = common.Model{Id: s.Id}
}
model.LeagueId = s.LeagueId
model.DivisionId = s.DivisionId
model.SeasonId = s.SeasonId
......@@ -108,8 +109,8 @@ func (s *OrgMatchInsertReq) Generate(model *models.OrgMatch) {
model.Status = s.Status
model.Rounds = s.Rounds
model.Grouping = s.Grouping
model.MatchStartTime = s.MatchStartTime
model.MatchEndTime = s.MatchEndTime
model.MatchStartTime, _ = time.Parse("2006-01-02 15:04:05", s.MatchStartTime)
model.MatchEndTime, _ = time.Parse("2006-01-02 15:04:05", s.MatchEndTime)
model.TeamAId = s.TeamAId
model.TeamBId = s.TeamBId
model.TeamAScore = s.TeamAScore
......@@ -123,23 +124,23 @@ func (s *OrgMatchInsertReq) GetId() interface{} {
}
type OrgMatchUpdateReq struct {
Id int `uri:"id" comment:""` //
LeagueId string `json:"leagueId" comment:""`
DivisionId string `json:"divisionId" comment:""`
SeasonId string `json:"seasonId" comment:""`
ClubId string `json:"clubId" comment:""`
TeamId string `json:"teamId" comment:""`
Status string `json:"status" comment:"比赛状态 1 未开始 2 比赛中 3 已结束"`
Rounds string `json:"rounds" comment:"轮次"`
Grouping string `json:"grouping" comment:"分组"`
MatchStartTime time.Time `json:"matchStartTime" comment:"比赛开始时间"`
MatchEndTime time.Time `json:"matchEndTime" comment:"比赛结束时间"`
TeamAId string `json:"teamAId" comment:"a队id"`
TeamBId string `json:"teamBId" comment:"b队id"`
TeamAScore string `json:"teamAScore" comment:"a队比分"`
TeamBScore string `json:"teamBScore" comment:"b队比分"`
TeamAIntegral string `json:"teamAIntegral" comment:"a队积分"`
TeamBIntegral string `json:"teamBIntegral" comment:"a队积分"`
Id int `uri:"id" comment:""` //
LeagueId string `json:"leagueId" comment:""`
DivisionId string `json:"divisionId" comment:""`
SeasonId string `json:"seasonId" comment:""`
ClubId string `json:"clubId" comment:""`
TeamId string `json:"teamId" comment:""`
Status string `json:"status" comment:"比赛状态 1 未开始 2 比赛中 3 已结束"`
Rounds string `json:"rounds" comment:"轮次"`
Grouping string `json:"grouping" comment:"分组"`
MatchStartTime string `json:"matchStartTime" comment:"比赛开始时间"`
MatchEndTime string `json:"matchEndTime" comment:"比赛结束时间"`
TeamAId string `json:"teamAId" comment:"a队id"`
TeamBId string `json:"teamBId" comment:"b队id"`
TeamAScore string `json:"teamAScore" comment:"a队比分"`
TeamBScore string `json:"teamBScore" comment:"b队比分"`
TeamAIntegral string `json:"teamAIntegral" comment:"a队积分"`
TeamBIntegral string `json:"teamBIntegral" comment:"a队积分"`
common.ControlBy
}
......@@ -155,8 +156,8 @@ func (s *OrgMatchUpdateReq) Generate(model *models.OrgMatch) {
model.Status = s.Status
model.Rounds = s.Rounds
model.Grouping = s.Grouping
model.MatchStartTime = s.MatchStartTime
model.MatchEndTime = s.MatchEndTime
model.MatchStartTime, _ = time.Parse("2006-01-02 15:04:05", s.MatchStartTime)
model.MatchEndTime, _ = time.Parse("2006-01-02 15:04:05", s.MatchEndTime)
model.TeamAId = s.TeamAId
model.TeamBId = s.TeamBId
model.TeamAScore = s.TeamAScore
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment