package
1.5.4
Repository: https://github.com/yuanjewel/go-core.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
DeleteDb 根据id删除数据,只关注id不支持匹配删除 path 为根据Id查看数据的接口名 object 作为传入传出的结果集 必须是在db中定义的struct对象的slice指针.
GetDb Get the DataBase instance, the default is mysql.
GetDbInfo 根据ids获取数据 会从header中获取三个字段,id、page、search header id为检索条件,为空默认为*,检索所有 header page为分页号,为空默认为1 header match 为模糊搜索的条件,默认为空 search 搜索条件 必须是在db中定义的struct对象 object 作为传入传出的结果集 必须是在db中定义的struct对象的slice指针 key 作为需要新增检索的header字段 order 为排序的字段,如果需要倒叙排列格式为"key desc".
No description provided by the author
No description provided by the author
InitDb global variables are used to connect to the database by default.
No description provided by the author
PostDbInfo 批量添加数据 要求body传入的结构和db中定义的struct对象一致 object 作为传入传出的结果集 必须是在db中定义的struct对象的slice指针 special 函数,可以修改bodyObject,如添加自定义字段.
PutDbInfoById 修改指定 要求body传入的结构和db中定义的struct对象一致 special 函数,可以修改bodyObject,如添加自定义字段.

# Variables

No description provided by the author