package com.zanxiang.manage.controller; import com.zanxiang.common.domain.ResultVo; import com.zanxiang.manage.domain.vo.GamePictureVO; import com.zanxiang.manage.service.GamePictureService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiResponse; import io.swagger.annotations.ApiResponses; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; /** * @author : lingfeng * @time : 2022-07-12 * @description : 游戏图片 */ @Api(tags = {"游戏图片管理接口"}) @RestController @RequestMapping("/game/picture") @Slf4j public class GamePictureController { @Autowired private GamePictureService gamePictureService; @ApiOperation(value = "获取游戏图片配置") @GetMapping(value = "/info") @ApiResponses(value = {@ApiResponse(code = 200, message = "成功", response = GamePictureVO.class)}) public ResultVo getByGameId(@RequestParam Long id) { return new ResultVo<>(gamePictureService.getByGameId(id)); } }