Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzdict
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzdict
提交
8bf17949
提交
8bf17949
编写于
7月 26, 2022
作者:
sq3536
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
路径
上级
5d9b28ae
变更
4
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
14 行增加
和
11 行删除
+14
-11
webSecurityConfig.java
...rc/main/java/cn/ibizlab/web/config/webSecurityConfig.java
+1
-0
DevBootSecurityConfig.java
...rc/main/java/cn/ibizlab/config/DevBootSecurityConfig.java
+1
-0
apiSecurityConfig.java
...rc/main/java/cn/ibizlab/api/config/apiSecurityConfig.java
+1
-0
DictCoreResource.java
...java/cn/ibizlab/api/rest/extensions/DictCoreResource.java
+11
-11
未找到文件。
ibzdict-app/ibzdict-app-web/src/main/java/cn/ibizlab/web/config/webSecurityConfig.java
浏览文件 @
8bf17949
...
...
@@ -117,6 +117,7 @@ public class webSecurityConfig extends WebSecurityConfigurerAdapter {
.
antMatchers
(
"/"
+
downloadpath
+
"/**"
).
permitAll
()
.
antMatchers
(
"/"
+
uploadpath
).
permitAll
()
.
antMatchers
(
"/"
+
previewpath
+
"/**"
).
permitAll
()
.
antMatchers
(
"/dictionaries/**"
).
permitAll
()
.
antMatchers
(
"/dictionarys/**"
).
permitAll
()
// 所有请求都需要认证
.
anyRequest
().
authenticated
()
...
...
ibzdict-boot/src/main/java/cn/ibizlab/config/DevBootSecurityConfig.java
浏览文件 @
8bf17949
...
...
@@ -114,6 +114,7 @@ public class DevBootSecurityConfig extends WebSecurityConfigurerAdapter {
.
antMatchers
(
"/"
+
downloadpath
+
"/**"
).
permitAll
()
.
antMatchers
(
"/"
+
uploadpath
).
permitAll
()
.
antMatchers
(
"/"
+
previewpath
+
"/**"
).
permitAll
()
.
antMatchers
(
"/dictionaries/**"
).
permitAll
()
.
antMatchers
(
"/dictionarys/**"
).
permitAll
()
.
anyRequest
().
authenticated
()
// 防止iframe 造成跨域
...
...
ibzdict-provider/ibzdict-provider-api/src/main/java/cn/ibizlab/api/config/apiSecurityConfig.java
浏览文件 @
8bf17949
...
...
@@ -123,6 +123,7 @@ public class apiSecurityConfig extends WebSecurityConfigurerAdapter {
.
antMatchers
(
"/"
+
downloadpath
+
"/**"
).
permitAll
()
.
antMatchers
(
"/"
+
uploadpath
).
permitAll
()
.
antMatchers
(
"/"
+
previewpath
+
"/**"
).
permitAll
()
.
antMatchers
(
"/dictionaries/**"
).
permitAll
()
.
antMatchers
(
"/dictionarys/**"
).
permitAll
();
if
(
StringUtils
.
isNotBlank
(
excludesPattern
))
{
...
...
ibzdict-provider/ibzdict-provider-api/src/main/java/cn/ibizlab/api/rest/extensions/DictCoreResource.java
浏览文件 @
8bf17949
...
...
@@ -56,7 +56,7 @@ public class DictCoreResource {
@Lazy
private
DictCoreService
dictCoreService
;
@RequestMapping
(
method
=
{
RequestMethod
.
GET
},
value
=
"/dictionarys/catalogs/{code}"
)
@RequestMapping
(
method
=
{
RequestMethod
.
GET
},
value
=
{
"/dictionaries/catalogs/{code}"
,
"/dictionarys/catalogs/{code}"
}
)
public
ResponseEntity
<
Catalog
>
getCatalogs
(
@PathVariable
(
"code"
)
String
code
,
DictOptionSearchContext
context
)
{
Catalog
catalog
=
null
;
if
(
context
==
null
||
StringUtils
.
isEmpty
(
context
.
getSelectCond
().
getSqlSegment
()))
...
...
@@ -66,7 +66,7 @@ public class DictCoreResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
catalog
);
}
@RequestMapping
(
method
=
{
RequestMethod
.
GET
},
value
=
"/dictionarys/catalogs/{code}/options"
)
@RequestMapping
(
method
=
{
RequestMethod
.
GET
},
value
=
{
"/dictionaries/catalogs/{code}/options"
,
"/dictionarys/catalogs/{code}/options"
}
)
public
ResponseEntity
<
List
<
Option
>>
getOptions
(
@PathVariable
(
"code"
)
String
code
,
DictOptionSearchContext
context
)
{
Catalog
catalog
=
null
;
if
(
context
==
null
||
StringUtils
.
isEmpty
(
context
.
getSelectCond
().
getSqlSegment
()))
...
...
@@ -78,7 +78,7 @@ public class DictCoreResource {
@RequestMapping
(
method
=
{
RequestMethod
.
GET
},
value
=
"/dictionarys/codelist/{code}"
)
@RequestMapping
(
method
=
{
RequestMethod
.
GET
},
value
=
{
"/dictionaries/codelist/{code}"
,
"/dictionarys/codelist/{code}"
}
)
public
ResponseEntity
<
CodeList
>
getCodeList
(
@PathVariable
(
"code"
)
String
code
,
DictOptionSearchContext
context
)
{
CodeList
catalog
=
null
;
if
(
context
==
null
||
StringUtils
.
isEmpty
(
context
.
getSelectCond
().
getSqlSegment
()))
...
...
@@ -89,7 +89,7 @@ public class DictCoreResource {
}
@RequestMapping
(
method
=
{
RequestMethod
.
GET
},
value
=
"/dictionarys/codelist/{code}/items"
)
@RequestMapping
(
method
=
{
RequestMethod
.
GET
},
value
=
{
"/dictionaries/codelist/{code}/items"
,
"/dictionarys/codelist/{code}/items"
}
)
public
ResponseEntity
<
List
<
CodeItem
>>
getCodeItems
(
@PathVariable
(
"code"
)
String
code
,
DictOptionSearchContext
context
)
{
CodeList
catalog
=
null
;
if
(
context
==
null
||
StringUtils
.
isEmpty
(
context
.
getSelectCond
().
getSqlSegment
()))
...
...
@@ -100,7 +100,7 @@ public class DictCoreResource {
}
@RequestMapping
(
method
=
{
RequestMethod
.
POST
},
value
=
"/dictionarys/catalogs/{code}"
)
@RequestMapping
(
method
=
{
RequestMethod
.
POST
},
value
=
{
"/dictionaries/catalogs/{code}"
,
"/dictionarys/catalogs/{code}"
}
)
public
ResponseEntity
<
Catalog
>
catalogs
(
@PathVariable
(
"code"
)
String
code
,
@RequestBody
(
required
=
false
)
DictOptionSearchContext
context
)
{
Catalog
catalog
=
null
;
if
(
context
==
null
||
StringUtils
.
isEmpty
(
context
.
getSelectCond
().
getSqlSegment
()))
...
...
@@ -110,7 +110,7 @@ public class DictCoreResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
catalog
);
}
@RequestMapping
(
method
=
{
RequestMethod
.
POST
},
value
=
"/dictionarys/catalogs/{code}/options"
)
@RequestMapping
(
method
=
{
RequestMethod
.
POST
},
value
=
{
"/dictionaries/catalogs/{code}/options"
,
"/dictionarys/catalogs/{code}/options"
}
)
public
ResponseEntity
<
List
<
Option
>>
options
(
@PathVariable
(
"code"
)
String
code
,
@RequestBody
(
required
=
false
)
DictOptionSearchContext
context
)
{
Catalog
catalog
=
null
;
if
(
context
==
null
||
StringUtils
.
isEmpty
(
context
.
getSelectCond
().
getSqlSegment
()))
...
...
@@ -122,7 +122,7 @@ public class DictCoreResource {
@RequestMapping
(
method
=
{
RequestMethod
.
POST
},
value
=
"/dictionarys/codelist/{code}"
)
@RequestMapping
(
method
=
{
RequestMethod
.
POST
},
value
=
{
"/dictionaries/codelist/{code}"
,
"/dictionarys/codelist/{code}"
}
)
public
ResponseEntity
<
CodeList
>
codeList
(
@PathVariable
(
"code"
)
String
code
,
@RequestBody
(
required
=
false
)
DictOptionSearchContext
context
)
{
CodeList
catalog
=
null
;
if
(
context
==
null
||
StringUtils
.
isEmpty
(
context
.
getSelectCond
().
getSqlSegment
()))
...
...
@@ -133,7 +133,7 @@ public class DictCoreResource {
}
@RequestMapping
(
method
=
{
RequestMethod
.
POST
},
value
=
"/dictionarys/codelist/{code}/items"
)
@RequestMapping
(
method
=
{
RequestMethod
.
POST
},
value
=
{
"/dictionaries/codelist/{code}/items"
,
"/dictionarys/codelist/{code}/items"
}
)
public
ResponseEntity
<
List
<
CodeItem
>>
codeItems
(
@PathVariable
(
"code"
)
String
code
,
@RequestBody
(
required
=
false
)
DictOptionSearchContext
context
)
{
CodeList
catalog
=
null
;
if
(
context
==
null
||
StringUtils
.
isEmpty
(
context
.
getSelectCond
().
getSqlSegment
()))
...
...
@@ -144,18 +144,18 @@ public class DictCoreResource {
}
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/dictionarys/catalogs"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
{
"/dictionaries/catalogs"
,
"/dictionarys/catalogs"
}
)
public
ResponseEntity
<
Boolean
>
save
(
@RequestBody
DictCatalogDTO
dictcatalogdto
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dictcatalogService
.
save
(
dictcatalogMapping
.
toDomain
(
dictcatalogdto
)));
}
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/dictionarys/catalogs/savebatch"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
{
"/dictionaries/catalogs/savebatch"
,
"/dictionarys/catalogs/savebatch"
}
)
public
ResponseEntity
<
Boolean
>
saveBatch
(
@RequestBody
List
<
DictCatalogDTO
>
dictcatalogdtos
)
{
dictcatalogService
.
saveBatch
(
dictcatalogMapping
.
toDomain
(
dictcatalogdtos
));
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
true
);
}
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/dictionarys/catalogs/sync"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
{
"/dictionaries/catalogs/sync"
,
"/dictionarys/catalogs/sync"
}
)
public
ResponseEntity
<
Boolean
>
syncRuntimeDict
(
@RequestBody
List
<
DictCatalog
>
catalogs
){
dictCoreService
.
syncRuntimeDict
(
catalogs
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
true
);
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录