Commit 204601c8 by 程裕兵

feat:api

parent 86a39ae7
......@@ -18,7 +18,7 @@ import org.springframework.web.bind.annotation.PostMapping;
@FeignClient(name = "FINANCE", url = "${rpc.url.fit-finance:http://app-fit-finance:7008}", fallbackFactory = StudioCashierApiFallback.class)
public interface StudioCashierApi {
String TAG = "金融-场馆收银管理";
String TAG = "【场馆】收银管理";
@ApiOperation(value = "分页筛选收银流水", tags = {TAG})
@PostMapping(value = "/private/studioCashier/page")
......
......@@ -17,7 +17,7 @@ import org.springframework.web.bind.annotation.PostMapping;
@FeignClient(name = "FINANCE", url = "${rpc.url.fit-finance:http://app-fit-finance:7008}", fallbackFactory = BrandMerchantApiFallback.class)
public interface BrandMerchantApi {
String TAG = "金融-品牌商户管理";
String TAG = "【品牌】商户管理";
@ApiOperation(value = "品牌绑定商户", tags = {TAG})
@PostMapping(value = "/private/brandMerchant/bind")
......
package com.jiejing.fitness.finance.api.merchant;
import com.jiejing.common.model.JsonResult;
import com.jiejing.fitness.finance.api.merchant.request.BindBrandMerchantRequest;
import com.jiejing.fitness.finance.api.merchant.request.ListBrandMerchantRequest;
import com.jiejing.fitness.finance.api.merchant.request.UnbindBrandMerchantRequest;
import com.jiejing.fitness.finance.api.merchant.vo.StudioMerchantVO;
import feign.hystrix.FallbackFactory;
import java.util.List;
import org.springframework.stereotype.Component;
/**
......@@ -12,6 +18,21 @@ public class BrandMerchantApiFallback implements FallbackFactory<BrandMerchantAp
@Override
public BrandMerchantApi create(Throwable throwable) {
return null;
return new BrandMerchantApi() {
@Override
public JsonResult<Void> bind(BindBrandMerchantRequest request) {
return JsonResult.rpcError();
}
@Override
public JsonResult<Void> unbind(UnbindBrandMerchantRequest request) {
return JsonResult.rpcError();
}
@Override
public JsonResult<List<StudioMerchantVO>> list(ListBrandMerchantRequest request) {
return JsonResult.rpcError();
}
};
}
}
......@@ -29,7 +29,7 @@ import org.springframework.web.bind.annotation.PostMapping;
@FeignClient(name = "FINANCE", url = "${rpc.url.fit-finance:http://app-fit-finance:7008}", fallbackFactory = StudioMerchantApiFallback.class)
public interface StudioMerchantApi {
String TAG = "金融-场馆商户管理";
String TAG = "【场馆】商户管理";
@ApiOperation(value = "场馆入驻商户", tags = {TAG})
@PostMapping(value = "/private/studioMerchant/getMerchant")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment