用户信息返回操作密码,菜单完善
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user