package cn.freemud.fuyou.service.processor;


import cn.freemud.enums.PayChannelEnum;
import cn.freemud.fuyou.controller.request.DiscountRequest;
import com.freemud.application.sdk.api.ordercenter.response.BaseResponse;
import ma.glasnost.orika.MapperFacade;
import ma.glasnost.orika.impl.DefaultMapperFactory;

public interface EventProcessor {

      MapperFacade mapper = new DefaultMapperFactory.Builder().build().getMapperFacade();

    /**
     * 处理
     *
     * @param request
     */
    BaseResponse process(DiscountRequest request);


    /**
     * 消息类型
     * {@link PayChannelEnum}
     *
     * @return
     */
    Integer getEvent();
}
