API-Core

command module
v1.0.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

README

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

dep 包管理安装

curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh

数据库操作

https://www.jb51.net/article/143208.htm

提交数据形式

curl \
  -X POST \
  http://localhost:2019/users/insert \
  -H 'Content-Type: application/json' \
  -d '{"where":{"id":1},"data":"2", "other":"3"}'

链接说明

http://localhost:2019/:table/:mode

// table -> 你要选择的表名
// mode -> 对该表的操作
// insert, update, findOne, findAll, remove, removeAll, updateAll, upsert

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
libs

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL