Skip to content

體育賽事列表(開發文檔)

最後更新:2026-04-10

📖 功能說明請參考 體育賽事列表


架構

相關檔案

ViewController(2 個)
檔案說明
.../EventList/SportSegmented/SportSegmentedController.swift賽事列表主控制器
.../HomePage/SportHomeViewController.swift體育首頁

基礎路徑:BBSport/Tab/体育/Sport/

ViewModel / UseCase(13 個)
檔案說明
.../SportSegmentedViewModel.swift列表主 ViewModel
.../UseCase/Menu/SportMenusUseCase.swift球類選單
.../UseCase/Match/SportMatchUseCase.swift賽事請求
.../UseCase/PlayMethod/SportPlayMethodUseCase.swift玩法切換
.../UseCase/LeagueFilter/SportMatchLeagueFilterUseCase.swift熱門聯賽篩選
.../UseCase/Calendar/SportCalendarUseCase.swift日期篩選
.../UseCase/FinishMatch/SportFinishMatchUseCase.swift完賽篩選
.../UseCase/FinishMatch/SportFinishMatchFilterControllerBuilder.swift完賽篩選建構器
.../UseCase/Fold/SportMatchFoldUseCase.swift折疊
.../UseCase/HotLeague/HotLeagueUseCase.swift熱門聯賽 Protocol
.../UseCase/HotLeague/SportHotLeagueUseCase.swift熱門聯賽實作
.../UseCase/LeagueFilter/SportLeagueFirstLetterUseCase.swift聯賽首字母
.../UseCase/Calendar/Formatter/SportCalendarFormatter.swift日曆格式 Protocol

基礎路徑:BBSport/Tab/体育/Sport/EventList/SportSegmented/

Service — Match(24 個)
檔案說明
.../FB/FBSportInPlayMatchService.swiftFB 滾球
.../FB/FBSportTodayMatchService.swiftFB 今日
.../FB/FBSportEarlyMatchService.swiftFB 早盤
.../FB/FBSportFavoriteMatchService.swiftFB 收藏
.../FB/FBSportChampionMatchService.swiftFB 冠軍
.../FB/FBSportMatchResultService.swiftFB 賽果
.../FB/FBSportSeriesOddsService.swiftFB 串關賠率
.../DB/DBSportInPlayMatchService.swiftDB 滾球
.../DB/DBSportTodayMatchService.swiftDB 今日
.../DB/DBSportEarlyMatchService.swiftDB 早盤
.../DB/DBSportChampionMatchService.swiftDB 冠軍
.../DB/DBSportFavoriteMatchService.swiftDB 收藏
.../DB/DBSportMatchResultService.swiftDB 賽果
.../UP/UPSportInPlayMatchService.swiftUP 滾球
.../UP/UPSportTodayMatchService.swiftUP 今日
.../UP/UPSportEarlyMatchService.swiftUP 早盤
.../UP/UPSportFavoriteMatchService.swiftUP 收藏
.../UP/UPSportChampionMatchService.swiftUP 冠軍
.../UP/UPSportMatchResultService.swiftUP 賽果
.../UP/UPSportSeriesOddsService.swiftUP 串關賠率
.../BB/InPlayRankMatchService.swiftBB 滾球排名
.../PollingSportMatchService.swift輪詢基底
.../SportMatchService.swift賽事 Protocol
.../SportMatchRequestParameter.swift請求參數 Model

基礎路徑:BBSport/Tab/体育/Sport/EventList/SportSegmented/Service/Match/

Service — Menu(8 個)
檔案說明
.../FB/FBSportMenusService.swiftFB 選單
.../FB/FBSportMenusServices.swiftFB 選單集合
.../DB/DBSportMenusService.swiftDB 選單
.../DB/DBSportMenusServices.swiftDB 選單集合
.../UP/UPSportMenusService.swiftUP 選單
.../UP/UPSportMenusServices.swiftUP 選單集合
.../SportFavoriteMenusService.swift收藏選單
.../SportMenusService.swift選單 Protocol

基礎路徑:BBSport/Tab/体育/Sport/EventList/SportSegmented/Service/Menu/

View / Cell(47 個)
檔案說明
.../Cell/List/Body/MatchListBodyCell.swift賽事列表 Cell
.../Cell/List/Body/MatchListBodyCell+FB.swiftFB 平台擴展
.../Cell/List/Body/MatchListBodyCell+DB.swiftDB 平台擴展
.../Cell/List/Body/MatchListBodyCell+UP.swiftUP 平台擴展
.../Cell/List/Body/MatchListBodyCell+Odd.swift賠率擴展
.../Cell/List/Body/MatchListBodyCell+TeamInfo.swift隊伍資訊
.../Cell/List/Body/MatchListBodyCell+ColorCard.swiftColorCard
.../Cell/List/Body/MatchListBodyCell+FinishGame.swift完賽擴展
.../Cell/List/Head/MatchListHeaderCell.swift聯賽 Header Cell
.../Cell/Champion/ChampionListBodyDetailCell.swift冠軍 Cell
.../Cell/Champion/ChampionListBodyHeadCell.swift冠軍 Header
.../Cell/Champion/ChampionListHeadOtherView.swift冠軍其他
.../Cell/LeagueChoose/LeagueChooseCell.swift聯賽選擇 Cell
.../Cell/LeagueChoose/SectionIndexViewCell.swift索引 Cell
.../Cell/List/Body/View/MatchListBasketBallView.swift籃球列表
.../Cell/List/Body/View/MatchListBottomESportsView.swift電競底部
.../Cell/List/Body/View/MatchListBottomEventView.swift賽事底部
.../TitleView/SportIconScrollBar.swift球類圖示列
.../TitleView/SportIconScrollBarCell.swift球類圖示 Cell
.../TitleView/SportTimeScrollBar.swift時間軸
.../TitleView/SportTimeScrollBarCell.swift時間軸 Cell
.../TitleView/CalendarCoverView.swift日曆覆蓋層
.../TitleView/HomePageTitleStyle.swift首頁標題樣式
.../TitleView/HomePageTitleView.swift首頁標題
.../TitleView/PlayMethodButton.swift玩法按鈕
.../TitleView/PlayMethodSwitch.swift玩法切換
.../TitleView/SortByTimeOrLeagueComponent.swift時間/聯賽排序
.../SectionView/MatchSectionScoreView.swift得分區域
.../SectionView/MatchSectionScoreView+BasketBall.swift得分-籃球
.../SectionView/MatchSectionScoreView+Tennis.swift得分-網球
.../SectionView/MatchSectionScoreView+VolleyBall.swift得分-排球
.../SectionView/MatchSectionScoreView+IceHockey.swift得分-冰球
.../SectionView/MatchSectionScoreView+TableTennis.swift得分-乒乓球
.../SectionView/MatchSectionScoreView+AmericanFootball.swift得分-美式足球
.../SectionView/MatchSectionScoreView+Badmintion.swift得分-羽毛球
.../SectionView/MatchSectionScoreView+ESports.swift得分-電競
.../SectionView/MatchSectionScoreView+EBasketball.swift得分-電競籃球
.../BetView/SportSelectBetView.swift投注選擇
.../Champion/ChampionBetListSectionHeaderView.swift冠軍盤口 Header
.../Champion/FixedChampionBetListSectionHeader.swift冠軍固定 Header
.../DropView/DropDownMenuViewController.swift下拉選單
.../DropView/STSportPlayTypeManager.swift玩法類型管理
.../NetWorkView/NoNetworkPlaceholderView.swift無網路佔位
.../RefreshView/EventListFooterRefresh.swift列表 Footer 刷新
.../RefreshView/EventListHeaderRefreshView.swift列表 Header 刷新
.../Video/AnchorLanguageTipView.swift主播語言提示
.../Protocol/BBSportLoginAlertViewProtocol.swift登入提示 Protocol

基礎路徑:BBSport/Tab/体育/Sport/EventList/Base/V/(除 DropView / Protocol)

Adapter(12 個)
檔案說明
.../Adapter/SportEventListAdapter.swift列表主 Adapter
.../Adapter/Delegator/SportEventListDelegator.swiftDelegator 基底
.../Adapter/Delegator/FixtureEventListDelegator.swift賽程 Delegator
.../Adapter/Delegator/OutrightEventListDelegator.swift冠軍 Delegator
.../Adapter/CellConfiguration/SportEventListCellConfiguration.swiftCellConfig 基底
.../Adapter/CellConfiguration/FoldableSportEventListCellConfiguration.swift可折疊
.../Adapter/CellConfiguration/Fixture/FixtureEventListCellConfiguration.swift賽程
.../Adapter/CellConfiguration/Fixture/FinishedFixtureEventListCellConfiguration.swift完賽
.../Adapter/CellConfiguration/Outright/OutrightEventListCellConfiguration.swift冠軍
.../Adapter/PlayMethod/SportEventPlayMethodHandler.swift玩法處理
.../Repository/Favorite/SportFavoriteRepository.swift收藏 Protocol
.../Repository/Favorite/UPSportFavoriteRepository.swiftUP 收藏

基礎路徑:BBSport/Tab/体育/Sport/EventList/SportSegmented/

Repository / 收藏(2 個)
檔案說明
.../Repository/Favorite/FBSportFavoriteRepository.swiftFB 收藏
.../Repository/Favorite/DBSportFavoriteRepository.swiftDB 收藏

基礎路徑:BBSport/Tab/体育/Sport/EventList/SportSegmented/

Banner / 首頁(22 個)
檔案說明
.../HomePage/Adapter/SportBannerAdapter.swiftBanner Adapter
.../HomePage/Adapter/SportBetCartAdapter.swift投注購物車
.../HomePage/Adapter/SportFloatingBallViewAdapter.swift浮球
.../HomePage/Adapter/SportMaintenanceAdapter.swift維護
.../HomePage/Adapter/SportNavViewAdapter.swift導航列
.../HomePage/Adapter/SportSegmentAdapter.swift分段控制
.../HomePage/Adapter/SportSlideAdapter.swift滑動
.../HomePage/Shared/GameType+SportPage.swiftGameType 擴展
.../HomePage/Shared/SlideView/SlideView.swift滑動視圖
.../HomePage/Shared/SlideView/SlideViewDataSource.swift滑動 DataSource
.../HomePage/Shared/SlideView/SlideViewDelegate.swift滑動 Delegate
.../HomePage/Shared/SportScrollWrapper/SportScrollWrapper.swift滾動包裝
.../Banner/Model/BBHomeChatModel.swift首頁聊天 Model
.../Banner/Model/SportHomeBannerModel.swiftBanner Model
.../Banner/SportHomeBannerService.swiftBanner Service
.../Banner/V/AnnouncementView.swift公告
.../Banner/V/BBComplexView.swift複合視圖
.../Banner/V/BBCustomBannerCell.swift自訂 Banner Cell
.../Banner/V/BBMatchInfoView.swift賽事資訊
.../Banner/V/HomeNavView.swift首頁導航
.../Banner/V/IFBannerView.swiftBanner 輪播
.../Banner/V/SportHomeSegmentedControl/SportHomeSegmentedControl.swift分段控制

基礎路徑:BBSport/Tab/体育/Sport/

聯賽篩選 / 搜尋(16 個)
檔案說明
.../General/Models/LeagueChooseVO.swift聯賽選擇 VO
.../General/ViewModels/CompsLeagueViewModel.swift聯賽比較 VM
.../STLeagueFiltering/C/STLeagueChooseViewController.swift聯賽篩選 VC
.../STLeagueFiltering/C/STLeagueChooseViewController+Action.swift篩選 Action
.../STLeagueFiltering/C/STLeagueChooseViewController+Data.swift篩選 Data
.../STLeagueFiltering/C/STLeagueFilteringController.swift聯賽過濾 VC
.../STLeagueFiltering/Models/STLeagueFilterModel.swift篩選 Model
.../STLeagueFiltering/Models/STLeagueModel+VM.swift聯賽 VM
.../STLeagueFiltering/V/STLeagueChooseBottomView.swift選擇底部
.../STLeagueFiltering/V/STLeagueChooseCell.swift選擇 Cell
.../STLeagueFiltering/V/STLeagueChooseListView.swift選擇列表
.../SearchAndLeagueFiltering/M/LeagueChooseCache.swift快取
.../SearchAndLeagueFiltering/V/CustomBar.swift搜尋列
.../SearchAndLeagueFiltering/V/LeagueChooseHeadView.swift選擇 Header
.../SearchAndLeagueFiltering/V/LeagueSectionIndexView.swift索引
.../SearchAndLeagueFiltering/V/NewLeagueChooseCell.swift新聯賽 Cell

基礎路徑:BBSport/Tab/体育/Sport/LeagueScreening_Search/Features/

API Request(35 個)
檔案說明
BBSport/API/FBSportAPI/FBSportAPI+MatchListRequest.swiftFB 賽事列表
BBSport/API/FBSportAPI/FBSportAPI+OnSaleLeaguesRequest.swiftFB 在售聯賽
BBSport/API/FBSportAPI/FBSportAPI+BulletinListPageRequest.swiftFB 公告
BBSport/API/FBSportAPI/Sport/FBSportAPI+StatisticalRequest.swiftFB 統計
BBSport/API/FBSportAPI/FBSportAPI+FetchLanguageRequest.swiftFB 語言
BBSport/API/FBSportAPI/FBSportAPI.swiftFB 基底
BBSport/API/FBSportAPI/Domain/FBSportAPI+DomainCheckRequest.swiftFB Domain
BBSport/API/FBSportAPI/Repository/FBSportFastestDomainRepository.swiftFB 最快域名
BBSport/API/UPSportAPI/UPSportAPI+MatchListRequest.swiftUP 賽事列表
BBSport/API/UPSportAPI/UPSportAPI+OnSaleLeaguesRequest.swiftUP 在售聯賽
BBSport/API/UPSportAPI/UPSportAPI+BulletinListPageRequest.swiftUP 公告
BBSport/API/UPSportAPI/Sport/UPSportAPI+StatisticalRequest.swiftUP 統計
BBSport/API/UPSportAPI/UPSportAPI+FetchLanguageRequest.swiftUP 語言
BBSport/API/UPSportAPI/UPSportAPI.swiftUP 基底
BBSport/API/UPSportAPI/Domain/UPSportAPI+DomainCheckRequest.swiftUP Domain
BBSport/API/UPSportAPI/Repository/UPSportFastestDomainRepository.swiftUP 最快域名
BBSport/API/DBSportAPI/DBSportAPI.swiftDB 基底
BBSport/API/DBSportAPI/DBSportAPI+Host.swiftDB Host
BBSport/API/DBSportAPI/Sport/DBSportAPI+CategoryListRequest.swiftDB 分類列表
BBSport/API/DBSportAPI/Sport/DBSportAPI+ChampionLeagueListRequest.swiftDB 冠軍聯賽
BBSport/API/DBSportAPI/Sport/DBSportAPI+ChampionMatchResultRequest.swiftDB 冠軍賽果
BBSport/API/DBSportAPI/Sport/DBSportAPI+DBEventInfoRequest.swiftDB 賽事資訊
BBSport/API/DBSportAPI/Sport/DBSportAPI+EventDetailRequest.swiftDB 賽事詳情
BBSport/API/DBSportAPI/Sport/DBSportAPI+FavoriteEventsRequest.swiftDB 收藏
BBSport/API/DBSportAPI/Sport/DBSportAPI+LeagueCountRequest.swiftDB 聯賽數量
BBSport/API/DBSportAPI/Sport/DBSportAPI+MatchOddsInfoRequest.swiftDB 盤口賠率
BBSport/API/DBSportAPI/Sport/DBSportAPI+MatcheResultRequest.swiftDB 賽果
BBSport/API/DBSportAPI/Sport/DBSportAPI+SportMenuRequest.swiftDB 選單
BBSport/API/STAPI/Sport/HomeBanner/STAPI+HomeBannerRequest.swift首頁 Banner
BBSport/API/STAPI/Sport/STAPI+InPlayMatchRank.swift滾球排名
BBSport/API/STAPI/Sport/STAPI+MenuSequenceRequest.swift球類選單順序
BBSport/API/STAPI/Sport/STAPI+LeagueWeightsRequest.swift聯賽權重
BBSport/API/STAPI/Sport/STAPI+AllPlanListsRequest.swift方案列表
BBSport/API/STAPI/Sport/STAPI+PlanListRequest.swift方案查詢
BBSport/API/STAPI/Sport/STAPI+PlanBuyCountRequest.swift方案購買數
Model / Enum / Config(12 個)
檔案說明
.../Sport/Model/BetItemModel.swift投注項
.../Sport/Model/Enum/BetResultType.swift投注結果類型
.../Sport/Model/Enum/OddChangeStatus.swift賠率變動狀態
.../Sport/Model/OddChangeHandler.swift賠率變動處理
.../Sport/Model/Protocol/ILeagueModel.swift聯賽 Protocol
.../Sport/Model/Protocol/ISportModel.swift體育 Protocol
.../Sport/Model/Protocol/ITransformable.swift轉換 Protocol
.../Sport/Common/CommonSportType.swift共用球類類型
.../Sport/Common/SportComponentConst.swift體育常數
.../Sport/Common/SportConfiguration/SportConfig.swift體育設定 Protocol
.../Sport/Common/SportConfiguration/STSportsConfig.swiftST 設定
.../Sport/Common/SportConfiguration/OBSportsConfig.swiftOB 設定

基礎路徑:BBSport/Tab/体育/


API

賽事列表


FB/UP 賽事列表

POST v1/match/getList — JSON — 來源:FBSportAPI / UPSportAPI

TIP

FB 與 UP endpoint 相同,差異在 Request struct 分屬不同 namespace,各自走不同 domain。

Request:

參數型別必填說明
sportIdstring球類 ID(如 "1" 足球)
typeint1=滾球、2=串關、3=今日、4=早盤、5=競彩、7=冠軍
languageTypestring固定 "CMN"
currentint頁碼,從 1 開始
orderByint0=按開賽時間、1=按聯賽排序
leagueIds[int]聯賽 ID 陣列,空=不篩選
beginTimestring篩選開始時間(早盤/完賽時使用)
endTimestring篩選結束時間
isPCbool冠軍賽事時傳 true

Response:success=truedata,型別 STDataModel

欄位型別說明
records[STEventModel]賽事列表
pageTotalInt總頁數
currentInt當前頁碼
sizeInt每頁數量
totalInt賽事總筆數

FB/UP 冠軍賽事列表

POST v1/match/getList — JSON — 來源:FBSportAPI / UPSportAPI

TIP

與一般賽事列表共用 endpoint,差異在 type=7 且帶 isPC=true

Request:

參數型別必填說明
sportIdstring球類 ID
typeint固定 7
languageTypestring固定 "CMN"
orderByint固定 1
isPCbool固定 true

Response:FB/UP 賽事列表


DB 賽事列表(滾球/今日/早盤)

POST api/forehead/gamebetob/getEventInfo — urlForm — 來源:DBSportAPI

Request:

參數型別必填說明
sportIdsstring運動 ID(如 "1"
marketint1=滾球、2=即將開賽、3=今日、4=早盤、11=串關
sortint1=按聯賽、2=按時間
pageNumberint頁碼,從 1 開始
pageSizeint每頁數量,預設 50
languagestring固定 "chs"
competitionIdsstring聯賽 ID,逗號分隔
eventBeginTimestring篩選開始時間
eventEndTimestring篩選結束時間

Response:code="0000000"data,型別 OBEventInfoModel

欄位型別說明
pagesString總頁數
ctoString額外資訊
data[OBEventModel]賽事資料列表
list[OBEventModel]快取服務賽事資料

DB 冠軍聯賽列表

POST yewu11/v1/m/matchesPB — JSON — 來源:DBSportAPI

Request:

參數型別必填說明
euidstring球類 menu ID
cuidstring使用者 ID
typeint固定 100
sortint固定 1

Response:code="0000000"data,型別 [OBEventModel]?


DB 收藏賽事

POST yewu11/v1/m/getMatchBaseInfoByMidsPB — JSON — 來源:DBSportAPI

參數型別必填說明
mids[string]賽事 ID 陣列(由本地收藏庫取得)

Response:DB 賽事列表(滾球/今日/早盤)


DB 聯賽數量

POST api/forehead/gamebetob/getLeagueCount — urlForm — 來源:DBSportAPI

參數型別必填說明
sportIdstring運動 ID
typeint選單類型
languagestring固定 "chs"
eventBeginTimestring篩選開始時間
eventEndTimestring篩選結束時間

Response:code="0000000"data,型別 OBLeagueResultDataModel

欄位型別說明
imageUrlString圖片 URL
tournamentList[OBLeagueResultTournamentListModel]聯賽列表(含 lurlnameTextnumtid

熱門與選單


熱門球類排行

POST api/forehead/data/betting/inPlayMatchRank — urlForm — 來源:STAPI

參數型別必填說明
isInPlaystring固定 "true"
sportIdsstring球類 ID,預設 "1,3"
marketTypesstring盤口類型,預設 "3002,3003,3004,1000,1005,1007"

Response:code=1data,型別 InPlayMatchRankResponse

欄位型別說明
matchRank[InPlayMatchRankModel]排名列表(含 countmatchIdmarketRank

球類選單順序

POST api/forehead/gamebet/config/gameHomeTabSort — JSON — 來源:STAPI

無參數,靠 Header token/uid 認證。

Response:code=1data,型別 [String: SequenceDataModel]

欄位型別說明
(key)String平台標識
(value).collectionInt收藏 Tab 排序值
(value).championInt冠軍 Tab 排序值

全局熱搜

POST api/forehead/data/user/global/search/hotLeague — urlForm — 來源:STAPI

無參數。

Response:code=1data,型別 [League]

欄位型別說明
leagueIdString聯賽 ID
leagueNameString聯賽名稱
leagueLogoString聯賽 Icon URL
matches[Match]賽事列表(含 homeawayhomeScoreawayScoreeventId

資料模型

STEventModel 完整欄位(25 個)
欄位類型說明
idInt賽事 ID
sidInt球類 ID
lgSTLeagueModel聯賽資料
ts[STLeagueModel]球隊陣列(ts[0]=主隊、ts[1]=客隊)
mg[STMarketGroupModel]盤口集合
mgs[STMarketGroupModel]賽果 API 盤口
nmg[STMarketGroupModel]列表過濾後盤口
sg[STEventResultModel]比分資訊
nsg[STEventResultModel]新比分資訊
resultEventScoreboardModel比分看板
mcSTTimeModel比賽時鐘(s=秒數、pe=時段、r=是否跑表)
btDouble開賽時間(時間戳)
beginTimeString開賽時間(字串)
nmString冠軍賽事名稱
msMatchStatus賽事狀態(0=已結束、1=推遲、2=中斷、3=取消、4=未開賽、5=進行中)
fidInt賽制
neInt中立場(1=中立場、0=非中立場)
vsVsParameterModel?動畫/直播串流資訊
nas[String]動畫資訊
ssiInt發球方
tmsInt盤口統計數量
isInplayBool是否滾球
isFinishBool賽事是否結束
ptSTPlayType賽事類型(1=今日、2=早盤、4=滾球)
lsdataFootBallTechnicModel?雷速數據(足球特有)

OBEventModel(DB 賽事)

OBEventModel 完整欄位(43 個)
欄位類型說明
midString賽事 ID
csidString球類 ID
csnaString球類名稱
tidString聯賽 ID
tnString聯賽名稱
onTnString冠軍聯賽名稱
tlevInt聯賽等級
mhidString主隊 ID
mhnString主隊名稱
manString客隊名稱
maidString客隊 ID
mhlu[String]主隊 Logo URL 陣列
mhlutString主隊 Logo 縮略圖
malu[String]客隊 Logo URL 陣列
malutString客隊 Logo 縮略圖
mgtString開賽時間(毫秒時間戳)
mgt_strString格式化開賽時間
medString賽事截止時間
med_strString格式化截止時間
mstString賽事進行時間(秒)
mcgInt欄目類型(1=滾球、2=即將開賽、3=今日、4=早盤)
mmpString比賽階段
mmsInt視頻狀態(-1=無、0=不可用、1=可用未播、2=播放中)
mctString當前第幾盤/局
matString發球方(home/away)
moInt比賽是否結束
mpInt是否支持賽前盤
msInt?賽事狀態(0=未開始、1=滾球、2=暫停、3=結束...)
mcInt玩法數量
hps[OBOddInfoModel]玩法集合
mngInt是否中立場(1=是、0=否)
mleInt賽節配置
mvsInt動畫狀態(-1=無、0=不可用、1=播放中)
mfoString賽制
mhsInt盤口狀態(0=開、1=封、2=關、11=鎖)
mftInt總局數
msc[String]比分集合(格式:S1|1:0
mbhnString好球數(棒球)
mbknString壞球數(棒球)
mbcnString出局數(棒球)
mbolpString一壘佔用(棒球,0/1)
mbtlpString二壘佔用(棒球,0/1)
mbthlpString三壘佔用(棒球,0/1)

STLeagueModel(聯賽)

欄位類型說明
idInt聯賽 ID
naString聯賽名稱
lurlString聯賽 Logo URL
sportIdInt球類 ID
events[STEventModel]賽事列表

實作重點

  • UseCase 依賴注入:ViewModel 透過建構子注入各 UseCase,不同平台/玩法對應不同組合
  • 多平台 Cell 差異:各平台透過 Extension 處理不同的賠率格式與 UI
  • 熱門聯賽過濾:FB InPlay 足球/籃球有熱門聯賽標記,影響排序與 Header
  • 日期篩選:各平台格式不同,透過 SportCalendarFormatter 轉換
  • 已知限制:DB 冠軍不支援串關,DB/UP 早盤預約投注與 FB 不同
  • 長按賠率互動:功能說明提及「長按賠率 → 展開更多玩法」。實際程式碼中,賽事列表 SportSelectBetView 的點擊(tap)直接彈出投注面板,而點擊賽事行(非賠率區域)跳轉賽事詳情頁以查看完整盤口。目前 EventList 未發現專門的 UILongPressGestureRecognizer 對賠率進行長按處理,「長按」行為可能已合併為一般點擊跳轉賽事詳情。

關鍵數字

  • 滾球輪詢間隔:5 秒
  • 今日輪詢間隔:30 秒
  • 早盤輪詢間隔:60 秒
  • DB 每頁數量:50 條