AsperforMias commented on issue #3803:
URL: https://github.com/apache/dubbo-go/issues/3803#issuecomment-6799064886

   @Alanxtl 想确认一下这个问题的修复方向。
   
   `metadata/definition/types.go` 的 `blockedNamedTypes` 有意拒绝了 `time.Time`,注释说它的 
JSON 表示还没定义。但运行时 generic filter 和 hessian2 已经把 `time.Time` 映射成 `java.util.Date`。
   
   我本地的方案是:ServiceDefinition 里把 `time.Time` 发布为叶子类型 
`java.util.Date`,泛化调用接收毫秒时间戳或 RFC 3339 字符串。这样含 `time.Time` 字段的方法就能正常出现在 Admin 里。
   
   这个方向可以吗?还是要等 MCP 提案定下 JSON 表示后再处理?
   


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to