记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董敬伟
liquidnet-bus-v1
Commits
3fa927f7
Commit
3fa927f7
authored
Nov 18, 2021
by
zhanggb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
+feign:api:手机号静默登录接口(内部调用);
parent
4fa6a264
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
FeignAdamBaseClient.java
...liquidnet/service/feign/adam/api/FeignAdamBaseClient.java
+8
-0
AdamLoginController.java
...iquidnet/service/adam/controller/AdamLoginController.java
+5
-5
No files found.
liquidnet-bus-feign/liquidnet-api-feign-adam/src/main/java/com/liquidnet/service/feign/adam/api/FeignAdamBaseClient.java
View file @
3fa927f7
...
@@ -16,6 +16,7 @@ import org.springframework.web.bind.annotation.PostMapping;
...
@@ -16,6 +16,7 @@ import org.springframework.web.bind.annotation.PostMapping;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.Pattern
;
import
javax.validation.constraints.Pattern
;
import
java.util.List
;
import
java.util.List
;
...
@@ -43,4 +44,11 @@ public interface FeignAdamBaseClient {
...
@@ -43,4 +44,11 @@ public interface FeignAdamBaseClient {
@PostMapping
(
value
=
{
"rsc/reg/mobile"
})
@PostMapping
(
value
=
{
"rsc/reg/mobile"
})
ResponseDto
<
AdamUserInfoVo
>
registerByMobile
(
@Pattern
(
regexp
=
"\\d{11}"
,
message
=
"手机号格式有误"
)
ResponseDto
<
AdamUserInfoVo
>
registerByMobile
(
@Pattern
(
regexp
=
"\\d{11}"
,
message
=
"手机号格式有误"
)
@RequestParam
(
value
=
"mobile"
)
String
mobile
);
@RequestParam
(
value
=
"mobile"
)
String
mobile
);
@PostMapping
(
value
=
{
"login/silent_mobile"
})
ResponseDto
<
AdamUserInfoVo
>
loginBySilentMobile
(
@Pattern
(
regexp
=
"\\d{11}"
,
message
=
"手机号格式有误"
)
@NotBlank
(
message
=
"手机号不能为空"
)
@RequestParam
(
value
=
"mobile"
)
String
mobile
,
@NotBlank
(
message
=
"临时票据不能为空"
)
@RequestParam
(
value
=
"otp"
)
String
otp
);
}
}
liquidnet-bus-service/liquidnet-service-adam/liquidnet-service-adam-impl/src/main/java/com/liquidnet/service/adam/controller/AdamLoginController.java
View file @
3fa927f7
...
@@ -330,11 +330,11 @@ public class AdamLoginController {
...
@@ -330,11 +330,11 @@ public class AdamLoginController {
@ApiImplicitParam
(
type
=
"form"
,
required
=
true
,
dataType
=
"String"
,
name
=
"otp"
,
value
=
"临时票据"
),
@ApiImplicitParam
(
type
=
"form"
,
required
=
true
,
dataType
=
"String"
,
name
=
"otp"
,
value
=
"临时票据"
),
})
})
@PostMapping
(
value
=
{
"login/silent_mobile"
})
@PostMapping
(
value
=
{
"login/silent_mobile"
})
public
ResponseDto
<
AdamLoginInfoVo
>
loginByMobile
(
@Pattern
(
regexp
=
"\\d{11}"
,
message
=
"手机号格式有误"
)
public
ResponseDto
<
AdamLoginInfoVo
>
loginBy
Silent
Mobile
(
@Pattern
(
regexp
=
"\\d{11}"
,
message
=
"手机号格式有误"
)
@NotBlank
(
message
=
"手机号不能为空"
)
@NotBlank
(
message
=
"手机号不能为空"
)
@RequestParam
String
mobile
,
@RequestParam
String
mobile
,
@NotBlank
(
message
=
"临时票据不能为空"
)
@NotBlank
(
message
=
"临时票据不能为空"
)
@RequestParam
String
otp
)
{
@RequestParam
String
otp
)
{
log
.
info
(
"login by silent for mobile:{},{}"
,
mobile
,
otp
);
log
.
info
(
"login by silent for mobile:{},{}"
,
mobile
,
otp
);
String
otpDecrypt
=
null
;
String
otpDecrypt
=
null
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment