功能特性: - 用户端充值记录页面,从使用日志中分离 - 充值记录中的去开发票功能 - 管理员发票管理页面 - 发票申请、处理、邮件通知功能 - 侧边栏菜单更新 - UI优化和控制台清理 - Docker部署配置 - 生产环境安全配置
25 lines
679 B
Go
25 lines
679 B
Go
package router
|
|
|
|
import (
|
|
"one-api/controller"
|
|
"one-api/middleware"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func SetVideoRouter(router *gin.Engine) {
|
|
videoV1Router := router.Group("/v1")
|
|
videoV1Router.Use(middleware.TokenAuth(), middleware.Distribute())
|
|
{
|
|
videoV1Router.POST("/video/generations", controller.RelayTask)
|
|
videoV1Router.GET("/video/generations/:task_id", controller.RelayTask)
|
|
}
|
|
|
|
klingV1Router := router.Group("/kling/v1")
|
|
klingV1Router.Use(middleware.KlingRequestConvert(), middleware.TokenAuth(), middleware.Distribute())
|
|
{
|
|
klingV1Router.POST("/videos/text2video", controller.RelayTask)
|
|
klingV1Router.POST("/videos/image2video", controller.RelayTask)
|
|
}
|
|
}
|