超级会员购买相关

This commit is contained in:
张松
2025-09-12 14:26:02 +08:00
parent 10817c01a0
commit 44d3a084c8
2 changed files with 5 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
package com.czg.controller.admin;
import com.czg.exception.ApiNotPrintException;
import com.czg.market.dto.MemberConfigDTO;
import com.czg.market.dto.MemberLevelDTO;
import com.czg.market.entity.MemberLevelConfig;
@@ -57,7 +58,7 @@ public class MemberController {
*/
// @SaAdminCheckPermission(value = "member:edit", name = "会员配置列表")
@PostMapping("/level")
public CzgResult<Boolean> addLevel(@Validated @RequestBody MemberLevelDTO levelDTO) {
public CzgResult<Boolean> addLevel(@Validated @RequestBody MemberLevelDTO levelDTO) throws ApiNotPrintException {
return CzgResult.success(memberConfigService.addLevel(StpKit.USER.getShopId(), levelDTO));
}
@@ -67,7 +68,7 @@ public class MemberController {
*/
// @SaAdminCheckPermission(value = "member:edit", name = "会员配置列表")
@PutMapping("/level")
public CzgResult<Boolean> editLevel(@Validated({UpdateGroup.class, Default.class}) @RequestBody MemberLevelDTO levelDTO) {
public CzgResult<Boolean> editLevel(@Validated({UpdateGroup.class, Default.class}) @RequestBody MemberLevelDTO levelDTO) throws ApiNotPrintException {
return CzgResult.success(memberConfigService.editLevel(StpKit.USER.getShopId(), levelDTO));
}

View File

@@ -1,6 +1,7 @@
package com.czg.market.service;
import com.czg.constant.TableValueConstant;
import com.czg.exception.ApiNotPrintException;
import com.czg.market.dto.MemberConfigDTO;
import com.czg.market.dto.MemberLevelDTO;
import com.czg.market.vo.MemberConfigVO;
@@ -23,7 +24,7 @@ public interface TbMemberConfigService extends IService<TbMemberConfig> {
Boolean edit(Long shopId, MemberConfigDTO memberDTO);
Boolean addLevel(Long shopId, MemberLevelDTO levelDTO);
Boolean addLevel(Long shopId, MemberLevelDTO levelDTO) throws ApiNotPrintException;
Boolean editLevel(Long shopId, MemberLevelDTO levelDTO);