Clean public release with: - Go/Gin/PostgreSQL/Redis architecture - Multi-tenant support - JWT authentication - Docker Compose deployment - Environment-based configuration
30 lines
535 B
Go
30 lines
535 B
Go
// 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()
|
||
}
|