GithubHelp home page GithubHelp logo

fool-bill's Introduction

fool-bill

呆头记账

# 消费方式
bill/assay GET
http://localhost:8082/api/bill/assay?date=2023-05&date_type=0&type=0
{"code":999,"message":"服务器异常,请联系后台管理人员","request":"GET:/api/bill/assay"}

# 收支走势
bill/line GET
http://localhost:8082/api/bill/line?date=2023-05


# 当月支出统计
bill/total_amount GET
http://localhost:8082/api/bill/total_amount?recordTime=2023-05
{"income":0,"consume":15.00,"budget":0,"balance":-15.00,"average":0.50}

# 记账记录
bill/all?recordTime= + data
http://localhost:8082/api/bill/all?recordTime=2023-05&start=0&count=10

# 删除记账
bill/remove POST

# 记账
bill/save POST
http://localhost:8082/api/bill/save
{"id":null,"amount":"15","type":0,"category_id":1,"remark":"早餐","record_time":"2023-05-21 20:53:34"}


# 导出账单
bill/export POST
http://localhost:8082/api/bill/export
{"code":999,"message":"服务器异常,请联系后台管理人员","request":"POST:/api/bill/export"}

# 设置预算
budget/save POST
http://localhost:8082/api/budget/save
{"date":"2023-05-21 20:56:55","amount":"200"}
{"success":true}

# 消费预算查询
budget/get GET
http://localhost:8082/api/budget/get?date=2023-05
{"current":15,"budget":0,"percent":100}

# 生成token
token POST
http://localhost:8082/api/token
{"account":"0c3jayFa1JsBlF07HFJa17RqDb3jayFl","type":0}
{"token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzY29wZSI6OCwiZXhwIjoxNjg0NjgwODE4LCJ1c2VySWQiOjUzNSwiaWF0IjoxNjg0NjczNjE4fQ.J4PF7q92XY_B5UIiqZnIzo6O326IUdyou_Fbicubwuc"}

# 校验token
token/verify POST

fool-bill's People

Contributors

jeromefly avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.