parent
3d8c978e1a
commit
417a48020d
@ -1,14 +0,0 @@
|
|||||||
package com.taxi.apipassenger.controller;
|
|
||||||
|
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
|
||||||
|
|
||||||
@RestController
|
|
||||||
class TestController {
|
|
||||||
|
|
||||||
@GetMapping("/test")
|
|
||||||
public String test(){
|
|
||||||
|
|
||||||
return "test";
|
|
||||||
}
|
|
||||||
}
|
|
@ -0,0 +1,15 @@
|
|||||||
|
package com.taxi.apipassenger.remote;
|
||||||
|
|
||||||
|
import com.internal.dto.ResponseResult;
|
||||||
|
import com.internal.response.NumberResponse;
|
||||||
|
import org.springframework.cloud.openfeign.FeignClient;
|
||||||
|
import org.springframework.web.bind.annotation.PathVariable;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMethod;
|
||||||
|
|
||||||
|
@FeignClient("service-verificationcode")
|
||||||
|
public interface ServiceVerificatoncodeClient {
|
||||||
|
|
||||||
|
@RequestMapping(method = RequestMethod.GET,value = "/numberCode/{size}")
|
||||||
|
ResponseResult<NumberResponse> getNumberCode(@PathVariable("size") int size);
|
||||||
|
}
|
Binary file not shown.
Loading…
Reference in new issue