Skip to content
Permalink
Browse files
del: 去除dubboVersion dubboGroup 两个概念 应该在dubbo2js middleware中体现
  • Loading branch information
creasy2010 committed Apr 19, 2018
1 parent d5dd9f6 commit bedf89c40dc383ff907a5ddba01a1f7839f87fde
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 17 deletions.
@@ -1,6 +1,5 @@
{
"output": "./packages/dubbo/src/__tests__/providers",
"dubboVersion": "2.0.0",
"entry": "com.alibaba.dubbo.demo",
"entryJarPath": "./java/dubbo-demo/dubbo-demo-api/target/dubbo-demo-api-2.5.7.jar",
"libDirPath": "./java/dubbo-demo/dubbo-demo-api/target/dependency/"
@@ -22,13 +22,9 @@ const log = debug('j2t:core:toBeanClass');
export function toProxyFunc({
typeName,
typePath,
version,
group,
}: {
typeName: string;
typePath: string;
version: string;
group?: string;
}): FunctionDeclarationStructure {
let parameters = [{name: 'dubbo', isReadOnly: true, type: 'Dubbo'}];

@@ -40,8 +36,6 @@ export function toProxyFunc({
parameters,
bodyText: `return dubbo.proxyService<${'I' + typeName}>({
dubboInterface: '${typePath}',
version: '${version}',
${group ? "group:'" + group + "'," : ''}
methods: ${typeName}Wrapper,
}); `,
};
@@ -38,9 +38,6 @@ export async function toTypescript(
let {
sourceFile,
astJava,
request: {
config: {dubboVersion, dubboGroup},
},
} = intepretHandle;

let lastPointIndex = astJava.name.lastIndexOf('.') + 1;
@@ -74,8 +71,6 @@ export async function toTypescript(
intepretHandle.classPath.lastIndexOf('.') + 1,
),
typePath: intepretHandle.classPath,
version: dubboVersion,
group: dubboGroup,
}),
);
} else {
@@ -14,10 +14,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export interface IDubboConfigInfo {
dubboVersion: string;
dubboGroup?: string;
}

export interface IExtraResult {
jarDir: string;
@@ -33,7 +29,7 @@ export interface IDubboExtInfo {
libDirPath: string;
}

export interface IConfig extends IDubboConfigInfo, IDubboExtInfo {
export interface IConfig extends IDubboExtInfo {
output: string;
jarInfo?: string;
}

0 comments on commit bedf89c

Please sign in to comment.