chore: initial import 萌邮 MengPost (React+Vite + Go+Gin)

Made-with: Cursor
This commit is contained in:
2026-04-17 22:27:57 +08:00
commit 0c31a4b376
40 changed files with 4263 additions and 0 deletions

19
mengpost-backend/main.go Normal file
View File

@@ -0,0 +1,19 @@
package main
import (
"log"
"mengpost-backend/config"
"mengpost-backend/database"
"mengpost-backend/router"
)
func main() {
cfg := config.Load()
database.Init(cfg.DBPath)
r := router.New(cfg)
log.Printf("萌邮 MengPost backend listening on :%s (token=%s)", cfg.Port, cfg.Token)
if err := r.Run(":" + cfg.Port); err != nil {
log.Fatal(err)
}
}