Archived
update: 更新文档
This commit is contained in:
2 files changed
+8
-57
No files matched your search
@@ -11,29 +11,31 @@
|
||||
* 使用了异步Web框架`FastAPI`来提高效率 ***注:数据库部分使用了同步***
|
||||
* 可以自定义显示图片的数量(长度)
|
||||
* 支持API接口以便自行开发
|
||||
* 支持MySQL数据库链接
|
||||
> data.sql https://pac.rtst.tech/schema/counter/data.sql
|
||||
> image.sql https://pac.rtst.tech/schema/counter/image.sql
|
||||
* 支持MySQL数据库链接 ***程序内有默认的MySQL数据库请不要随意注水***
|
||||
> sql 文件下载地址 https://pac.rtst.tech/static_file_hosting/counter/sql/
|
||||
|
||||
# 失去的特性
|
||||
|
||||
* 不支持MongoDB
|
||||
* 暂未支持`MongoDB`
|
||||
|
||||
# 安装&运行
|
||||
|
||||
```bash
|
||||
$ pip3 install -r requirements.txt
|
||||
$ uvicorn src:create_app --factory or
|
||||
$ sh run.sh or
|
||||
$ python3 main.py # 两条命令等价
|
||||
```
|
||||
|
||||
# 使用
|
||||
|
||||
* 访问`127.0.0.1:8000/<any name you want>`
|
||||
|
||||
* 访问`http://127.0.0.1:8000/<any name you want>`
|
||||
> 示例: http://127.0.0.1:8000/_redirect?length=10&theme=moebooru
|
||||
## 参数
|
||||
* `length`
|
||||
> length: 1 ≤ x ≤ 10
|
||||
* `theme`
|
||||
> theme: `blacked` `lewd` `lisu` `moebooru`
|
||||
|
||||
# 单元测试
|
||||
|
||||
|
||||
Reference in New Issue
Block a user