package com.dsh.course.feignClient.activity;
|
|
import com.dsh.course.feignClient.activity.model.BenefitsVedioChangeStateVO;
|
import com.dsh.course.feignClient.activity.model.BenefitsVideoClassification;
|
import com.dsh.course.feignClient.activity.model.BenefitsVideos;
|
import com.dsh.course.feignClient.activity.model.QueryBenefitsVedioVO;
|
import com.dsh.guns.modular.system.model.TQueryBenefitsVO;
|
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
import java.util.List;
|
|
/**
|
* @author zhibing.pu
|
* @Date 2023/8/1 12:02
|
*/
|
@FeignClient("mb-cloud-activity")
|
public interface BenefitsVideoClient {
|
|
/**
|
* 根据福利视频id获取福利视频信息
|
* @return
|
*/
|
@RequestMapping("/base/benefitVideo/getBenefitVideosById")
|
@ResponseBody
|
BenefitsVideos getBenefitVideosById(@RequestBody Integer id);
|
|
/**
|
* 获取所有福利视频分类
|
* @return
|
*/
|
@RequestMapping("/base/benefitVideo/list")
|
List<TQueryBenefitsVO> listAll(@RequestBody QueryBenefitsVedioVO vo);
|
|
/**
|
* 查看详情/编辑
|
* @return
|
*/
|
@RequestMapping("/base/benefitVideo/getById")
|
BenefitsVideoClassification getById(@RequestBody Integer id);
|
|
/**
|
* 添加/修改福利视频分类
|
* @return
|
*/
|
@RequestMapping("/base/benefitVideo/add")
|
Object addSite(@RequestBody BenefitsVideoClassification site);
|
|
/**
|
* 添加/修改视频详情
|
* @return
|
*/
|
@RequestMapping("/base/addBenefitsVideos")
|
Object addBenefitsVideos(@RequestBody BenefitsVideos site);
|
|
/**
|
* 上/下架、删除福利视频分类 type=1为上架 2为下架 3为删除
|
*/
|
@RequestMapping("/base/benefitVideo/changeState")
|
Object changeState(@RequestBody BenefitsVedioChangeStateVO vo);
|
|
/**
|
* 查看福利视频分类下视频
|
* @return
|
*/
|
@RequestMapping("/base/benefitVideo/getBenefitVideoById")
|
public List<BenefitsVideos> getBenefitVideoById(@RequestBody Integer id);
|
}
|