Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -40,7 +40,7 @@ public class MenuController {
|
||||
* @return 菜单结构
|
||||
*/
|
||||
@SaAdminCheckRole("管理员")
|
||||
// @SaAdminCheckPermission("menu:list")
|
||||
@SaAdminCheckPermission(value = "menu:list", name = "菜单列表")
|
||||
@GetMapping("/list")
|
||||
public CzgResult<List<MenuVO>> all(String title, String startTime, String endTime) {
|
||||
return CzgResult.success(menuService.getAll(title, startTime, endTime));
|
||||
@@ -51,7 +51,7 @@ public class MenuController {
|
||||
* @return 菜单结构
|
||||
*/
|
||||
@SaAdminCheckRole("管理员")
|
||||
// @SaAdminCheckPermission("menu:detail")
|
||||
@SaAdminCheckPermission(value = "menu:detail", name = "菜单详情")
|
||||
@GetMapping("/detail")
|
||||
public CzgResult<SysMenu> detail(@RequestParam Integer id) {
|
||||
return CzgResult.success(menuService.getById(id));
|
||||
@@ -62,7 +62,7 @@ public class MenuController {
|
||||
* @return 是否成功
|
||||
*/
|
||||
@SaAdminCheckRole("管理员")
|
||||
// @SaAdminCheckPermission("menu:add")
|
||||
@SaAdminCheckPermission(value = "menu:add", name = "菜单添加")
|
||||
@PostMapping
|
||||
public CzgResult<Boolean> add(@RequestBody @Validated MenuAddDTO menuAddDTO) {
|
||||
return CzgResult.success(menuService.add(menuAddDTO));
|
||||
@@ -73,7 +73,7 @@ public class MenuController {
|
||||
* @return 是否成功
|
||||
*/
|
||||
@SaAdminCheckRole("管理员")
|
||||
// @SaAdminCheckPermission("menu:edit")
|
||||
@SaAdminCheckPermission(value = "menu:edit", name = "菜单编辑")
|
||||
@PutMapping()
|
||||
public CzgResult<Boolean> edit(@RequestBody @Validated MenuEditDTO menuEditDTO) {
|
||||
return CzgResult.success(menuService.edit(menuEditDTO));
|
||||
@@ -84,7 +84,7 @@ public class MenuController {
|
||||
* @return 是否成功
|
||||
*/
|
||||
@SaAdminCheckRole("管理员")
|
||||
// @SaAdminCheckPermission("menu:del")
|
||||
@SaAdminCheckPermission(value = "menu:del", name = "菜单删除")
|
||||
@DeleteMapping()
|
||||
public CzgResult<Boolean> edit(@RequestBody @Validated MenuDelDTO menuDelDTO) {
|
||||
return CzgResult.success(menuService.removeById(menuDelDTO.getId()));
|
||||
|
||||
@@ -37,7 +37,7 @@ public class RoleController {
|
||||
@SaAdminCheckPermission(value = "role:list", name = "角色列表")
|
||||
@GetMapping("/list")
|
||||
public CzgResult<Page<SysRole>> getList(PageDTO pageDTO, String key, String startTime, String endTime) {
|
||||
return CzgResult.success(roleService.getList(pageDTO, key, startTime, endTime));
|
||||
return CzgResult.success(roleService.getList(StpKit.USER.getShopId(), pageDTO, key, startTime, endTime));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -85,6 +85,9 @@ public class RoleController {
|
||||
@SaAdminCheckPermission(value = "role:remove", name = "角色删除")
|
||||
@DeleteMapping
|
||||
public CzgResult<Boolean> remove(@RequestBody @Validated RoleRemoveDTO roleRemoveDTO) {
|
||||
if (roleRemoveDTO.id() == 1L || roleRemoveDTO.id() == 2L) {
|
||||
return CzgResult.failure("超级管理员角色不可删除");
|
||||
}
|
||||
return CzgResult.success(roleService.removeById(roleRemoveDTO.id()));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -28,7 +28,7 @@ public class ShopActivateController {
|
||||
* 店铺充值活动列表
|
||||
* 权限标识: activate:list
|
||||
*/
|
||||
@SaAdminCheckPermission("activate:list")
|
||||
@SaAdminCheckPermission(value = "activate:list", name = "店铺充值活动列表")
|
||||
@GetMapping
|
||||
public CzgResult<List<ShopActivateDTO>> detail(@RequestParam(required = false) Long shopId) {
|
||||
return CzgResult.success(shopActivateService.getList(shopId));
|
||||
@@ -38,7 +38,7 @@ public class ShopActivateController {
|
||||
* 店铺充值活动新增
|
||||
* 权限标识: activate:add
|
||||
*/
|
||||
@SaAdminCheckPermission("activate:add")
|
||||
@SaAdminCheckPermission(value = "activate:add", name = "店铺充值活动新增")
|
||||
@PostMapping
|
||||
public CzgResult<Boolean> add(@RequestBody @Validated ShopActivateDTO activateDTO) {
|
||||
activateDTO.setShopId(StpKit.USER.getShopId());
|
||||
@@ -49,7 +49,7 @@ public class ShopActivateController {
|
||||
* 店铺充值活动修改
|
||||
* 权限标识: activate:edit
|
||||
*/
|
||||
@SaAdminCheckPermission("activate:edit")
|
||||
@SaAdminCheckPermission(value = "activate:edit", name = "店铺充值活动修改")
|
||||
@PutMapping
|
||||
public CzgResult<Boolean> edit(@RequestBody @Validated ShopActivateDTO activateDTO) {
|
||||
return CzgResult.success(shopActivateService.edit(activateDTO));
|
||||
|
||||
@@ -26,7 +26,7 @@ public class ShopMerchantController {
|
||||
* @return 支付信息
|
||||
*/
|
||||
@SaAdminCheckRole("管理员")
|
||||
@SaAdminCheckPermission("shopMerchant:detail")
|
||||
@SaAdminCheckPermission(value = "shopMerchant:detail", name = "商户支付信息获取")
|
||||
@GetMapping
|
||||
public CzgResult<ShopMerchant> detail() {
|
||||
return CzgResult.success(shopMerchantService.detail());
|
||||
@@ -38,7 +38,7 @@ public class ShopMerchantController {
|
||||
* @return 是否成功
|
||||
*/
|
||||
@SaAdminCheckRole("管理员")
|
||||
@SaAdminCheckPermission("shopMerchant:edit")
|
||||
@SaAdminCheckPermission(value = "shopMerchant:edit", name = "商户支付信息修改")
|
||||
@PutMapping
|
||||
public CzgResult<Boolean> edit(@RequestBody @Validated ShopMerchantEditDTO shopMerchantEditDTO) {
|
||||
return CzgResult.success(shopMerchantService.edit(shopMerchantEditDTO));
|
||||
|
||||
@@ -25,7 +25,7 @@ public class ShopPermissionController {
|
||||
* 获取店铺权限列表
|
||||
* @return 权限列表
|
||||
*/
|
||||
@SaAdminCheckPermission("shopPermission:list")
|
||||
@SaAdminCheckPermission(value = "shopPermission:list", name = "店铺权限列表")
|
||||
@GetMapping
|
||||
public CzgResult<List<ShopPermission>> getPermission() {
|
||||
return CzgResult.success(shopPermissionService.getPermission());
|
||||
|
||||
@@ -29,7 +29,7 @@ public class ShopTableAreaController {
|
||||
* @param name 区域名称
|
||||
* @return 是否成功
|
||||
*/
|
||||
@SaAdminCheckPermission("shopArea:list")
|
||||
@SaAdminCheckPermission(value = "shopArea:list", name = "区域列表")
|
||||
@GetMapping
|
||||
public CzgResult<Page<ShopTableArea>> list(String name) {
|
||||
return CzgResult.success(shopTableAreaService.pageInfo(StpKit.USER.getShopId(), name));
|
||||
@@ -40,7 +40,7 @@ public class ShopTableAreaController {
|
||||
* 权限标识: shopArea:edit
|
||||
* @return 是否成功
|
||||
*/
|
||||
@SaAdminCheckPermission("shopArea:edit")
|
||||
@SaAdminCheckPermission(value = "shopArea:edit", name = "区域修改")
|
||||
@PutMapping
|
||||
public CzgResult<Boolean> edit(@RequestBody @Validated ShopAreaEditDTO shopAreaEditDTO) {
|
||||
return CzgResult.success(shopTableAreaService.edit(StpKit.USER.getShopId(), shopAreaEditDTO));
|
||||
@@ -51,7 +51,7 @@ public class ShopTableAreaController {
|
||||
* 权限标识: shopArea:del
|
||||
* @return 是否成功
|
||||
*/
|
||||
@SaAdminCheckPermission("shopArea:del")
|
||||
@SaAdminCheckPermission(value = "shopArea:del", name = "区域删除")
|
||||
@DeleteMapping
|
||||
public CzgResult<Boolean> remove(@RequestBody @Validated ShopAreaEditDTO shopAreaEditDTO) {
|
||||
return CzgResult.success(shopTableAreaService.remove(new QueryWrapper().eq(ShopTableArea::getShopId, StpKit.USER.getShopId()).eq(ShopTableArea::getId, shopAreaEditDTO.getId())));
|
||||
@@ -62,7 +62,7 @@ public class ShopTableAreaController {
|
||||
* 权限标识: shopArea:add
|
||||
* @return 是否成功
|
||||
*/
|
||||
@SaAdminCheckPermission("shopArea:add")
|
||||
@SaAdminCheckPermission(value = "shopArea:add", name = "区域新增")
|
||||
@PostMapping
|
||||
public CzgResult<Boolean> add(@RequestBody @Validated ShopAreaAddDTO shopAreaAddDTO) {
|
||||
return CzgResult.success(shopTableAreaService.add(shopAreaAddDTO));
|
||||
|
||||
@@ -36,7 +36,7 @@ dubbo:
|
||||
threads: 20
|
||||
name: dubbo
|
||||
serialization: hessian2
|
||||
port: -1
|
||||
port: 10101
|
||||
|
||||
|
||||
seata:
|
||||
|
||||
@@ -35,7 +35,7 @@ dubbo:
|
||||
group: server-test
|
||||
protocol:
|
||||
threads: 20
|
||||
port: -1
|
||||
port: 10102
|
||||
name: dubbo
|
||||
serialization: hessian2
|
||||
|
||||
|
||||
@@ -29,13 +29,13 @@ spring:
|
||||
dubbo:
|
||||
application:
|
||||
name: order-server
|
||||
# qos-port: 22231
|
||||
qos-enable: false
|
||||
qos-port: 22231
|
||||
qos-enable: true
|
||||
registry:
|
||||
address: nacos://121.40.109.122:8848 # Nacos 服务地址
|
||||
group: server-dev
|
||||
protocol:
|
||||
port: -1
|
||||
port: 10201
|
||||
threads: 20
|
||||
name: dubbo
|
||||
serialization: hessian2
|
||||
|
||||
@@ -30,15 +30,15 @@ spring:
|
||||
dubbo:
|
||||
application:
|
||||
name: order-server
|
||||
# qos-port: 22232
|
||||
qos-enable: false
|
||||
qos-port: 22232
|
||||
qos-enable: true
|
||||
logger: log4j2
|
||||
environment: test
|
||||
registry:
|
||||
address: nacos://121.40.109.122:8848 # Nacos 服务地址
|
||||
group: server-test
|
||||
protocol:
|
||||
port: -1
|
||||
port: 10202
|
||||
threads: 20
|
||||
name: dubbo
|
||||
serialization: hessian2
|
||||
|
||||
@@ -40,7 +40,7 @@ dubbo:
|
||||
address: nacos://121.40.109.122:8848 # Nacos 服务地址
|
||||
group: server-dev
|
||||
protocol:
|
||||
port: -1
|
||||
port: 10301
|
||||
threads: 20
|
||||
name: dubbo
|
||||
serialization: hessian2
|
||||
|
||||
@@ -34,7 +34,7 @@ dubbo:
|
||||
address: nacos://121.40.109.122:8848 # Nacos 服务地址
|
||||
group: server-test
|
||||
protocol:
|
||||
port: -1
|
||||
port: 10302
|
||||
threads: 20
|
||||
name: dubbo
|
||||
serialization: hessian2
|
||||
|
||||
@@ -58,6 +58,7 @@ public class MiniAppPagesController {
|
||||
* @param status 小程序页面状态 -1 查全部 1 启用 0 禁用
|
||||
*/
|
||||
@GetMapping("page")
|
||||
@SaAdminCheckPermission(value = "miniAppPages:page", name = "小程序页面分页")
|
||||
public CzgResult<Page<MiniAppPagesDTO>> getMiniAppPage(String name, String path, Integer status) {
|
||||
return miniAppPageService.getMiniAppPage(name, path, status);
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ dubbo:
|
||||
address: nacos://121.40.109.122:8848 # Nacos 服务地址
|
||||
group: server-dev
|
||||
protocol:
|
||||
port: -1
|
||||
port: 10401
|
||||
threads: 20
|
||||
name: dubbo
|
||||
serialization: hessian2
|
||||
|
||||
@@ -35,7 +35,7 @@ dubbo:
|
||||
address: nacos://121.40.109.122:8848 # Nacos 服务地址
|
||||
group: server-test
|
||||
protocol:
|
||||
port: -1
|
||||
port: 10402
|
||||
threads: 20
|
||||
name: dubbo
|
||||
serialization: hessian2
|
||||
|
||||
Reference in New Issue
Block a user