package rpc import ( "context" "gitlink.org.cn/cloudream/jcs-pub/common/ecode" "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/rpc" clirpc "gitlink.org.cn/cloudream/jcs-pub/common/pkgs/rpc/client" ) func (svc *Service) HTTPProxy(ctx context.Context, msg *clirpc.HTTPProxyRequest) (*clirpc.HTTPProxyResponse, *rpc.CodeError) { resp, err := svc.http.ServeHTTP(ctx, msg) if err != nil { return nil, rpc.Failed(ecode.OperationFailed, err.Error()) } return resp, nil }