package com.dsh.course.feignClient.activity;
|
|
|
import com.dsh.course.feignClient.activity.model.*;
|
import com.dsh.guns.modular.system.model.*;
|
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import java.util.List;
|
import java.util.Map;
|
|
/**
|
* 介绍有礼
|
*/
|
@FeignClient(value = "mb-cloud-activity")
|
public interface IntroduceClient {
|
|
|
/**
|
* 获取介绍有礼-参与用户记录表
|
* @return
|
*/
|
@RequestMapping("/base/introduceUser/listAllUser")
|
List<IntroduceUser> listAllUser(@RequestBody IntroduceUserQuery query);
|
/**
|
* 上/下架介绍有礼 type = 1上架 type=2下架
|
* @return
|
*/
|
@RequestMapping("/base/introduce/changeState")
|
Object changeState(@RequestBody IntroduceChangeStateDTO dto);
|
/**
|
* 通过id获取介绍有礼
|
* @return
|
*/
|
@RequestMapping("/base/introduce/getInfoById")
|
IntroduceRewards getInfoById(@RequestBody Integer id);
|
|
/**
|
* 获取介绍有礼记录表
|
* @return
|
*/
|
@RequestMapping("/base/introduce/listAll")
|
List<IntroduceVO> listAll(@RequestBody IntroduceQuery query);
|
/**
|
* 增加/修改介绍有礼记录
|
* @return
|
*/
|
@RequestMapping("/base/introduce/addIntroduce")
|
Object addIntroduce(@RequestBody IntroduceRewards introduceRewards);
|
|
}
|