generated from msb_55675/Demo
Compare commits
2 Commits
fac441d3e2
...
f195c94d90
| Author | SHA1 | Date |
|---|---|---|
|
|
f195c94d90 | 4 years ago |
|
|
585cb383bd | 4 years ago |
@ -0,0 +1,13 @@
|
||||
package com.mashibing.apipassenger.remote;
|
||||
|
||||
import com.mashibing.common.dto.ResponseResult;
|
||||
import com.mashibing.common.response.NumberCodeResponse;
|
||||
import org.springframework.cloud.openfeign.FeignClient;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
|
||||
@FeignClient("service-verificationcode")
|
||||
public interface ServiceVefificationcodeClient {
|
||||
@GetMapping("/numberCode/{size}")
|
||||
ResponseResult<NumberCodeResponse> getNumberCode(@PathVariable("size") int size);
|
||||
}
|
||||
@ -1,16 +1,10 @@
|
||||
package com.mashibing.apipassenger.request;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class VerificationCodeDTO {
|
||||
private String passengerPhone;
|
||||
|
||||
public String getPassengerPhone() {
|
||||
return passengerPhone;
|
||||
}
|
||||
|
||||
public void setPassengerPhone(String passengerPhone) {
|
||||
this.passengerPhone = passengerPhone;
|
||||
}
|
||||
|
||||
|
||||
private String verificationCode;
|
||||
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -0,0 +1,8 @@
|
||||
package com.mashibing.common.response;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class TokenResponse {
|
||||
private String token;
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue