API Core with golang
version: 1.0.0
Golang 最新版本
sudo add-apt-repository ppa:longsleep/golang-backports
sudo apt-get update
sudo apt-get install golang-go
Releases
https://github.com/Ireoo/API-Core/releases
数据库操作
https://www.jb51.net/article/143208.htm
提交数据形式
curl \
-X POST \
http://localhost:2019/users/insert \
-H 'Content-Type: application/json' \
-H 'Authorization: xxxxxxxxxx' \
-d '{"where":{"id":1},"data":"2", "other":"3"}'
链接说明
http://localhost:2019/:table/:mode
// table -> 你要选择的表名
// mode -> 对该表的操作
// insert, update, findOne, findAll, remove, removeAll, updateAll, upsert