Comments (4)
@sjtuzbk 请问能让我试试吗?
from higress.
@sjtuzbk 帮忙看看
from higress.
是的,目前只支持List里存放一些基础的类型,对于object可以研究下尝试通过递归来实现。已将此issue置为help wanted,感兴趣的话可以认领
from higress.
MyResponse getPosition(Position pos); public class Position implements Serializable { public String name; public Long age; public Integer weight; public Float height; private Date born; private List<TagsModel> innerTags; private Map<String, TagsModel> innerMap; private TagsModel outerTag; private List<String> funs; } # 服务端日志 # getPosition get pos = Position(name=jim, age=7, weight=60, height=187.0, born=Mon Jan 01 19:00:29 CST 2024, innerTags=[null, null], innerMap={a=TagsModel{id=1, name='null', postId=null, addBy='ssss'}, b=TagsModel{id=3, name='null', postId=null, addBy='bbbb'}}, outerTag=TagsModel{id=10, name='ffff', postId=null, addBy='null'}, funs=[a, b, c])定义上面的dubbo接口,解析字段中List 解析出来为[null, null],Map解析出来为nnerMap={a=TagsModel{id=1, name='null', postId=null, addBy='ssss'},看起来List应该还不支持结构体类型的元素 从代码来看也能应证
void DubboUtility::createUntypedListObjcet(const json& object, Hessian2::Object::UntypedList& untyped_list) { auto type = object.type(); switch (type) { case json::value_t::string: untyped_list.emplace_back(std::make_unique<Hessian2::StringObject>(object.get<std::string>())); break; case json::value_t::number_unsigned: case json::value_t::number_integer: untyped_list.emplace_back(std::make_unique<Hessian2::IntegerObject>(object.get<int64_t>())); break; case json::value_t::number_float: untyped_list.emplace_back(std::make_unique<Hessian2::DoubleObject>(object.get<double>())); break; case json::value_t::boolean: untyped_list.emplace_back(std::make_unique<Hessian2::BooleanObject>(object.get<bool>())); break; case json::value_t::binary: untyped_list.emplace_back(std::make_unique<Hessian2::BinaryObject>(object.get_binary())); break; case json::value_t::null: default: untyped_list.emplace_back(std::make_unique<Hessian2::NullObject>()); break; } }
请问可否提供一个简单的demo?@lionelStuart
from higress.
Related Issues (20)
- 新增podmonitor对higress-gateway
- Support summary output for route/cluster/listener in hgctl gateway-config command
- istio对于virtualservice转换envoy配置合并域名的机制,希望higress进行优化 HOT 5
- Http转dubbo的返回值中不能正确解析引用的对象 HOT 3
- 使用higress.io/auth-tls-secret配置客户端证书未生效 HOT 5
- 从请求的url参数里读取key-value并将这个value值作为目的地址进行转发
- 使用 Higress + LobeChat 快速搭建私人GPT助理 HOT 24
- macos 13.6下kind部署使用wasm插件后envoy奔溃 HOT 5
- 弃用较老的 TLS 版本 HOT 1
- Higress Wasm 插件中 redis-cli 支持 Scan HOT 6
- Higress WasmPlugin CRD 不支持自签名证书的HTTPS的镜像仓库
- higress1.3.3不兼容ingress迁移过来的路由规则 HOT 2
- higress 域名配置如何支持非80、443端口 HOT 1
- 【开源之夏】实现基于向量相似度实现LLM结果召回的WASM插件
- 【GLCC】AI 缓存 Wasm 插件对接更多向量数据库/向量存储、搜索组件
- 【GLCC】Higress Console 支持 Gateway API HOT 2
- 【GLCC】Higress Console 支持通过表单配置 Wasm 插件
- 是否有计划支持service-weight注解 HOT 3
- support aws eks HOT 1
- 支持通过 GitHub Actions 来构建和发布 Wasm 插件镜像
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from higress.