Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
shop-Mall
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
licc
shop-Mall
Commits
06fc9a82
Commit
06fc9a82
authored
Mar 30, 2021
by
licc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
管理端接口统一加/admin
parent
87a9f54c
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
10 additions
and
12 deletions
+10
-12
AccountController.java
...wisenergy/web/admin/controller/app/AccountController.java
+3
-5
MemberController.java
.../wisenergy/web/admin/controller/app/MemberController.java
+1
-1
PrizeController.java
...n/wisenergy/web/admin/controller/app/PrizeController.java
+1
-1
SettingController.java
...wisenergy/web/admin/controller/app/SettingController.java
+1
-1
TeamController.java
...cn/wisenergy/web/admin/controller/app/TeamController.java
+1
-1
TradeRecordController.java
...nergy/web/admin/controller/app/TradeRecordController.java
+1
-1
ShiroConfig.java
...in/src/main/java/cn/wisenergy/web/config/ShiroConfig.java
+2
-2
No files found.
wisenergy-web-admin/src/main/java/cn/wisenergy/web/admin/controller/app/AccountController.java
View file @
06fc9a82
...
...
@@ -13,7 +13,6 @@ import lombok.extern.slf4j.Slf4j;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
/**
...
...
@@ -21,7 +20,6 @@ import org.springframework.web.bind.annotation.RestController;
*/
@Api
(
tags
=
"账户管理"
)
@RestController
@RequestMapping
(
"/account"
)
@Slf4j
public
class
AccountController
extends
BaseController
{
@Autowired
...
...
@@ -29,7 +27,7 @@ public class AccountController extends BaseController {
@ApiOperation
(
value
=
"获取账户信息"
,
notes
=
"获取账户信息"
,
httpMethod
=
"GET"
)
@ApiImplicitParam
(
name
=
"userId"
,
value
=
"用户id"
,
dataType
=
"String"
)
@GetMapping
(
"/getByUserId"
)
@GetMapping
(
"/
account/
getByUserId"
)
public
R
<
AccountInfo
>
getByUserId
(
String
userId
)
{
return
accountService
.
getByUserId
(
userId
);
}
...
...
@@ -37,7 +35,7 @@ public class AccountController extends BaseController {
@ApiOperation
(
value
=
"获取账户分页列表"
,
notes
=
"获取账户分页列表"
,
httpMethod
=
"GET"
)
@ApiImplicitParam
(
name
=
"query"
,
value
=
"查询条件"
,
dataType
=
"AccountInfoQuery"
)
@GetMapping
(
"/getList"
)
@GetMapping
(
"
admin/account
/getList"
)
public
R
<
PageInfo
<
AccountInfo
>>
getList
(
AccountInfoQuery
query
)
{
return
accountService
.
getList
(
query
);
}
...
...
@@ -45,7 +43,7 @@ public class AccountController extends BaseController {
@ApiOperation
(
value
=
"设置页-版本更新"
,
notes
=
"设置页-版本更新"
,
httpMethod
=
"GET"
)
@ApiImplicitParam
(
name
=
"version"
,
value
=
"版本号"
,
dataType
=
"string"
)
@GetMapping
(
"/version"
)
@GetMapping
(
"/
account/
version"
)
public
R
<
String
>
version
(
String
version
)
{
if
(
StringUtils
.
isBlank
(
version
)){
return
R
.
error
(
"入参不能为空!"
);
...
...
wisenergy-web-admin/src/main/java/cn/wisenergy/web/admin/controller/app/MemberController.java
View file @
06fc9a82
...
...
@@ -19,7 +19,7 @@ import org.springframework.web.bind.annotation.RestController;
*/
@Api
(
tags
=
"会员优惠比列-后台管理"
)
@RestController
@RequestMapping
(
"/member"
)
@RequestMapping
(
"/
admin/
member"
)
@Slf4j
public
class
MemberController
{
@Autowired
...
...
wisenergy-web-admin/src/main/java/cn/wisenergy/web/admin/controller/app/PrizeController.java
View file @
06fc9a82
...
...
@@ -21,7 +21,7 @@ import org.springframework.web.bind.annotation.RestController;
*/
@Api
(
tags
=
"后台管理--进步奖"
)
@RestController
@RequestMapping
(
"/prize"
)
@RequestMapping
(
"/
admin/
prize"
)
@Slf4j
public
class
PrizeController
{
@Autowired
...
...
wisenergy-web-admin/src/main/java/cn/wisenergy/web/admin/controller/app/SettingController.java
View file @
06fc9a82
...
...
@@ -18,7 +18,7 @@ import org.springframework.web.bind.annotation.RestController;
*/
@Api
(
tags
=
"后台管理 -- 应用设置"
)
@RestController
@RequestMapping
(
"/set"
)
@RequestMapping
(
"/
admin/
set"
)
@Slf4j
public
class
SettingController
{
@Autowired
...
...
wisenergy-web-admin/src/main/java/cn/wisenergy/web/admin/controller/app/TeamController.java
View file @
06fc9a82
...
...
@@ -20,7 +20,7 @@ import org.springframework.web.bind.annotation.RestController;
*/
@Api
(
tags
=
"团队业绩--后台管理"
)
@RestController
@RequestMapping
(
"/team"
)
@RequestMapping
(
"/
admin/
team"
)
@Slf4j
public
class
TeamController
{
@Autowired
...
...
wisenergy-web-admin/src/main/java/cn/wisenergy/web/admin/controller/app/TradeRecordController.java
View file @
06fc9a82
...
...
@@ -20,7 +20,7 @@ import org.springframework.web.bind.annotation.RestController;
*/
@Api
(
tags
=
"交易流水-后台管理"
)
@RestController
@RequestMapping
(
"/trade"
)
@RequestMapping
(
"/
admin/
trade"
)
@Slf4j
public
class
TradeRecordController
{
@Autowired
...
...
wisenergy-web-admin/src/main/java/cn/wisenergy/web/config/ShiroConfig.java
View file @
06fc9a82
...
...
@@ -73,8 +73,8 @@ public class ShiroConfig {
filterChainDefinitionMap
.
put
(
"/api/sms/**"
,
"anon"
);
filterChainDefinitionMap
.
put
(
"/upload_flowChart/**"
,
"anon"
);
//图片地址
filterChainDefinitionMap
.
put
(
"/userlevel/test"
,
"anon"
);
//
后台设置
filterChainDefinitionMap
.
put
(
"/
set
/**"
,
"anon"
);
//
管理端
filterChainDefinitionMap
.
put
(
"/
admin
/**"
,
"anon"
);
filterChainDefinitionMap
.
put
(
"/customerService/uploadWeChatImg"
,
"anon"
);
filterChainDefinitionMap
.
put
(
"/customerService/service"
,
"anon"
);
...
...
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