package router import ( "91porn-server/web/api/ai_changeface_ctrl" "github.com/gin-gonic/gin" ) func aiChangeFaceRouter(router *gin.RouterGroup) { group := router.Group("/ai/changeface") { group.GET("/list", ai_changeface_ctrl.List) // ai换脸订单列表 group.POST("/update", ai_changeface_ctrl.Update) // ai换脸订单编辑 group.POST("/callback", ai_changeface_ctrl.Callback) // ai换脸回调 } //modGroup := group.Group("/mod") //{ // modGroup.GET("/list", ai_changeface_ctrl.ModList) // ai换脸模版列表 // modGroup.POST("/update", ai_changeface_ctrl.ModUpdate) // ai换脸模版编辑 // modGroup.POST("/add", ai_changeface_ctrl.ModAdd) // ai换脸模版添加 // modGroup.GET("/getById", ai_changeface_ctrl.GetById) // 根据id获取模版详情 //} imgGroup := router.Group("/ai/change_face_img") { imgGroup.GET("/list", ai_changeface_ctrl.AIChangeFaceImgList) imgGroup.POST("/update", ai_changeface_ctrl.AIChangeFaceImgUpdate) imgGroup.POST("/callback", ai_changeface_ctrl.CallbackByImg) //ai换脸订单回调 } }