You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2019/12/14 08:15:17 UTC

[GitHub] [servicecomb-java-chassis] Nick-The-Uncharted opened a new issue #1460: org.apache.servicecomb.swagger.invocation.converter.ConverterMgr#findConverter时能否通过注解表明当前类和目标类结构相似无需转换

Nick-The-Uncharted opened a new issue #1460: org.apache.servicecomb.swagger.invocation.converter.ConverterMgr#findConverter时能否通过注解表明当前类和目标类结构相似无需转换
URL: https://github.com/apache/servicecomb-java-chassis/issues/1460
 
 
   比如微服务A 有`PersonA{name, age}` 微服务B有`PersonB{name, age, gender}`,微服务A调用微服务B时完全可以使用PeronA实例作为参数编码然后微服务B使用PersonB为参数解码。目前的Json和protobuf编码方式都不会将类名编码,所以应该完全没问题。 
   
   注解类似于 `@SameStructureWith({"packgeB.personB", "packageC.personC"})`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services