Giter Club home page Giter Club logo

Comments (2)

xy-peng avatar xy-peng commented on May 25, 2024

http api使用snake_case是很常见的。不仅微信支付是这样,业界的很多api包括友商的,比如GitHubPayPal,都是snake_case的。

另一方面,参数命名跟编程语言是无关的。想象一下,换成CamelCase的话,go/python的小伙伴是不是跟你一样吐槽呢?建议在实现时model中使用CamelCase,只要在序列化或反序列化时转换成snake_case就可以了。

from wechatpay-apache-httpclient.

xiaozhiliaoo avatar xiaozhiliaoo commented on May 25, 2024

mchid、openid 、notify_url、out_trade_no这类命名有的是全小写,有的是下划线分割。7、8年前就是这样,v3版还是这吊样。用java出来起来很反感

你反序列化回来写成notifyUrl就行啦

from wechatpay-apache-httpclient.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.