账本bill接口
获取账本
url: localhost/bill/list
method: get
{
"time": 3232,
"code": 200,
"data": {
"list": [{
"name": '投资',
"plan": 3000,
"invested": 2000,
"difference": 1000
}]
"total": 1
}
}
创建账本
URL: localhost/bill/create
method: POST
请求
- 请求头:Content-Type=application/json;charset=UTF-8
- 请求体:
{
"name": "理财"
}
响应