package com.kidgrow.usercenter.feign;
|
|
import com.kidgrow.common.constant.ServiceNameConstants;
|
import com.kidgrow.common.model.ResultBody;
|
import com.kidgrow.usercenter.feign.fallback.SysDepartmentServiceFallbackFactory;
|
import org.springframework.cloud.openfeign.FeignClient;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
@FeignClient(name = ServiceNameConstants.USER_SERVICE, fallbackFactory = SysDepartmentServiceFallbackFactory.class, decode404 = true)
|
public interface SysDepartmentService {
|
/**
|
* 根据条件查询
|
* @param departmentId
|
* isPay
|
*/
|
@GetMapping(value = "/sysdepartment/updatePay")
|
ResultBody updatePay(@RequestParam("departmentId") Long departmentId, @RequestParam("isPay") Boolean isPay);
|
}
|