mengstack-api/cmd/server/main.go
MengStack Dev fbf9af32f0 Initial commit: MengStack Go API framework
Clean public release with:
- Go/Gin/PostgreSQL/Redis architecture
- Multi-tenant support
- JWT authentication
- Docker Compose deployment
- Environment-based configuration
2026-10-03 00:14:40 +08:00

30 lines
535 B
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// MengStack API
//
// @title MengStack API
// @version 0.1.0
// @description MengStack 平台 API 文档
//
// @host localhost:2222
// @BasePath /api/v1
//
// @securityDefinitions.apiKey Bearer
// @in header
// @name Authorization
// @description Bearer <token>
//
// @securityDefinitions.apiKey TenantID
// @in header
// @name X-Tenant-ID
// @description 租户 ID(受保护接口必填)
package main
import (
"mengstack/internal/app"
_ "mengstack/docs"
)
func main() {
app.NewApp().Run()
}