package com.ruoyi.management.api.feignClient;
|
|
import com.ruoyi.common.core.constant.ServiceNameConstants;
|
import com.ruoyi.common.core.domain.R;
|
import com.ruoyi.common.core.web.page.PageInfo;
|
import com.ruoyi.management.api.factory.TManagementFallbackFactory;
|
import com.ruoyi.management.api.model.*;
|
import com.ruoyi.management.api.query.UseGuideQuery;
|
import io.swagger.annotations.ApiOperation;
|
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.PathVariable;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
import java.util.List;
|
|
@FeignClient(contextId = "managementClient", value = ServiceNameConstants.MANAGEMENT_SERVICE, fallbackFactory = TManagementFallbackFactory.class)
|
public interface ManagementClient {
|
|
@PostMapping(value = "/tSysSet/getPage1")
|
R<List<TPage>> getPage1();
|
|
@PostMapping("/tUser/getVipSet1")
|
R<List<TVipSet>> getVipSet1();
|
|
@PostMapping("/tSysSet/useGuide1")
|
R<PageInfo<TUseGuide>> useGuide1(@RequestBody UseGuideQuery query);
|
|
@PostMapping("/tFeedback/addFeedBack")
|
R addFeedBack(@RequestBody TFeedback dto);
|
|
@PostMapping("/tSysSet/agreement1/{type}")
|
R<String> agreement1(@PathVariable("type") Integer type);
|
|
/**
|
* 获取分享图片、标题及可获积分数
|
*
|
* @return 获取分享图片、标题及可获积分数
|
*/
|
@GetMapping("/tSysSet/shareInfo")
|
@ApiOperation(value = "获取分享图片、标题及可获积分数", tags = {"获取分享图片、标题及可获积分数"})
|
R<TSysSet> shareInfo();
|
|
}
|