package com.tzld.piaoquan.recommend.server.remote;

import com.tzld.piaoquan.abtest.client.ABTestClient;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.Map;


/**
 * @author dyp
 */
@Component
@Slf4j
public class ABTestRemoteService {

    @Autowired
    private ABTestClient client;

//    public String getGroup(String mid, String uid, int appType, String group) {
//        if (StringUtils.isBlank(mid)) {
//            return null;
//        }
//        return client.getGroup(mid, uid, appType, group);
//    }

    public Map<String, String> getExp(String mid, String uid, int appType, String group) {
        if (StringUtils.isBlank(mid)) {
            return null;
        }
        return client.getExp(mid, uid, appType, group);
    }

}
