Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
d7699221
提交
d7699221
编写于
12月 04, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ShineKOT 发布系统代码 [后台服务,演示应用]
上级
3086bcc9
变更
10
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
1338 行增加
和
30 行删除
+1338
-30
ibizappctrls.ts
app_Web/src/mock/entity/ibizappctrls/ibizappctrls.ts
+214
-9
ibizappeditors.ts
app_Web/src/mock/entity/ibizappeditors/ibizappeditors.ts
+214
-9
ibizappviews.ts
app_Web/src/mock/entity/ibizappviews/ibizappviews.ts
+214
-9
ibizappctrl-service-base.ts
app_Web/src/service/ibizappctrl/ibizappctrl-service-base.ts
+120
-0
ibizappeditor-service-base.ts
...b/src/service/ibizappeditor/ibizappeditor-service-base.ts
+120
-0
ibizappview-service-base.ts
app_Web/src/service/ibizappview/ibizappview-service-base.ts
+120
-0
h2_table.xml
demo-core/src/main/resources/liquibase/h2_table.xml
+3
-3
IBIZAPPCTRLResource.java
...ain/java/cn/ibizlab/demoapi/rest/IBIZAPPCTRLResource.java
+111
-0
IBIZAPPEDITORResource.java
...n/java/cn/ibizlab/demoapi/rest/IBIZAPPEDITORResource.java
+111
-0
IBIZAPPVIEWResource.java
...ain/java/cn/ibizlab/demoapi/rest/IBIZAPPVIEWResource.java
+111
-0
未找到文件。
app_Web/src/mock/entity/ibizappctrls/ibizappctrls.ts
浏览文件 @
d7699221
...
...
@@ -114,16 +114,165 @@ mock.onGet(new RegExp(/^\/ibizappctrls\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).repl
console
.
groupEnd
();
return
[
status
,
_items
];
});
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// Create
mock
.
onPost
(
new
RegExp
(
/^
\/
ibizappctrls
\/?([
a-zA-Z0-9
\-\;]{0,35})
$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizappctrl 方法: Create"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
const
paramArray
:
Array
<
any
>
=
[
'ibizappctrlid'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
ibizappctrls
\/([
a-zA-Z0-9
\-\;]{1,35})
$/
).
exec
(
config
.
url
);
let
tempValue
:
any
=
{};
if
(
matchArray
&&
matchArray
.
length
>
1
&&
paramArray
&&
paramArray
.
length
>
0
){
paramArray
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
}
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
(
mockDatas
[
0
]);
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
mockDatas
[
0
]];
});
// Update
mock
.
onPut
(
new
RegExp
(
/^
\/
ibizappctrls
\/?([
a-zA-Z0-9
\-\;]{0,35})
$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizappctrl 方法: Update"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
const
paramArray
:
Array
<
any
>
=
[
'ibizappctrlid'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
ibizappctrls
\/([
a-zA-Z0-9
\-\;]{1,35})
$/
).
exec
(
config
.
url
);
let
tempValue
:
any
=
{};
if
(
matchArray
&&
matchArray
.
length
>
1
&&
paramArray
&&
paramArray
.
length
>
0
){
paramArray
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
}
//let items = mockDatas ? mockDatas : [];
//let _items = items.find((item: any) => Object.is(item.ibizappctrlid, tempValue.ibizappctrlid));
let
data
=
JSON
.
parse
(
config
.
data
);
mockDatas
.
forEach
((
item
)
=>
{
if
(
item
[
'ibizappctrlid'
]
==
tempValue
[
'ibizappctrlid'
]
){
for
(
let
value
in
data
){
if
(
item
.
hasOwnProperty
(
value
)){
item
[
value
]
=
data
[
value
];
}
}
}
})
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
(
data
);
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
data
];
});
// GetDraft
mock
.
onGet
(
new
RegExp
(
/^
\/
ibizappctrls
\/
getdraft$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizappctrl 方法: GetDraft"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
// GetDraft
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
({});
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
{}];
});
// CheckKey
mock
.
onPost
(
new
RegExp
(
/^
\/
ibizappctrls
\/?([
a-zA-Z0-9
\-\;]{0,35})\/
checkkey$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizappctrl 方法: CheckKey"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
const
paramArray
:
Array
<
any
>
=
[
'ibizappctrlid'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
ibizappctrls
\/([
a-zA-Z0-9
\-\;]{1,35})\/
checkkey$/
).
exec
(
config
.
url
);
let
tempValue
:
any
=
{};
if
(
matchArray
&&
matchArray
.
length
>
1
&&
paramArray
&&
paramArray
.
length
>
0
){
paramArray
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
}
//let items = mockDatas ? mockDatas : [];
//let _items = items.find((item: any) => Object.is(item.ibizappctrlid, tempValue.ibizappctrlid));
let
data
=
JSON
.
parse
(
config
.
data
);
mockDatas
.
forEach
((
item
)
=>
{
if
(
item
[
'ibizappctrlid'
]
==
tempValue
[
'ibizappctrlid'
]
){
for
(
let
value
in
data
){
if
(
item
.
hasOwnProperty
(
value
)){
item
[
value
]
=
data
[
value
];
}
}
}
})
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
(
data
);
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
data
];
});
// Save
mock
.
onPost
(
new
RegExp
(
/^
\/
ibizappctrls
\/?([
a-zA-Z0-9
\-\;]{0,35})\/
save$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizappctrl 方法: Save"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
const
paramArray
:
Array
<
any
>
=
[
'ibizappctrlid'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
ibizappctrls
\/([
a-zA-Z0-9
\-\;]{1,35})\/
save$/
).
exec
(
config
.
url
);
let
tempValue
:
any
=
{};
if
(
matchArray
&&
matchArray
.
length
>
1
&&
paramArray
&&
paramArray
.
length
>
0
){
paramArray
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
}
//let items = mockDatas ? mockDatas : [];
//let _items = items.find((item: any) => Object.is(item.ibizappctrlid, tempValue.ibizappctrlid));
let
data
=
JSON
.
parse
(
config
.
data
);
mockDatas
.
forEach
((
item
)
=>
{
if
(
item
[
'ibizappctrlid'
]
==
tempValue
[
'ibizappctrlid'
]
){
for
(
let
value
in
data
){
if
(
item
.
hasOwnProperty
(
value
)){
item
[
value
]
=
data
[
value
];
}
}
}
})
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
(
data
);
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
data
];
});
// FetchDefault
mock
.
onGet
(
new
RegExp
(
/^
\/
ibizappctrls
\/
selec
t$/
)).
reply
((
config
:
any
)
=>
{
mock
.
onGet
(
new
RegExp
(
/^
\/
ibizappctrls
\/
fetchdefaul
t$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizappctrl 方法: FetchDefault"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
...
...
@@ -138,7 +287,7 @@ mock.onGet(new RegExp(/^\/ibizappctrls\/select$/)).reply((config: any) => {
});
// FetchDefault
mock
.
onGet
(
new
RegExp
(
/^
\/
ibizappctrls
\/
selec
t
(\?[\w
-.
/
?%&=,
]
*
)
*$/
)).
reply
((
config
:
any
)
=>
{
mock
.
onGet
(
new
RegExp
(
/^
\/
ibizappctrls
\/
fetchdefaul
t
(\?[\w
-.
/
?%&=,
]
*
)
*$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizappctrl 方法: FetchDefault"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
if
(
config
.
url
.
includes
(
'page'
)){
...
...
@@ -173,3 +322,59 @@ mock.onGet(new RegExp(/^\/ibizappctrls\/select(\?[\w-./?%&=,]*)*$/)).reply((conf
// URI参数传递情况未实现
// URI参数传递情况未实现
// Remove
mock
.
onDelete
(
new
RegExp
(
/^
\/
ibizappctrls
\/([
a-zA-Z0-9
\-\;]{1,35})
$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizappctrl 方法: Remove"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
const
paramArray
:
Array
<
any
>
=
[
'ibizappctrlid'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
ibizappctrls
\/([
a-zA-Z0-9
\-\;]{1,35})
$/
).
exec
(
config
.
url
);
let
tempValue
:
any
=
{};
if
(
matchArray
&&
matchArray
.
length
>
1
&&
paramArray
&&
paramArray
.
length
>
0
){
paramArray
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
}
let
items
=
mockDatas
?
mockDatas
:
[];
let
_items
=
items
.
find
((
item
:
any
)
=>
Object
.
is
(
item
.
ibizappctrlid
,
tempValue
.
ibizappctrlid
));
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
(
_items
?
_items
:{});
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
_items
?
_items
:{}];
});
// Get
mock
.
onGet
(
new
RegExp
(
/^
\/
ibizappctrls
\/([
a-zA-Z0-9
\-\;]{1,35})
$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizappctrl 方法: Get"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
const
paramArray
:
Array
<
any
>
=
[
'ibizappctrlid'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
ibizappctrls
\/([
a-zA-Z0-9
\-\;]{1,35})
$/
).
exec
(
config
.
url
);
let
tempValue
:
any
=
{};
if
(
matchArray
&&
matchArray
.
length
>
1
&&
paramArray
&&
paramArray
.
length
>
0
){
paramArray
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
}
let
items
=
mockDatas
?
mockDatas
:
[];
let
_items
=
items
.
find
((
item
:
any
)
=>
Object
.
is
(
item
.
ibizappctrlid
,
tempValue
.
ibizappctrlid
));
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
(
_items
?
_items
:{});
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
_items
?
_items
:{}];
});
app_Web/src/mock/entity/ibizappeditors/ibizappeditors.ts
浏览文件 @
d7699221
此差异已折叠。
点击以展开。
app_Web/src/mock/entity/ibizappviews/ibizappviews.ts
浏览文件 @
d7699221
...
...
@@ -114,16 +114,165 @@ mock.onGet(new RegExp(/^\/ibizappviews\/([a-zA-Z0-9\-\;]{1,35})\/select$/)).repl
console
.
groupEnd
();
return
[
status
,
_items
];
});
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// URI参数传递情况未实现
// Create
mock
.
onPost
(
new
RegExp
(
/^
\/
ibizappviews
\/?([
a-zA-Z0-9
\-\;]{0,35})
$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizappview 方法: Create"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
const
paramArray
:
Array
<
any
>
=
[
'ibizappviewid'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
ibizappviews
\/([
a-zA-Z0-9
\-\;]{1,35})
$/
).
exec
(
config
.
url
);
let
tempValue
:
any
=
{};
if
(
matchArray
&&
matchArray
.
length
>
1
&&
paramArray
&&
paramArray
.
length
>
0
){
paramArray
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
}
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
(
mockDatas
[
0
]);
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
mockDatas
[
0
]];
});
// Update
mock
.
onPut
(
new
RegExp
(
/^
\/
ibizappviews
\/?([
a-zA-Z0-9
\-\;]{0,35})
$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizappview 方法: Update"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
const
paramArray
:
Array
<
any
>
=
[
'ibizappviewid'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
ibizappviews
\/([
a-zA-Z0-9
\-\;]{1,35})
$/
).
exec
(
config
.
url
);
let
tempValue
:
any
=
{};
if
(
matchArray
&&
matchArray
.
length
>
1
&&
paramArray
&&
paramArray
.
length
>
0
){
paramArray
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
}
//let items = mockDatas ? mockDatas : [];
//let _items = items.find((item: any) => Object.is(item.ibizappviewid, tempValue.ibizappviewid));
let
data
=
JSON
.
parse
(
config
.
data
);
mockDatas
.
forEach
((
item
)
=>
{
if
(
item
[
'ibizappviewid'
]
==
tempValue
[
'ibizappviewid'
]
){
for
(
let
value
in
data
){
if
(
item
.
hasOwnProperty
(
value
)){
item
[
value
]
=
data
[
value
];
}
}
}
})
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
(
data
);
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
data
];
});
// GetDraft
mock
.
onGet
(
new
RegExp
(
/^
\/
ibizappviews
\/
getdraft$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizappview 方法: GetDraft"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
// GetDraft
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
({});
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
{}];
});
// CheckKey
mock
.
onPost
(
new
RegExp
(
/^
\/
ibizappviews
\/?([
a-zA-Z0-9
\-\;]{0,35})\/
checkkey$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizappview 方法: CheckKey"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
const
paramArray
:
Array
<
any
>
=
[
'ibizappviewid'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
ibizappviews
\/([
a-zA-Z0-9
\-\;]{1,35})\/
checkkey$/
).
exec
(
config
.
url
);
let
tempValue
:
any
=
{};
if
(
matchArray
&&
matchArray
.
length
>
1
&&
paramArray
&&
paramArray
.
length
>
0
){
paramArray
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
}
//let items = mockDatas ? mockDatas : [];
//let _items = items.find((item: any) => Object.is(item.ibizappviewid, tempValue.ibizappviewid));
let
data
=
JSON
.
parse
(
config
.
data
);
mockDatas
.
forEach
((
item
)
=>
{
if
(
item
[
'ibizappviewid'
]
==
tempValue
[
'ibizappviewid'
]
){
for
(
let
value
in
data
){
if
(
item
.
hasOwnProperty
(
value
)){
item
[
value
]
=
data
[
value
];
}
}
}
})
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
(
data
);
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
data
];
});
// Save
mock
.
onPost
(
new
RegExp
(
/^
\/
ibizappviews
\/?([
a-zA-Z0-9
\-\;]{0,35})\/
save$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizappview 方法: Save"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
const
paramArray
:
Array
<
any
>
=
[
'ibizappviewid'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
ibizappviews
\/([
a-zA-Z0-9
\-\;]{1,35})\/
save$/
).
exec
(
config
.
url
);
let
tempValue
:
any
=
{};
if
(
matchArray
&&
matchArray
.
length
>
1
&&
paramArray
&&
paramArray
.
length
>
0
){
paramArray
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
}
//let items = mockDatas ? mockDatas : [];
//let _items = items.find((item: any) => Object.is(item.ibizappviewid, tempValue.ibizappviewid));
let
data
=
JSON
.
parse
(
config
.
data
);
mockDatas
.
forEach
((
item
)
=>
{
if
(
item
[
'ibizappviewid'
]
==
tempValue
[
'ibizappviewid'
]
){
for
(
let
value
in
data
){
if
(
item
.
hasOwnProperty
(
value
)){
item
[
value
]
=
data
[
value
];
}
}
}
})
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
(
data
);
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
data
];
});
// FetchDefault
mock
.
onGet
(
new
RegExp
(
/^
\/
ibizappviews
\/
selec
t$/
)).
reply
((
config
:
any
)
=>
{
mock
.
onGet
(
new
RegExp
(
/^
\/
ibizappviews
\/
fetchdefaul
t$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizappview 方法: FetchDefault"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
...
...
@@ -138,7 +287,7 @@ mock.onGet(new RegExp(/^\/ibizappviews\/select$/)).reply((config: any) => {
});
// FetchDefault
mock
.
onGet
(
new
RegExp
(
/^
\/
ibizappviews
\/
selec
t
(\?[\w
-.
/
?%&=,
]
*
)
*$/
)).
reply
((
config
:
any
)
=>
{
mock
.
onGet
(
new
RegExp
(
/^
\/
ibizappviews
\/
fetchdefaul
t
(\?[\w
-.
/
?%&=,
]
*
)
*$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizappview 方法: FetchDefault"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
if
(
config
.
url
.
includes
(
'page'
)){
...
...
@@ -173,3 +322,59 @@ mock.onGet(new RegExp(/^\/ibizappviews\/select(\?[\w-./?%&=,]*)*$/)).reply((conf
// URI参数传递情况未实现
// URI参数传递情况未实现
// Remove
mock
.
onDelete
(
new
RegExp
(
/^
\/
ibizappviews
\/([
a-zA-Z0-9
\-\;]{1,35})
$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizappview 方法: Remove"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
const
paramArray
:
Array
<
any
>
=
[
'ibizappviewid'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
ibizappviews
\/([
a-zA-Z0-9
\-\;]{1,35})
$/
).
exec
(
config
.
url
);
let
tempValue
:
any
=
{};
if
(
matchArray
&&
matchArray
.
length
>
1
&&
paramArray
&&
paramArray
.
length
>
0
){
paramArray
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
}
let
items
=
mockDatas
?
mockDatas
:
[];
let
_items
=
items
.
find
((
item
:
any
)
=>
Object
.
is
(
item
.
ibizappviewid
,
tempValue
.
ibizappviewid
));
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
(
_items
?
_items
:{});
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
_items
?
_items
:{}];
});
// Get
mock
.
onGet
(
new
RegExp
(
/^
\/
ibizappviews
\/([
a-zA-Z0-9
\-\;]{1,35})
$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:ibizappview 方法: Get"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
const
paramArray
:
Array
<
any
>
=
[
'ibizappviewid'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
ibizappviews
\/([
a-zA-Z0-9
\-\;]{1,35})
$/
).
exec
(
config
.
url
);
let
tempValue
:
any
=
{};
if
(
matchArray
&&
matchArray
.
length
>
1
&&
paramArray
&&
paramArray
.
length
>
0
){
paramArray
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
}
let
items
=
mockDatas
?
mockDatas
:
[];
let
_items
=
items
.
find
((
item
:
any
)
=>
Object
.
is
(
item
.
ibizappviewid
,
tempValue
.
ibizappviewid
));
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
(
_items
?
_items
:{});
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
_items
?
_items
:{}];
});
app_Web/src/service/ibizappctrl/ibizappctrl-service-base.ts
浏览文件 @
d7699221
...
...
@@ -53,6 +53,123 @@ export default class IBIZAPPCTRLServiceBase extends EntityService {
return
res
;
}
/**
* Create接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZAPPCTRLServiceBase
*/
public
async
Create
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
data
[
this
.
APPDEKEY
]
=
null
;
}
if
(
data
.
srffrontuf
){
delete
data
.
srffrontuf
;
}
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/ibizappctrls`
,
data
,
isloading
);
return
res
;
}
/**
* Update接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZAPPCTRLServiceBase
*/
public
async
Update
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/ibizappctrls/
${
context
.
ibizappctrl
}
`
,
data
,
isloading
);
return
res
;
}
/**
* Remove接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZAPPCTRLServiceBase
*/
public
async
Remove
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
Http
.
getInstance
().
delete
(
`/ibizappctrls/
${
context
.
ibizappctrl
}
`
,
isloading
);
return
res
;
}
/**
* Get接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZAPPCTRLServiceBase
*/
public
async
Get
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/ibizappctrls/
${
context
.
ibizappctrl
}
`
,
isloading
);
return
res
;
}
/**
* GetDraft接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZAPPCTRLServiceBase
*/
public
async
GetDraft
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/ibizappctrls/getdraft`
,
isloading
);
res
.
data
.
ibizappctrl
=
data
.
ibizappctrl
;
return
res
;
}
/**
* CheckKey接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZAPPCTRLServiceBase
*/
public
async
CheckKey
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
Http
.
getInstance
().
post
(
`/ibizappctrls/
${
context
.
ibizappctrl
}
/checkkey`
,
data
,
isloading
);
return
res
;
}
/**
* Save接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZAPPCTRLServiceBase
*/
public
async
Save
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/ibizappctrls/
${
context
.
ibizappctrl
}
/save`
,
data
,
isloading
);
return
res
;
}
/**
* FetchDefault接口方法
*
...
...
@@ -63,6 +180,9 @@ export default class IBIZAPPCTRLServiceBase extends EntityService {
* @memberof IBIZAPPCTRLServiceBase
*/
public
async
FetchDefault
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
let
res
:
any
=
Http
.
getInstance
().
get
(
`/ibizappctrls/fetchdefault`
,
tempData
,
isloading
);
return
res
;
}
/**
...
...
app_Web/src/service/ibizappeditor/ibizappeditor-service-base.ts
浏览文件 @
d7699221
...
...
@@ -53,6 +53,123 @@ export default class IBIZAPPEDITORServiceBase extends EntityService {
return
res
;
}
/**
* Create接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZAPPEDITORServiceBase
*/
public
async
Create
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
data
[
this
.
APPDEKEY
]
=
null
;
}
if
(
data
.
srffrontuf
){
delete
data
.
srffrontuf
;
}
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/ibizappeditors`
,
data
,
isloading
);
return
res
;
}
/**
* Update接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZAPPEDITORServiceBase
*/
public
async
Update
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/ibizappeditors/
${
context
.
ibizappeditor
}
`
,
data
,
isloading
);
return
res
;
}
/**
* Remove接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZAPPEDITORServiceBase
*/
public
async
Remove
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
Http
.
getInstance
().
delete
(
`/ibizappeditors/
${
context
.
ibizappeditor
}
`
,
isloading
);
return
res
;
}
/**
* Get接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZAPPEDITORServiceBase
*/
public
async
Get
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/ibizappeditors/
${
context
.
ibizappeditor
}
`
,
isloading
);
return
res
;
}
/**
* GetDraft接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZAPPEDITORServiceBase
*/
public
async
GetDraft
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/ibizappeditors/getdraft`
,
isloading
);
res
.
data
.
ibizappeditor
=
data
.
ibizappeditor
;
return
res
;
}
/**
* CheckKey接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZAPPEDITORServiceBase
*/
public
async
CheckKey
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
Http
.
getInstance
().
post
(
`/ibizappeditors/
${
context
.
ibizappeditor
}
/checkkey`
,
data
,
isloading
);
return
res
;
}
/**
* Save接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZAPPEDITORServiceBase
*/
public
async
Save
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/ibizappeditors/
${
context
.
ibizappeditor
}
/save`
,
data
,
isloading
);
return
res
;
}
/**
* FetchDefault接口方法
*
...
...
@@ -63,6 +180,9 @@ export default class IBIZAPPEDITORServiceBase extends EntityService {
* @memberof IBIZAPPEDITORServiceBase
*/
public
async
FetchDefault
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
let
res
:
any
=
Http
.
getInstance
().
get
(
`/ibizappeditors/fetchdefault`
,
tempData
,
isloading
);
return
res
;
}
/**
...
...
app_Web/src/service/ibizappview/ibizappview-service-base.ts
浏览文件 @
d7699221
...
...
@@ -53,6 +53,123 @@ export default class IBIZAPPVIEWServiceBase extends EntityService {
return
res
;
}
/**
* Create接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZAPPVIEWServiceBase
*/
public
async
Create
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
if
(
!
data
.
srffrontuf
||
data
.
srffrontuf
!==
"1"
){
data
[
this
.
APPDEKEY
]
=
null
;
}
if
(
data
.
srffrontuf
){
delete
data
.
srffrontuf
;
}
let
tempContext
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
context
));
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/ibizappviews`
,
data
,
isloading
);
return
res
;
}
/**
* Update接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZAPPVIEWServiceBase
*/
public
async
Update
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
put
(
`/ibizappviews/
${
context
.
ibizappview
}
`
,
data
,
isloading
);
return
res
;
}
/**
* Remove接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZAPPVIEWServiceBase
*/
public
async
Remove
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
Http
.
getInstance
().
delete
(
`/ibizappviews/
${
context
.
ibizappview
}
`
,
isloading
);
return
res
;
}
/**
* Get接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZAPPVIEWServiceBase
*/
public
async
Get
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/ibizappviews/
${
context
.
ibizappview
}
`
,
isloading
);
return
res
;
}
/**
* GetDraft接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZAPPVIEWServiceBase
*/
public
async
GetDraft
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
await
Http
.
getInstance
().
get
(
`/ibizappviews/getdraft`
,
isloading
);
res
.
data
.
ibizappview
=
data
.
ibizappview
;
return
res
;
}
/**
* CheckKey接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZAPPVIEWServiceBase
*/
public
async
CheckKey
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
Http
.
getInstance
().
post
(
`/ibizappviews/
${
context
.
ibizappview
}
/checkkey`
,
data
,
isloading
);
return
res
;
}
/**
* Save接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof IBIZAPPVIEWServiceBase
*/
public
async
Save
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
masterData
:
any
=
{};
Object
.
assign
(
data
,
masterData
);
let
res
:
any
=
await
Http
.
getInstance
().
post
(
`/ibizappviews/
${
context
.
ibizappview
}
/save`
,
data
,
isloading
);
return
res
;
}
/**
* FetchDefault接口方法
*
...
...
@@ -63,6 +180,9 @@ export default class IBIZAPPVIEWServiceBase extends EntityService {
* @memberof IBIZAPPVIEWServiceBase
*/
public
async
FetchDefault
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
let
res
:
any
=
Http
.
getInstance
().
get
(
`/ibizappviews/fetchdefault`
,
tempData
,
isloading
);
return
res
;
}
/**
...
...
demo-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
d7699221
...
...
@@ -4,7 +4,7 @@
<!--输出实体[IBIZAPPCTRL]数据结构 -->
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibizappctrl-1
0
-1"
>
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibizappctrl-1
4
-1"
>
<createTable
tableName=
"T_IBIZAPPCTRL"
>
<column
name=
"IBIZAPPCTRLNAME"
remarks=
""
type=
"VARCHAR(200)"
>
</column>
...
...
@@ -28,7 +28,7 @@
<!--输出实体[IBIZAPPEDITOR]数据结构 -->
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibizappeditor-
9
-2"
>
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibizappeditor-
13
-2"
>
<createTable
tableName=
"T_IBIZAPPEDITOR"
>
<column
name=
"CREATEMAN"
remarks=
""
type=
"VARCHAR(60)"
>
</column>
...
...
@@ -52,7 +52,7 @@
<!--输出实体[IBIZAPPVIEW]数据结构 -->
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibizappview-1
3
-3"
>
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibizappview-1
5
-3"
>
<createTable
tableName=
"T_IBIZAPPVIEW"
>
<column
name=
"CREATEMAN"
remarks=
""
type=
"VARCHAR(60)"
>
</column>
...
...
demo-provider/demo-provider-demoapi/src/main/java/cn/ibizlab/demoapi/rest/IBIZAPPCTRLResource.java
浏览文件 @
d7699221
...
...
@@ -47,6 +47,117 @@ public class IBIZAPPCTRLResource {
@Lazy
public
IBIZAPPCTRLMapping
ibizappctrlMapping
;
@PreAuthorize
(
"hasPermission(this.ibizappctrlMapping.toDomain(#ibizappctrldto),'DemoSys-IBIZAPPCTRL-Create')"
)
@ApiOperation
(
value
=
"新建应用部件"
,
tags
=
{
"应用部件"
},
notes
=
"新建应用部件"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibizappctrls"
)
public
ResponseEntity
<
IBIZAPPCTRLDTO
>
create
(
@Validated
@RequestBody
IBIZAPPCTRLDTO
ibizappctrldto
)
{
IBIZAPPCTRL
domain
=
ibizappctrlMapping
.
toDomain
(
ibizappctrldto
);
ibizappctrlService
.
create
(
domain
);
IBIZAPPCTRLDTO
dto
=
ibizappctrlMapping
.
toDto
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
}
@PreAuthorize
(
"hasPermission(this.ibizappctrlMapping.toDomain(#ibizappctrldtos),'DemoSys-IBIZAPPCTRL-Create')"
)
@ApiOperation
(
value
=
"批量新建应用部件"
,
tags
=
{
"应用部件"
},
notes
=
"批量新建应用部件"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibizappctrls/batch"
)
public
ResponseEntity
<
Boolean
>
createBatch
(
@RequestBody
List
<
IBIZAPPCTRLDTO
>
ibizappctrldtos
)
{
ibizappctrlService
.
createBatch
(
ibizappctrlMapping
.
toDomain
(
ibizappctrldtos
));
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
true
);
}
@VersionCheck
(
entity
=
"ibizappctrl"
,
versionfield
=
"updatedate"
)
@PreAuthorize
(
"hasPermission(this.ibizappctrlService.get(#ibizappctrl_id),'DemoSys-IBIZAPPCTRL-Update')"
)
@ApiOperation
(
value
=
"更新应用部件"
,
tags
=
{
"应用部件"
},
notes
=
"更新应用部件"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/ibizappctrls/{ibizappctrl_id}"
)
public
ResponseEntity
<
IBIZAPPCTRLDTO
>
update
(
@PathVariable
(
"ibizappctrl_id"
)
String
ibizappctrl_id
,
@RequestBody
IBIZAPPCTRLDTO
ibizappctrldto
)
{
IBIZAPPCTRL
domain
=
ibizappctrlMapping
.
toDomain
(
ibizappctrldto
);
domain
.
setIbizappctrlid
(
ibizappctrl_id
);
ibizappctrlService
.
update
(
domain
);
IBIZAPPCTRLDTO
dto
=
ibizappctrlMapping
.
toDto
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
}
@PreAuthorize
(
"hasPermission(this.ibizappctrlService.getIbizappctrlByEntities(this.ibizappctrlMapping.toDomain(#ibizappctrldtos)),'DemoSys-IBIZAPPCTRL-Update')"
)
@ApiOperation
(
value
=
"批量更新应用部件"
,
tags
=
{
"应用部件"
},
notes
=
"批量更新应用部件"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/ibizappctrls/batch"
)
public
ResponseEntity
<
Boolean
>
updateBatch
(
@RequestBody
List
<
IBIZAPPCTRLDTO
>
ibizappctrldtos
)
{
ibizappctrlService
.
updateBatch
(
ibizappctrlMapping
.
toDomain
(
ibizappctrldtos
));
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
true
);
}
@PreAuthorize
(
"hasPermission(this.ibizappctrlService.get(#ibizappctrl_id),'DemoSys-IBIZAPPCTRL-Remove')"
)
@ApiOperation
(
value
=
"删除应用部件"
,
tags
=
{
"应用部件"
},
notes
=
"删除应用部件"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/ibizappctrls/{ibizappctrl_id}"
)
public
ResponseEntity
<
Boolean
>
remove
(
@PathVariable
(
"ibizappctrl_id"
)
String
ibizappctrl_id
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ibizappctrlService
.
remove
(
ibizappctrl_id
));
}
@PreAuthorize
(
"hasPermission(this.ibizappctrlService.getIbizappctrlByIds(#ids),'DemoSys-IBIZAPPCTRL-Remove')"
)
@ApiOperation
(
value
=
"批量删除应用部件"
,
tags
=
{
"应用部件"
},
notes
=
"批量删除应用部件"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/ibizappctrls/batch"
)
public
ResponseEntity
<
Boolean
>
removeBatch
(
@RequestBody
List
<
String
>
ids
)
{
ibizappctrlService
.
removeBatch
(
ids
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
true
);
}
@PostAuthorize
(
"hasPermission(this.ibizappctrlMapping.toDomain(returnObject.body),'DemoSys-IBIZAPPCTRL-Get')"
)
@ApiOperation
(
value
=
"获取应用部件"
,
tags
=
{
"应用部件"
},
notes
=
"获取应用部件"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibizappctrls/{ibizappctrl_id}"
)
public
ResponseEntity
<
IBIZAPPCTRLDTO
>
get
(
@PathVariable
(
"ibizappctrl_id"
)
String
ibizappctrl_id
)
{
IBIZAPPCTRL
domain
=
ibizappctrlService
.
get
(
ibizappctrl_id
);
IBIZAPPCTRLDTO
dto
=
ibizappctrlMapping
.
toDto
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
}
@ApiOperation
(
value
=
"获取应用部件草稿"
,
tags
=
{
"应用部件"
},
notes
=
"获取应用部件草稿"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibizappctrls/getdraft"
)
public
ResponseEntity
<
IBIZAPPCTRLDTO
>
getDraft
()
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ibizappctrlMapping
.
toDto
(
ibizappctrlService
.
getDraft
(
new
IBIZAPPCTRL
())));
}
@ApiOperation
(
value
=
"检查应用部件"
,
tags
=
{
"应用部件"
},
notes
=
"检查应用部件"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibizappctrls/checkkey"
)
public
ResponseEntity
<
Boolean
>
checkKey
(
@RequestBody
IBIZAPPCTRLDTO
ibizappctrldto
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ibizappctrlService
.
checkKey
(
ibizappctrlMapping
.
toDomain
(
ibizappctrldto
)));
}
@PreAuthorize
(
"hasPermission(this.ibizappctrlMapping.toDomain(#ibizappctrldto),'DemoSys-IBIZAPPCTRL-Save')"
)
@ApiOperation
(
value
=
"保存应用部件"
,
tags
=
{
"应用部件"
},
notes
=
"保存应用部件"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibizappctrls/save"
)
public
ResponseEntity
<
Boolean
>
save
(
@RequestBody
IBIZAPPCTRLDTO
ibizappctrldto
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ibizappctrlService
.
save
(
ibizappctrlMapping
.
toDomain
(
ibizappctrldto
)));
}
@PreAuthorize
(
"hasPermission(this.ibizappctrlMapping.toDomain(#ibizappctrldtos),'DemoSys-IBIZAPPCTRL-Save')"
)
@ApiOperation
(
value
=
"批量保存应用部件"
,
tags
=
{
"应用部件"
},
notes
=
"批量保存应用部件"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibizappctrls/savebatch"
)
public
ResponseEntity
<
Boolean
>
saveBatch
(
@RequestBody
List
<
IBIZAPPCTRLDTO
>
ibizappctrldtos
)
{
ibizappctrlService
.
saveBatch
(
ibizappctrlMapping
.
toDomain
(
ibizappctrldtos
));
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
true
);
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','DemoSys-IBIZAPPCTRL-searchDefault-all') and hasPermission(#context,'DemoSys-IBIZAPPCTRL-Get')"
)
@ApiOperation
(
value
=
"获取数据集"
,
tags
=
{
"应用部件"
}
,
notes
=
"获取数据集"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibizappctrls/fetchdefault"
)
public
ResponseEntity
<
List
<
IBIZAPPCTRLDTO
>>
fetchDefault
(
IBIZAPPCTRLSearchContext
context
)
{
Page
<
IBIZAPPCTRL
>
domains
=
ibizappctrlService
.
searchDefault
(
context
)
;
List
<
IBIZAPPCTRLDTO
>
list
=
ibizappctrlMapping
.
toDto
(
domains
.
getContent
());
return
ResponseEntity
.
status
(
HttpStatus
.
OK
)
.
header
(
"x-page"
,
String
.
valueOf
(
context
.
getPageable
().
getPageNumber
()))
.
header
(
"x-per-page"
,
String
.
valueOf
(
context
.
getPageable
().
getPageSize
()))
.
header
(
"x-total"
,
String
.
valueOf
(
domains
.
getTotalElements
()))
.
body
(
list
);
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','DemoSys-IBIZAPPCTRL-searchDefault-all') and hasPermission(#context,'DemoSys-IBIZAPPCTRL-Get')"
)
@ApiOperation
(
value
=
"查询数据集"
,
tags
=
{
"应用部件"
}
,
notes
=
"查询数据集"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibizappctrls/searchdefault"
)
public
ResponseEntity
<
Page
<
IBIZAPPCTRLDTO
>>
searchDefault
(
@RequestBody
IBIZAPPCTRLSearchContext
context
)
{
Page
<
IBIZAPPCTRL
>
domains
=
ibizappctrlService
.
searchDefault
(
context
)
;
return
ResponseEntity
.
status
(
HttpStatus
.
OK
)
.
body
(
new
PageImpl
(
ibizappctrlMapping
.
toDto
(
domains
.
getContent
()),
context
.
getPageable
(),
domains
.
getTotalElements
()));
}
}
demo-provider/demo-provider-demoapi/src/main/java/cn/ibizlab/demoapi/rest/IBIZAPPEDITORResource.java
浏览文件 @
d7699221
...
...
@@ -47,6 +47,117 @@ public class IBIZAPPEDITORResource {
@Lazy
public
IBIZAPPEDITORMapping
ibizappeditorMapping
;
@PreAuthorize
(
"hasPermission(this.ibizappeditorMapping.toDomain(#ibizappeditordto),'DemoSys-IBIZAPPEDITOR-Create')"
)
@ApiOperation
(
value
=
"新建编辑器"
,
tags
=
{
"编辑器"
},
notes
=
"新建编辑器"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibizappeditors"
)
public
ResponseEntity
<
IBIZAPPEDITORDTO
>
create
(
@Validated
@RequestBody
IBIZAPPEDITORDTO
ibizappeditordto
)
{
IBIZAPPEDITOR
domain
=
ibizappeditorMapping
.
toDomain
(
ibizappeditordto
);
ibizappeditorService
.
create
(
domain
);
IBIZAPPEDITORDTO
dto
=
ibizappeditorMapping
.
toDto
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
}
@PreAuthorize
(
"hasPermission(this.ibizappeditorMapping.toDomain(#ibizappeditordtos),'DemoSys-IBIZAPPEDITOR-Create')"
)
@ApiOperation
(
value
=
"批量新建编辑器"
,
tags
=
{
"编辑器"
},
notes
=
"批量新建编辑器"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibizappeditors/batch"
)
public
ResponseEntity
<
Boolean
>
createBatch
(
@RequestBody
List
<
IBIZAPPEDITORDTO
>
ibizappeditordtos
)
{
ibizappeditorService
.
createBatch
(
ibizappeditorMapping
.
toDomain
(
ibizappeditordtos
));
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
true
);
}
@VersionCheck
(
entity
=
"ibizappeditor"
,
versionfield
=
"updatedate"
)
@PreAuthorize
(
"hasPermission(this.ibizappeditorService.get(#ibizappeditor_id),'DemoSys-IBIZAPPEDITOR-Update')"
)
@ApiOperation
(
value
=
"更新编辑器"
,
tags
=
{
"编辑器"
},
notes
=
"更新编辑器"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/ibizappeditors/{ibizappeditor_id}"
)
public
ResponseEntity
<
IBIZAPPEDITORDTO
>
update
(
@PathVariable
(
"ibizappeditor_id"
)
String
ibizappeditor_id
,
@RequestBody
IBIZAPPEDITORDTO
ibizappeditordto
)
{
IBIZAPPEDITOR
domain
=
ibizappeditorMapping
.
toDomain
(
ibizappeditordto
);
domain
.
setIbizappeditorid
(
ibizappeditor_id
);
ibizappeditorService
.
update
(
domain
);
IBIZAPPEDITORDTO
dto
=
ibizappeditorMapping
.
toDto
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
}
@PreAuthorize
(
"hasPermission(this.ibizappeditorService.getIbizappeditorByEntities(this.ibizappeditorMapping.toDomain(#ibizappeditordtos)),'DemoSys-IBIZAPPEDITOR-Update')"
)
@ApiOperation
(
value
=
"批量更新编辑器"
,
tags
=
{
"编辑器"
},
notes
=
"批量更新编辑器"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/ibizappeditors/batch"
)
public
ResponseEntity
<
Boolean
>
updateBatch
(
@RequestBody
List
<
IBIZAPPEDITORDTO
>
ibizappeditordtos
)
{
ibizappeditorService
.
updateBatch
(
ibizappeditorMapping
.
toDomain
(
ibizappeditordtos
));
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
true
);
}
@PreAuthorize
(
"hasPermission(this.ibizappeditorService.get(#ibizappeditor_id),'DemoSys-IBIZAPPEDITOR-Remove')"
)
@ApiOperation
(
value
=
"删除编辑器"
,
tags
=
{
"编辑器"
},
notes
=
"删除编辑器"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/ibizappeditors/{ibizappeditor_id}"
)
public
ResponseEntity
<
Boolean
>
remove
(
@PathVariable
(
"ibizappeditor_id"
)
String
ibizappeditor_id
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ibizappeditorService
.
remove
(
ibizappeditor_id
));
}
@PreAuthorize
(
"hasPermission(this.ibizappeditorService.getIbizappeditorByIds(#ids),'DemoSys-IBIZAPPEDITOR-Remove')"
)
@ApiOperation
(
value
=
"批量删除编辑器"
,
tags
=
{
"编辑器"
},
notes
=
"批量删除编辑器"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/ibizappeditors/batch"
)
public
ResponseEntity
<
Boolean
>
removeBatch
(
@RequestBody
List
<
String
>
ids
)
{
ibizappeditorService
.
removeBatch
(
ids
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
true
);
}
@PostAuthorize
(
"hasPermission(this.ibizappeditorMapping.toDomain(returnObject.body),'DemoSys-IBIZAPPEDITOR-Get')"
)
@ApiOperation
(
value
=
"获取编辑器"
,
tags
=
{
"编辑器"
},
notes
=
"获取编辑器"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibizappeditors/{ibizappeditor_id}"
)
public
ResponseEntity
<
IBIZAPPEDITORDTO
>
get
(
@PathVariable
(
"ibizappeditor_id"
)
String
ibizappeditor_id
)
{
IBIZAPPEDITOR
domain
=
ibizappeditorService
.
get
(
ibizappeditor_id
);
IBIZAPPEDITORDTO
dto
=
ibizappeditorMapping
.
toDto
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
}
@ApiOperation
(
value
=
"获取编辑器草稿"
,
tags
=
{
"编辑器"
},
notes
=
"获取编辑器草稿"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibizappeditors/getdraft"
)
public
ResponseEntity
<
IBIZAPPEDITORDTO
>
getDraft
()
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ibizappeditorMapping
.
toDto
(
ibizappeditorService
.
getDraft
(
new
IBIZAPPEDITOR
())));
}
@ApiOperation
(
value
=
"检查编辑器"
,
tags
=
{
"编辑器"
},
notes
=
"检查编辑器"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibizappeditors/checkkey"
)
public
ResponseEntity
<
Boolean
>
checkKey
(
@RequestBody
IBIZAPPEDITORDTO
ibizappeditordto
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ibizappeditorService
.
checkKey
(
ibizappeditorMapping
.
toDomain
(
ibizappeditordto
)));
}
@PreAuthorize
(
"hasPermission(this.ibizappeditorMapping.toDomain(#ibizappeditordto),'DemoSys-IBIZAPPEDITOR-Save')"
)
@ApiOperation
(
value
=
"保存编辑器"
,
tags
=
{
"编辑器"
},
notes
=
"保存编辑器"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibizappeditors/save"
)
public
ResponseEntity
<
Boolean
>
save
(
@RequestBody
IBIZAPPEDITORDTO
ibizappeditordto
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ibizappeditorService
.
save
(
ibizappeditorMapping
.
toDomain
(
ibizappeditordto
)));
}
@PreAuthorize
(
"hasPermission(this.ibizappeditorMapping.toDomain(#ibizappeditordtos),'DemoSys-IBIZAPPEDITOR-Save')"
)
@ApiOperation
(
value
=
"批量保存编辑器"
,
tags
=
{
"编辑器"
},
notes
=
"批量保存编辑器"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibizappeditors/savebatch"
)
public
ResponseEntity
<
Boolean
>
saveBatch
(
@RequestBody
List
<
IBIZAPPEDITORDTO
>
ibizappeditordtos
)
{
ibizappeditorService
.
saveBatch
(
ibizappeditorMapping
.
toDomain
(
ibizappeditordtos
));
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
true
);
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','DemoSys-IBIZAPPEDITOR-searchDefault-all') and hasPermission(#context,'DemoSys-IBIZAPPEDITOR-Get')"
)
@ApiOperation
(
value
=
"获取数据集"
,
tags
=
{
"编辑器"
}
,
notes
=
"获取数据集"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibizappeditors/fetchdefault"
)
public
ResponseEntity
<
List
<
IBIZAPPEDITORDTO
>>
fetchDefault
(
IBIZAPPEDITORSearchContext
context
)
{
Page
<
IBIZAPPEDITOR
>
domains
=
ibizappeditorService
.
searchDefault
(
context
)
;
List
<
IBIZAPPEDITORDTO
>
list
=
ibizappeditorMapping
.
toDto
(
domains
.
getContent
());
return
ResponseEntity
.
status
(
HttpStatus
.
OK
)
.
header
(
"x-page"
,
String
.
valueOf
(
context
.
getPageable
().
getPageNumber
()))
.
header
(
"x-per-page"
,
String
.
valueOf
(
context
.
getPageable
().
getPageSize
()))
.
header
(
"x-total"
,
String
.
valueOf
(
domains
.
getTotalElements
()))
.
body
(
list
);
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','DemoSys-IBIZAPPEDITOR-searchDefault-all') and hasPermission(#context,'DemoSys-IBIZAPPEDITOR-Get')"
)
@ApiOperation
(
value
=
"查询数据集"
,
tags
=
{
"编辑器"
}
,
notes
=
"查询数据集"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibizappeditors/searchdefault"
)
public
ResponseEntity
<
Page
<
IBIZAPPEDITORDTO
>>
searchDefault
(
@RequestBody
IBIZAPPEDITORSearchContext
context
)
{
Page
<
IBIZAPPEDITOR
>
domains
=
ibizappeditorService
.
searchDefault
(
context
)
;
return
ResponseEntity
.
status
(
HttpStatus
.
OK
)
.
body
(
new
PageImpl
(
ibizappeditorMapping
.
toDto
(
domains
.
getContent
()),
context
.
getPageable
(),
domains
.
getTotalElements
()));
}
}
demo-provider/demo-provider-demoapi/src/main/java/cn/ibizlab/demoapi/rest/IBIZAPPVIEWResource.java
浏览文件 @
d7699221
...
...
@@ -47,6 +47,117 @@ public class IBIZAPPVIEWResource {
@Lazy
public
IBIZAPPVIEWMapping
ibizappviewMapping
;
@PreAuthorize
(
"hasPermission(this.ibizappviewMapping.toDomain(#ibizappviewdto),'DemoSys-IBIZAPPVIEW-Create')"
)
@ApiOperation
(
value
=
"新建应用视图"
,
tags
=
{
"应用视图"
},
notes
=
"新建应用视图"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibizappviews"
)
public
ResponseEntity
<
IBIZAPPVIEWDTO
>
create
(
@Validated
@RequestBody
IBIZAPPVIEWDTO
ibizappviewdto
)
{
IBIZAPPVIEW
domain
=
ibizappviewMapping
.
toDomain
(
ibizappviewdto
);
ibizappviewService
.
create
(
domain
);
IBIZAPPVIEWDTO
dto
=
ibizappviewMapping
.
toDto
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
}
@PreAuthorize
(
"hasPermission(this.ibizappviewMapping.toDomain(#ibizappviewdtos),'DemoSys-IBIZAPPVIEW-Create')"
)
@ApiOperation
(
value
=
"批量新建应用视图"
,
tags
=
{
"应用视图"
},
notes
=
"批量新建应用视图"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibizappviews/batch"
)
public
ResponseEntity
<
Boolean
>
createBatch
(
@RequestBody
List
<
IBIZAPPVIEWDTO
>
ibizappviewdtos
)
{
ibizappviewService
.
createBatch
(
ibizappviewMapping
.
toDomain
(
ibizappviewdtos
));
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
true
);
}
@VersionCheck
(
entity
=
"ibizappview"
,
versionfield
=
"updatedate"
)
@PreAuthorize
(
"hasPermission(this.ibizappviewService.get(#ibizappview_id),'DemoSys-IBIZAPPVIEW-Update')"
)
@ApiOperation
(
value
=
"更新应用视图"
,
tags
=
{
"应用视图"
},
notes
=
"更新应用视图"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/ibizappviews/{ibizappview_id}"
)
public
ResponseEntity
<
IBIZAPPVIEWDTO
>
update
(
@PathVariable
(
"ibizappview_id"
)
String
ibizappview_id
,
@RequestBody
IBIZAPPVIEWDTO
ibizappviewdto
)
{
IBIZAPPVIEW
domain
=
ibizappviewMapping
.
toDomain
(
ibizappviewdto
);
domain
.
setIbizappviewid
(
ibizappview_id
);
ibizappviewService
.
update
(
domain
);
IBIZAPPVIEWDTO
dto
=
ibizappviewMapping
.
toDto
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
}
@PreAuthorize
(
"hasPermission(this.ibizappviewService.getIbizappviewByEntities(this.ibizappviewMapping.toDomain(#ibizappviewdtos)),'DemoSys-IBIZAPPVIEW-Update')"
)
@ApiOperation
(
value
=
"批量更新应用视图"
,
tags
=
{
"应用视图"
},
notes
=
"批量更新应用视图"
)
@RequestMapping
(
method
=
RequestMethod
.
PUT
,
value
=
"/ibizappviews/batch"
)
public
ResponseEntity
<
Boolean
>
updateBatch
(
@RequestBody
List
<
IBIZAPPVIEWDTO
>
ibizappviewdtos
)
{
ibizappviewService
.
updateBatch
(
ibizappviewMapping
.
toDomain
(
ibizappviewdtos
));
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
true
);
}
@PreAuthorize
(
"hasPermission(this.ibizappviewService.get(#ibizappview_id),'DemoSys-IBIZAPPVIEW-Remove')"
)
@ApiOperation
(
value
=
"删除应用视图"
,
tags
=
{
"应用视图"
},
notes
=
"删除应用视图"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/ibizappviews/{ibizappview_id}"
)
public
ResponseEntity
<
Boolean
>
remove
(
@PathVariable
(
"ibizappview_id"
)
String
ibizappview_id
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ibizappviewService
.
remove
(
ibizappview_id
));
}
@PreAuthorize
(
"hasPermission(this.ibizappviewService.getIbizappviewByIds(#ids),'DemoSys-IBIZAPPVIEW-Remove')"
)
@ApiOperation
(
value
=
"批量删除应用视图"
,
tags
=
{
"应用视图"
},
notes
=
"批量删除应用视图"
)
@RequestMapping
(
method
=
RequestMethod
.
DELETE
,
value
=
"/ibizappviews/batch"
)
public
ResponseEntity
<
Boolean
>
removeBatch
(
@RequestBody
List
<
String
>
ids
)
{
ibizappviewService
.
removeBatch
(
ids
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
true
);
}
@PostAuthorize
(
"hasPermission(this.ibizappviewMapping.toDomain(returnObject.body),'DemoSys-IBIZAPPVIEW-Get')"
)
@ApiOperation
(
value
=
"获取应用视图"
,
tags
=
{
"应用视图"
},
notes
=
"获取应用视图"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibizappviews/{ibizappview_id}"
)
public
ResponseEntity
<
IBIZAPPVIEWDTO
>
get
(
@PathVariable
(
"ibizappview_id"
)
String
ibizappview_id
)
{
IBIZAPPVIEW
domain
=
ibizappviewService
.
get
(
ibizappview_id
);
IBIZAPPVIEWDTO
dto
=
ibizappviewMapping
.
toDto
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
}
@ApiOperation
(
value
=
"获取应用视图草稿"
,
tags
=
{
"应用视图"
},
notes
=
"获取应用视图草稿"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibizappviews/getdraft"
)
public
ResponseEntity
<
IBIZAPPVIEWDTO
>
getDraft
()
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ibizappviewMapping
.
toDto
(
ibizappviewService
.
getDraft
(
new
IBIZAPPVIEW
())));
}
@ApiOperation
(
value
=
"检查应用视图"
,
tags
=
{
"应用视图"
},
notes
=
"检查应用视图"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibizappviews/checkkey"
)
public
ResponseEntity
<
Boolean
>
checkKey
(
@RequestBody
IBIZAPPVIEWDTO
ibizappviewdto
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ibizappviewService
.
checkKey
(
ibizappviewMapping
.
toDomain
(
ibizappviewdto
)));
}
@PreAuthorize
(
"hasPermission(this.ibizappviewMapping.toDomain(#ibizappviewdto),'DemoSys-IBIZAPPVIEW-Save')"
)
@ApiOperation
(
value
=
"保存应用视图"
,
tags
=
{
"应用视图"
},
notes
=
"保存应用视图"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibizappviews/save"
)
public
ResponseEntity
<
Boolean
>
save
(
@RequestBody
IBIZAPPVIEWDTO
ibizappviewdto
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
ibizappviewService
.
save
(
ibizappviewMapping
.
toDomain
(
ibizappviewdto
)));
}
@PreAuthorize
(
"hasPermission(this.ibizappviewMapping.toDomain(#ibizappviewdtos),'DemoSys-IBIZAPPVIEW-Save')"
)
@ApiOperation
(
value
=
"批量保存应用视图"
,
tags
=
{
"应用视图"
},
notes
=
"批量保存应用视图"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibizappviews/savebatch"
)
public
ResponseEntity
<
Boolean
>
saveBatch
(
@RequestBody
List
<
IBIZAPPVIEWDTO
>
ibizappviewdtos
)
{
ibizappviewService
.
saveBatch
(
ibizappviewMapping
.
toDomain
(
ibizappviewdtos
));
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
true
);
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','DemoSys-IBIZAPPVIEW-searchDefault-all') and hasPermission(#context,'DemoSys-IBIZAPPVIEW-Get')"
)
@ApiOperation
(
value
=
"获取数据集"
,
tags
=
{
"应用视图"
}
,
notes
=
"获取数据集"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/ibizappviews/fetchdefault"
)
public
ResponseEntity
<
List
<
IBIZAPPVIEWDTO
>>
fetchDefault
(
IBIZAPPVIEWSearchContext
context
)
{
Page
<
IBIZAPPVIEW
>
domains
=
ibizappviewService
.
searchDefault
(
context
)
;
List
<
IBIZAPPVIEWDTO
>
list
=
ibizappviewMapping
.
toDto
(
domains
.
getContent
());
return
ResponseEntity
.
status
(
HttpStatus
.
OK
)
.
header
(
"x-page"
,
String
.
valueOf
(
context
.
getPageable
().
getPageNumber
()))
.
header
(
"x-per-page"
,
String
.
valueOf
(
context
.
getPageable
().
getPageSize
()))
.
header
(
"x-total"
,
String
.
valueOf
(
domains
.
getTotalElements
()))
.
body
(
list
);
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','DemoSys-IBIZAPPVIEW-searchDefault-all') and hasPermission(#context,'DemoSys-IBIZAPPVIEW-Get')"
)
@ApiOperation
(
value
=
"查询数据集"
,
tags
=
{
"应用视图"
}
,
notes
=
"查询数据集"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/ibizappviews/searchdefault"
)
public
ResponseEntity
<
Page
<
IBIZAPPVIEWDTO
>>
searchDefault
(
@RequestBody
IBIZAPPVIEWSearchContext
context
)
{
Page
<
IBIZAPPVIEW
>
domains
=
ibizappviewService
.
searchDefault
(
context
)
;
return
ResponseEntity
.
status
(
HttpStatus
.
OK
)
.
body
(
new
PageImpl
(
ibizappviewMapping
.
toDto
(
domains
.
getContent
()),
context
.
getPageable
(),
domains
.
getTotalElements
()));
}
}
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录