Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
open-platform-admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1a2602ce
authored
Dec 22, 2020
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加登陆接口返回码
1 parent
b102969e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
src/main/java/com/glsx/controller/AdMgrController.java
src/main/java/com/glsx/controller/CustomerMgrController.java
src/main/java/com/glsx/controller/AdMgrController.java
View file @
1a2602c
...
...
@@ -27,7 +27,8 @@ public class AdMgrController {
@RequestMapping
(
value
=
"/getAdMgrList"
,
method
=
RequestMethod
.
GET
)
@ResponseBody
public
R
getAdMgrList
(
Page
page
)
{
return
adMgrService
.
getAdMgrList
(
page
);
R
adMgrList
=
adMgrService
.
getAdMgrList
(
page
);
return
adMgrList
;
}
@RequestMapping
(
value
=
"/insertAd"
,
method
=
RequestMethod
.
POST
)
...
...
src/main/java/com/glsx/controller/CustomerMgrController.java
View file @
1a2602c
...
...
@@ -44,7 +44,7 @@ public class CustomerMgrController {
return
R
.
ok
(
"重置的密码成功"
);
}
@RequestMapping
(
value
=
"/startandstop"
,
method
=
RequestMethod
.
GE
T
)
@RequestMapping
(
value
=
"/startandstop"
,
method
=
RequestMethod
.
POS
T
)
@ResponseBody
public
R
startAndStop
(
int
id
,
int
status
)
{
int
num
=
customerMgrService
.
startAndStop
(
id
,
status
);
...
...
@@ -66,9 +66,9 @@ public class CustomerMgrController {
public
R
register
(
PlatformCustomer
customer
)
throws
NoSuchAlgorithmException
{
int
num
=
customerMgrService
.
register
(
customer
);
if
(
num
==
0
)
{
return
R
.
error
(
"注册失败"
);
return
R
.
error
(
"注册失败"
)
.
data
(
0
)
;
}
return
R
.
ok
(
"注册成功"
);
return
R
.
ok
(
"注册成功"
)
.
data
(
1
)
;
}
@RequestMapping
(
value
=
"/login"
,
method
=
RequestMethod
.
POST
)
...
...
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