Search in sources :

Example 1 with ObtainVipInfoModel

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);
}
Also used : ObtainVipInfoModel(build.dream.catering.models.vip.ObtainVipInfoModel) ApiRest(build.dream.common.api.ApiRest) RequestMapping(org.springframework.web.bind.annotation.RequestMapping) ResponseBody(org.springframework.web.bind.annotation.ResponseBody)

Aggregations

ObtainVipInfoModel (build.dream.catering.models.vip.ObtainVipInfoModel)1 ApiRest (build.dream.common.api.ApiRest)1 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)1 ResponseBody (org.springframework.web.bind.annotation.ResponseBody)1