Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
scrm
/
rop-merchant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 35eda044
authored
Aug 09, 2021
by
zhouhb
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]代码修改
1 parent
41b2f65c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
12 deletions
src/main/java/cn/com/glsx/merchants/config/DubboConfig.java
src/main/java/cn/com/glsx/merchants/response/LoginResponse.java
src/main/java/cn/com/glsx/merchants/service/LoginService.java
src/main/java/cn/com/glsx/merchants/config/DubboConfig.java
View file @
35eda04
...
@@ -18,62 +18,62 @@ public class DubboConfig {
...
@@ -18,62 +18,62 @@ public class DubboConfig {
@Bean
@Bean
public
MerchantProductRemote
getMerchantProductRemote
()
{
public
MerchantProductRemote
getMerchantProductRemote
()
{
return
factory
.
builder
(
MerchantProductRemote
.
class
).
check
(
false
).
timeout
(
30000
).
version
(
"2.0.0"
).
url
(
"dubbo://192.168.3.191:22889"
).
build
();
return
factory
.
builder
(
MerchantProductRemote
.
class
).
check
(
false
).
timeout
(
30000
).
version
(
"2.0.0"
).
build
();
}
}
@Bean
@Bean
public
MerchantProductMenuRemote
getMerchantProductMenuRemote
()
{
public
MerchantProductMenuRemote
getMerchantProductMenuRemote
()
{
return
factory
.
builder
(
MerchantProductMenuRemote
.
class
).
check
(
false
).
timeout
(
30000
).
version
(
"2.0.0"
).
url
(
"dubbo://192.168.3.191:22889"
).
build
();
return
factory
.
builder
(
MerchantProductMenuRemote
.
class
).
check
(
false
).
timeout
(
30000
).
version
(
"2.0.0"
).
build
();
}
}
@Bean
@Bean
public
MerchantDictTypeRemote
getMerchantDictTypeRemote
()
{
public
MerchantDictTypeRemote
getMerchantDictTypeRemote
()
{
return
factory
.
builder
(
MerchantDictTypeRemote
.
class
).
check
(
false
).
timeout
(
30000
).
version
(
"2.0.0"
).
url
(
"dubbo://192.168.3.191:22889"
).
build
();
return
factory
.
builder
(
MerchantDictTypeRemote
.
class
).
check
(
false
).
timeout
(
30000
).
version
(
"2.0.0"
).
build
();
}
}
@Bean
@Bean
public
MerchantDictDataRemote
getMerchantDictDataRemote
()
{
public
MerchantDictDataRemote
getMerchantDictDataRemote
()
{
return
factory
.
builder
(
MerchantDictDataRemote
.
class
).
check
(
false
).
timeout
(
30000
).
version
(
"2.0.0"
).
url
(
"dubbo://192.168.3.191:22889"
).
build
();
return
factory
.
builder
(
MerchantDictDataRemote
.
class
).
check
(
false
).
timeout
(
30000
).
version
(
"2.0.0"
).
build
();
}
}
@Bean
@Bean
public
MerchantProductFunctionRemote
getMerchantProductFunctionRemote
()
{
public
MerchantProductFunctionRemote
getMerchantProductFunctionRemote
()
{
return
factory
.
builder
(
MerchantProductFunctionRemote
.
class
).
check
(
false
).
timeout
(
30000
).
version
(
"2.0.0"
).
url
(
"dubbo://192.168.3.191:22889"
).
build
();
return
factory
.
builder
(
MerchantProductFunctionRemote
.
class
).
check
(
false
).
timeout
(
30000
).
version
(
"2.0.0"
).
build
();
}
}
@Bean
@Bean
public
MerchantLogRemote
getMerchantLogRemote
()
{
public
MerchantLogRemote
getMerchantLogRemote
()
{
return
factory
.
builder
(
MerchantLogRemote
.
class
).
check
(
false
).
timeout
(
30000
).
version
(
"2.0.0"
).
url
(
"dubbo://192.168.3.191:22889"
).
build
();
return
factory
.
builder
(
MerchantLogRemote
.
class
).
check
(
false
).
timeout
(
30000
).
version
(
"2.0.0"
).
build
();
}
}
@Bean
@Bean
public
MerchantUserRemote
getMerchantUserRemote
()
{
public
MerchantUserRemote
getMerchantUserRemote
()
{
return
factory
.
builder
(
MerchantUserRemote
.
class
).
check
(
false
).
timeout
(
30000
).
version
(
"2.0.0"
).
url
(
"dubbo://192.168.3.191:22889"
).
build
();
return
factory
.
builder
(
MerchantUserRemote
.
class
).
check
(
false
).
timeout
(
30000
).
version
(
"2.0.0"
).
build
();
}
}
@Bean
@Bean
public
MerchantFileRemote
getMerchantFileRemote
()
{
public
MerchantFileRemote
getMerchantFileRemote
()
{
return
factory
.
builder
(
MerchantFileRemote
.
class
).
check
(
false
).
timeout
(
30000
).
version
(
"2.0.0"
).
url
(
"dubbo://192.168.3.191:22889"
).
build
();
return
factory
.
builder
(
MerchantFileRemote
.
class
).
check
(
false
).
timeout
(
30000
).
version
(
"2.0.0"
).
build
();
}
}
@Bean
@Bean
public
MerchantAccountTypeRemote
getMerchantAccountTypeRemote
()
{
public
MerchantAccountTypeRemote
getMerchantAccountTypeRemote
()
{
return
factory
.
builder
(
MerchantAccountTypeRemote
.
class
).
check
(
false
).
timeout
(
30000
).
version
(
"2.0.0"
).
url
(
"dubbo://192.168.3.191:22889"
).
build
();
return
factory
.
builder
(
MerchantAccountTypeRemote
.
class
).
check
(
false
).
timeout
(
30000
).
version
(
"2.0.0"
).
build
();
}
}
@Bean
@Bean
public
MerchantRoleRemote
getMerchantRoleRemote
()
{
public
MerchantRoleRemote
getMerchantRoleRemote
()
{
return
factory
.
builder
(
MerchantRoleRemote
.
class
).
check
(
false
).
timeout
(
30000
).
version
(
"2.0.0"
).
url
(
"dubbo://192.168.3.191:22889"
).
build
();
return
factory
.
builder
(
MerchantRoleRemote
.
class
).
check
(
false
).
timeout
(
30000
).
version
(
"2.0.0"
).
build
();
}
}
@Bean
@Bean
public
MerchantRemote
getMerchantRemote
()
{
public
MerchantRemote
getMerchantRemote
()
{
return
factory
.
builder
(
MerchantRemote
.
class
).
check
(
false
).
timeout
(
30000
).
version
(
"2.0.0"
).
url
(
"dubbo://192.168.3.191:22889"
).
build
();
return
factory
.
builder
(
MerchantRemote
.
class
).
check
(
false
).
timeout
(
30000
).
version
(
"2.0.0"
).
build
();
}
}
@Bean
@Bean
public
MerchantStaffRemote
getMerchantStaffRemote
()
{
public
MerchantStaffRemote
getMerchantStaffRemote
()
{
return
factory
.
builder
(
MerchantStaffRemote
.
class
).
check
(
false
).
timeout
(
30000
).
version
(
"2.0.0"
).
url
(
"dubbo://192.168.3.191:22889"
).
build
();
return
factory
.
builder
(
MerchantStaffRemote
.
class
).
check
(
false
).
timeout
(
30000
).
version
(
"2.0.0"
).
build
();
}
}
@Bean
@Bean
...
...
src/main/java/cn/com/glsx/merchants/response/LoginResponse.java
View file @
35eda04
...
@@ -26,6 +26,12 @@ public class LoginResponse {
...
@@ -26,6 +26,12 @@ public class LoginResponse {
private
String
sessionId
;
private
String
sessionId
;
/**
/**
* 登录名
*/
@ApiModelProperty
(
name
=
"merchantName"
,
notes
=
"登录名"
,
dataType
=
"string"
,
required
=
true
,
example
=
"asdfasdf23423432432"
)
private
String
merchantName
;
/**
* 账户层级
* 账户层级
*/
*/
@ApiModelProperty
(
name
=
"accountLevel"
,
notes
=
"账户层级"
,
dataType
=
"string"
,
required
=
true
,
example
=
"asdfasdf23423432432"
)
@ApiModelProperty
(
name
=
"accountLevel"
,
notes
=
"账户层级"
,
dataType
=
"string"
,
required
=
true
,
example
=
"asdfasdf23423432432"
)
...
...
src/main/java/cn/com/glsx/merchants/service/LoginService.java
View file @
35eda04
...
@@ -64,6 +64,7 @@ public class LoginService {
...
@@ -64,6 +64,7 @@ public class LoginService {
response
.
setMerchantId
(
result
.
getBussinessId
());
response
.
setMerchantId
(
result
.
getBussinessId
());
response
.
setAccountLevel
(
result
.
getAccountLevel
());
response
.
setAccountLevel
(
result
.
getAccountLevel
());
response
.
setStatus
(
result
.
getStatus
());
response
.
setStatus
(
result
.
getStatus
());
return
response
;
return
response
;
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment