Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sv-springboot
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
bsoft
sv-springboot
Commits
5fe9575e
Commit
5fe9575e
authored
Nov 01, 2019
by
Suvalue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口请求方式修改
parent
c5971914
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
13 deletions
+11
-13
bsoft-api/src/main/java/com/bsoft/api/controller/BlockValuesController.java
+2
-1
bsoft-api/src/main/java/com/bsoft/api/controller/LoginController.java
+1
-1
bsoft-api/src/main/java/com/bsoft/api/controller/SerDiseaseController.java
+2
-2
bsoft-api/src/main/java/com/bsoft/api/controller/SerDiseaseDocController.java
+1
-1
bsoft-api/src/main/java/com/bsoft/api/controller/UserController.java
+5
-8
No files found.
bsoft-api/src/main/java/com/bsoft/api/controller/BlockValuesController.java
View file @
5fe9575e
...
@@ -9,6 +9,7 @@ import io.swagger.annotations.Api;
...
@@ -9,6 +9,7 @@ import io.swagger.annotations.Api;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
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.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
...
@@ -27,7 +28,7 @@ public class BlockValuesController {
...
@@ -27,7 +28,7 @@ public class BlockValuesController {
* @return
* @return
* @throws Exception
* @throws Exception
*/
*/
@
Ge
tMapping
(
"blockValues"
)
@
Pos
tMapping
(
"blockValues"
)
@Token
@Token
@ApiOperation
(
"根据Page查询板块数值"
)
@ApiOperation
(
"根据Page查询板块数值"
)
public
Object
getBlockValuesByPageID
(
@RequestBody
BlockValues
blockValues
)
throws
InterruptedException
{
public
Object
getBlockValuesByPageID
(
@RequestBody
BlockValues
blockValues
)
throws
InterruptedException
{
...
...
bsoft-api/src/main/java/com/bsoft/api/controller/LoginController.java
View file @
5fe9575e
...
@@ -37,7 +37,7 @@ public class LoginController {
...
@@ -37,7 +37,7 @@ public class LoginController {
return
Result
.
success
(
loginInfo
);
return
Result
.
success
(
loginInfo
);
}
}
@
Ge
tMapping
(
"token"
)
@
Pos
tMapping
(
"token"
)
@ApiOperation
(
"刷新TOKEN"
)
@ApiOperation
(
"刷新TOKEN"
)
public
Result
<
String
>
refresh
(
@ApiIgnore
HttpServletRequest
request
){
public
Result
<
String
>
refresh
(
@ApiIgnore
HttpServletRequest
request
){
String
oldToken
=
request
.
getHeader
(
"Authorization"
);
String
oldToken
=
request
.
getHeader
(
"Authorization"
);
...
...
bsoft-api/src/main/java/com/bsoft/api/controller/SerDiseaseController.java
View file @
5fe9575e
...
@@ -44,7 +44,7 @@ public class SerDiseaseController {
...
@@ -44,7 +44,7 @@ public class SerDiseaseController {
}
}
@PostMapping
(
"disease/name"
)
@PostMapping
(
"disease/name"
)
//
@Token
@Token
@ApiOperation
(
"根据疾病名称查询疾病信息"
)
@ApiOperation
(
"根据疾病名称查询疾病信息"
)
public
Object
getDiseaseByMdcName
(
@RequestBody
Disease
.
DiseaseName
disease
)
throws
InterruptedException
{
public
Object
getDiseaseByMdcName
(
@RequestBody
Disease
.
DiseaseName
disease
)
throws
InterruptedException
{
List
<
SerDisease
>
list
=
serDiseaseService
.
selectByMdcName
(
disease
.
getDate
().
toString
(),
disease
.
getMdcName
());
List
<
SerDisease
>
list
=
serDiseaseService
.
selectByMdcName
(
disease
.
getDate
().
toString
(),
disease
.
getMdcName
());
...
@@ -52,7 +52,7 @@ public class SerDiseaseController {
...
@@ -52,7 +52,7 @@ public class SerDiseaseController {
}
}
@PostMapping
(
"disease/level/info"
)
@PostMapping
(
"disease/level/info"
)
//
@Token
@Token
@ApiOperation
(
"查询特定等级下所有数据"
)
@ApiOperation
(
"查询特定等级下所有数据"
)
public
Object
getDiseaseByLevelSon
(
@RequestBody
Disease
.
DiseaseLevelSon
disease
)
throws
InterruptedException
{
public
Object
getDiseaseByLevelSon
(
@RequestBody
Disease
.
DiseaseLevelSon
disease
)
throws
InterruptedException
{
List
<
SerDisease
>
list
=
serDiseaseService
.
selectByLevel
(
disease
.
getDate
().
toString
(),
disease
.
getLevel
().
intValue
());
List
<
SerDisease
>
list
=
serDiseaseService
.
selectByLevel
(
disease
.
getDate
().
toString
(),
disease
.
getLevel
().
intValue
());
...
...
bsoft-api/src/main/java/com/bsoft/api/controller/SerDiseaseDocController.java
View file @
5fe9575e
...
@@ -22,7 +22,7 @@ public class SerDiseaseDocController {
...
@@ -22,7 +22,7 @@ public class SerDiseaseDocController {
private
SerDiseaseDocService
serDiseaseDocService
;
private
SerDiseaseDocService
serDiseaseDocService
;
@PostMapping
(
"diseaseDoc"
)
@PostMapping
(
"diseaseDoc"
)
//
@Token
@Token
@ApiOperation
(
"根据Code查询疾病关系信息"
)
@ApiOperation
(
"根据Code查询疾病关系信息"
)
public
Object
getDiseaseDoc
(
@RequestBody
DiseaseDoc
disease
)
throws
InterruptedException
{
public
Object
getDiseaseDoc
(
@RequestBody
DiseaseDoc
disease
)
throws
InterruptedException
{
List
<
SerDiseaseDocRs
>
list
=
serDiseaseDocService
.
getDiseaseDoc
(
disease
.
getDocCode
(),
disease
.
getMdcCode
(),
List
<
SerDiseaseDocRs
>
list
=
serDiseaseDocService
.
getDiseaseDoc
(
disease
.
getDocCode
(),
disease
.
getMdcCode
(),
...
...
bsoft-api/src/main/java/com/bsoft/api/controller/UserController.java
View file @
5fe9575e
...
@@ -9,10 +9,7 @@ import com.bsoft.api.service.SysUserRoleRsService;
...
@@ -9,10 +9,7 @@ import com.bsoft.api.service.SysUserRoleRsService;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
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.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
springfox.documentation.annotations.ApiIgnore
;
import
springfox.documentation.annotations.ApiIgnore
;
...
@@ -38,8 +35,8 @@ public class UserController {
...
@@ -38,8 +35,8 @@ public class UserController {
* @param userId 用户id
* @param userId 用户id
* @return
* @return
*/
*/
@
Ge
tMapping
(
"roles"
)
@
Pos
tMapping
(
"roles"
)
//
@Token
@Token
@ApiOperation
(
"查询用户角色"
)
@ApiOperation
(
"查询用户角色"
)
public
Object
getRoleListByUser
(
@ApiIgnore@CurrentUser
Long
userId
)
throws
Exception
{
public
Object
getRoleListByUser
(
@ApiIgnore@CurrentUser
Long
userId
)
throws
Exception
{
return
Result
.
success
(
sysUserRoleRsService
.
getRoleListByUser
(
userId
));
return
Result
.
success
(
sysUserRoleRsService
.
getRoleListByUser
(
userId
));
...
@@ -50,8 +47,8 @@ public class UserController {
...
@@ -50,8 +47,8 @@ public class UserController {
* @param userId 用户id
* @param userId 用户id
* @return
* @return
*/
*/
@
Ge
tMapping
(
"menus"
)
@
Pos
tMapping
(
"menus"
)
//
@Token
@Token
@ApiOperation
(
"查询用户菜单"
)
@ApiOperation
(
"查询用户菜单"
)
public
Object
getMenuByUser
(
@ApiIgnore@CurrentUser
Long
userId
)
throws
Exception
{
public
Object
getMenuByUser
(
@ApiIgnore@CurrentUser
Long
userId
)
throws
Exception
{
return
Result
.
success
(
sysMenuService
.
getMenu
(
userId
));
return
Result
.
success
(
sysMenuService
.
getMenu
(
userId
));
...
...
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