feat: add mathpixel

This commit is contained in:
2025-12-20 21:42:58 +08:00
parent aa7fb1c7ca
commit 203c2b64c0
7 changed files with 416 additions and 93 deletions

View File

@@ -13,6 +13,12 @@ type Config struct {
UploadDir string `mapstructure:"upload_dir"`
Limit LimitConfig `mapstructure:"limit"`
Aliyun AliyunConfig `mapstructure:"aliyun"`
Mathpix MathpixConfig `mapstructure:"mathpix"`
}
type MathpixConfig struct {
AppID string `mapstructure:"app_id"`
AppKey string `mapstructure:"app_key"`
}
type LimitConfig struct {

View File

@@ -44,3 +44,7 @@ aliyun:
access_key_id: LTAI5t8qXhow6NCdYDtu1saF
access_key_secret: qZ2SwYsNCEBckCVSOszH31yYwXU44A
bucket_name: texpixel-doc
mathpix:
app_id: "576157025515297792"
app_key: "683f7133391a1039383161653531396234343536393263346632613437343332"

View File

@@ -43,3 +43,8 @@ aliyun:
access_key_id: LTAI5t8qXhow6NCdYDtu1saF
access_key_secret: qZ2SwYsNCEBckCVSOszH31yYwXU44A
bucket_name: texpixel-doc
mathpix:
app_id: "576157025515297792"
app_key: "fb72d251e33ac85c929bfd4eec40d78368d08d82fb2ee1cffb04a8bb967d1db5"