package org.jeecg.modules.weekly.feign;
|
|
|
import org.jeecg.common.api.vo.Result;
|
import org.jeecg.modules.weekly.entity.ProProject;
|
import org.jeecg.modules.weekly.entity.ProProjectLink;
|
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.cloud.openfeign.SpringQueryMap;
|
import org.springframework.stereotype.Component;
|
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RequestMethod;
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
import javax.servlet.http.HttpServletRequest;
|
import java.util.List;
|
|
@FeignClient(value = "lb-project")
|
@Component
|
public interface ProjectClient {
|
/**
|
* 调用 project模块
|
* 查询项目列表
|
* @param
|
* @return
|
*/
|
@RequestMapping(value = "/pro/project/linkList", method = RequestMethod.GET)
|
Result<List<String>> queryPageList(@SpringQueryMap String link);
|
|
|
@RequestMapping(value = "/pro/project/list", method = RequestMethod.GET)
|
Result<List<ProProject>> queryProjectList(@RequestBody ProProject project,
|
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
|
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize );
|
|
/**
|
* 查询wbs
|
* @param id
|
* @return
|
*/
|
@RequestMapping(value = "/pro/project/queryWbsId", method = RequestMethod.GET)
|
Result<ProProjectLink> queryWbsId(@RequestParam("id") String id);
|
|
/**
|
* 更新wbs
|
* @param link
|
* @return
|
*/
|
@RequestMapping(value = "pro/project/editLink", method = RequestMethod.PUT)
|
Result<ProProjectLink> editLink(@RequestBody ProProjectLink link);
|
|
|
}
|