Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
a58977b1
Commit
a58977b1
authored
Jun 21, 2022
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加网关验证码验证
parent
60556dcd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
1 deletion
+31
-1
portal-manager/src/main/java/com/mortals/xhx/module/user/web/UserController.java
.../java/com/mortals/xhx/module/user/web/UserController.java
+31
-1
No files found.
portal-manager/src/main/java/com/mortals/xhx/module/user/web/UserController.java
View file @
a58977b1
package
com.mortals.xhx.module.user.web
;
import
com.mortals.framework.annotation.UnAuth
;
import
com.mortals.framework.common.Rest
;
import
com.mortals.framework.exception.AppException
;
import
com.mortals.framework.model.PageInfo
;
import
com.mortals.framework.model.Result
;
...
...
@@ -95,6 +96,35 @@ public class UserController extends BaseCRUDJsonBodyMappingController<UserServic
}
@Override
public
Rest
<
Map
<
String
,
Object
>>
list
(
UserEntity
query
)
{
Map
<
String
,
Object
>
model
=
new
HashMap
();
Rest
<
Map
<
String
,
Object
>>
ret
=
new
Rest
<>();
Context
context
=
this
.
getContext
();
String
busiDesc
=
"查询"
+
this
.
getModuleDesc
();
int
code
;
try
{
PageInfo
pageInfo
=
this
.
buildPageInfo
(
query
);
this
.
doListBefore
(
query
,
model
,
context
);
Result
result
=
this
.
getService
().
findExt
(
query
,
pageInfo
,
context
);
model
.
put
(
"data"
,
result
.
getList
());
model
.
put
(
"pageInfo"
,
result
.
getPageInfo
());
this
.
parsePageInfo
(
model
,
result
.
getPageInfo
());
code
=
this
.
doListAfter
(
query
,
model
,
context
);
this
.
recordSysLog
(
this
.
request
,
busiDesc
+
" 【成功】"
);
}
catch
(
Exception
var9
)
{
code
=
-
1
;
this
.
doException
(
this
.
request
,
busiDesc
,
model
,
var9
);
}
this
.
init
(
model
,
context
);
ret
.
setCode
(
code
);
ret
.
setData
(
model
);
ret
.
setDict
((
Map
<
String
,
Object
>)
model
.
remove
(
KEY_RESULT_DICT
));
ret
.
setMsg
(
model
.
remove
(
MESSAGE_INFO
).
toString
());
return
ret
;
}
/* @Override
public String list(@RequestBody(required = false) UserEntity query) {
Map<String, Object> model = new HashMap();
JSONObject ret = new JSONObject();
...
...
@@ -121,7 +151,7 @@ public class UserController extends BaseCRUDJsonBodyMappingController<UserServic
ret.put("dict", model.remove("dict"));
ret.put("data", model);
return ret.toJSONString();
}
}
*/
@RequestMapping
(
value
=
"change/password"
,
method
=
RequestMethod
.
POST
)
...
...
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