Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
lic
Project
Project
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
Graph
比较
统计图
议题
0
议题
0
列表
看板
标记
Milestones
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
inroi
lic
Commits
754e1fe8
提交
754e1fe8
authored
4月 10, 2023
作者:
李炎
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
微调
上级
aa2933e2
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
24 行增加
和
10 行删除
+24
-10
LicInfoController.java
...rc/main/java/com/system/controller/LicInfoController.java
+1
-1
DockerServiceDto.java
...system/src/main/java/com/system/dto/DockerServiceDto.java
+1
-1
DockerImage.java
lic-system/src/main/java/com/system/entity/DockerImage.java
+3
-0
DockerImageVersionServiceImpl.java
...om/system/serivce/impl/DockerImageVersionServiceImpl.java
+5
-2
LicInfoCreateInVo.java
.../main/java/com/system/transfer/lic/LicInfoCreateInVo.java
+3
-0
LicInfoListOutVo.java
...c/main/java/com/system/transfer/lic/LicInfoListOutVo.java
+5
-0
RestResponse.java
.../main/java/com/system/transfer/response/RestResponse.java
+5
-5
application.yaml
lic-system/src/main/resources/application.yaml
+1
-1
没有找到文件。
lic-system/src/main/java/com/system/controller/LicInfoController.java
浏览文件 @
754e1fe8
...
@@ -24,7 +24,7 @@ public class LicInfoController {
...
@@ -24,7 +24,7 @@ public class LicInfoController {
@ApiOperation
(
"Lic信息列表"
)
@ApiOperation
(
"Lic信息列表"
)
@GetMapping
(
"/lic/info/list"
)
@GetMapping
(
"/lic/info/list"
)
public
RestResponse
licInfoList
(
@ModelAttribute
LicInfoListInVo
inVo
)
{
public
RestResponse
<
LicInfoListOutVo
>
licInfoList
(
@ModelAttribute
LicInfoListInVo
inVo
)
{
LicInfoListOutVo
outVo
=
locInfoService
.
licInfoList
(
inVo
);
LicInfoListOutVo
outVo
=
locInfoService
.
licInfoList
(
inVo
);
return
RestResponse
.
success
(
outVo
);
return
RestResponse
.
success
(
outVo
);
}
}
...
...
lic-system/src/main/java/com/system/dto/DockerServiceDto.java
浏览文件 @
754e1fe8
...
@@ -7,7 +7,7 @@ import lombok.Data;
...
@@ -7,7 +7,7 @@ import lombok.Data;
import
java.io.Serializable
;
import
java.io.Serializable
;
@Data
@Data
@ApiModel
(
value
=
"docker镜像表
"
,
description
=
"私有镜像
"
)
@ApiModel
(
value
=
"docker镜像表
Dto"
,
description
=
"私有镜像Dto
"
)
public
class
DockerServiceDto
implements
Serializable
{
public
class
DockerServiceDto
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
...
lic-system/src/main/java/com/system/entity/DockerImage.java
浏览文件 @
754e1fe8
package
com
.
system
.
entity
;
package
com
.
system
.
entity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
...
@@ -25,11 +26,13 @@ public class DockerImage implements Serializable {
...
@@ -25,11 +26,13 @@ public class DockerImage implements Serializable {
private
Integer
id
;
private
Integer
id
;
@ApiModelProperty
(
value
=
"镜像名"
)
@ApiModelProperty
(
value
=
"镜像名"
)
@TableField
(
value
=
"`name`"
)
private
String
name
;
private
String
name
;
@ApiModelProperty
(
value
=
"服务路径"
)
@ApiModelProperty
(
value
=
"服务路径"
)
private
String
contextPath
;
private
String
contextPath
;
@ApiModelProperty
(
value
=
"描述"
)
@ApiModelProperty
(
value
=
"描述"
)
@TableField
(
value
=
"`describe`"
)
private
String
describe
;
private
String
describe
;
}
}
lic-system/src/main/java/com/system/serivce/impl/DockerImageVersionServiceImpl.java
浏览文件 @
754e1fe8
...
@@ -17,14 +17,17 @@ public class DockerImageVersionServiceImpl extends ServiceImpl<DockerImageVersio
...
@@ -17,14 +17,17 @@ public class DockerImageVersionServiceImpl extends ServiceImpl<DockerImageVersio
@Override
@Override
public
boolean
deleteByImageId
(
Integer
imageId
)
{
public
boolean
deleteByImageId
(
Integer
imageId
)
{
LambdaQueryWrapper
<
DockerImageVersion
>
wrapper
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
DockerImageVersion
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
eq
(
DockerImageVersion:
:
getImageId
,
imageId
);
wrapper
.
eq
(
DockerImageVersion:
:
getImageId
,
imageId
);
if
(
count
(
wrapper
)
==
0
)
{
return
true
;
}
return
this
.
remove
(
wrapper
);
return
this
.
remove
(
wrapper
);
}
}
@Override
@Override
public
List
<
DockerImageVersion
>
listByImageId
(
Integer
imagesId
)
{
public
List
<
DockerImageVersion
>
listByImageId
(
Integer
imagesId
)
{
LambdaQueryWrapper
<
DockerImageVersion
>
qw
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
DockerImageVersion
>
qw
=
new
LambdaQueryWrapper
<>();
qw
.
eq
(
DockerImageVersion:
:
getImageId
,
imagesId
);
qw
.
eq
(
DockerImageVersion:
:
getImageId
,
imagesId
);
return
list
(
qw
);
return
list
(
qw
);
}
}
}
}
...
...
lic-system/src/main/java/com/system/transfer/lic/LicInfoCreateInVo.java
浏览文件 @
754e1fe8
...
@@ -45,6 +45,9 @@ public class LicInfoCreateInVo {
...
@@ -45,6 +45,9 @@ public class LicInfoCreateInVo {
*/
*/
private
List
<
String
>
moduleVerification
;
private
List
<
String
>
moduleVerification
;
/**
* 服务
*/
private
List
<
DockerServiceDto
>
dockerServices
;
private
List
<
DockerServiceDto
>
dockerServices
;
/**
/**
...
...
lic-system/src/main/java/com/system/transfer/lic/LicInfoListOutVo.java
浏览文件 @
754e1fe8
package
com
.
system
.
transfer
.
lic
;
package
com
.
system
.
transfer
.
lic
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.Data
;
import
java.util.List
;
import
java.util.List
;
...
@@ -8,17 +10,20 @@ import java.util.List;
...
@@ -8,17 +10,20 @@ import java.util.List;
* @author Inori
* @author Inori
*/
*/
@Data
@Data
@ApiModel
(
value
=
"LicInfoListOutVo"
)
public
class
LicInfoListOutVo
{
public
class
LicInfoListOutVo
{
/**
/**
* 总数
* 总数
*/
*/
@ApiModelProperty
(
value
=
"条数"
)
private
Integer
total
;
private
Integer
total
;
/**
/**
* 记录
* 记录
*/
*/
@ApiModelProperty
(
value
=
"item"
)
private
List
<
LicInfoListOutVoRecords
>
records
;
private
List
<
LicInfoListOutVoRecords
>
records
;
...
...
lic-system/src/main/java/com/system/transfer/response/RestResponse.java
浏览文件 @
754e1fe8
...
@@ -3,7 +3,7 @@ package com.system.transfer.response;
...
@@ -3,7 +3,7 @@ package com.system.transfer.response;
/**
/**
* @author Inori
* @author Inori
*/
*/
public
class
RestResponse
{
public
class
RestResponse
<
T
>
{
public
static
final
int
CODE_SUCCESS
=
200
;
public
static
final
int
CODE_SUCCESS
=
200
;
public
static
final
int
CODE_VERSION_NONSUPPORT
=
305
;
public
static
final
int
CODE_VERSION_NONSUPPORT
=
305
;
public
static
final
int
CODE_PARAM_ERROR
=
400
;
public
static
final
int
CODE_PARAM_ERROR
=
400
;
...
@@ -15,7 +15,7 @@ public class RestResponse {
...
@@ -15,7 +15,7 @@ public class RestResponse {
private
int
code
;
private
int
code
;
private
String
message
;
private
String
message
;
private
Object
data
=
null
;
private
T
data
;
public
static
RestResponse
success
()
{
public
static
RestResponse
success
()
{
RestResponse
restResponse
=
new
RestResponse
();
RestResponse
restResponse
=
new
RestResponse
();
...
@@ -24,8 +24,8 @@ public class RestResponse {
...
@@ -24,8 +24,8 @@ public class RestResponse {
return
restResponse
;
return
restResponse
;
}
}
public
static
RestResponse
success
(
Object
data
)
{
public
static
<
T
>
RestResponse
<
T
>
success
(
T
data
)
{
RestResponse
restResponse
=
new
RestResponse
();
RestResponse
<
T
>
restResponse
=
new
RestResponse
<
T
>
();
restResponse
.
setCode
(
200
);
restResponse
.
setCode
(
200
);
restResponse
.
setData
(
data
);
restResponse
.
setData
(
data
);
return
restResponse
;
return
restResponse
;
...
@@ -85,7 +85,7 @@ public class RestResponse {
...
@@ -85,7 +85,7 @@ public class RestResponse {
return
data
;
return
data
;
}
}
public
void
setData
(
Object
data
)
{
public
void
setData
(
T
data
)
{
this
.
data
=
data
;
this
.
data
=
data
;
}
}
...
...
lic-system/src/main/resources/application.yaml
浏览文件 @
754e1fe8
spring
:
spring
:
profiles
:
profiles
:
active
:
test
active
:
docker
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论