Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ioc_sixiang_license
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
zengtianlai3
ioc_sixiang_license
Commits
4b73783d
Commit
4b73783d
authored
Jul 11, 2022
by
zengtianlai3
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2.3.3 代码质量:变量和方法同名
parent
f1838a95
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
LoginController.java
.../java/iot/sixiang/license/controller/LoginController.java
+1
-1
GlobalExceptionHandler.java
...a/iot/sixiang/license/handler/GlobalExceptionHandler.java
+1
-1
BaseResult.java
...e/src/main/java/iot/sixiang/license/model/BaseResult.java
+2
-2
ResResult.java
...se/src/main/java/iot/sixiang/license/model/ResResult.java
+2
-2
No files found.
license/src/main/java/iot/sixiang/license/controller/LoginController.java
View file @
4b73783d
...
...
@@ -56,7 +56,7 @@ public class LoginController {
return
ResResult
.
success
().
record
(
loginVo
);
}
}
return
ResResult
.
failed
().
msg
(
"用户名或密码错误"
);
return
ResResult
.
failed
().
setMsgValue
(
"用户名或密码错误"
);
}
@ApiOperation
(
value
=
"注销接口"
,
notes
=
"注销接口"
)
...
...
license/src/main/java/iot/sixiang/license/handler/GlobalExceptionHandler.java
View file @
4b73783d
...
...
@@ -26,6 +26,6 @@ public class GlobalExceptionHandler {
@ResponseBody
//为了返回数据
public
BaseResult
error
(
IotLicenseException
e
){
log
.
error
(
"出现自定义异常,{}"
+
e
.
getMsg
());
return
BaseResult
.
failed
().
msg
(
e
.
getMsg
()).
cod
e
(
e
.
getCode
());
return
BaseResult
.
failed
().
setMsgValue
(
e
.
getMsg
()).
setCodeValu
e
(
e
.
getCode
());
}
}
license/src/main/java/iot/sixiang/license/model/BaseResult.java
View file @
4b73783d
...
...
@@ -69,13 +69,13 @@ public class BaseResult {
}
public
BaseResult
cod
e
(
long
code
)
{
public
BaseResult
setCodeValu
e
(
long
code
)
{
this
.
code
=
code
;
return
this
;
}
public
BaseResult
msg
(
String
message
)
{
public
BaseResult
setMsgValue
(
String
message
)
{
this
.
msg
=
message
;
return
this
;
}
...
...
license/src/main/java/iot/sixiang/license/model/ResResult.java
View file @
4b73783d
...
...
@@ -73,12 +73,12 @@ public class ResResult<T> {
}
public
ResResult
cod
e
(
long
code
)
{
public
ResResult
setCodeValu
e
(
long
code
)
{
this
.
code
=
code
;
return
this
;
}
public
ResResult
msg
(
String
message
)
{
public
ResResult
setMsgValue
(
String
message
)
{
this
.
msg
=
message
;
return
this
;
}
...
...
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