package cc.mrbird.febs.dapp.basketball_nba.controller; import cc.mrbird.febs.common.entity.FebsResponse; import cc.mrbird.febs.dapp.basketball_nba.service.BasketballService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; import org.springframework.web.bind.annotation.CrossOrigin; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; @Slf4j @RequiredArgsConstructor @CrossOrigin("*") @RestController @Api(value = "BASKETBALL", tags = "BASKETBALL") @RequestMapping(value = "/dapi/basketball") public class BasketballController { private final BasketballService basketballService; @ApiOperation(value = "赛季", notes = "赛季") @PostMapping(value = "/seasons") public FebsResponse seasons() { return basketballService.seasons(); } @ApiOperation(value = "联赛", notes = "联赛") @PostMapping(value = "/leagues") public FebsResponse leagues() { return basketballService.leagues(); } @ApiOperation(value = "球队", notes = "球队") @PostMapping(value = "/teams") public FebsResponse teams() { return basketballService.teams(); } }