to-count-or-not 是安卓记账软件爱记不记的后端 RESTful Web 服务。
Dependency | GroupId |
---|---|
spring-boot-starter-web | org.springframework.boot |
spring-boot-starter-validation | org.springframework.boot |
mybatis-spring-boot-starter | org.mybatis.spring.boot |
mysql-connector-java | mysql |
java-jwt | com.auth0 |
lombok | org.projectlombok |
Action | Method | URI |
---|---|---|
注册 | POST | user/register |
登录 | POST | user/login |
注销 | DELETE | user |
修改密码 | PUT | user |
Action | Method | URI |
---|---|---|
新增 | POST | card |
删除 | DELETE | card/{id} |
修改 | PUT | card/{id} |
查找 | GET | card/{id} |
全部 | GET | cards |
Action | Method | URI |
---|---|---|
新增 | POST | member |
删除 | DELETE | member/{id} |
修改 | PUT | member/{id} |
查找 | GET | member/{id} |
全部 | GET | members |
Action | Method | URI |
---|---|---|
新增 | POST | division |
删除 | DELETE | division/{id} |
修改 | PUT | division/{id} |
查找 | GET | division/{id} |
全部 | GET | divisions |
Action | Method | URI |
---|---|---|
新增 | POST | category |
删除 | DELETE | category/{id} |
修改 | PUT | category/{id} |
查找 | GET | category/{id} |
全部 | GET | categories/{division} |
Action | Method | URI |
---|---|---|
新增 | POST | bill |
删除 | DELETE | bill/{id} |
修改 | PUT | bill/{id} |
查找 | GET | bill/{id} |
Action | Method | URI |
---|---|---|
月流水 | GET | flow/month/{year}/{month} |
日流水 | GET | flow/day/{year}/{month}/{day} |
Action | Method | URI |
---|---|---|
按账户统计 | GET | income/cards/{year}/{month} |
按成员统计 | GET | income/members/{year}/{month} |
按一级分类统计 | GET | income/divisions/{year}/{month} |
按二级分类统计 | GET | income/categories/{division}/{year}/{month} |
Action | Method | URI |
---|---|---|
按账户统计 | GET | expense/cards/{year}/{month} |
按成员分类统计 | GET | expense/members/{year}/{month} |
按一级分类统计 | GET | expense/divisions/{year}/{month} |
按二级分类统计 | GET | expense/categories/{division}/{year}/{month} |