Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
sentinel
Project
Project
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
曲欣亮
sentinel
Commits
1f1e1c3d
Commit
1f1e1c3d
authored
Nov 19, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xx
parent
cd7a0aef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
10 deletions
+12
-10
AdminAuthController.java
...in/java/com/egolm/film/api/admin/AdminAuthController.java
+9
-8
AdminUserController.java
...in/java/com/egolm/film/api/admin/AdminUserController.java
+3
-2
No files found.
src/main/java/com/egolm/film/api/admin/AdminAuthController.java
View file @
1f1e1c3d
...
@@ -9,6 +9,7 @@ import org.springframework.beans.factory.annotation.Autowired;
...
@@ -9,6 +9,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import
org.springframework.stereotype.Controller
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.util.ResourceUtils
;
import
org.springframework.util.ResourceUtils
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.ResponseBody
;
...
@@ -42,7 +43,7 @@ public class AdminAuthController {
...
@@ -42,7 +43,7 @@ public class AdminAuthController {
AdminTokenService
tokenService
;
AdminTokenService
tokenService
;
@ResponseBody
@ResponseBody
@
Reque
stMapping
(
"adminList"
)
@
Po
stMapping
(
"adminList"
)
@ApiOperation
(
"管理员分页查询"
)
@ApiOperation
(
"管理员分页查询"
)
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
false
,
name
=
"keyword"
,
value
=
"关键字"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
false
,
name
=
"keyword"
,
value
=
"关键字"
),
...
@@ -60,7 +61,7 @@ public class AdminAuthController {
...
@@ -60,7 +61,7 @@ public class AdminAuthController {
@ResponseBody
@ResponseBody
@Transactional
@Transactional
@
Reque
stMapping
(
"adminSave"
)
@
Po
stMapping
(
"adminSave"
)
@ApiOperation
(
"添加管理员"
)
@ApiOperation
(
"添加管理员"
)
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"realname"
,
value
=
"姓名"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"realname"
,
value
=
"姓名"
),
...
@@ -87,7 +88,7 @@ public class AdminAuthController {
...
@@ -87,7 +88,7 @@ public class AdminAuthController {
}
}
@ResponseBody
@ResponseBody
@
Reque
stMapping
(
"adminUpdate"
)
@
Po
stMapping
(
"adminUpdate"
)
@ApiOperation
(
"修改管理员"
)
@ApiOperation
(
"修改管理员"
)
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"adminid"
,
value
=
"管理员ID"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
true
,
name
=
"adminid"
,
value
=
"管理员ID"
),
...
@@ -117,7 +118,7 @@ public class AdminAuthController {
...
@@ -117,7 +118,7 @@ public class AdminAuthController {
}
}
@ResponseBody
@ResponseBody
@
Reque
stMapping
(
"adminDilabled"
)
@
Po
stMapping
(
"adminDilabled"
)
@ApiOperation
(
"禁用管理员"
)
@ApiOperation
(
"禁用管理员"
)
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"integer"
,
required
=
true
,
name
=
"adminid"
,
value
=
"管理员ID"
,
allowMultiple
=
true
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"integer"
,
required
=
true
,
name
=
"adminid"
,
value
=
"管理员ID"
,
allowMultiple
=
true
),
...
@@ -129,7 +130,7 @@ public class AdminAuthController {
...
@@ -129,7 +130,7 @@ public class AdminAuthController {
}
}
@ResponseBody
@ResponseBody
@
Reque
stMapping
(
"groupList"
)
@
Po
stMapping
(
"groupList"
)
@ApiOperation
(
"管理组分页查询"
)
@ApiOperation
(
"管理组分页查询"
)
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
false
,
name
=
"keyword"
,
value
=
"关键字"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
false
,
name
=
"keyword"
,
value
=
"关键字"
),
...
@@ -145,7 +146,7 @@ public class AdminAuthController {
...
@@ -145,7 +146,7 @@ public class AdminAuthController {
}
}
@ResponseBody
@ResponseBody
@
Reque
stMapping
(
"allAuth"
)
@
Po
stMapping
(
"allAuth"
)
@ApiOperation
(
"全部管理组权限查询"
)
@ApiOperation
(
"全部管理组权限查询"
)
public
Object
allAuth
()
throws
FileNotFoundException
{
public
Object
allAuth
()
throws
FileNotFoundException
{
File
file
=
ResourceUtils
.
getFile
(
"classpath:auth_admin.json"
);
File
file
=
ResourceUtils
.
getFile
(
"classpath:auth_admin.json"
);
...
@@ -154,7 +155,7 @@ public class AdminAuthController {
...
@@ -154,7 +155,7 @@ public class AdminAuthController {
}
}
@ResponseBody
@ResponseBody
@
Reque
stMapping
(
"groupAuth"
)
@
Po
stMapping
(
"groupAuth"
)
@ApiOperation
(
"管理组权限查询"
)
@ApiOperation
(
"管理组权限查询"
)
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"integer"
,
required
=
true
,
name
=
"group_id"
,
value
=
"组ID"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"integer"
,
required
=
true
,
name
=
"group_id"
,
value
=
"组ID"
),
...
@@ -165,7 +166,7 @@ public class AdminAuthController {
...
@@ -165,7 +166,7 @@ public class AdminAuthController {
}
}
@ResponseBody
@ResponseBody
@
Reque
stMapping
(
"groupSaveOrUpdate"
)
@
Po
stMapping
(
"groupSaveOrUpdate"
)
@ApiOperation
(
"保存或更新管理组"
)
@ApiOperation
(
"保存或更新管理组"
)
public
Object
groupSaveOrUpdate
(
Integer
group_id
,
String
group_name
,
Integer
state
,
String
[]
pwoer
,
String
group_power
)
{
public
Object
groupSaveOrUpdate
(
Integer
group_id
,
String
group_name
,
Integer
state
,
String
[]
pwoer
,
String
group_power
)
{
Fc_admin_group
group
=
new
Fc_admin_group
();
Fc_admin_group
group
=
new
Fc_admin_group
();
...
...
src/main/java/com/egolm/film/api/admin/AdminUserController.java
View file @
1f1e1c3d
...
@@ -5,6 +5,7 @@ import java.util.Map;
...
@@ -5,6 +5,7 @@ import java.util.Map;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
org.springframework.web.bind.annotation.ResponseBody
;
...
@@ -29,9 +30,8 @@ public class AdminUserController {
...
@@ -29,9 +30,8 @@ public class AdminUserController {
@Autowired
@Autowired
AdminUserService
service
;
AdminUserService
service
;
@ResponseBody
@ResponseBody
@
Reque
stMapping
(
"groupList"
)
@
Po
stMapping
(
"groupList"
)
@ApiOperation
(
"评委组分页查询"
)
@ApiOperation
(
"评委组分页查询"
)
@ApiImplicitParams
({
@ApiImplicitParams
({
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
false
,
name
=
"keyword"
,
value
=
"关键字"
),
@ApiImplicitParam
(
paramType
=
"query"
,
dataType
=
"string"
,
required
=
false
,
name
=
"keyword"
,
value
=
"关键字"
),
...
@@ -47,4 +47,5 @@ public class AdminUserController {
...
@@ -47,4 +47,5 @@ public class AdminUserController {
}
}
}
}
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