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

16
build.bat Normal file
View File

@@ -0,0 +1,16 @@
@echo off
rem 构建前端静态产物到 mengpost-frontend\dist
setlocal
set ROOT=%~dp0
cd /d %ROOT%mengpost-frontend
if not exist node_modules (
call npm install || goto :err
)
call npm run build || goto :err
echo.
echo 前端已构建: %ROOT%mengpost-frontend\dist
endlocal & exit /b 0
:err
echo 构建失败
endlocal & exit /b 1