
2 changed files with 80 additions and 0 deletions
@ -0,0 +1,46 @@ |
|||||
|
package com.yxt.anrui.terminal.api.autoservice.contract; |
||||
|
|
||||
|
import com.yxt.anrui.base.api.commoncontract.*; |
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import io.swagger.annotations.Api; |
||||
|
import io.swagger.annotations.ApiOperation; |
||||
|
import org.springframework.cloud.openfeign.FeignClient; |
||||
|
import org.springframework.web.bind.annotation.*; |
||||
|
import org.springframework.web.multipart.MultipartFile; |
||||
|
|
||||
|
import javax.validation.Valid; |
||||
|
import java.io.IOException; |
||||
|
import java.text.ParseException; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
/** |
||||
|
* Project: anrui-base(安瑞基础) <br/> |
||||
|
* File: CommonContractFeign.java <br/> |
||||
|
* Class: com.yxt.anrui.base.api.commoncontract.CommonContractFeign <br/> |
||||
|
* Description: 合同表. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2021-10-12 14:02:40 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Api(tags = "合同表") |
||||
|
@FeignClient( |
||||
|
contextId = "anrui-base-CommonContract", |
||||
|
name = "anrui-base", |
||||
|
path = "/autoservice/v1/contract", |
||||
|
fallback = CommonContractFeignFallback.class) |
||||
|
public interface AppCommonContractFeign { |
||||
|
|
||||
|
|
||||
|
@ApiOperation("移动端-合同审核列表") |
||||
|
@PostMapping("/getContractList") |
||||
|
@ResponseBody |
||||
|
public ResultBean<PagerVo<AppCommonContractPageVo>> getContractList(@RequestBody PagerQuery<AppCommonContractQuery> pagerQuery); |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,34 @@ |
|||||
|
package com.yxt.anrui.terminal.api.autoservice.contract; |
||||
|
|
||||
|
import com.yxt.anrui.base.api.commoncontract.*; |
||||
|
import com.yxt.common.core.query.PagerQuery; |
||||
|
import com.yxt.common.core.result.ResultBean; |
||||
|
import com.yxt.common.core.vo.PagerVo; |
||||
|
import org.springframework.stereotype.Component; |
||||
|
import org.springframework.web.multipart.MultipartFile; |
||||
|
|
||||
|
import java.io.IOException; |
||||
|
import java.text.ParseException; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
/** |
||||
|
* Project: anrui-base(安瑞基础) <br/> |
||||
|
* File: CommonContractFeignFallback.java <br/> |
||||
|
* Class: com.yxt.anrui.base.api.commoncontract.CommonContractFeignFallback <br/> |
||||
|
* Description: 合同表. <br/> |
||||
|
* Copyright: Copyright (c) 2011 <br/> |
||||
|
* Company: https://gitee.com/liuzp315 <br/>
|
||||
|
* Makedate: 2021-10-12 14:02:40 <br/> |
||||
|
* |
||||
|
* @author liupopo |
||||
|
* @version 1.0 |
||||
|
* @since 1.0 |
||||
|
*/ |
||||
|
@Component |
||||
|
public class AppCommonContractFeignFallback implements AppCommonContractFeign { |
||||
|
|
||||
|
@Override |
||||
|
public ResultBean<PagerVo<AppCommonContractPageVo>> getContractList(PagerQuery<AppCommonContractQuery> pagerQuery) { |
||||
|
return null; |
||||
|
} |
||||
|
} |
Loading…
Reference in new issue