TaskFeignClient.java 550 Bytes
package com.viontech.fanxing.ops.feign;

import com.viontech.fanxing.commons.model.Task;
import com.viontech.keliu.util.JsonMessageUtil;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * .
 *
 * @author 谢明辉
 * @date 2021/7/16
 */

@FeignClient(value = "fanxing-task")
@Service
public interface TaskFeignClient {

    @GetMapping("/tasks")
    JsonMessageUtil.JsonMessage<List<Task>> getAllTask();

}