Commit e8a34b48 by lenx065@gmail.com

初始化

parent 3fe98b98
...@@ -222,6 +222,8 @@ public class MatchServiceImpl implements MatchService { ...@@ -222,6 +222,8 @@ public class MatchServiceImpl implements MatchService {
); );
GetMatchTypeInfoListResponse response = new GetMatchTypeInfoListResponse(); GetMatchTypeInfoListResponse response = new GetMatchTypeInfoListResponse();
response.setBasketball(new ArrayList<>());
response.setFootball(new ArrayList<>());
for (Sports s : sports) { for (Sports s : sports) {
GetMatchTypeInfoListResponse.MatchTypeInfoResponse matchTypeInfo = GetMatchTypeInfoListResponse.MatchTypeInfoResponse.builder() GetMatchTypeInfoListResponse.MatchTypeInfoResponse matchTypeInfo = GetMatchTypeInfoListResponse.MatchTypeInfoResponse.builder()
.icon(s.getCompetitionIcon()) .icon(s.getCompetitionIcon())
...@@ -256,6 +258,8 @@ public class MatchServiceImpl implements MatchService { ...@@ -256,6 +258,8 @@ public class MatchServiceImpl implements MatchService {
); );
GetTeamInfoListResponse response = new GetTeamInfoListResponse(); GetTeamInfoListResponse response = new GetTeamInfoListResponse();
response.setHotTeam(new ArrayList<>());
response.setOtherTeam(new ArrayList<>());
for (Team team : teams) { for (Team team : teams) {
GetTeamInfoListResponse.GetTeamInfoInfoResponse teamInfo = GetTeamInfoListResponse.GetTeamInfoInfoResponse.builder() GetTeamInfoListResponse.GetTeamInfoInfoResponse teamInfo = GetTeamInfoListResponse.GetTeamInfoInfoResponse.builder()
.id(team.getId()) .id(team.getId())
......
package com.live.server.controller; package com.live.server.controller;
import com.live.common.domain.ResponseData; import com.live.common.domain.ResponseData;
import com.live.common.domain.request.CommonStringId;
import com.live.common.domain.request.CreateRoomRequest;
import com.live.common.service.CategoryService;
import com.live.common.service.LiveService;
import com.live.common.service.MatchService; import com.live.common.service.MatchService;
import io.swagger.annotations.*; import io.swagger.annotations.*;
import org.apache.commons.lang3.StringUtils;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource; import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
......
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