Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
cc25ba7c
authored
Jul 17, 2026
by
renyizhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
api应用上下架无效问题
parent
fd8d753c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
computility-module-apihub/computility-module-apihub-biz/src/main/java/com/luhu/computility/module/apihub/controller/app/api/AppApiController.java
+2
-0
computility-module-apihub/computility-module-apihub-biz/src/main/java/com/luhu/computility/module/apihub/dal/mysql/api/ApiMapper.java
+1
-0
No files found.
computility-module-apihub/computility-module-apihub-biz/src/main/java/com/luhu/computility/module/apihub/controller/app/api/AppApiController.java
View file @
cc25ba7c
...
@@ -99,6 +99,8 @@ public class AppApiController {
...
@@ -99,6 +99,8 @@ public class AppApiController {
@Operation
(
summary
=
"获得API信息分页"
)
@Operation
(
summary
=
"获得API信息分页"
)
@PermitAll
@PermitAll
public
CommonResult
<
PageResult
<
AppApiRespVO
>>
getApiPage
(
@Valid
ApiPageReqVO
pageReqVO
)
{
public
CommonResult
<
PageResult
<
AppApiRespVO
>>
getApiPage
(
@Valid
ApiPageReqVO
pageReqVO
)
{
// 用户端仅展示已上架应用
pageReqVO
.
setStatus
(
1
);
PageResult
<
ApiRespVO
>
pageResult
=
apiService
.
getApiPage
(
pageReqVO
);
PageResult
<
ApiRespVO
>
pageResult
=
apiService
.
getApiPage
(
pageReqVO
);
return
success
(
BeanUtils
.
toBean
(
pageResult
,
AppApiRespVO
.
class
));
return
success
(
BeanUtils
.
toBean
(
pageResult
,
AppApiRespVO
.
class
));
}
}
...
...
computility-module-apihub/computility-module-apihub-biz/src/main/java/com/luhu/computility/module/apihub/dal/mysql/api/ApiMapper.java
View file @
cc25ba7c
...
@@ -46,6 +46,7 @@ public interface ApiMapper extends BaseMapperX<ApiDO> {
...
@@ -46,6 +46,7 @@ public interface ApiMapper extends BaseMapperX<ApiDO> {
.
selectAll
(
ApiDO
.
class
)
.
selectAll
(
ApiDO
.
class
)
.
selectAs
(
ApiCategoryDO
::
getName
,
ApiRespVO
::
getCategoryName
)
.
selectAs
(
ApiCategoryDO
::
getName
,
ApiRespVO
::
getCategoryName
)
.
leftJoin
(
ApiCategoryDO
.
class
,
ApiCategoryDO:
:
getId
,
ApiDO:
:
getCategoryId
)
.
leftJoin
(
ApiCategoryDO
.
class
,
ApiCategoryDO:
:
getId
,
ApiDO:
:
getCategoryId
)
.
eqIfPresent
(
ApiDO:
:
getStatus
,
reqVO
.
getStatus
())
.
eq
(!
ObjectUtil
.
isEmpty
(
reqVO
.
getCategoryId
()),
ApiCategoryDO:
:
getId
,
reqVO
.
getCategoryId
()
)
.
eq
(!
ObjectUtil
.
isEmpty
(
reqVO
.
getCategoryId
()),
ApiCategoryDO:
:
getId
,
reqVO
.
getCategoryId
()
)
.
like
(!
StringUtils
.
isEmpty
(
reqVO
.
getSearchQuery
()),
ApiCategoryDO:
:
getName
,
reqVO
.
getSearchQuery
())
.
like
(!
StringUtils
.
isEmpty
(
reqVO
.
getSearchQuery
()),
ApiCategoryDO:
:
getName
,
reqVO
.
getSearchQuery
())
.
or
(!
StringUtils
.
isEmpty
(
reqVO
.
getSearchQuery
()))
.
or
(!
StringUtils
.
isEmpty
(
reqVO
.
getSearchQuery
()))
...
...
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