package com.dsh.course.feignClient.other; import com.dsh.course.feignClient.other.model.*; import com.dsh.guns.modular.system.model.AdvertisementChangeStateDTO; import com.dsh.guns.modular.system.model.AdvertisementQuery; 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; import java.util.Map; @FeignClient(value = "mb-cloud-other") public interface BannerClient { /** * 上/下架广告 state=1为上架 2为下架 */ @RequestMapping("/base/advertisement/changeState") Object changeState(@RequestBody AdvertisementChangeStateDTO dto); /** * 添加广告管理 * @return */ @RequestMapping("/base/advertisement/addAdvertisement") Object addAdvertisement(@RequestBody Banner banner); /** * 修改广告管理 * @return */ @RequestMapping("/base/advertisement/updateAdvertisement") Object updateAdvertisement(@RequestBody Banner banner); /** * 根据id获取广告数据 */ @RequestMapping("/base/advertisement/getById") Banner getById(@RequestBody Integer bannerId); /** * 获取广告管理 * @return */ @RequestMapping("/base/advertisement/listAll") List listAll(@RequestBody AdvertisementQuery query); }