Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
I
ims
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
ims
Commits
d6614ab1
提交
d6614ab1
authored
5月 25, 2023
作者:
余乾开
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'develop'
上级
fe6c52f3
cf075ff8
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
41 行增加
和
11 行删除
+41
-11
kustomization.yaml
kustomization/overlays/dev/kustomization.yaml
+1
-1
CorsConfig.java
.../src/main/java/com/mmc/csf/release/config/CorsConfig.java
+30
-0
ModuleInfoController.java
.../com/mmc/csf/release/controller/ModuleInfoController.java
+8
-8
application-local.yml
release-service/src/main/resources/application-local.yml
+2
-2
没有找到文件。
kustomization/overlays/dev/kustomization.yaml
浏览文件 @
d6614ab1
...
@@ -17,4 +17,4 @@ patches:
...
@@ -17,4 +17,4 @@ patches:
images
:
images
:
-
name
:
REGISTRY/NAMESPACE/IMAGE:TAG
-
name
:
REGISTRY/NAMESPACE/IMAGE:TAG
newName
:
mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/ims
newName
:
mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/ims
newTag
:
80c443cd4202b6cab12d9435231bd7a7636afce8
newTag
:
41b7c2796a4725d6e4455fa4c9672fa411b3fb3c
release-service/src/main/java/com/mmc/csf/release/config/CorsConfig.java
0 → 100644
浏览文件 @
d6614ab1
package
com
.
mmc
.
csf
.
release
.
config
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.web.cors.CorsConfiguration
;
import
org.springframework.web.cors.reactive.CorsWebFilter
;
import
org.springframework.web.cors.reactive.UrlBasedCorsConfigurationSource
;
/**
* @author 作者 geDuo
* @version 创建时间:2021年9月4日 上午9:33:40
* @explain 跨域
*/
@Configuration
public
class
CorsConfig
{
// 添加跨域过滤器
@Bean
public
CorsWebFilter
corsWebFilter
()
{
UrlBasedCorsConfigurationSource
source
=
new
UrlBasedCorsConfigurationSource
();
CorsConfiguration
config
=
new
CorsConfiguration
();
config
.
addAllowedOrigin
(
"*"
);
config
.
setAllowCredentials
(
true
);
config
.
addAllowedHeader
(
"*"
);
config
.
addAllowedMethod
(
"*"
);
source
.
registerCorsConfiguration
(
"/**"
,
config
);
return
new
CorsWebFilter
(
source
);
}
}
release-service/src/main/java/com/mmc/csf/release/controller/ModuleInfoController.java
浏览文件 @
d6614ab1
...
@@ -31,7 +31,7 @@ public class ModuleInfoController {
...
@@ -31,7 +31,7 @@ public class ModuleInfoController {
@Autowired
@Autowired
private
ModuleInfoService
moduleInfoService
;
private
ModuleInfoService
moduleInfoService
;
@ApiOperation
(
value
=
"宣传模块-新增"
)
@ApiOperation
(
value
=
"
V1.0.1-
宣传模块-新增"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)
})
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)
})
@PostMapping
(
"insertModuleInfo"
)
@PostMapping
(
"insertModuleInfo"
)
public
ResultBody
insertModuleInfo
(
@Validated
(
Create
.
class
)
@RequestBody
ModuleInfoVO
moduleInfoVO
)
{
public
ResultBody
insertModuleInfo
(
@Validated
(
Create
.
class
)
@RequestBody
ModuleInfoVO
moduleInfoVO
)
{
...
@@ -45,7 +45,7 @@ public class ModuleInfoController {
...
@@ -45,7 +45,7 @@ public class ModuleInfoController {
return
moduleInfoService
.
updateModuleInfo
(
moduleInfoVO
);
return
moduleInfoService
.
updateModuleInfo
(
moduleInfoVO
);
}
}
@ApiOperation
(
value
=
"删除宣传模块"
)
@ApiOperation
(
value
=
"
V1.0.1-
删除宣传模块"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)
})
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)
})
@GetMapping
(
"removeModuleInfo"
)
@GetMapping
(
"removeModuleInfo"
)
public
ResultBody
removeModuleInfo
(
@ApiParam
(
value
=
"id"
,
required
=
true
)
@RequestParam
Integer
id
)
{
public
ResultBody
removeModuleInfo
(
@ApiParam
(
value
=
"id"
,
required
=
true
)
@RequestParam
Integer
id
)
{
...
@@ -60,7 +60,7 @@ public class ModuleInfoController {
...
@@ -60,7 +60,7 @@ public class ModuleInfoController {
return
moduleInfoService
.
updateModuleInfoRemark
(
id
,
remark
);
return
moduleInfoService
.
updateModuleInfoRemark
(
id
,
remark
);
}
}
@ApiOperation
(
value
=
"宣传模块管理-分页"
)
@ApiOperation
(
value
=
"
V1.0.1-
宣传模块管理-分页"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ModuleInfoDTO
.
class
)
})
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ModuleInfoDTO
.
class
)
})
@PostMapping
(
"listModuleInfoPage"
)
@PostMapping
(
"listModuleInfoPage"
)
public
ResultBody
<
ModuleInfoDTO
>
listModuleInfoPage
(
public
ResultBody
<
ModuleInfoDTO
>
listModuleInfoPage
(
...
@@ -68,7 +68,7 @@ public class ModuleInfoController {
...
@@ -68,7 +68,7 @@ public class ModuleInfoController {
return
moduleInfoService
.
listModuleInfoPage
(
param
);
return
moduleInfoService
.
listModuleInfoPage
(
param
);
}
}
@ApiOperation
(
value
=
"banner管理-分页"
)
@ApiOperation
(
value
=
"
V1.0.1-
banner管理-分页"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
BannerInfoDTO
.
class
)
})
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
BannerInfoDTO
.
class
)
})
@PostMapping
(
"listBannerInfoPage"
)
@PostMapping
(
"listBannerInfoPage"
)
public
ResultBody
<
BannerInfoDTO
>
listBannerInfoPage
(
public
ResultBody
<
BannerInfoDTO
>
listBannerInfoPage
(
...
@@ -83,21 +83,21 @@ public class ModuleInfoController {
...
@@ -83,21 +83,21 @@ public class ModuleInfoController {
return
moduleInfoService
.
removeBannerInfo
(
id
);
return
moduleInfoService
.
removeBannerInfo
(
id
);
}
}
@ApiOperation
(
value
=
"banner-新增"
)
@ApiOperation
(
value
=
"
V1.0.1-
banner-新增"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)
})
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)
})
@PostMapping
(
"insertBannerInfo"
)
@PostMapping
(
"insertBannerInfo"
)
public
ResultBody
insertBannerInfo
(
@Validated
(
Create
.
class
)
@RequestBody
BannerInfoVO
bannerInfoVO
)
{
public
ResultBody
insertBannerInfo
(
@Validated
(
Create
.
class
)
@RequestBody
BannerInfoVO
bannerInfoVO
)
{
return
moduleInfoService
.
insertBannerInfo
(
bannerInfoVO
);
return
moduleInfoService
.
insertBannerInfo
(
bannerInfoVO
);
}
}
@ApiOperation
(
value
=
"banner-修改"
)
@ApiOperation
(
value
=
"
V1.0.1-
banner-修改"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)
})
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)
})
@PostMapping
(
"updateBannerInfo"
)
@PostMapping
(
"updateBannerInfo"
)
public
ResultBody
updateBannerInfo
(
@Validated
(
Update
.
class
)
@RequestBody
BannerInfoVO
bannerInfoVO
)
{
public
ResultBody
updateBannerInfo
(
@Validated
(
Update
.
class
)
@RequestBody
BannerInfoVO
bannerInfoVO
)
{
return
moduleInfoService
.
updateBannerInfo
(
bannerInfoVO
);
return
moduleInfoService
.
updateBannerInfo
(
bannerInfoVO
);
}
}
@ApiOperation
(
value
=
"banner-排序交换"
)
@ApiOperation
(
value
=
"
V1.0.1-
banner-排序交换"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)
})
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)
})
@PostMapping
(
"exchangeBannerInfo"
)
@PostMapping
(
"exchangeBannerInfo"
)
public
ResultBody
exchangeBannerInfo
(
@Validated
(
Others
.
class
)
@RequestBody
List
<
BannerInfoVO
>
list
)
{
public
ResultBody
exchangeBannerInfo
(
@Validated
(
Others
.
class
)
@RequestBody
List
<
BannerInfoVO
>
list
)
{
...
@@ -111,7 +111,7 @@ public class ModuleInfoController {
...
@@ -111,7 +111,7 @@ public class ModuleInfoController {
return
moduleInfoService
.
listBannerImg
(
moduleCode
);
return
moduleInfoService
.
listBannerImg
(
moduleCode
);
}
}
@ApiOperation
(
value
=
"banner批量删除"
)
@ApiOperation
(
value
=
"
V1.0.1-
banner批量删除"
)
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)
})
@ApiResponses
({
@ApiResponse
(
code
=
200
,
message
=
"OK"
,
response
=
ResultBody
.
class
)
})
@PostMapping
(
"batchRemoveBannerInfo"
)
@PostMapping
(
"batchRemoveBannerInfo"
)
public
ResultBody
batchRemoveBannerInfo
(
public
ResultBody
batchRemoveBannerInfo
(
...
...
release-service/src/main/resources/application-local.yml
浏览文件 @
d6614ab1
...
@@ -53,8 +53,8 @@ spring:
...
@@ -53,8 +53,8 @@ spring:
#Redis
#Redis
redis
:
redis
:
database
:
0
database
:
0
host
:
119.23.248.181
host
:
r-wz9ke310fs684hacn1pd.redis.rds.aliyuncs.com
password
:
mmc@redis123
password
:
MMC@2022&REDIS
port
:
6379
port
:
6379
#连接池
#连接池
lettuce
:
lettuce
:
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论