package com.gunshi.project.xyt.controller; import com.gunshi.core.annotation.Get; import com.gunshi.core.result.R; import com.gunshi.project.xyt.entity.vo.StStbprpCctvVo; import com.gunshi.project.xyt.service.StStbprpCctvService; import io.swagger.v3.oas.annotations.tags.Tag; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import java.util.List; /** * 站点与视频关系 * Created by wanyan on 2024/4/9 * * @author wanyan * @version 1.0 */ @RestController @RequestMapping("/stbprp/cctv") @Tag(name = "站点与视频关系") public class StStbprpCctvController { @Autowired private StStbprpCctvService stStbprpCctvService; @Get(path = "/listByStcd/{stcd}", summary = "按stcd查询") public R> listByStcd(@PathVariable("stcd") String stcd) { return R.ok(stStbprpCctvService.listByStcd(stcd)); } }