13

问一下后端的同学为何你们传参都喜欢 int 1234

 4 years ago
source link: https://www.v2ex.com/t/671946
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
程序员 - @en20 - 比如接口要传一个请求来源,后端让我传的参是 1 拼多多, 2 淘宝, 3 京东 。。。为什么不能直接给一个字符串 '淘宝',反正都是要 switch case ,这样也很直观.接手别人的项目里

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK