Initial commit: web_hghl_server
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"videoweb/web/api/web_translation"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func translationRouter(router *gin.RouterGroup) {
|
||||
translation := router.Group("/translation")
|
||||
{
|
||||
translation.POST("/list", web_translation.GetTranslation)
|
||||
translation.POST("/update", web_translation.UpdateOnetTranslation)
|
||||
translation.POST("/del", web_translation.DelOnetTranslation)
|
||||
translation.POST("/add", web_translation.AddOnetTranslation)
|
||||
}
|
||||
translationcategory := router.Group("/translationcategory")
|
||||
{
|
||||
translationcategory.POST("/list", web_translation.GetTranslationCategory)
|
||||
translationcategory.POST("/update", web_translation.UpdateOnetTranslationCategory)
|
||||
translationcategory.POST("/del", web_translation.DelOnetTranslationCategory)
|
||||
translationcategory.POST("/add", web_translation.AddOnetTranslationCategory)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user