@@ -323,12 +323,12 @@ function parseParameterContract(config: Config, method: ApiMethod) {
323323 }
324324 }
325325 // 设置方法体
326- method . methodBody = `return Result.ok(${ domainNameLower } Service .${ method . operationName } (${ method . parameterNames . join ( ', ' ) } ));`
326+ method . methodBody = `return Result.ok(${ domainNameLower } AppService .${ method . operationName } (${ method . parameterNames . join ( ', ' ) } ));`
327327 method . methodBodyServiceImpl = `return null;`
328328
329329 if ( ! method . hasResponseType ) {
330330 method . responseType = 'Result<Void>'
331- method . methodBody = `${ domainNameLower } Service .${ method . operationName } (${ method . parameterNames . join ( ', ' ) } );
331+ method . methodBody = `${ domainNameLower } AppService .${ method . operationName } (${ method . parameterNames . join ( ', ' ) } );
332332 return Result.ok();`
333333 method . methodBodyServiceImpl = '' ;
334334 }
@@ -345,7 +345,7 @@ function parseParameterContract(config: Config, method: ApiMethod) {
345345 } else {
346346 method . imports . add ( `${ config . basePackage } .core.Result` )
347347 }
348- method . imports . add ( `${ config . basePackage } .service.${ domainName } Service ` )
348+ method . imports . add ( `${ config . basePackage } .service.${ domainName } AppService ` )
349349 method . imports . add ( 'io.swagger.v3.oas.annotations.Operation' )
350350 method . imports . add ( 'io.swagger.v3.oas.annotations.tags.Tag' )
351351 method . imports . add ( 'org.springframework.web.bind.annotation.*' )
@@ -355,6 +355,6 @@ function parseParameterContract(config: Config, method: ApiMethod) {
355355 method . importsService . forEach ( ( importItem ) => {
356356 method . importsServiceImpl . add ( importItem ) ;
357357 } ) ;
358- method . importsServiceImpl . add ( `${ config . basePackage } .service.${ domainName } Service ` )
358+ method . importsServiceImpl . add ( `${ config . basePackage } .service.${ domainName } AppService ` )
359359 method . importsServiceImpl . add ( 'org.springframework.stereotype.Service' )
360360}
0 commit comments