https://github.com/floattech/fortune-api
基于图片缓存池的,以tx为图床的运势API
https://github.com/floattech/fortune-api
Last synced: 6 months ago
JSON representation
基于图片缓存池的,以tx为图床的运势API
- Host: GitHub
- URL: https://github.com/floattech/fortune-api
- Owner: FloatTech
- License: gpl-3.0
- Created: 2022-04-06T05:33:11.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-06T06:14:16.000Z (almost 4 years ago)
- Last Synced: 2025-02-28T23:39:38.228Z (11 months ago)
- Language: Go
- Size: 20.5 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fortune-api
基于图片缓存池的,以tx为图床的运势API
## 部署
```bash
go run main.go 0.0.0.0:8000
```
或
```bash
go build -ldflags "-s -w" -trimpath -o fortune
./fortune 0.0.0.0:8000
```
## API
> http://127.0.0.1:8000/fortune?id=123456&kind=车万
- **id**: 抽运势的人的唯一标识,必填
- **kind**: 运势底图类型,不填默认`车万`,详见 [ZeroBot-Plugin](https://github.com/FloatTech/ZeroBot-Plugin)