Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-operate-sys-cscec
Project
Project
Details
Activity
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
fulixin
dsk-operate-sys-cscec
Commits
fd5c01ce
Commit
fd5c01ce
authored
Dec 18, 2023
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
-
Signed-off-by:
Administrator
<
admin@example.com
>
parent
d2477e9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
DskOpenApiUtil.java
...em/src/main/java/com/dsk/system/utils/DskOpenApiUtil.java
+19
-0
No files found.
dsk-system/src/main/java/com/dsk/system/utils/DskOpenApiUtil.java
View file @
fd5c01ce
...
...
@@ -125,6 +125,25 @@ public class DskOpenApiUtil {
return
new
TableDataInfo
((
List
<?>)
list
,
count
);
}
/***
*@Description: 特殊返回
*@Param:
*@return: com.dsk.common.core.page.TableDataInfo
*@Author: Dgm
*@date: 2023/12/15 15:04
*/
public
TableDataInfo
responsePageT
(
Map
<
String
,
Object
>
resMap
)
throws
Exception
{
Integer
code
=
MapUtils
.
getInteger
(
resMap
,
"code"
,
300
);
Map
data
=
MapUtils
.
getMap
(
resMap
,
"data"
,
null
);
if
(
200
!=
code
)
{
throw
new
RuntimeException
();
}
Integer
count
=
MapUtils
.
getInteger
(
data
,
"totalCount"
,
0
);
Object
list
=
MapUtils
.
getObject
(
data
,
"list"
,
""
);
Object
object
=
MapUtils
.
getObject
(
data
,
"obj"
,
""
);
return
new
TableDataInfo
((
List
<?>)
list
,
count
,
object
);
}
private
void
initApiConfig
()
{
TenantHelper
.
ignore
(()
->
{
SysConfig
accessKeyId
=
sysConfigMapper
.
selectOne
(
Wrappers
.<
SysConfig
>
lambdaQuery
().
eq
(
SysConfig:
:
getTenantId
,
TenantConstants
.
DEFAULT_TENANT_ID
).
eq
(
SysConfig:
:
getConfigKey
,
"dsk-Appkey"
));
...
...
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