默认接口目录
This commit is contained in:
@@ -42,7 +42,7 @@ public class PointsConfigController {
|
||||
* 积分:配置:详情
|
||||
*/
|
||||
@GetMapping("/config")
|
||||
@SaAdminCheckPermission(value = "points:config:info", name = "积分-配置-详情")
|
||||
@SaAdminCheckPermission(parentName = "积分配置", value = "points:config:info", name = "积分-配置-详情")
|
||||
public CzgResult<MkPointsConfig> getPointsBasicSetting() {
|
||||
MkPointsConfig entity = pointsConfigService.getById(StpKit.USER.getShopId());
|
||||
return CzgResult.success(entity);
|
||||
@@ -56,13 +56,12 @@ public class PointsConfigController {
|
||||
public CzgResult<Void> savePointsBasicSetting(@RequestBody @Validated MkPointsConfigDTO dto) {
|
||||
Long shopId = StpKit.USER.getShopId();
|
||||
dto.setShopId(shopId);
|
||||
ValidatorUtil.validateEntity(dto, InsertGroup.class, DefaultGroup.class);
|
||||
MkPointsConfig entity = BeanUtil.copyProperties(dto, MkPointsConfig.class);
|
||||
MkPointsConfig record = pointsConfigService.getById(shopId);
|
||||
if (record == null) {
|
||||
pointsConfigService.save(entity);
|
||||
} else {
|
||||
pointsConfigService.saveOrUpdate(entity);
|
||||
pointsConfigService.updateById(entity);
|
||||
}
|
||||
return CzgResult.success();
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ public class PointsGoodsController {
|
||||
* 删除
|
||||
*/
|
||||
@DeleteMapping("/{id}")
|
||||
@SaAdminCheckPermission(value = "points:goods:delete", name = "积分-商品-新增/修改")
|
||||
@SaAdminCheckPermission(value = "points:goods:delete", name = "积分-商品-删除")
|
||||
public CzgResult<Void> deletePointsGoodsSetting(@PathVariable("id") Long id) {
|
||||
MkPointsGoods entity = pointsGoodsSettingService.getById(id);
|
||||
entity.setDelFlag(DeleteEnum.DELETED.value());
|
||||
|
||||
@@ -34,7 +34,7 @@ public class PointsGoodsRecordController {
|
||||
private PointsGoodPayService goodPayService;
|
||||
|
||||
/**
|
||||
* 积分:积分商品:兑换记录列表
|
||||
* 积分:积分商品:兑换记录
|
||||
*/
|
||||
@GetMapping("page")
|
||||
@SaAdminCheckPermission(value = "points:goodsRecord:list", name = "积分-积分商品-兑换记录")
|
||||
|
||||
Reference in New Issue
Block a user