-
-
Notifications
You must be signed in to change notification settings - Fork 55
Open
Description
import { Injectable, Body, Inject } from "@nestjs/common";
import { Loadbalanced } from "@nestcloud/loadbalance";
import { Get, ost } from "@nestcloud/feign";
// import { AXIOS_INSTANCE_PROVIDER } from "@nestcloud/http/http.constants";
@Injectable()
// enable loadbalance supports, need import @nestcloud/loadbalance module at first.
@Loadbalanced("service-test")
export class ServiceNodeClient {
// constructor(@Inject(AXIOS_INSTANCE_PROVIDER) private readonly httpService: HttpClient) {}
// constructor() {}
@Post("/service-test/get-service-test-info-by-caller-test")
async getServiceNodeInfo() {}
@Get("http://test.com/users")
// disable loadbalance supports.
@Loadbalanced(false)
getRemoteUsers() {}
}请问如何在getServiceNodeInfo函数中获得Post返回的数据做二次加工,在返回到controller中,同时对Post传递参数
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels