command
module
Version:
v0.0.0-...-feed0e7
Opens a new window with list of versions in this module.
Published: Mar 9, 2017
License: Apache-2.0
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
The Asset Alarm
introduce
To manager all credit that should very nice
quickstart
-
install dependencies
go get github.com/bitly/go-simplejson \
github.com/mattn/go-sqlite3
git clone https://github.com/vinkdong/asset-alarm.git
cd asset-alarm
npm install
-
start server
go build
./asset-alarm -db=./t.db start
REST api
api |
method |
body |
use |
/api/list |
GET/POST |
{} |
Get all credits |
/api/item/add |
POST |
{
"version":"v0.1",
"credit" : {
"name":"Vink Bank",
"icon":"../icon/vink.logo",
"credit":10.000000,
"debit":50.000000,
"balance":10.000000,
"account_date":8,
"repayment_date":0
}
}
|
Add an item to credit |
/api/record/add |
POST |
{
"version":"v0.1",
"record" : {
"cid":1,
"type":"out",
"credit":10.000000,
"debit":50.000000,
"amount":10.000000,
"time":"2017-01-23 20:01:09"
}
}
|
Add an item to record |
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.