Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

统一规范字段和方法名称,持续完善... #75

Open
imfly opened this issue Apr 23, 2020 · 1 comment
Open

统一规范字段和方法名称,持续完善... #75

imfly opened this issue Apr 23, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@imfly
Copy link
Member

imfly commented Apr 23, 2020

没有规矩,就是噩梦 😿

进一步规范如下:

原则:前后一致,逻辑一致,简单清晰
规范:名称一概使用完整英文驼峰模式,比如:blockId,而不是 block_id,更不是 b_id

影响到编码内容包括:

  1. 数据库字段名称(不是数据库名称)

  2. proto 对象字段

  3. (类)属性和(类)方法

数据库名称不改变,仍然使用26个字符、_、数字组合,具体名字使用 完整英文

@imfly imfly added the enhancement New feature or request label Apr 23, 2020
@imfly
Copy link
Member Author

imfly commented Apr 23, 2020

The main contents completed as follows:

  1. send_public_key -> sendPublicKey
  2. sender_id -> senderId

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant