Files
quyun-v2/backend/main.go
Rogee 7a8c5c4427 feat(user): 修改OTP登录验证码为"1234"以增强安全性
feat(main): 添加种子命令以初始化数据库数据
feat(consts): 添加创作者角色常量
feat(profile): 更新用户资料页面以支持从API获取用户信息
feat(library): 实现用户库页面以获取已购内容并显示状态
feat(contents): 更新内容编辑页面以支持文件上传和自动保存
feat(topnavbar): 优化用户头像显示逻辑以支持动态加载
2025-12-30 21:55:48 +08:00

43 lines
994 B
Go

package main
import (
"quyun/v2/app/commands/http"
"quyun/v2/app/commands/migrate"
"quyun/v2/app/commands/seed"
"quyun/v2/pkg/utils"
log "github.com/sirupsen/logrus"
"go.ipao.vip/atom"
)
// @title ApiDoc
// @version 1.0
// @description Multi-tenant media platform backend API.
// @termsOfService http://swagger.io/terms/
// @contact.name UserName
// @contact.url http://www.swagger.io/support
// @contact.email support@swagger.io
// @license.name Apache 2.0
// @license.url http://www.apache.org/licenses/LICENSE-2.0.html
// @host localhost:8080
// @BasePath /
// @securityDefinitions.basic BasicAuth
// @externalDocs.description OpenAPI
// @externalDocs.url https://swagger.io/resources/open-api/
func main() {
// 打印构建信息
utils.PrintBuildInfo("v2")
opts := []atom.Option{
atom.Name("v2"),
http.Command(),
migrate.Command(),
seed.Command(),
}
if err := atom.Serve(opts...); err != nil {
log.Fatal(err)
}
}