Commit 06fc9a82 authored by licc's avatar licc

管理端接口统一加/admin

parent 87a9f54c
...@@ -13,7 +13,6 @@ import lombok.extern.slf4j.Slf4j; ...@@ -13,7 +13,6 @@ import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.StringUtils;
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.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
/** /**
...@@ -21,7 +20,6 @@ import org.springframework.web.bind.annotation.RestController; ...@@ -21,7 +20,6 @@ import org.springframework.web.bind.annotation.RestController;
*/ */
@Api(tags = "账户管理") @Api(tags = "账户管理")
@RestController @RestController
@RequestMapping("/account")
@Slf4j @Slf4j
public class AccountController extends BaseController { public class AccountController extends BaseController {
@Autowired @Autowired
...@@ -29,7 +27,7 @@ public class AccountController extends BaseController { ...@@ -29,7 +27,7 @@ public class AccountController extends BaseController {
@ApiOperation(value = "获取账户信息", notes = "获取账户信息", httpMethod = "GET") @ApiOperation(value = "获取账户信息", notes = "获取账户信息", httpMethod = "GET")
@ApiImplicitParam(name = "userId", value = "用户id", dataType = "String") @ApiImplicitParam(name = "userId", value = "用户id", dataType = "String")
@GetMapping("/getByUserId") @GetMapping("/account/getByUserId")
public R<AccountInfo> getByUserId(String userId) { public R<AccountInfo> getByUserId(String userId) {
return accountService.getByUserId(userId); return accountService.getByUserId(userId);
} }
...@@ -37,7 +35,7 @@ public class AccountController extends BaseController { ...@@ -37,7 +35,7 @@ public class AccountController extends BaseController {
@ApiOperation(value = "获取账户分页列表", notes = "获取账户分页列表", httpMethod = "GET") @ApiOperation(value = "获取账户分页列表", notes = "获取账户分页列表", httpMethod = "GET")
@ApiImplicitParam(name = "query", value = "查询条件", dataType = "AccountInfoQuery") @ApiImplicitParam(name = "query", value = "查询条件", dataType = "AccountInfoQuery")
@GetMapping("/getList") @GetMapping("admin/account/getList")
public R<PageInfo<AccountInfo>> getList(AccountInfoQuery query) { public R<PageInfo<AccountInfo>> getList(AccountInfoQuery query) {
return accountService.getList(query); return accountService.getList(query);
} }
...@@ -45,7 +43,7 @@ public class AccountController extends BaseController { ...@@ -45,7 +43,7 @@ public class AccountController extends BaseController {
@ApiOperation(value = "设置页-版本更新", notes = "设置页-版本更新", httpMethod = "GET") @ApiOperation(value = "设置页-版本更新", notes = "设置页-版本更新", httpMethod = "GET")
@ApiImplicitParam(name = "version", value = "版本号", dataType = "string") @ApiImplicitParam(name = "version", value = "版本号", dataType = "string")
@GetMapping("/version") @GetMapping("/account/version")
public R<String> version(String version) { public R<String> version(String version) {
if(StringUtils.isBlank(version)){ if(StringUtils.isBlank(version)){
return R.error("入参不能为空!"); return R.error("入参不能为空!");
......
...@@ -19,7 +19,7 @@ import org.springframework.web.bind.annotation.RestController; ...@@ -19,7 +19,7 @@ import org.springframework.web.bind.annotation.RestController;
*/ */
@Api(tags = "会员优惠比列-后台管理") @Api(tags = "会员优惠比列-后台管理")
@RestController @RestController
@RequestMapping("/member") @RequestMapping("/admin/member")
@Slf4j @Slf4j
public class MemberController { public class MemberController {
@Autowired @Autowired
......
...@@ -21,7 +21,7 @@ import org.springframework.web.bind.annotation.RestController; ...@@ -21,7 +21,7 @@ import org.springframework.web.bind.annotation.RestController;
*/ */
@Api(tags = "后台管理--进步奖") @Api(tags = "后台管理--进步奖")
@RestController @RestController
@RequestMapping("/prize") @RequestMapping("/admin/prize")
@Slf4j @Slf4j
public class PrizeController { public class PrizeController {
@Autowired @Autowired
......
...@@ -18,7 +18,7 @@ import org.springframework.web.bind.annotation.RestController; ...@@ -18,7 +18,7 @@ import org.springframework.web.bind.annotation.RestController;
*/ */
@Api(tags = "后台管理 -- 应用设置") @Api(tags = "后台管理 -- 应用设置")
@RestController @RestController
@RequestMapping("/set") @RequestMapping("/admin/set")
@Slf4j @Slf4j
public class SettingController { public class SettingController {
@Autowired @Autowired
......
...@@ -20,7 +20,7 @@ import org.springframework.web.bind.annotation.RestController; ...@@ -20,7 +20,7 @@ import org.springframework.web.bind.annotation.RestController;
*/ */
@Api(tags = "团队业绩--后台管理") @Api(tags = "团队业绩--后台管理")
@RestController @RestController
@RequestMapping("/team") @RequestMapping("/admin/team")
@Slf4j @Slf4j
public class TeamController { public class TeamController {
@Autowired @Autowired
......
...@@ -20,7 +20,7 @@ import org.springframework.web.bind.annotation.RestController; ...@@ -20,7 +20,7 @@ import org.springframework.web.bind.annotation.RestController;
*/ */
@Api(tags = "交易流水-后台管理") @Api(tags = "交易流水-后台管理")
@RestController @RestController
@RequestMapping("/trade") @RequestMapping("/admin/trade")
@Slf4j @Slf4j
public class TradeRecordController { public class TradeRecordController {
@Autowired @Autowired
......
...@@ -73,8 +73,8 @@ public class ShiroConfig { ...@@ -73,8 +73,8 @@ public class ShiroConfig {
filterChainDefinitionMap.put("/api/sms/**", "anon"); filterChainDefinitionMap.put("/api/sms/**", "anon");
filterChainDefinitionMap.put("/upload_flowChart/**", "anon");//图片地址 filterChainDefinitionMap.put("/upload_flowChart/**", "anon");//图片地址
filterChainDefinitionMap.put("/userlevel/test", "anon"); filterChainDefinitionMap.put("/userlevel/test", "anon");
//后台设置 //管理端
filterChainDefinitionMap.put("/set/**", "anon"); filterChainDefinitionMap.put("/admin/**", "anon");
filterChainDefinitionMap.put("/customerService/uploadWeChatImg", "anon"); filterChainDefinitionMap.put("/customerService/uploadWeChatImg", "anon");
filterChainDefinitionMap.put("/customerService/service", "anon"); filterChainDefinitionMap.put("/customerService/service", "anon");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment