运营商VIP

This commit is contained in:
2023-11-24 14:36:59 +08:00
parent f2fac36715
commit f7a8d48b69
7 changed files with 137 additions and 27 deletions

View File

@@ -15,6 +15,7 @@ import com.jsowell.common.response.RestApiResponse;
import com.jsowell.common.util.StringUtils;
import com.jsowell.pile.domain.MemberBasicInfo;
import com.jsowell.pile.domain.MemberPlateNumberRelation;
import com.jsowell.pile.dto.CreateMerchantVipDTO;
import com.jsowell.pile.dto.PlatformTesterDTO;
import com.jsowell.pile.dto.QueryMemberInfoDTO;
import com.jsowell.pile.dto.UniAppQueryMemberBalanceDTO;
@@ -77,6 +78,26 @@ public class MemberBasicInfoController extends BaseController {
return getDataTable(list);
}
/**
* 新增运营商VIP
*/
@PostMapping ("/createMerchantVip")
public AjaxResult createMerchantVip(@RequestBody CreateMerchantVipDTO dto) {
AjaxResult ajaxResult;
try {
memberBasicInfoService.createMerchantVip(dto);
ajaxResult = AjaxResult.success();
} catch (BusinessException e) {
logger.error("新增运营商VIP error", e);
ajaxResult = AjaxResult.error(e.getMessage() + ", 新增运营商VIP失败");
} catch (Exception e) {
logger.error("新增运营商VIP error", e);
ajaxResult = AjaxResult.error("发生异常, 新增运营商VIP失败");
}
return ajaxResult;
}
/**
* 获取当前会员表中存在的运营商列表
* http://localhost:8080/member/info/getMerchantListByAuth