
支持 飞书 和 企业微信,可以通过修改配置 oauth 进行调整。
http://127.0.0.1:9501/oauth/authorize?state=STATE&redirect_uri=http://127.0.0.1:9501/oauth/login
GET /oauth/authorize
| 参数 |
类型 |
备注 |
| redirect_uri |
String |
重定向的地址 |
| state |
String |
自定义数据,回调时会携带回来 |
POST /oauth/login
| 参数 |
类型 |
备注 |
| code |
String |
重定向后自动携带的 Code |
| 参数 |
类型 |
备注 |
| token |
String |
登录后返回的 Token |
POST /report/item
| 参数 |
类型 |
备注 |
| id |
Integer |
条目ID,新增填0 |
| project |
String |
项目 |
| module |
String |
模块 |
| summary |
String |
描述 |
| begin_time |
String |
开始时间(10:00) |
| end_time |
String |
结束时间(11:00) |
GET /report
| 参数 |
类型 |
备注 |
| offset |
Integer |
偏移量 |
| limit |
Integer |
每页条数 |
| 参数 |
类型 |
备注 |
| *.id |
Integer |
日报ID |
| *.dt |
String |
日期 |
| *.items |
Array |
日报条目 |
| *.items.*.project |
String |
项目名 |
| *.items.*.module |
String |
模块名 |
| *.items.*.summary |
String |
工作内容 |
| *.items.*.begin_time |
String |
开始时间 |
| *.items.*.end_time |
String |
结束时间 |
| *.items.*.used_time |
Integer |
时间消耗(秒) |
DELETE /report/item/{id:\d+}
| 参数 |
类型 |
备注 |
| id |
Integer |
日报条目ID |