mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-20 11:05:18 +08:00
运营商VIP
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user