package com.yuchen.saas.manage.system.api.feign;

import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import com.yuchen.saas.manage.system.api.entity.NestCustomerManage;
import io.swagger.annotations.ApiOperation;
import org.nest.springwrap.core.launch.app.AppNameConstant;
import org.nest.springwrap.core.tool.api.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;


@FeignClient(
        value = AppNameConstant.SAAS_SYSTEM,
        fallbackFactory = CustomerManageFallback.class
)
public interface CustomerManageFeignServer {

    @GetMapping("/nestCustomerManage/getAllCustomerManageList")
    R<List<NestCustomerManage>> getAllCustomerManageList();

    @GetMapping("/nestCustomerManage/getDetailById/{id}")
    R<NestCustomerManage> getDetailById(@PathVariable Long id) ;

    @GetMapping("/nestCustomerManage/getCustomerManageListBySubjectId")
    R<List<NestCustomerManage>> getCustomerManageListBySubjectId() ;
}
