获取余额记录
program_girl
获取余额记录
whoami 接口也会返回余额,字段名 balance
Method and URL Structure
| Method |
Resource URL |
Authorization |
| GET |
/program_girl/asset/record/ |
YES |
cURL Example
curl -X GET http://localhost/program_girl/asset/record/
Response Data
| Name |
Description |
| pk |
id |
| owner |
用户 |
| amount |
金额 |
| record_type |
类型 |
| extra |
备注 |
Response
{ "count":4, "next":null, "previous":null, "results":[{ "pk":6, "owner":"test_003", "amount":"-3.90", "extra":"", "record_type":"支付", "create_time":"2017-11-13T16:34:29.433586" },{ "pk":5, "owner":"test_003", "amount":"9.90", "extra":"", "record_type":"奖学金", "create_time":"2017-11-13T16:34:29.431315" },{ "pk":4, "owner":"test_003", "amount":"-3.90", "extra":"", "record_type":"支付", "create_time":"2017-11-13T16:34:29.429003" },{ "pk":3, "owner":"test_003", "amount":"9.90", "extra":"", "record_type":"奖学金", "create_time":"2017-11-13T16:34:29.426718" }]}