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
25ae563e
Commit
25ae563e
authored
Jun 07, 2023
by
陈祥烨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
fd223103
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
61 additions
and
181 deletions
+61
-181
ApiInfoController.java
...m/yeejoin/amos/api/tool/controller/ApiInfoController.java
+18
-19
ApiSourceController.java
...yeejoin/amos/api/tool/controller/ApiSourceController.java
+12
-12
ApiInfoModel.java
...va/com/yeejoin/amos/api/tool/face/model/ApiInfoModel.java
+4
-10
ApiSourceModel.java
.../com/yeejoin/amos/api/tool/face/model/ApiSourceModel.java
+5
-9
ApiInfoVo.java
...va/com/yeejoin/amos/api/tool/face/model/Vo/ApiInfoVo.java
+0
-35
BaseMapper.java
...va/com/yeejoin/amos/api/tool/face/orm/dao/BaseMapper.java
+0
-11
BaseEntity.java
...com/yeejoin/amos/api/tool/face/orm/entity/BaseEntity.java
+0
-37
ApiInfoService.java
...om/yeejoin/amos/api/tool/face/service/ApiInfoService.java
+17
-21
ApiSourceService.java
.../yeejoin/amos/api/tool/face/service/ApiSourceService.java
+5
-5
IApiInfoService.java
...in/amos/api/tool/face/service/I_Intf/IApiInfoService.java
+0
-18
IApiSourceService.java
.../amos/api/tool/face/service/I_Intf/IApiSourceService.java
+0
-4
No files found.
src/main/java/com/yeejoin/amos/api/tool/controller/ApiInfoController.java
View file @
25ae563e
package
com
.
yeejoin
.
amos
.
api
.
tool
.
controller
;
package
com
.
yeejoin
.
amos
.
api
.
tool
.
controller
;
import
com.yeejoin.amos.api.tool.face.model.Vo.ApiInfoVo
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.List
;
import
java.util.List
;
import
com.yeejoin.amos.api.tool.face.service.
I_Impl.ApiInfoServiceImpl
;
import
com.yeejoin.amos.api.tool.face.service.
ApiInfoService
;
import
com.yeejoin.amos.api.tool.face.service.
I_Impl.ApiSourceServiceImpl
;
import
com.yeejoin.amos.api.tool.face.service.
ApiSourceService
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletRequest
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.api.tool.face.model.
Dto.ApiInfoDto
;
import
com.yeejoin.amos.api.tool.face.model.
ApiInfoModel
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
@CrossOrigin
@CrossOrigin
...
@@ -24,9 +23,9 @@ import org.typroject.tyboot.core.foundation.enumeration.UserType;
...
@@ -24,9 +23,9 @@ import org.typroject.tyboot.core.foundation.enumeration.UserType;
public
class
ApiInfoController
{
public
class
ApiInfoController
{
@Autowired
@Autowired
ApiInfoService
Impl
apiInfoServiceImpl
;
ApiInfoService
apiInfoService
;
@Autowired
@Autowired
ApiSourceService
Impl
apiSourceServiceImpl
;
ApiSourceService
apiSourceService
;
/**
/**
* 新增
* 新增
...
@@ -35,9 +34,9 @@ public class ApiInfoController{
...
@@ -35,9 +34,9 @@ public class ApiInfoController{
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@PostMapping
(
value
=
"/save"
)
@PostMapping
(
value
=
"/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增"
,
notes
=
"新增"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增"
,
notes
=
"新增"
)
public
ResponseModel
<
ApiInfo
Vo
>
save
(
@RequestBody
ApiInfoVo
apiInfoVo
)
throws
Exception
{
public
ResponseModel
<
ApiInfo
Model
>
save
(
@RequestBody
ApiInfoModel
apiInfoModel
)
throws
Exception
{
apiInfoService
Impl
.
insertApiInfo
(
apiInfoVo
);
apiInfoService
.
insertApiInfo
(
apiInfoModel
);
return
ResponseHelper
.
buildResponse
(
apiInfo
Vo
);
return
ResponseHelper
.
buildResponse
(
apiInfo
Model
);
}
}
/**
/**
...
@@ -48,9 +47,9 @@ public class ApiInfoController{
...
@@ -48,9 +47,9 @@ public class ApiInfoController{
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@PutMapping
(
value
=
"/{sequenceNbr}"
)
@PutMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"根据sequenceNbr更新"
,
notes
=
"根据sequenceNbr更新"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"根据sequenceNbr更新"
,
notes
=
"根据sequenceNbr更新"
)
public
ResponseModel
<
ApiInfo
Dto
>
updateBySequenceNbrApiInfo
(
@RequestBody
ApiInfoDto
model
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
public
ResponseModel
<
ApiInfo
Model
>
updateBySequenceNbrApiInfo
(
@RequestBody
ApiInfoModel
model
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
model
.
setSequenceNbr
(
sequenceNbr
);
model
.
setSequenceNbr
(
sequenceNbr
);
return
ResponseHelper
.
buildResponse
(
apiInfoService
Impl
.
updateWithModel
(
model
));
return
ResponseHelper
.
buildResponse
(
apiInfoService
.
updateWithModel
(
model
));
}
}
/**
/**
...
@@ -62,7 +61,7 @@ public class ApiInfoController{
...
@@ -62,7 +61,7 @@ public class ApiInfoController{
@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
){
return
ResponseHelper
.
buildResponse
(
apiInfoService
Impl
.
removeById
(
sequenceNbr
));
return
ResponseHelper
.
buildResponse
(
apiInfoService
.
removeById
(
sequenceNbr
));
}
}
/**
/**
* 根据sequenceNbr查询
* 根据sequenceNbr查询
...
@@ -72,8 +71,8 @@ public class ApiInfoController{
...
@@ -72,8 +71,8 @@ public class ApiInfoController{
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@GetMapping
(
value
=
"/{sequenceNbr}"
)
@GetMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个"
,
notes
=
"根据sequenceNbr查询单个"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个"
,
notes
=
"根据sequenceNbr查询单个"
)
public
ResponseModel
<
ApiInfo
Vo
>
selectOne
(
@PathVariable
Long
sequenceNbr
)
throws
Exception
{
public
ResponseModel
<
ApiInfo
Model
>
selectOne
(
@PathVariable
Long
sequenceNbr
)
throws
Exception
{
return
ResponseHelper
.
buildResponse
(
apiInfoService
Impl
.
selectApiInfoMsg
(
sequenceNbr
));
return
ResponseHelper
.
buildResponse
(
apiInfoService
.
selectApiInfoMsg
(
sequenceNbr
));
}
}
/**
/**
* 列表分页查询
* 列表分页查询
...
@@ -84,13 +83,13 @@ public class ApiInfoController{
...
@@ -84,13 +83,13 @@ public class ApiInfoController{
@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
<
ApiInfo
Dto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
,
@RequestParam
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
public
ResponseModel
<
Page
<
ApiInfo
Model
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
,
@RequestParam
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
{
Page
<
ApiInfo
Dto
>
page
=
new
Page
<
ApiInfoDto
>();
Page
<
ApiInfo
Model
>
page
=
new
Page
<
ApiInfoModel
>();
page
.
setCurrent
(
current
);
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
apiInfoService
Impl
.
queryForApiInfoPage
(
page
,
apiSourceServiceImpl
.
queryCodeById
(
sequenceNbr
)));
return
ResponseHelper
.
buildResponse
(
apiInfoService
.
queryForApiInfoPage
(
page
,
apiSourceService
.
queryCodeById
(
sequenceNbr
)));
}
}
/**
/**
*列表全部数据查询
*列表全部数据查询
...
@@ -99,8 +98,8 @@ public class ApiInfoController{
...
@@ -99,8 +98,8 @@ public class ApiInfoController{
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"列表全部数据查询"
,
notes
=
"列表全部数据查询"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"列表全部数据查询"
,
notes
=
"列表全部数据查询"
)
@GetMapping
(
value
=
"/list"
)
@GetMapping
(
value
=
"/list"
)
public
ResponseModel
<
List
<
ApiInfo
Dto
>>
selectForList
()
public
ResponseModel
<
List
<
ApiInfo
Model
>>
selectForList
()
{
{
return
ResponseHelper
.
buildResponse
(
apiInfoService
Impl
.
queryForApiInfoList
());
return
ResponseHelper
.
buildResponse
(
apiInfoService
.
queryForApiInfoList
());
}
}
}
}
src/main/java/com/yeejoin/amos/api/tool/controller/ApiSourceController.java
View file @
25ae563e
package
com
.
yeejoin
.
amos
.
api
.
tool
.
controller
;
package
com
.
yeejoin
.
amos
.
api
.
tool
.
controller
;
import
com.yeejoin.amos.api.tool.face.model.
Dto.ApiSourceDto
;
import
com.yeejoin.amos.api.tool.face.model.
ApiSourceModel
;
import
com.yeejoin.amos.api.tool.face.service.
I_Impl.ApiSourceServiceImpl
;
import
com.yeejoin.amos.api.tool.face.service.
ApiSourceService
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
...
@@ -24,7 +24,7 @@ import org.typroject.tyboot.core.foundation.enumeration.UserType;
...
@@ -24,7 +24,7 @@ import org.typroject.tyboot.core.foundation.enumeration.UserType;
public
class
ApiSourceController
{
public
class
ApiSourceController
{
@Autowired
@Autowired
ApiSourceService
Impl
apiSourceServiceImpl
;
ApiSourceService
apiSourceService
;
/**
/**
* 新增
* 新增
...
@@ -34,8 +34,8 @@ public class ApiSourceController {
...
@@ -34,8 +34,8 @@ public class ApiSourceController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@PostMapping
(
value
=
"/save"
)
@PostMapping
(
value
=
"/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增"
,
notes
=
"新增"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增"
,
notes
=
"新增"
)
public
ResponseModel
<
ApiSource
Dto
>
save
(
@RequestBody
ApiSourceDto
model
)
{
public
ResponseModel
<
ApiSource
Model
>
save
(
@RequestBody
ApiSourceModel
model
)
{
model
=
apiSourceService
Impl
.
createWithModel
(
model
);
model
=
apiSourceService
.
createWithModel
(
model
);
return
ResponseHelper
.
buildResponse
(
model
);
return
ResponseHelper
.
buildResponse
(
model
);
}
}
...
@@ -48,9 +48,9 @@ public class ApiSourceController {
...
@@ -48,9 +48,9 @@ public class ApiSourceController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@PutMapping
(
value
=
"/{sequenceNbr}"
)
@PutMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"根据sequenceNbr更新"
,
notes
=
"根据sequenceNbr更新"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"根据sequenceNbr更新"
,
notes
=
"根据sequenceNbr更新"
)
public
ResponseModel
<
ApiSource
Dto
>
updateBySeqApiSource
(
@RequestBody
ApiSourceDto
model
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
public
ResponseModel
<
ApiSource
Model
>
updateBySeqApiSource
(
@RequestBody
ApiSourceModel
model
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
model
.
setSequenceNbr
(
sequenceNbr
);
model
.
setSequenceNbr
(
sequenceNbr
);
return
ResponseHelper
.
buildResponse
(
apiSourceService
Impl
.
updateWithModel
(
model
));
return
ResponseHelper
.
buildResponse
(
apiSourceService
.
updateWithModel
(
model
));
}
}
/**
/**
...
@@ -63,7 +63,7 @@ public class ApiSourceController {
...
@@ -63,7 +63,7 @@ public class ApiSourceController {
@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
)
{
return
ResponseHelper
.
buildResponse
(
apiSourceService
Impl
.
removeById
(
sequenceNbr
));
return
ResponseHelper
.
buildResponse
(
apiSourceService
.
removeById
(
sequenceNbr
));
}
}
/**
/**
...
@@ -75,8 +75,8 @@ public class ApiSourceController {
...
@@ -75,8 +75,8 @@ public class ApiSourceController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@GetMapping
(
value
=
"/{sequenceNbr}"
)
@GetMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个"
,
notes
=
"根据sequenceNbr查询单个"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个"
,
notes
=
"根据sequenceNbr查询单个"
)
public
ResponseModel
<
ApiSource
Dto
>
selectOne
(
@PathVariable
Long
sequenceNbr
)
{
public
ResponseModel
<
ApiSource
Model
>
selectOne
(
@PathVariable
Long
sequenceNbr
)
{
return
ResponseHelper
.
buildResponse
(
apiSourceService
Impl
.
queryBySeq
(
sequenceNbr
));
return
ResponseHelper
.
buildResponse
(
apiSourceService
.
queryBySeq
(
sequenceNbr
));
}
}
...
@@ -88,8 +88,8 @@ public class ApiSourceController {
...
@@ -88,8 +88,8 @@ public class ApiSourceController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
,
needAuth
=
false
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"列表全部数据查询"
,
notes
=
"列表全部数据查询"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"列表全部数据查询"
,
notes
=
"列表全部数据查询"
)
@GetMapping
(
value
=
"/list"
)
@GetMapping
(
value
=
"/list"
)
public
ResponseModel
<
List
<
ApiSource
Dto
>>
selectForList
()
{
public
ResponseModel
<
List
<
ApiSource
Model
>>
selectForList
()
{
return
ResponseHelper
.
buildResponse
(
apiSourceService
Impl
.
queryForApiSourceList
());
return
ResponseHelper
.
buildResponse
(
apiSourceService
.
queryForApiSourceList
());
}
}
}
}
src/main/java/com/yeejoin/amos/api/tool/face/model/
Dto/ApiInfoDto
.java
→
src/main/java/com/yeejoin/amos/api/tool/face/model/
ApiInfoModel
.java
View file @
25ae563e
package
com
.
yeejoin
.
amos
.
api
.
tool
.
face
.
model
.
Dto
;
package
com
.
yeejoin
.
amos
.
api
.
tool
.
face
.
model
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.EqualsAndHashCode
;
import
org.typroject.tyboot.core.rdbms.model.BaseModel
;
import
java.util.Date
;
import
java.util.Date
;
@Data
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"ApiInfoDto"
,
description
=
""
)
@ApiModel
(
value
=
"ApiInfoDto"
,
description
=
""
)
public
class
ApiInfo
Dto
{
public
class
ApiInfo
Model
extends
BaseModel
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"物理主键"
)
private
Long
sequenceNbr
;
@ApiModelProperty
(
value
=
"接口来源"
)
@ApiModelProperty
(
value
=
"接口来源"
)
private
String
apiSource
;
private
String
apiSource
;
...
@@ -37,9 +36,4 @@ public class ApiInfoDto {
...
@@ -37,9 +36,4 @@ public class ApiInfoDto {
@ApiModelProperty
(
value
=
"解析规则配置"
)
@ApiModelProperty
(
value
=
"解析规则配置"
)
private
String
ruleData
;
private
String
ruleData
;
@ApiModelProperty
(
value
=
"更新时间"
)
protected
Date
recDate
;
@ApiModelProperty
(
value
=
"更新人"
)
protected
String
recUserId
;
}
}
src/main/java/com/yeejoin/amos/api/tool/face/model/
Dto/ApiSourceDto
.java
→
src/main/java/com/yeejoin/amos/api/tool/face/model/
ApiSourceModel
.java
View file @
25ae563e
package
com
.
yeejoin
.
amos
.
api
.
tool
.
face
.
model
.
Dto
;
package
com
.
yeejoin
.
amos
.
api
.
tool
.
face
.
model
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.EqualsAndHashCode
;
import
org.typroject.tyboot.core.rdbms.model.BaseModel
;
import
java.util.Date
;
import
java.util.Date
;
@Data
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"ApiSourceDto"
,
description
=
""
)
@ApiModel
(
value
=
"ApiSourceDto"
,
description
=
""
)
public
class
ApiSource
Dto
{
public
class
ApiSource
Model
extends
BaseModel
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"物理主键"
)
private
Long
sequenceNbr
;
@ApiModelProperty
(
value
=
"接口来源名称"
)
@ApiModelProperty
(
value
=
"接口来源名称"
)
private
String
name
;
private
String
name
;
...
@@ -22,9 +22,5 @@ public class ApiSourceDto {
...
@@ -22,9 +22,5 @@ public class ApiSourceDto {
@ApiModelProperty
(
value
=
"接口标识"
)
@ApiModelProperty
(
value
=
"接口标识"
)
private
String
code
;
private
String
code
;
@ApiModelProperty
(
value
=
"更新时间"
)
protected
Date
recDate
;
@ApiModelProperty
(
value
=
"更新人"
)
protected
String
recUserId
;
}
}
src/main/java/com/yeejoin/amos/api/tool/face/model/Vo/ApiInfoVo.java
deleted
100644 → 0
View file @
fd223103
package
com
.
yeejoin
.
amos
.
api
.
tool
.
face
.
model
.
Vo
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
java.io.Serializable
;
@Data
public
class
ApiInfoVo
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"接口来源"
)
private
String
apiSource
;
@ApiModelProperty
(
value
=
"接口名称"
)
private
String
apiName
;
@ApiModelProperty
(
value
=
"接口方法"
)
private
String
httpMethod
;
@ApiModelProperty
(
value
=
"接口地址"
)
private
String
apiPath
;
@ApiModelProperty
(
value
=
"响应方式"
)
private
String
resType
;
@ApiModelProperty
(
value
=
"请求参数配置"
)
private
String
bodyValue
;
@ApiModelProperty
(
value
=
"解析规则配置"
)
private
String
ruleData
;
@ApiModelProperty
(
value
=
"物理主键"
)
private
Long
sequenceNbr
;
}
src/main/java/com/yeejoin/amos/api/tool/face/orm/dao/BaseMapper.java
deleted
100644 → 0
View file @
fd223103
package
com
.
yeejoin
.
amos
.
api
.
tool
.
face
.
orm
.
dao
;
import
org.apache.ibatis.annotations.Mapper
;
/**
* MyBatis BaseMapper
* @author DELL
*/
@Mapper
public
interface
BaseMapper
{
}
src/main/java/com/yeejoin/amos/api/tool/face/orm/entity/BaseEntity.java
deleted
100644 → 0
View file @
fd223103
package
com
.
yeejoin
.
amos
.
api
.
tool
.
face
.
orm
.
entity
;
import
com.baomidou.mybatisplus.annotation.FieldFill
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
lombok.Data
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* 公共实体类
*
* @author DELL
*/
@Data
public
class
BaseEntity
implements
Serializable
{
/**
*
*/
private
static
final
long
serialVersionUID
=
1L
;
@TableId
(
value
=
"sequence_nbr"
,
type
=
IdType
.
AUTO
)
protected
Long
sequenceNbr
;
@TableField
(
value
=
"rec_date"
,
fill
=
FieldFill
.
INSERT_UPDATE
)
protected
Date
recDate
;
@TableField
(
value
=
"rec_user_id"
,
fill
=
FieldFill
.
INSERT_UPDATE
)
protected
String
recUserId
;
/**
* 是否删除
*/
// @TableField(value = "is_delete")
// private Boolean isDelete;
}
src/main/java/com/yeejoin/amos/api/tool/face/service/
I_Impl/ApiInfoServiceImpl
.java
→
src/main/java/com/yeejoin/amos/api/tool/face/service/
ApiInfoService
.java
View file @
25ae563e
package
com
.
yeejoin
.
amos
.
api
.
tool
.
face
.
service
.
I_Impl
;
package
com
.
yeejoin
.
amos
.
api
.
tool
.
face
.
service
;
import
com.yeejoin.amos.api.tool.face.orm.entity.ApiInfo
;
import
com.yeejoin.amos.api.tool.face.orm.entity.ApiInfo
;
import
com.yeejoin.amos.api.tool.face.orm.dao.ApiInfoMapper
;
import
com.yeejoin.amos.api.tool.face.orm.dao.ApiInfoMapper
;
import
com.yeejoin.amos.api.tool.face.service.I_Intf.IApiInfoService
;
import
com.yeejoin.amos.api.tool.face.model.ApiInfoModel
;
import
com.yeejoin.amos.api.tool.face.model.Dto.ApiInfoDto
;
import
com.yeejoin.amos.api.tool.face.model.Vo.ApiInfoVo
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
...
@@ -13,42 +11,40 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
...
@@ -13,42 +11,40 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import
java.util.List
;
import
java.util.List
;
@Service
@Service
public
class
ApiInfoService
Impl
extends
BaseService
<
ApiInfoDto
,
ApiInfo
,
ApiInfoMapper
>
implements
IApiInfoService
{
public
class
ApiInfoService
extends
BaseService
<
ApiInfoModel
,
ApiInfo
,
ApiInfoMapper
>
{
@Autowired
@Autowired
ApiSourceService
Impl
apiSourceService
;
ApiSourceService
apiSourceService
;
/**
/**
* 分页查询
* 分页查询
*/
*/
public
Page
<
ApiInfo
Dto
>
queryForApiInfoPage
(
Page
<
ApiInfoDto
>
page
,
String
apiSource
)
{
public
Page
<
ApiInfo
Model
>
queryForApiInfoPage
(
Page
<
ApiInfoModel
>
page
,
String
apiSource
)
{
return
this
.
queryForPage
(
page
,
null
,
false
,
apiSource
);
return
this
.
queryForPage
(
page
,
null
,
false
,
apiSource
);
}
}
/**
/**
* 列表查询 示例
* 列表查询 示例
*/
*/
public
List
<
ApiInfo
Dto
>
queryForApiInfoList
()
{
public
List
<
ApiInfo
Model
>
queryForApiInfoList
()
{
return
this
.
queryForList
(
""
,
false
);
return
this
.
queryForList
(
""
,
false
);
}
}
@Override
public
void
insertApiInfo
(
ApiInfo
Vo
apiInfoVo
)
throws
Exception
{
public
void
insertApiInfo
(
ApiInfo
Model
apiInfoModel
)
throws
Exception
{
ApiInfo
apiInfo
=
new
ApiInfo
();
ApiInfo
apiInfo
=
new
ApiInfo
();
BeanUtils
.
copyProperties
(
apiInfo
Vo
,
apiInfo
);
BeanUtils
.
copyProperties
(
apiInfo
Model
,
apiInfo
);
// 保存接口基本信息
// 保存接口基本信息
this
.
save
(
apiInfo
);
this
.
save
(
apiInfo
);
}
}
@Override
public
ApiInfo
Vo
selectApiInfoMsg
(
Long
sequenceNbr
)
throws
Exception
{
public
ApiInfo
Model
selectApiInfoMsg
(
Long
sequenceNbr
)
throws
Exception
{
// 查询接口基本信息
// 查询接口基本信息
ApiInfoDto
apiInfoDto
=
this
.
queryBySeq
(
sequenceNbr
);
ApiInfoModel
apiInfoModel
=
this
.
queryBySeq
(
sequenceNbr
);
ApiInfoVo
apiInfoVo
=
new
ApiInfoVo
();
return
apiInfoModel
;
BeanUtils
.
copyProperties
(
apiInfoDto
,
apiInfoVo
);
return
apiInfoVo
;
}
}
@Override
public
void
deleteApiInfo
(
Long
sequenceNbr
)
throws
Exception
{
public
void
deleteApiInfo
(
Long
sequenceNbr
)
throws
Exception
{
// 删除接口基本信息
// 删除接口基本信息
this
.
deleteBySeq
(
sequenceNbr
);
this
.
deleteBySeq
(
sequenceNbr
);
...
@@ -56,11 +52,11 @@ public class ApiInfoServiceImpl extends BaseService<ApiInfoDto,ApiInfo,ApiInfoMa
...
@@ -56,11 +52,11 @@ public class ApiInfoServiceImpl extends BaseService<ApiInfoDto,ApiInfo,ApiInfoMa
ApiInfo
apiInfo
=
this
.
getById
(
sequenceNbr
);
ApiInfo
apiInfo
=
this
.
getById
(
sequenceNbr
);
}
}
@Override
public
void
updateApiInfo
(
ApiInfo
Vo
apiInfoVo
,
Long
sequenceNbr
)
throws
Exception
{
public
void
updateApiInfo
(
ApiInfo
Model
apiInfoModel
,
Long
sequenceNbr
)
throws
Exception
{
// 更新接口基本信息
// 更新接口基本信息
ApiInfo
apiInfo
=
new
ApiInfo
();
ApiInfo
apiInfo
=
new
ApiInfo
();
BeanUtils
.
copyProperties
(
apiInfo
Vo
,
apiInfo
);
BeanUtils
.
copyProperties
(
apiInfo
Model
,
apiInfo
);
this
.
updateById
(
apiInfo
);
this
.
updateById
(
apiInfo
);
// 更新接口来源信息
// 更新接口来源信息
...
...
src/main/java/com/yeejoin/amos/api/tool/face/service/
I_Impl/ApiSourceServiceImpl
.java
→
src/main/java/com/yeejoin/amos/api/tool/face/service/
ApiSourceService
.java
View file @
25ae563e
package
com
.
yeejoin
.
amos
.
api
.
tool
.
face
.
service
.
I_Impl
;
package
com
.
yeejoin
.
amos
.
api
.
tool
.
face
.
service
;
import
com.yeejoin.amos.api.tool.face.model.
Dto.ApiSourceDto
;
import
com.yeejoin.amos.api.tool.face.model.
ApiSourceModel
;
import
com.yeejoin.amos.api.tool.face.orm.entity.ApiSource
;
import
com.yeejoin.amos.api.tool.face.orm.entity.ApiSource
;
import
com.yeejoin.amos.api.tool.face.orm.dao.ApiSourceMapper
;
import
com.yeejoin.amos.api.tool.face.orm.dao.ApiSourceMapper
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
...
@@ -9,18 +9,18 @@ import org.springframework.stereotype.Service;
...
@@ -9,18 +9,18 @@ import org.springframework.stereotype.Service;
import
java.util.List
;
import
java.util.List
;
@Service
@Service
public
class
ApiSourceService
Impl
extends
BaseService
<
ApiSourceDto
,
ApiSource
,
ApiSourceMapper
>
{
public
class
ApiSourceService
extends
BaseService
<
ApiSourceModel
,
ApiSource
,
ApiSourceMapper
>
{
/**
/**
* 列表查询 示例
* 列表查询 示例
*/
*/
public
List
<
ApiSource
Dto
>
queryForApiSourceList
()
{
public
List
<
ApiSource
Model
>
queryForApiSourceList
()
{
return
this
.
queryForList
(
""
,
false
);
return
this
.
queryForList
(
""
,
false
);
}
}
public
String
queryCodeById
(
Long
sequenceNbr
){
public
String
queryCodeById
(
Long
sequenceNbr
){
ApiSource
Dto
model
=
this
.
queryModelByParams
(
sequenceNbr
);
ApiSource
Model
model
=
this
.
queryModelByParams
(
sequenceNbr
);
return
model
.
getCode
();
return
model
.
getCode
();
}
}
}
}
src/main/java/com/yeejoin/amos/api/tool/face/service/I_Intf/IApiInfoService.java
deleted
100644 → 0
View file @
fd223103
package
com
.
yeejoin
.
amos
.
api
.
tool
.
face
.
service
.
I_Intf
;
import
com.yeejoin.amos.api.tool.face.model.Dto.ApiInfoDto
;
import
com.yeejoin.amos.api.tool.face.model.Vo.ApiInfoVo
;
import
org.apache.ibatis.annotations.Param
;
public
interface
IApiInfoService
{
void
insertApiInfo
(
ApiInfoVo
apiInfoVo
)
throws
Exception
;
ApiInfoVo
selectApiInfoMsg
(
@Param
(
"sequenceNbr"
)
Long
sequenceNbr
)
throws
Exception
;
// ApiInfoDto selectApiInfo(@Param("apiSource") String apiSource) throws Exception;
void
deleteApiInfo
(
@Param
(
"sequenceNbr"
)
Long
sequenceNbr
)
throws
Exception
;
void
updateApiInfo
(
ApiInfoVo
apiInfoVo
,
Long
sequenceNbr
)
throws
Exception
;
}
src/main/java/com/yeejoin/amos/api/tool/face/service/I_Intf/IApiSourceService.java
deleted
100644 → 0
View file @
fd223103
package
com
.
yeejoin
.
amos
.
api
.
tool
.
face
.
service
.
I_Intf
;
public
interface
IApiSourceService
{
}
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