ant-design / ant-design-pro

👨🏻‍💻👩🏻‍💻 Use Ant Design like a Pro!
https://pro.ant.design
MIT License
36.49k stars 8.14k forks source link

openapi如何进行类型映射,后端的Long类型映射为string类型 #11296

Open manjaoe opened 3 months ago

manjaoe commented 3 months ago

🧐 问题描述 | Problem description

后端参数是Long类型,openapi生成的接口是number类型。由于精度问题转成string类型传给后端。如何让openapi生成接口时就是string类型?即openapi生成接口时把Long类型映射为string类型