bpframework-cli
Version:
cli of bpframework
25 lines (21 loc) • 569 B
text/typescript
;
/**
* Copyright (c) 2020 Copyright bp All Rights Reserved.
*/
import { Service, FeignClientConfigure } from 'bpframework';
import {
FeignClientConfigureInfo,
FeignClientFilterResponseData,
} from 'bpframework/types';
()
class FeignConfigure {
onConfigure(): FeignClientConfigureInfo {
return {
// 默认headers.
defaultHeaders: { 'content-type': 'application/json;charset=utf-8' },
// 消息过滤.
filterResponseCallback: (data: FeignClientFilterResponseData) => {},
}; //
}
}