Tencent / APIJSON

🏆 实时 零代码、全功能、强安全 ORM 库 🚀 后端接口和文档零代码,前端(客户端) 定制返回 JSON 的数据和结构 🏆 Real-Time coding-free, powerful and secure ORM 🚀 providing APIs and Docs without coding by Backend, and the returned JSON of API can be customized by Frontend(Client) users
http://apijson.cn
Other
17.14k stars 2.15k forks source link

【请教】将查询结果作为远程函数的入参 #701

Closed CarsonYue closed 5 months ago

CarsonYue commented 5 months ago

Description

{ "result()":"fun()" "Moment": { "id": 12, "@column": "id,name" } } 将name作为fun远程函数的入参,应如何实现?

TommyLemon commented 5 months ago

远程函数要和被引用 key 放同一层级,并且传参调用

{
    "Moment": {
        "id": 12,
        "@column": "id,name",
        "result()": "fun(name)"
    }
}
CarsonYue commented 5 months ago

多谢