Skip to content

Files

Latest commit

 

History

History
5 lines (5 loc) · 491 Bytes

CodeDesign.md

File metadata and controls

5 lines (5 loc) · 491 Bytes

代码设计

  1. 主函数初始化全局数据库 并把其作为参数传入需要全局数据库的函数
  2. 本项目对于group/meeting数据库会在函数调用时动态加载数据库,所以主函数会将DataPath传给子模块让其手动打开数据库动态处理数据
  3. 因为数据库很多,所以每个数据库形参都应写明需要的数据库是哪个数据库
  4. 提交文件时不要提交重要token/secret(使用git update-index --assume-unchanged 文件忽略)