zeromicro / go-zero

A cloud-native Go microservices framework with cli tool for productivity.
https://go-zero.dev
MIT License
28.96k stars 3.92k forks source link

Does go-zero API definition support JSON arrays? #4390

Open error0g opened 3 days ago

error0g commented 3 days ago

json body example: [ { "id": 1 }, { "id": 2 } ] How do I define it in the API file?

smithyj commented 2 days ago

不支持直接传数组

Issues-translate-bot commented 2 days ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Direct passing of arrays is not supported