Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-tool
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
王通通
amos-tool
Commits
9f37b934
Commit
9f37b934
authored
Jun 16, 2023
by
陈祥烨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修订
parent
3d07a376
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
7 deletions
+6
-7
ApiInfoResource.java
...com/yeejoin/amos/api/tool/controller/ApiInfoResource.java
+2
-2
ApiSourceResource.java
...m/yeejoin/amos/api/tool/controller/ApiSourceResource.java
+1
-1
ApiInfoService.java
...om/yeejoin/amos/api/tool/face/service/ApiInfoService.java
+3
-3
TplCateService.java
...om/yeejoin/amos/api/tool/face/service/TplCateService.java
+0
-1
No files found.
src/main/java/com/yeejoin/amos/api/tool/controller/ApiInfoResource.java
View file @
9f37b934
...
@@ -94,13 +94,13 @@ public class ApiInfoResource {
...
@@ -94,13 +94,13 @@ public class ApiInfoResource {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@GetMapping
(
value
=
"/page"
)
@GetMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"分页查询"
,
notes
=
"分页查询"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"分页查询"
,
notes
=
"分页查询"
)
public
ResponseModel
<
Page
<
ApiInfoModel
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
,
@RequestParam
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
public
ResponseModel
<
Page
<
ApiInfoModel
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
,
@RequestParam
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
,
@RequestParam
(
value
=
"apiName"
,
required
=
false
)
String
apiName
)
{
{
Page
<
ApiInfoModel
>
page
=
new
Page
<
ApiInfoModel
>();
Page
<
ApiInfoModel
>
page
=
new
Page
<
ApiInfoModel
>();
page
.
setCurrent
(
current
);
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
apiInfoService
.
queryForApiInfoPage
(
page
,
apiSourceService
.
queryCodeById
(
sequenceNbr
)));
return
ResponseHelper
.
buildResponse
(
apiInfoService
.
queryForApiInfoPage
(
page
,
apiSourceService
.
queryCodeById
(
sequenceNbr
)
,
apiName
));
}
}
/**
/**
*列表全部数据查询
*列表全部数据查询
...
...
src/main/java/com/yeejoin/amos/api/tool/controller/ApiSourceResource.java
View file @
9f37b934
...
@@ -68,7 +68,7 @@ public class ApiSourceResource {
...
@@ -68,7 +68,7 @@ public class ApiSourceResource {
@DeleteMapping
(
value
=
"/{sequenceNbr}"
)
@DeleteMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"DELETE"
,
value
=
"根据sequenceNbr删除"
,
notes
=
"根据sequenceNbr删除"
)
@ApiOperation
(
httpMethod
=
"DELETE"
,
value
=
"根据sequenceNbr删除"
,
notes
=
"根据sequenceNbr删除"
)
public
ResponseModel
<
Boolean
>
deleteBySequenceNbr
(
HttpServletRequest
request
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
public
ResponseModel
<
Boolean
>
deleteBySequenceNbr
(
HttpServletRequest
request
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
List
<
ApiInfoModel
>
apiInfoModels
=
apiInfoService
.
queryForApiInfoListBy
Seq
(
apiSourceService
.
queryCodeById
(
sequenceNbr
));
List
<
ApiInfoModel
>
apiInfoModels
=
apiInfoService
.
queryForApiInfoListBy
ApiSource
(
apiSourceService
.
queryCodeById
(
sequenceNbr
));
for
(
ApiInfoModel
apiInfoModel:
apiInfoModels
){
for
(
ApiInfoModel
apiInfoModel:
apiInfoModels
){
apiInfoService
.
removeById
(
apiInfoModel
.
getSequenceNbr
());
apiInfoService
.
removeById
(
apiInfoModel
.
getSequenceNbr
());
}
}
...
...
src/main/java/com/yeejoin/amos/api/tool/face/service/ApiInfoService.java
View file @
9f37b934
...
@@ -19,8 +19,8 @@ public class ApiInfoService extends BaseService<ApiInfoModel,ApiInfo,ApiInfoMapp
...
@@ -19,8 +19,8 @@ public class ApiInfoService extends BaseService<ApiInfoModel,ApiInfo,ApiInfoMapp
/**
/**
* 分页查询
* 分页查询
*/
*/
public
Page
<
ApiInfoModel
>
queryForApiInfoPage
(
Page
<
ApiInfoModel
>
page
,
String
apiSourc
e
)
{
public
Page
<
ApiInfoModel
>
queryForApiInfoPage
(
Page
<
ApiInfoModel
>
page
,
String
apiSource
,
String
apiNam
e
)
{
return
this
.
queryForPage
(
page
,
null
,
false
,
apiSourc
e
);
return
this
.
queryForPage
(
page
,
null
,
false
,
apiSource
,
apiNam
e
);
}
}
/**
/**
...
@@ -33,7 +33,7 @@ public class ApiInfoService extends BaseService<ApiInfoModel,ApiInfo,ApiInfoMapp
...
@@ -33,7 +33,7 @@ public class ApiInfoService extends BaseService<ApiInfoModel,ApiInfo,ApiInfoMapp
/**
/**
* 列表查询 示例
* 列表查询 示例
*/
*/
public
List
<
ApiInfoModel
>
queryForApiInfoListBy
Seq
(
String
apiSource
)
{
public
List
<
ApiInfoModel
>
queryForApiInfoListBy
ApiSource
(
String
apiSource
)
{
return
this
.
queryForList
(
""
,
false
,
apiSource
);
return
this
.
queryForList
(
""
,
false
,
apiSource
);
}
}
...
...
src/main/java/com/yeejoin/amos/api/tool/face/service/TplCateService.java
View file @
9f37b934
...
@@ -3,7 +3,6 @@ package com.yeejoin.amos.api.tool.face.service;
...
@@ -3,7 +3,6 @@ package com.yeejoin.amos.api.tool.face.service;
import
com.yeejoin.amos.api.tool.face.model.TplCateModel
;
import
com.yeejoin.amos.api.tool.face.model.TplCateModel
;
import
com.yeejoin.amos.api.tool.face.orm.dao.TplCateMapper
;
import
com.yeejoin.amos.api.tool.face.orm.dao.TplCateMapper
;
import
com.yeejoin.amos.api.tool.face.orm.entity.TplCate
;
import
com.yeejoin.amos.api.tool.face.orm.entity.TplCate
;
import
org.typroject.tyboot.core.foundation.utils.Bean
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
import
java.util.List
;
...
...
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