import { Dubbo , TDubboCallResult } from 'apache-dubbo-js' ; import { argumentMap , JavaString } from 'interpret-util' ; import { UserRequest } from './UserRequest' ; import { UserResponse } from './UserResponse' ; export interface IDemoProvider { sayHello ( name ) : TDubboCallResult < string > ; test ( ) : TDubboCallResult < void > ; echo ( ) : TDubboCallResult < string > ; getUserInfo ( request ) : TDubboCallResult < UserResponse > ; } export const DemoProviderWrapper = { sayHello : argumentMap , test : argumentMap , echo : argumentMap , getUserInfo : argumentMap , } ; export function DemoProvider ( dubbo ) { return dubbo . proxyService < IDemoProvider > ( { dubboInterface : 'org.apache.dubbo.demo.DemoProvider' , methods : DemoProviderWrapper , } ) ; }