use of build.dream.catering.models.vip.ObtainVipInfoModel in project erp-catering by liuyandong33.
the class VipController method obtainVipInfo.
/**
* 获取会员信息
*
* @return
*/
@RequestMapping(value = "/obtainVipInfo")
@ResponseBody
public String obtainVipInfo() {
ApiRest apiRest = null;
Map<String, String> requestParameters = ApplicationHandler.getRequestParameters();
try {
ObtainVipInfoModel obtainVipInfoModel = ApplicationHandler.instantiateObject(ObtainVipInfoModel.class, requestParameters);
obtainVipInfoModel.validateAndThrow();
apiRest = vipService.obtainVipInfo(obtainVipInfoModel);
} catch (Exception e) {
LogUtils.error("获取会员信息失败", controllerSimpleName, "obtainVipInfo", e, requestParameters);
apiRest = new ApiRest(e);
}
return GsonUtils.toJson(apiRest);
}
Aggregations