Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bpm
Overview
Overview
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
王厚康
bpm
Commits
93f8aa8d
Commit
93f8aa8d
authored
Mar 22, 2019
by
王厚康
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口完善
parent
9610ce64
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
18 additions
and
18 deletions
+18
-18
SwaggerConfig.java
src/main/java/com/bbd/bpm/config/SwaggerConfig.java
+3
-3
WebSecurityConfig.java
src/main/java/com/bbd/bpm/config/WebSecurityConfig.java
+4
-1
AsminController.java
src/main/java/com/bbd/bpm/controller/AsminController.java
+1
-1
UserTaskController.java
src/main/java/com/bbd/bpm/controller/UserTaskController.java
+1
-1
DeploymentController.java
src/main/java/com/bbd/bpm/controller/deployment/DeploymentController.java
+1
-1
TaskHistoryController.java
src/main/java/com/bbd/bpm/controller/taskHistory/TaskHistoryController.java
+3
-6
TaskOperateController.java
src/main/java/com/bbd/bpm/controller/taskOperate/TaskOperateController.java
+2
-2
index.html
src/main/resources/templates/bpm/index.html
+3
-3
No files found.
src/main/java/com/bbd/bpm/config/SwaggerConfig.java
View file @
93f8aa8d
...
@@ -30,15 +30,15 @@ public class SwaggerConfig {
...
@@ -30,15 +30,15 @@ public class SwaggerConfig {
private
ApiInfo
apiInfo
()
{
private
ApiInfo
apiInfo
()
{
return
new
ApiInfoBuilder
()
return
new
ApiInfoBuilder
()
.
title
(
"springboot利用swagger构建api文档"
)
.
title
(
"业务流程管理(BPM)接口API文档"
)
.
description
(
"简单优雅的restfun风格,http://blog.csdn.net/saytime"
)
.
description
(
"API接口文档结合组织架构模块和流程图模块,即可实现可视化流程管理和公司业务管理"
)
.
termsOfServiceUrl
(
"http://blog.csdn.net/saytime"
)
.
version
(
"1.0"
)
.
version
(
"1.0"
)
.
build
();
.
build
();
}
}
/**
/**
* @ApiImplicitParams({
* @ApiImplicitParams({
@ApiImplicitParam(name = "page", value = "当前页数1开始", dataType = "int",paramType = "query"),
@ApiImplicitParam(name = "page", value = "当前页数1开始", dataType = "int",paramType = "query"),
...
...
src/main/java/com/bbd/bpm/config/WebSecurityConfig.java
View file @
93f8aa8d
...
@@ -37,13 +37,16 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
...
@@ -37,13 +37,16 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
protected
void
configure
(
HttpSecurity
http
)
throws
Exception
{
//配置策略
protected
void
configure
(
HttpSecurity
http
)
throws
Exception
{
//配置策略
http
.
csrf
().
disable
();
http
.
csrf
().
disable
();
http
.
authorizeRequests
().
http
.
authorizeRequests
().
antMatchers
(
"/
static
/**"
).
permitAll
().
anyRequest
().
authenticated
().
antMatchers
(
"/
v2/api-docs"
,
"/swagger-resources/**"
,
"/webjars
/**"
).
permitAll
().
anyRequest
().
authenticated
().
and
().
formLogin
().
loginPage
(
"/login"
).
permitAll
().
successHandler
(
loginSuccessHandler
()).
and
().
formLogin
().
loginPage
(
"/login"
).
permitAll
().
successHandler
(
loginSuccessHandler
()).
and
().
logout
().
permitAll
().
invalidateHttpSession
(
true
).
and
().
logout
().
permitAll
().
invalidateHttpSession
(
true
).
deleteCookies
(
"JSESSIONID"
).
logoutSuccessHandler
(
logoutSuccessHandler
()).
deleteCookies
(
"JSESSIONID"
).
logoutSuccessHandler
(
logoutSuccessHandler
()).
and
().
sessionManagement
().
maximumSessions
(
10
).
expiredUrl
(
"/login"
);
and
().
sessionManagement
().
maximumSessions
(
10
).
expiredUrl
(
"/login"
);
}
}
@Autowired
@Autowired
public
void
configureGlobal
(
AuthenticationManagerBuilder
auth
)
throws
Exception
{
public
void
configureGlobal
(
AuthenticationManagerBuilder
auth
)
throws
Exception
{
auth
.
userDetailsService
(
userDetailsService
()).
passwordEncoder
(
passwordEncoder
());
auth
.
userDetailsService
(
userDetailsService
()).
passwordEncoder
(
passwordEncoder
());
...
...
src/main/java/com/bbd/bpm/controller/AsminController.java
View file @
93f8aa8d
...
@@ -16,7 +16,7 @@ import org.springframework.web.bind.annotation.RestController;
...
@@ -16,7 +16,7 @@ import org.springframework.web.bind.annotation.RestController;
* Created by houkang on 2019/1/3.
* Created by houkang on 2019/1/3.
*/
*/
@RestController
@RestController
@RequestMapping
(
value
=
"/bpm"
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
@RequestMapping
(
value
=
"/
api/
bpm"
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
@Api
(
tags
=
{
"Asmin Controller"
})
@Api
(
tags
=
{
"Asmin Controller"
})
public
class
AsminController
{
public
class
AsminController
{
private
static
final
Logger
Log
=
LoggerFactory
.
getLogger
(
AsminController
.
class
);
private
static
final
Logger
Log
=
LoggerFactory
.
getLogger
(
AsminController
.
class
);
...
...
src/main/java/com/bbd/bpm/controller/UserTaskController.java
View file @
93f8aa8d
...
@@ -22,7 +22,7 @@ import java.util.List;
...
@@ -22,7 +22,7 @@ import java.util.List;
* Created by houkang on 2019/1/28.
* Created by houkang on 2019/1/28.
*/
*/
@RestController
@RestController
@RequestMapping
(
value
=
"/bpm/userTask"
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
@RequestMapping
(
value
=
"/
api/
bpm/userTask"
,
produces
=
MediaType
.
APPLICATION_JSON_VALUE
)
@Api
(
tags
=
{
"task Controller"
})
@Api
(
tags
=
{
"task Controller"
})
public
class
UserTaskController
{
public
class
UserTaskController
{
...
...
src/main/java/com/bbd/bpm/controller/deployment/DeploymentController.java
View file @
93f8aa8d
...
@@ -33,7 +33,7 @@ import java.util.Map;
...
@@ -33,7 +33,7 @@ import java.util.Map;
* Created by houkang on 2019/2/22.
* Created by houkang on 2019/2/22.
*/
*/
@RestController
@RestController
@RequestMapping
(
"/bpm/model"
)
@RequestMapping
(
"/
api/
bpm/model"
)
@Api
(
tags
=
{
"流程管理"
})
@Api
(
tags
=
{
"流程管理"
})
public
class
DeploymentController
{
public
class
DeploymentController
{
private
static
final
Logger
Log
=
LoggerFactory
.
getLogger
(
DeploymentController
.
class
);
private
static
final
Logger
Log
=
LoggerFactory
.
getLogger
(
DeploymentController
.
class
);
...
...
src/main/java/com/bbd/bpm/controller/taskHistory/TaskHistoryController.java
View file @
93f8aa8d
...
@@ -21,10 +21,7 @@ import org.apache.commons.lang3.StringUtils;
...
@@ -21,10 +21,7 @@ import org.apache.commons.lang3.StringUtils;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
...
@@ -33,7 +30,7 @@ import java.util.List;
...
@@ -33,7 +30,7 @@ import java.util.List;
* Created by houkang on 2019/2/27.
* Created by houkang on 2019/2/27.
*/
*/
@RestController
@RestController
@RequestMapping
(
"/bpm/history"
)
@RequestMapping
(
"/
api/
bpm/history"
)
@Api
(
tags
=
{
"历史任务管理"
})
@Api
(
tags
=
{
"历史任务管理"
})
public
class
TaskHistoryController
{
public
class
TaskHistoryController
{
private
static
final
Logger
Log
=
LoggerFactory
.
getLogger
(
TaskHistoryController
.
class
);
private
static
final
Logger
Log
=
LoggerFactory
.
getLogger
(
TaskHistoryController
.
class
);
...
@@ -90,7 +87,7 @@ public class TaskHistoryController {
...
@@ -90,7 +87,7 @@ public class TaskHistoryController {
}
}
@ApiOperation
(
value
=
"查询已办理任务"
)
@ApiOperation
(
value
=
"查询已办理任务"
)
@
Ge
tMapping
(
"/completedTaskList"
)
@
Pos
tMapping
(
"/completedTaskList"
)
public
BpmResponse
completedTaskList
(
@RequestBody
PendingTaskListRequest
req
)
{
public
BpmResponse
completedTaskList
(
@RequestBody
PendingTaskListRequest
req
)
{
BpmResponse
resp
=
new
BpmResponse
();
BpmResponse
resp
=
new
BpmResponse
();
try
{
try
{
...
...
src/main/java/com/bbd/bpm/controller/taskOperate/TaskOperateController.java
View file @
93f8aa8d
...
@@ -29,7 +29,7 @@ import java.util.Map;
...
@@ -29,7 +29,7 @@ import java.util.Map;
* Created by houkang on 2019/2/27.
* Created by houkang on 2019/2/27.
*/
*/
@RestController
@RestController
@RequestMapping
(
"/bpm/task"
)
@RequestMapping
(
"/
api/
bpm/task"
)
@Api
(
tags
=
{
"任务管理"
})
@Api
(
tags
=
{
"任务管理"
})
public
class
TaskOperateController
{
public
class
TaskOperateController
{
private
static
final
Logger
Log
=
LoggerFactory
.
getLogger
(
TaskOperateController
.
class
);
private
static
final
Logger
Log
=
LoggerFactory
.
getLogger
(
TaskOperateController
.
class
);
...
@@ -107,7 +107,7 @@ public class TaskOperateController {
...
@@ -107,7 +107,7 @@ public class TaskOperateController {
@ApiOperation
(
value
=
"查询待处理任务"
)
@ApiOperation
(
value
=
"查询待处理任务"
)
@
Ge
tMapping
(
"/pendingTaskList"
)
@
Pos
tMapping
(
"/pendingTaskList"
)
public
BpmResponse
pendingTaskList
(
@RequestBody
PendingTaskListRequest
req
)
{
public
BpmResponse
pendingTaskList
(
@RequestBody
PendingTaskListRequest
req
)
{
BpmResponse
resp
=
new
BpmResponse
();
BpmResponse
resp
=
new
BpmResponse
();
try
{
try
{
...
...
src/main/resources/templates/bpm/index.html
View file @
93f8aa8d
...
@@ -38,9 +38,9 @@
...
@@ -38,9 +38,9 @@
<div
class=
"main_wrap clearfix"
>
<div
class=
"main_wrap clearfix"
>
<ul
id=
"aside_nav"
class=
"navBox"
style=
'width:125px;min-height: 680px;'
>
<ul
id=
"aside_nav"
class=
"navBox"
style=
'width:125px;min-height: 680px;'
>
<li
class=
"s_menu_item"
><a
target=
"main_frame"
href=
""
>
查看流程
</a></li>
<li
class=
"s_menu_item"
><a
target=
"main_frame"
href=
""
>
查看流程
</a></li>
<li
class=
"s_menu_item"
><a
target=
"main_frame"
href=
"/model/createNew
"
>
创建流程
</a></li>
<li
class=
"s_menu_item"
><a
th:href=
"@{/model/createNew}
"
>
创建流程
</a></li>
<li
class=
"s_menu_item"
><a
target=
"main_frame"
href=
"/model/createNew"
>
组织结构
</a></li>
<li
class=
"s_menu_item"
><a
href=
"/model/createNew"
>
组织结构
</a></li>
<li
class=
"s_menu_item"
><a
target=
"main_frame"
href=
"/model/createNew
"
>
API
</a></li>
<li
class=
"s_menu_item"
><a
th:href=
"@{/swagger-ui.html}
"
>
API
</a></li>
</ul>
</ul>
...
...
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