ValhallaGeneralApiService.java 1.13 KB
package cn.fw.valhalla.sdk.api;

import cn.fw.data.base.domain.common.Message;
import cn.fw.valhalla.sdk.param.CustomerQueryReq;
import cn.fw.valhalla.sdk.param.ReachLogReq;
import cn.fw.valhalla.sdk.result.CustomerSimpleInfoDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.validation.Valid;
import java.util.List;

/**
 * @author : kurisu
 * @className : ValhallaGeneralApiService
 * @description : 售后crm通用api
 * @date: 2020-11-11 15:33
 */
@FeignClient(value = "fw-valhalla", path = "/api/valhalla/general")
public interface ValhallaGeneralApiService {
    /**
     * 保存进站记录
     *
     * @param reachLogReq
     * @return
     */
    @PostMapping("/reach/save")
    Message<Void> saveReachLog(@Valid @RequestBody ReachLogReq reachLogReq);

    /**
     * 查询保有客档案信息
     *
     * @param customerQueryReq
     * @return
     */
    @PostMapping("/query/customer/list")
    Message<List<CustomerSimpleInfoDto>> queryCustomList(@RequestBody CustomerQueryReq customerQueryReq);
}