https://github.com/ireoo/api-core
api core with golang
https://github.com/ireoo/api-core
Last synced: 9 months ago
JSON representation
api core with golang
- Host: GitHub
- URL: https://github.com/ireoo/api-core
- Owner: Ireoo
- License: apache-2.0
- Created: 2019-02-09T09:23:50.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-09-16T07:04:36.000Z (almost 2 years ago)
- Last Synced: 2025-08-14T20:31:38.920Z (11 months ago)
- Language: Go
- Size: 2.51 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# API Core with golang
> version: 1.0.0
## Golang 最新版本
```bash
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
## 提交数据形式
```bash
curl \
-X POST \
http://localhost:2019/users/insert \
-H 'Content-Type: application/json' \
-H 'Authorization: xxxxxxxxxx' \
-d '{"where":{"id":1},"data":"2", "other":"3"}'
```
## 链接说明
```bash
http://localhost:2019/:table/:mode
// table -> 你要选择的表名
// mode -> 对该表的操作
// insert, update, findOne, findAll, remove, removeAll, updateAll, upsert
```