glennliao / apijson-go

[WIP] 基于 go + goframe 实现的 apijson
MIT License
78 stars 16 forks source link

feat: implement setting field style of json and database #4

Closed niluan304 closed 2 years ago

niluan304 commented 2 years ago

feat

  1. db/sqlexecutor.go: implement setting field style of json and database. 实现设置 json,数据库的字段风格

fix

  1. demo/todo/tests/fail_test.go: move fail_test.go to package fail_test.

  2. config/config.go: modify public variable RoleList to private variable roleList, add public func RoleList(); public variable MethodList does the same. 修改公有变量RoleList, MethodList为私有变量,增加对应的导出函数.