@@ -0,0 +1,35 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/activityctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func activityRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/activity")
|
||||
{
|
||||
group.POST("", activityctrl.Add)
|
||||
group.PUT("", activityctrl.Modify)
|
||||
group.GET("", activityctrl.QueryAll)
|
||||
group.GET("/box", activityctrl.QueryDropDownBox)
|
||||
}
|
||||
prize := group.Group("/prize")
|
||||
{
|
||||
prize.POST("", activityctrl.AddPrize)
|
||||
prize.PUT("", activityctrl.ModifyPrize)
|
||||
prize.GET("", activityctrl.QueryAllPrize)
|
||||
prize.GET("/vipBox", activityctrl.QueryVipDropDownBox)
|
||||
prize.GET("/box", activityctrl.QueryPrizeDropDownBox)
|
||||
}
|
||||
prizePool := group.Group("/prizePool")
|
||||
{
|
||||
prizePool.POST("", activityctrl.AddPrizePool)
|
||||
prizePool.PUT("", activityctrl.ModifyPrizePool)
|
||||
prizePool.GET("", activityctrl.QueryAllPrizePool)
|
||||
}
|
||||
record := group.Group("/record")
|
||||
{
|
||||
record.GET("", activityctrl.QueryAllRecord)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/actvctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func activeRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/actv")
|
||||
{
|
||||
group.GET("/list", actvctrl.GetActivities) // 活动列表
|
||||
group.POST("/update", actvctrl.UpdateActivity) // 编辑活动
|
||||
group.POST("/add", actvctrl.AddActivity) // 新增活动
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/addwlefarectrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func addWelfareBackRouter(router *gin.RouterGroup) {
|
||||
g := router.Group("/third")
|
||||
{
|
||||
g.POST("/api/notify/addWelfare", addwlefarectrl.AddWelfare)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/adv_group_ctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func adGroupRouter(router *gin.RouterGroup) {
|
||||
adGroup := router.Group("/adgroup")
|
||||
{
|
||||
adGroup.POST("/list", adv_group_ctrl.GetAdGroupStatList)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/adminctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func adminRouter(router *gin.RouterGroup) {
|
||||
{
|
||||
router.POST("/login", adminctrl.Login)
|
||||
router.POST("/slogin", adminctrl.SLogin)
|
||||
router.POST("/verify", adminctrl.Verify)
|
||||
router.POST("/logout", adminctrl.Logout)
|
||||
router.GET("/refresh", adminctrl.Refresh)
|
||||
}
|
||||
manage := router.Group("/manage")
|
||||
{
|
||||
manage.GET("/list", adminctrl.List)
|
||||
manage.POST("/add", adminctrl.Add)
|
||||
manage.DELETE("/del", adminctrl.Delete)
|
||||
manage.POST("/update", adminctrl.Update)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/adsctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func adsRouter(router *gin.RouterGroup) {
|
||||
ads := router.Group("/ads")
|
||||
{
|
||||
ads.GET("/list", adsctrl.List)
|
||||
ads.POST("/add", adsctrl.Add)
|
||||
ads.POST("/update", adsctrl.Update)
|
||||
ads.DELETE("/del", adsctrl.Delete)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/advance_config_ctrl"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func advanceConfigRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/advance_config")
|
||||
{
|
||||
group.GET("/list", advance_config_ctrl.QueryAll)
|
||||
group.POST("/create", advance_config_ctrl.Create)
|
||||
group.POST("/update", advance_config_ctrl.Update)
|
||||
group.POST("/delete", advance_config_ctrl.Delete)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/advance_order_ctrl"
|
||||
"91porn-server/web/middleware/limitHandler"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func advanceOrderRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/advance_order")
|
||||
{
|
||||
group.GET("", advance_order_ctrl.QueryAll)
|
||||
group.POST("/export", limitHandler.FilterRequestByExport(), advance_order_ctrl.Export)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
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换脸订单回调
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
ai_mate_ctrl "91porn-server/web/api/ai_mate_ctr"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func aiMateRouter(router *gin.RouterGroup) {
|
||||
aimate := router.Group("/aimate")
|
||||
{
|
||||
aimate.GET("/trans_list", ai_mate_ctrl.List)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/ai_mate_v2_ctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func aiMateV2Router(router *gin.RouterGroup) {
|
||||
aimateV2 := router.Group("/aimatev2")
|
||||
aimateV2.GET("/order_logs", ai_mate_v2_ctrl.OrderLogs)
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/ai_changeface_ctrl"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func aiModRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/ai/changeface/mod")
|
||||
{
|
||||
group.GET("/list", ai_changeface_ctrl.ModList) // ai换脸模版列表
|
||||
group.POST("/update", ai_changeface_ctrl.ModUpdate) // ai换脸模版编辑
|
||||
group.POST("/batch/update", ai_changeface_ctrl.BatchModUpdate) // ai换脸模版编辑
|
||||
group.POST("/add", ai_changeface_ctrl.ModAdd) // ai换脸模版添加
|
||||
group.GET("/getById", ai_changeface_ctrl.GetById) // 根据id获取模版详情
|
||||
group.GET("/all/scene", ai_changeface_ctrl.AllSceneList) // ai换脸模版列表
|
||||
}
|
||||
}
|
||||
Executable
+17
@@ -0,0 +1,17 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/ai_text_to_novel_ctrl"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
// aiTextToNovelRouter AI小说列表管理
|
||||
func aiTextToNovelRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/ai/text_to_novel")
|
||||
{
|
||||
group.GET("/list", ai_text_to_novel_ctrl.List)
|
||||
group.POST("/update", ai_text_to_novel_ctrl.Update)
|
||||
group.POST("/delete", ai_text_to_novel_ctrl.Delete)
|
||||
group.POST("/callback", ai_text_to_novel_ctrl.Callback)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"github.com/gin-gonic/gin"
|
||||
|
||||
"91porn-server/web/api/ai_undress_ctrl"
|
||||
)
|
||||
|
||||
func aiUndressRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/ai/undress")
|
||||
{
|
||||
group.GET("/list", ai_undress_ctrl.List)
|
||||
group.POST("/update", ai_undress_ctrl.Update)
|
||||
group.POST("/auto", ai_undress_ctrl.Auto)
|
||||
group.POST("/auto/batch", ai_undress_ctrl.AutoBatch)
|
||||
group.POST("/callback", ai_undress_ctrl.Callback)
|
||||
}
|
||||
}
|
||||
Executable
+17
@@ -0,0 +1,17 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/ai_image_to_video_ctrl"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
// aiImageToVideoRouter AI图生视频列表管理
|
||||
func aiImageToVideoRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/ai/image_to_video")
|
||||
{
|
||||
group.GET("/list", ai_image_to_video_ctrl.List)
|
||||
group.POST("/update", ai_image_to_video_ctrl.Update)
|
||||
group.POST("/delete", ai_image_to_video_ctrl.Delete)
|
||||
group.POST("/callback", ai_image_to_video_ctrl.Callback)
|
||||
}
|
||||
}
|
||||
Executable
+19
@@ -0,0 +1,19 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/aiplazactrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
// aiPlazaRouter ai广场帖子管理
|
||||
func aiPlazaRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/aiplaza")
|
||||
{
|
||||
group.GET("/list", aiplazactrl.List)
|
||||
group.POST("/create", aiplazactrl.Create)
|
||||
group.POST("/update", aiplazactrl.Update)
|
||||
group.POST("/delete", aiplazactrl.Delete)
|
||||
group.POST("/batch/update", aiplazactrl.BatchUpdate)
|
||||
}
|
||||
}
|
||||
Executable
+18
@@ -0,0 +1,18 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/ai_template_module_ctrl"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
// aiTemplateModuleRouter AI模版模块列表管理
|
||||
func aiTemplateModuleRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/ai_template_module")
|
||||
{
|
||||
group.GET("/list", ai_template_module_ctrl.List)
|
||||
group.GET("/all", ai_template_module_ctrl.AllList)
|
||||
group.POST("/create", ai_template_module_ctrl.Create)
|
||||
group.POST("/update", ai_template_module_ctrl.Update)
|
||||
group.POST("/delete", ai_template_module_ctrl.Delete)
|
||||
}
|
||||
}
|
||||
Executable
+18
@@ -0,0 +1,18 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/ai_text_to_image_ctrl"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
// aiTextToImageRouter AI绘图列表管理
|
||||
func aiTextToImageRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/ai/text_to_image")
|
||||
{
|
||||
group.GET("/list", ai_text_to_image_ctrl.List)
|
||||
group.POST("/update", ai_text_to_image_ctrl.Update)
|
||||
group.POST("/delete", ai_text_to_image_ctrl.Delete)
|
||||
group.POST("/callback", ai_text_to_image_ctrl.Callback)
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/annouctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func annouRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/annou")
|
||||
{
|
||||
group.GET("/list", annouctrl.GetAnnouList)
|
||||
group.POST("add", annouctrl.AddAnnou)
|
||||
group.POST("/update", annouctrl.UpdateAnnou)
|
||||
group.DELETE("/del", annouctrl.DeleteAnnou)
|
||||
}
|
||||
groupAnnounce := router.Group("/announce")
|
||||
{
|
||||
groupAnnounce.GET("/list", annouctrl.GetAnnounceList)
|
||||
groupAnnounce.POST("add", annouctrl.AddAnnounce)
|
||||
groupAnnounce.POST("/update", annouctrl.UpdateAnnounce)
|
||||
groupAnnounce.DELETE("/del", annouctrl.DeleteAnnounce)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/authorctrl"
|
||||
"91porn-server/web/api/rolectrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func authorRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/author")
|
||||
{
|
||||
group.GET("/list", authorctrl.List)
|
||||
group.POST("/update", authorctrl.Update)
|
||||
group.POST("/add", authorctrl.Add)
|
||||
group.DELETE("/del", authorctrl.Delete)
|
||||
}
|
||||
role := router.Group("/role")
|
||||
{
|
||||
role.POST("/edit", rolectrl.Edit)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/backpack_ctrl"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func userBackpackRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/backpack")
|
||||
{
|
||||
group.GET("", backpack_ctrl.QueryAll)
|
||||
}
|
||||
}
|
||||
Executable
+18
@@ -0,0 +1,18 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/bannerjumpctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
// bannerJumpRouter 限时Banner活动管理
|
||||
func bannerJumpRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/bannerjump")
|
||||
{
|
||||
group.GET("/list", bannerjumpctrl.List)
|
||||
group.POST("/create", bannerjumpctrl.Create)
|
||||
group.POST("/update", bannerjumpctrl.Update)
|
||||
group.POST("/delete", bannerjumpctrl.Delete)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,192 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/middleware/limitHandler"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"runtime/debug"
|
||||
|
||||
"91porn-server/common"
|
||||
"91porn-server/common/constant"
|
||||
"91porn-server/common/tg"
|
||||
"91porn-server/middleware/cors"
|
||||
"91porn-server/middleware/ginzap"
|
||||
"91porn-server/middleware/ip"
|
||||
"91porn-server/web/middleware/authweb"
|
||||
"91porn-server/web/middleware/checkPermission"
|
||||
"91porn-server/web/service/certificateser"
|
||||
"91porn-server/web/webg"
|
||||
|
||||
"github.com/gin-contrib/pprof"
|
||||
"github.com/gin-gonic/gin"
|
||||
swaggerFiles "github.com/swaggo/files"
|
||||
ginSwagger "github.com/swaggo/gin-swagger"
|
||||
)
|
||||
|
||||
// SetupGin 初始化gin router
|
||||
func SetupGin() *gin.Engine {
|
||||
gin.SetMode(gin.DebugMode)
|
||||
if webg.Conf.Base.Env == constant.ProdEnv {
|
||||
gin.SetMode(gin.ReleaseMode)
|
||||
}
|
||||
router := gin.New()
|
||||
router.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler))
|
||||
if webg.Conf.Base.PProf {
|
||||
pprof.Register(router) // 性能分析工具
|
||||
}
|
||||
router.ForwardedByClientIP = true
|
||||
router.Use(ip.RealIP)
|
||||
router.Use(
|
||||
ginzap.Logger([]string{constant.CtxAdminAct, constant.CtxIP}),
|
||||
ginzap.Recovery(true, func(err interface{}) {
|
||||
stack := string(debug.Stack())
|
||||
common.Go(func() {
|
||||
_ = webg.Bot.Send(tg.Msg{ChatId: tg.ChatIdServerTeam, Text: fmt.Sprintf("[Web-Server] panic:%+v stack:%s", err, stack)})
|
||||
})
|
||||
}))
|
||||
router.Use(cors.Cors(&cors.Options{
|
||||
Origin: nil, // "*"
|
||||
Methods: []string{http.MethodGet, http.MethodPost, http.MethodPut, http.MethodHead, http.MethodDelete},
|
||||
AllowedHeaders: []string{"Content-Length", "Content-Type", "Authorization"},
|
||||
ExposedHeaders: []string{"Content-Disposition", "Refresh-Authorization"},
|
||||
OptionsSuccessStatus: http.StatusOK,
|
||||
}))
|
||||
router.HandleMethodNotAllowed = true
|
||||
router.NoMethod(func(c *gin.Context) {
|
||||
c.JSON(http.StatusMethodNotAllowed, gin.H{"result": false, "error": "Method Not Allowed"})
|
||||
})
|
||||
router.NoRoute(func(c *gin.Context) {
|
||||
c.JSON(http.StatusNotFound, gin.H{"result": false, "error": "Endpoint Not Found"})
|
||||
})
|
||||
registerRouter(router)
|
||||
return router
|
||||
}
|
||||
|
||||
func registerRouter(router *gin.Engine) {
|
||||
//root Router 根组
|
||||
rootRouter := router.Group("/api/web",
|
||||
authweb.Auth,
|
||||
checkPermission.CheckPermission,
|
||||
limitHandler.LoginLimit,
|
||||
)
|
||||
{
|
||||
//web后台管理
|
||||
admin := rootRouter.Group("/admin")
|
||||
{
|
||||
newActivityRoute(admin)
|
||||
productRouter(admin)
|
||||
paymentGuideRouter(admin)
|
||||
sceneBannerRouter(admin)
|
||||
vipCardExperimentRouter(admin)
|
||||
productBenefitRouter(admin)
|
||||
tagRouter(admin)
|
||||
updownloadRouter(admin)
|
||||
locationRoute(admin)
|
||||
toneRoute(admin)
|
||||
vidRouter(admin)
|
||||
imageTopRouter(admin)
|
||||
adsRouter(admin)
|
||||
logRouter(admin)
|
||||
annouRouter(admin)
|
||||
userRouter(admin)
|
||||
versionRouter(admin)
|
||||
adminRouter(admin)
|
||||
authorRouter(admin)
|
||||
exportRouter(admin)
|
||||
activityRouter(admin)
|
||||
withdrawRouter(admin)
|
||||
rechargeRouter(admin)
|
||||
sourceRouter(admin)
|
||||
proxyRouter(admin)
|
||||
promoteUrlRouter(admin)
|
||||
syncCdnRouter(admin)
|
||||
filterRouter(admin)
|
||||
ipblockRouter(admin)
|
||||
ipwhiteRouter(admin)
|
||||
infmtRoute(admin)
|
||||
exchangeCodeRouter(admin)
|
||||
chatRobotRouter(admin)
|
||||
daichongRouter(admin)
|
||||
goldCfgRouter(admin)
|
||||
extendRouter(admin)
|
||||
freeVidCfgRouter(admin)
|
||||
ldyRouter(admin)
|
||||
fictionRouter(admin)
|
||||
taskRouter(admin)
|
||||
currencyRouter(admin)
|
||||
moduleConfRouter(admin)
|
||||
operationLogRouter(admin)
|
||||
videoActivityRouter(admin)
|
||||
activeRouter(admin)
|
||||
rejectTemp(admin)
|
||||
aiUndressRouter(admin)
|
||||
integralConfigRouter(admin)
|
||||
officialRouter(admin)
|
||||
commentRouter(admin)
|
||||
statRouter(admin)
|
||||
aiChangeFaceRouter(admin)
|
||||
videoGoldCoinRouter(admin)
|
||||
advanceOrderRouter(admin)
|
||||
advanceConfigRouter(admin)
|
||||
userBackpackRouter(admin)
|
||||
integralExchangeRouter(admin)
|
||||
quickSearchRouter(admin)
|
||||
aiMateRouter(admin)
|
||||
aiMateV2Router(admin)
|
||||
sysConfRouter(admin)
|
||||
bannerJumpRouter(admin)
|
||||
mediaRouter(admin)
|
||||
mediaContentRouter(admin)
|
||||
mediaTagRouter(admin)
|
||||
mediaTagDimensionRouter(admin)
|
||||
jingangRouter(admin)
|
||||
imGroupRouter(admin)
|
||||
imGroupMemberRouter(admin)
|
||||
imMessageRouter(admin)
|
||||
nakedChatRouter(admin)
|
||||
nakedChatOrderRouter(admin)
|
||||
aiTextToImageRouter(admin)
|
||||
aiImageToVideoRouter(admin)
|
||||
aiTemplateModuleRouter(admin)
|
||||
aiPlazaRouter(admin)
|
||||
aiModRouter(admin)
|
||||
aiTextToNovelRouter(admin)
|
||||
laosijiRouter(admin)
|
||||
adGroupRouter(admin)
|
||||
checkinRouter(admin)
|
||||
sensitiveWordRouter(admin)
|
||||
newOfficialWebsiteRoute(admin)
|
||||
contentReviewRouter(admin)
|
||||
imRouter(admin)
|
||||
}
|
||||
}
|
||||
// openclaw still 接口
|
||||
openclawRouter := router.Group("/customer")
|
||||
{
|
||||
commentAgentRouter(openclawRouter)
|
||||
}
|
||||
|
||||
ext := router.Group("/ext") //对H5接口的
|
||||
{
|
||||
certificate := ext.Group("certificate")
|
||||
{
|
||||
certificate.POST("/qr", certificateser.QrCode)
|
||||
}
|
||||
}
|
||||
thirdRouter := router.Group("/3rd")
|
||||
{
|
||||
defrayRouter(thirdRouter)
|
||||
daichongCallBackRouter(thirdRouter)
|
||||
addWelfareBackRouter(thirdRouter)
|
||||
}
|
||||
//代充接口 测试时环境 如此配置 ,生产环境 移动到group下
|
||||
daichongRouter := router.Group("/")
|
||||
{
|
||||
daichongCallBackRouter(daichongRouter)
|
||||
}
|
||||
//数据同步,内部数据中心
|
||||
syncDataRouter := router.Group("/services")
|
||||
{
|
||||
syncRouter(syncDataRouter)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/chatrobotctrl"
|
||||
"91porn-server/web/api/contentlibctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func chatRobotRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/robot")
|
||||
{
|
||||
// 机器人配置
|
||||
group.GET("/conf/list", chatrobotctrl.RobotConfList)
|
||||
group.POST("/conf/add", chatrobotctrl.AddRobotConf)
|
||||
group.POST("/conf/update", chatrobotctrl.UpdateRobotConf)
|
||||
// 机器人聊天内容库
|
||||
group.GET("/content/list", contentlibctrl.ContentList)
|
||||
group.POST("/content/add", contentlibctrl.ContentAdd)
|
||||
group.DELETE("/content/del", contentlibctrl.ContentDel)
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/checkinctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func checkinRouter(router *gin.RouterGroup) {
|
||||
checkin := router.Group("/checkin")
|
||||
{
|
||||
// 签到配置
|
||||
checkin.POST("/conf/get", checkinctrl.GetCheckinConfig)
|
||||
checkin.POST("/conf/update", checkinctrl.UpdateCheckinConfig)
|
||||
// 签到历史记录
|
||||
checkin.POST("/history/list", checkinctrl.GetUserCheckins)
|
||||
checkin.POST("/history/del", checkinctrl.DelOneUserCheckin)
|
||||
}
|
||||
checkinPrize := router.Group("/checkinprize")
|
||||
{
|
||||
// 签到奖品
|
||||
checkinPrize.POST("/list", checkinctrl.GetCheckinPrizeList)
|
||||
checkinPrize.POST("/add", checkinctrl.AddOneCheckinPrize)
|
||||
checkinPrize.POST("/update", checkinctrl.UpdateOneCheckinPrize)
|
||||
checkinPrize.POST("/del", checkinctrl.DelOneCheckinPrize)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/commentctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func commentRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/comment")
|
||||
{
|
||||
group.GET("/list", commentctrl.List)
|
||||
group.GET("/info", commentctrl.Info)
|
||||
|
||||
group.POST("/send", commentctrl.Send)
|
||||
group.POST("/delete", commentctrl.Delete)
|
||||
group.POST("/access", commentctrl.Access)
|
||||
group.POST("/batch/access", commentctrl.BatchAccess)
|
||||
group.POST("/update", commentctrl.Update)
|
||||
group.POST("/importExcel", commentctrl.AddContentExcel)
|
||||
group.POST("/importComment", commentctrl.ImportComment)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/commentAgentctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func commentAgentRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/comments")
|
||||
{
|
||||
group.GET("/pull", commentAgentctrl.Pull)
|
||||
group.POST("/approve", commentAgentctrl.Approve)
|
||||
group.POST("/reply", commentAgentctrl.Reply)
|
||||
}
|
||||
|
||||
comicsTranslateGroup := router.Group("/comics/translate")
|
||||
{
|
||||
comicsTranslateGroup.GET("/pull", commentAgentctrl.ComicsTranslatePull)
|
||||
comicsTranslateGroup.POST("/push", commentAgentctrl.ComicsTranslatePush)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/contentreviewctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func contentReviewRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/content-review")
|
||||
{
|
||||
group.POST("/create", contentreviewctrl.Create)
|
||||
group.GET("/list", contentreviewctrl.List)
|
||||
group.GET("/detail", contentreviewctrl.Detail)
|
||||
group.GET("/issues", contentreviewctrl.Issues)
|
||||
// 命中记录处理流程:提交即生效 / 搁置带原因 / 批量下架
|
||||
group.POST("/issue/resolve", contentreviewctrl.ResolveIssue)
|
||||
group.POST("/issue/reject", contentreviewctrl.RejectIssue)
|
||||
group.POST("/issue/batch-offshelf", contentreviewctrl.BatchOffShelfIssues)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/currencyctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
// 货币管理
|
||||
func currencyRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/currency")
|
||||
{
|
||||
group.GET("", currencyctrl.QueryAll)
|
||||
group.POST("", currencyctrl.Add)
|
||||
group.PUT("", currencyctrl.Edit)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/daichongctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func daichongCallBackRouter(router *gin.RouterGroup) {
|
||||
g := router.Group("/third")
|
||||
{
|
||||
g.POST("/api/queryPlayerInfo", daichongctrl.QueryPlayerInfo)
|
||||
}
|
||||
}
|
||||
|
||||
func daichongRouter(router *gin.RouterGroup) {
|
||||
g2 := router.Group("/daichong/order")
|
||||
{
|
||||
g2.POST("/handScore", daichongctrl.HandAddScore)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/rechargectrl"
|
||||
"91porn-server/web/api/withdrawctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
// defrayRouter 支付回调
|
||||
func defrayRouter(router *gin.RouterGroup) {
|
||||
groupDefray := router.Group("/defray/callback")
|
||||
{
|
||||
//大白鲨充值回调
|
||||
groupDefray.POST("/dabaisha", rechargectrl.DaBaiShaCallBack)
|
||||
//鲨鱼充值回调
|
||||
groupDefray.POST("/shark", rechargectrl.SharkCallBack)
|
||||
//乐支付充值回调
|
||||
groupDefray.POST("/lucky", rechargectrl.LuckyCallBack)
|
||||
//金鱼充值回调
|
||||
//大金鱼充值回调
|
||||
groupDefray.POST("/goldfishPlus", rechargectrl.GoldfishPlusCallBack)
|
||||
//艾支付充值回调
|
||||
groupDefray.GET("/izhifu", rechargectrl.IZhiFuCallBack)
|
||||
//dx支付充值回调
|
||||
groupDefray.POST("/dx", rechargectrl.DXZhiFuCallBack)
|
||||
//雷火支付充值回调
|
||||
groupDefray.POST("/leihuo", rechargectrl.LeiHuoCallBack)
|
||||
//中付支付充值回调
|
||||
groupDefray.POST("/zhongfu", rechargectrl.ZhongFuCallBack)
|
||||
//yilianfu支付充值回调
|
||||
groupDefray.POST("/yilianfu", rechargectrl.YiLianFuCallBack)
|
||||
//音色
|
||||
groupDefray.POST("/echg/goldfish", withdrawctrl.GoldFishCallBack)
|
||||
}
|
||||
router.POST("/withdraw/callback", withdrawctrl.YinseCallBack)
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/exchcodectrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
// 兑换码路由
|
||||
func exchangeCodeRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/exchange")
|
||||
{
|
||||
// 兑换码兑换日志
|
||||
group.GET("/log/list", exchcodectrl.LogList)
|
||||
// 兑换码
|
||||
group.GET("/code/list", exchcodectrl.CodeList)
|
||||
group.POST("/code/add", exchcodectrl.CodeAdd)
|
||||
group.POST("/code/update", exchcodectrl.CodeUpdate)
|
||||
}
|
||||
router.GET("/channel/list", exchcodectrl.ChannelList)
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/exportctrl"
|
||||
"91porn-server/web/middleware/limitHandler"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func exportRouter(router *gin.RouterGroup, handlers ...gin.HandlerFunc) {
|
||||
group := router.Group("/export", handlers...)
|
||||
{
|
||||
group.GET("/userList", limitHandler.FilterRequestByExport(), exportctrl.UserList)
|
||||
group.GET("/rechargeOrder", exportctrl.RechargeOrder)
|
||||
group.GET("/withdrawOrder", exportctrl.WithdrawOrder)
|
||||
group.GET("/goldTurnover", exportctrl.GoldTurnover)
|
||||
group.GET("/videoIncome", exportctrl.VideoIncome)
|
||||
group.GET("/orderStat", exportctrl.OrderStat)
|
||||
group.GET("/exchangecode", exportctrl.CodeList)
|
||||
//group.GET("/:fileType", exportctrl.Export)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/extctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func extendRouter(router *gin.RouterGroup) {
|
||||
g := router.Group("/extend")
|
||||
{
|
||||
g.GET("/viewCaptcha", extctrl.ViewCaptcha)
|
||||
g.POST("/syncServerFile", extctrl.SyncServerFile)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/audiobookctrl"
|
||||
"91porn-server/web/api/errfeedbackctrl"
|
||||
"91porn-server/web/api/fictionctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func fictionRouter(router *gin.RouterGroup) {
|
||||
fiction := router.Group("/fiction")
|
||||
{
|
||||
fiction.POST("/list", fictionctrl.List)
|
||||
fiction.POST("/edit", fictionctrl.Update)
|
||||
fiction.POST("/add", fictionctrl.Insert)
|
||||
fiction.DELETE("/del", fictionctrl.Delete)
|
||||
fiction.POST("/get", fictionctrl.Get)
|
||||
}
|
||||
audiobook := router.Group("/audiobook")
|
||||
{
|
||||
audiobook.POST("/list", audiobookctrl.List)
|
||||
audiobook.POST("/edit", audiobookctrl.Update)
|
||||
audiobook.POST("/editBatch", audiobookctrl.UpdateBatch)
|
||||
audiobook.POST("/add", audiobookctrl.Insert)
|
||||
audiobook.DELETE("/del", audiobookctrl.Delete)
|
||||
}
|
||||
errfeedback := router.Group("/errFeedback")
|
||||
{
|
||||
errfeedback.POST("/list", errfeedbackctrl.List)
|
||||
errfeedback.POST("/edit", errfeedbackctrl.Process)
|
||||
errfeedback.DELETE("/del", errfeedbackctrl.DelVerifyReport)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/filterctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func filterRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/filter")
|
||||
{
|
||||
group.GET("/list", filterctrl.List)
|
||||
group.POST("/add", filterctrl.Add)
|
||||
group.DELETE("/delete", filterctrl.Delete)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/freevidcfgctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func freeVidCfgRouter(router *gin.RouterGroup) {
|
||||
g := router.Group("/freeVid/cfg")
|
||||
{
|
||||
g.POST("/add", freevidcfgctrl.Add)
|
||||
g.POST("/edit", freevidcfgctrl.Edit)
|
||||
g.GET("/list", freevidcfgctrl.List)
|
||||
g.DELETE("/del", freevidcfgctrl.Del)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/goldcfgctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func goldCfgRouter(router *gin.RouterGroup) {
|
||||
g := router.Group("/gold/cfg")
|
||||
{
|
||||
g.POST("/add", goldcfgctrl.Add)
|
||||
g.POST("/edit", goldcfgctrl.Edit)
|
||||
g.GET("/list", goldcfgctrl.List)
|
||||
g.DELETE("/del", goldcfgctrl.Del)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/web_im"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func imRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/im")
|
||||
{
|
||||
group.POST("/sync-users", web_im.SyncIMUsers)
|
||||
group.GET("/sync-users/status", web_im.SyncIMUsersStatus)
|
||||
group.POST("/users/list", web_im.ListIMUsers)
|
||||
group.POST("/users/sync", web_im.SyncIMUsersByIDs)
|
||||
group.POST("/friend/add-direct", web_im.AddIMFriendDirect)
|
||||
group.POST("/friends/add-direct", web_im.AddIMFriendDirect)
|
||||
group.POST("/online/status", web_im.BatchIMOnlineStatus)
|
||||
group.POST("/online/status/batch", web_im.BatchIMOnlineStatus)
|
||||
group.POST("/passthrough/send", web_im.SendIMPassthrough)
|
||||
group.POST("/ad/notify", web_im.SendIMAdNotify)
|
||||
group.POST("/message/send", web_im.SendIMMessage)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/imagetopctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func imageTopRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/image")
|
||||
{
|
||||
group.POST("/list", imagetopctrl.GetImageTopList)
|
||||
group.POST("/update", imagetopctrl.UpdateImageTop)
|
||||
group.POST("/delete", imagetopctrl.DeleteImageTop)
|
||||
}
|
||||
}
|
||||
Executable
+16
@@ -0,0 +1,16 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/imgroupctrl"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
// imGroupRouter im群组管理
|
||||
func imGroupRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/imgroup")
|
||||
{
|
||||
group.GET("/list", imgroupctrl.List)
|
||||
group.POST("/create", imgroupctrl.Create)
|
||||
group.POST("/update", imgroupctrl.Update)
|
||||
}
|
||||
}
|
||||
Executable
+16
@@ -0,0 +1,16 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/imgroupmemberctrl"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
// imGroupMemberRouter im群组成员管理
|
||||
func imGroupMemberRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/imgroupmember")
|
||||
{
|
||||
group.GET("/list", imgroupmemberctrl.List)
|
||||
group.POST("/create", imgroupmemberctrl.Create)
|
||||
group.POST("/update", imgroupmemberctrl.Update)
|
||||
}
|
||||
}
|
||||
Executable
+17
@@ -0,0 +1,17 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/immessagectrl"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
// imMessageRouter im消息管理
|
||||
func imMessageRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/immessage")
|
||||
{
|
||||
group.GET("/list", immessagectrl.List)
|
||||
group.POST("/create", immessagectrl.Create)
|
||||
group.POST("/update", immessagectrl.Update)
|
||||
group.POST("/delete", immessagectrl.Delete)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/infmtctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func infmtRoute(router *gin.RouterGroup) {
|
||||
infmt := router.Group("/infmt")
|
||||
{
|
||||
mail := infmt.Group("/mail")
|
||||
{
|
||||
mail.GET("/list", infmtctrl.MailList)
|
||||
mail.POST("/add", infmtctrl.MailAdd)
|
||||
mail.DELETE("/delete", infmtctrl.MailDel)
|
||||
}
|
||||
notice := infmt.Group("/notice")
|
||||
{
|
||||
notice.GET("/list", infmtctrl.NoticeList)
|
||||
notice.POST("/update", infmtctrl.NoticeUpdate)
|
||||
notice.POST("/add", infmtctrl.NoticeAdd)
|
||||
notice.DELETE("/delete", infmtctrl.NoticeDel)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/integral_config_ctrl"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func integralConfigRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/integral_config")
|
||||
{
|
||||
group.PUT("", integral_config_ctrl.Update)
|
||||
group.POST("", integral_config_ctrl.Add)
|
||||
group.GET("", integral_config_ctrl.QueryAll)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/integral_exchange_ctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func integralExchangeRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/integral_exchange")
|
||||
{
|
||||
group.PUT("", integral_exchange_ctrl.Update)
|
||||
group.GET("", integral_exchange_ctrl.QueryAll)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/ipblockctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func ipblockRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/ipblock")
|
||||
{
|
||||
group.GET("/list", ipblockctrl.IpBlockList)
|
||||
group.POST("/add", ipblockctrl.IPBlockAdd)
|
||||
group.DELETE("/del", ipblockctrl.IPBlockDel)
|
||||
group.POST("/edit", ipblockctrl.IPBlockEdit)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/ipwhitectrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func ipwhiteRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/ipwhite")
|
||||
{
|
||||
group.GET("/list", ipwhitectrl.IpWhiteList)
|
||||
group.POST("/add", ipwhitectrl.IPWhiteAdd)
|
||||
group.DELETE("/del", ipwhitectrl.IPWhiteDel)
|
||||
group.POST("/edit", ipwhitectrl.IPWhiteEdit)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/jingangctrl"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func jingangRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/jingang")
|
||||
|
||||
group.GET("/list", jingangctrl.List)
|
||||
group.POST("/update", jingangctrl.Update)
|
||||
group.POST("/add", jingangctrl.Add)
|
||||
group.POST("/delete", jingangctrl.Delete)
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/laosijictrl"
|
||||
"91porn-server/web/api/tianyuctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func laosijiRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/laosiji")
|
||||
{
|
||||
group.POST("/movie/search", laosijictrl.MovieSearch)
|
||||
group.POST("/movie/detail", laosijictrl.MovieDetail)
|
||||
group.POST("/movie/add", laosijictrl.MovieAdd)
|
||||
}
|
||||
{
|
||||
group.POST("/post/search", laosijictrl.PostSearch)
|
||||
group.POST("/post/detail", laosijictrl.PostDetail)
|
||||
group.POST("/post/add", laosijictrl.PostAdd)
|
||||
}
|
||||
{
|
||||
group.POST("/comics/search", laosijictrl.ComicsSearch)
|
||||
group.POST("/comics/detail", laosijictrl.ComicsDetail)
|
||||
group.POST("/comics/add", laosijictrl.ComicsAdd)
|
||||
}
|
||||
{
|
||||
group.POST("/novel/search", laosijictrl.NovelSearch)
|
||||
group.POST("/novel/detail", laosijictrl.NovelDetail)
|
||||
group.POST("/novel/add", laosijictrl.NovelAdd)
|
||||
}
|
||||
|
||||
groupTianyu := router.Group("/tianyu")
|
||||
{
|
||||
groupTianyu.POST("/search", tianyuctrl.VideoSearch)
|
||||
groupTianyu.POST("/add", tianyuctrl.AddOneMedia)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/ldyctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func ldyRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/ldy")
|
||||
{
|
||||
group.GET("/cfg", ldyctrl.GetCfg)
|
||||
group.POST("/update", ldyctrl.Update)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/locationctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func locationRoute(router *gin.RouterGroup) {
|
||||
group := router.Group("/vid/location/city")
|
||||
{
|
||||
group.GET("/list", locationctrl.CityList)
|
||||
group.POST("/update", locationctrl.CityUpdate)
|
||||
}
|
||||
group = router.Group("/vid/location/hotCity")
|
||||
{
|
||||
group.GET("/list", locationctrl.HotCityList)
|
||||
group.POST("/add", locationctrl.HotCityAdd)
|
||||
group.POST("/update", locationctrl.HotCityUpdate)
|
||||
group.DELETE("/delete", locationctrl.HotCityDelete)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/logctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func logRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/log")
|
||||
{
|
||||
group.GET("/gold", logctrl.GetRechargeGoldLog)
|
||||
group.GET("/goldType", logctrl.GetRechargeGoldTranType)
|
||||
group.GET("/operator", logctrl.GetOperatorLog)
|
||||
group.POST("/operator/modify", logctrl.ModifyOperatorLog)
|
||||
}
|
||||
}
|
||||
Executable
+43
@@ -0,0 +1,43 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/dramatopicctrl"
|
||||
"91porn-server/web/api/media_resource"
|
||||
"91porn-server/web/api/mediactrl"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
// mediaRouter 动漫列表管理
|
||||
func mediaRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/media")
|
||||
{
|
||||
group.GET("/list", mediactrl.List)
|
||||
group.GET("/find", mediactrl.Find)
|
||||
group.POST("/create", mediactrl.Create)
|
||||
group.POST("/update", mediactrl.Update)
|
||||
group.POST("/batch/update", mediactrl.BatchUpdate)
|
||||
group.POST("/delete", mediactrl.Delete)
|
||||
group.POST("/batch/delete", mediactrl.BatchDelete)
|
||||
group.POST("/export", mediactrl.Export)
|
||||
}
|
||||
topic := router.Group("/media/drama/topic")
|
||||
{
|
||||
topic.GET("/list", dramatopicctrl.List)
|
||||
topic.POST("/create", dramatopicctrl.Create)
|
||||
topic.POST("/update", dramatopicctrl.Update)
|
||||
topic.POST("/delete", dramatopicctrl.Delete)
|
||||
topic.POST("/sort", dramatopicctrl.Sort)
|
||||
topic.POST("/works/update", dramatopicctrl.UpdateWorks)
|
||||
}
|
||||
// 媒资库相关操作
|
||||
mediaR := router.Group("/mediaResource/media")
|
||||
{
|
||||
mediaR.GET("/list", media_resource.List)
|
||||
mediaR.GET("/content_list", media_resource.ContentList)
|
||||
mediaR.POST("/use", media_resource.UseMedia)
|
||||
mediaR.POST("/ignore", media_resource.IgnoreMedia)
|
||||
// 立马执行同步任务
|
||||
mediaR.POST("/sync", media_resource.SyncMedia)
|
||||
|
||||
}
|
||||
}
|
||||
Executable
+19
@@ -0,0 +1,19 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/mediacontentctrl"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
// mediaContentRouter 动漫内容列表管理
|
||||
func mediaContentRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/media_content")
|
||||
{
|
||||
group.GET("/list", mediacontentctrl.List)
|
||||
group.POST("/create", mediacontentctrl.Create)
|
||||
group.POST("/update", mediacontentctrl.Update)
|
||||
group.POST("/batch/update", mediacontentctrl.BatchUpdate)
|
||||
group.POST("/delete", mediacontentctrl.Delete)
|
||||
group.GET("/view/:id", mediacontentctrl.ViewMedia)
|
||||
}
|
||||
}
|
||||
Executable
+18
@@ -0,0 +1,18 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/mediatagctrl"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
// mediaTagRouter 动漫标签管理
|
||||
func mediaTagRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/media_tag")
|
||||
{
|
||||
group.GET("/list", mediatagctrl.List)
|
||||
group.GET("/all", mediatagctrl.AllList)
|
||||
group.POST("/create", mediatagctrl.Create)
|
||||
group.POST("/update", mediatagctrl.Update)
|
||||
group.POST("/delete", mediatagctrl.Delete)
|
||||
}
|
||||
}
|
||||
Executable
+18
@@ -0,0 +1,18 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/mediatagdimensionctrl"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
// mediaTagDimensionRouter 媒体纬度列表管理
|
||||
func mediaTagDimensionRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/media_tag_dimension")
|
||||
{
|
||||
group.GET("/list", mediatagdimensionctrl.List)
|
||||
group.GET("/all", mediatagdimensionctrl.AllList)
|
||||
group.POST("/create", mediatagdimensionctrl.Create)
|
||||
group.POST("/update", mediatagdimensionctrl.Update)
|
||||
group.POST("/delete", mediatagdimensionctrl.Delete)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/modulectrl"
|
||||
"91porn-server/web/api/modulevideoctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func moduleConfRouter(r *gin.RouterGroup) {
|
||||
module := r.Group("/module")
|
||||
{
|
||||
moduleconf := module.Group("/conf")
|
||||
moduleconf.POST("/add", modulectrl.Add)
|
||||
moduleconf.POST("/edit", modulectrl.Edit)
|
||||
moduleconf.POST("/delete", modulectrl.Delete)
|
||||
moduleconf.POST("/list", modulectrl.Search)
|
||||
moduleconf.POST("/marquee", modulectrl.ChangeModuleMarquee)
|
||||
moduleconf.GET("/marquee", modulectrl.GetModuleMarquee)
|
||||
moduleconf.GET("/cartoon/all", modulectrl.AllCartoonList)
|
||||
|
||||
}
|
||||
{
|
||||
section := module.Group("/section")
|
||||
section.POST("/add", modulectrl.AddSection)
|
||||
section.POST("/edit", modulectrl.EditSection)
|
||||
section.POST("/delete", modulectrl.DeleteSection)
|
||||
section.POST("/list", modulectrl.SearchSection)
|
||||
section.POST("/all", modulectrl.AllSections)
|
||||
section.POST("/clicks", modulectrl.ClicksList)
|
||||
}
|
||||
{
|
||||
sectionVideo := module.Group("/video")
|
||||
sectionVideo.POST("/list", modulevideoctrl.List)
|
||||
sectionVideo.POST("/add", modulevideoctrl.AddVideo)
|
||||
sectionVideo.POST("/edit", modulevideoctrl.UpdateVideo)
|
||||
sectionVideo.POST("/delete", modulevideoctrl.DeleteVideo)
|
||||
sectionVideo.POST("/delete/batch", modulevideoctrl.BatchDeleteVideo)
|
||||
sectionVideo.POST("/add/batch", modulevideoctrl.AddVideoBatch)
|
||||
}
|
||||
}
|
||||
Executable
+17
@@ -0,0 +1,17 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/nakedchatctrl"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
// nakedChatRouter 裸聊管理
|
||||
func nakedChatRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/nakedchat")
|
||||
{
|
||||
group.GET("/list", nakedchatctrl.List)
|
||||
group.POST("/create", nakedchatctrl.Create)
|
||||
group.POST("/update", nakedchatctrl.Update)
|
||||
group.POST("/batch/update", nakedchatctrl.BatchUpdate)
|
||||
}
|
||||
}
|
||||
Executable
+15
@@ -0,0 +1,15 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/nakedchatorderctrl"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
// nakedChatOrderRouter 裸聊订单管理
|
||||
func nakedChatOrderRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/nakedchatorder")
|
||||
{
|
||||
group.GET("/list", nakedchatorderctrl.List)
|
||||
group.POST("/update", nakedchatorderctrl.Update)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/newactivityctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func newActivityRoute(router *gin.RouterGroup) {
|
||||
g := router.Group("/newactivity")
|
||||
{
|
||||
g.POST("importModels", newactivityctrl.ImportModels)
|
||||
g.POST("updateJoinNum", newactivityctrl.UpdateJoinNum)
|
||||
g.GET("joinNum", newactivityctrl.GetJoinNum)
|
||||
g.POST("buyPage", newactivityctrl.BuyPage)
|
||||
g.POST("addWinRecord", newactivityctrl.AddWinRecord)
|
||||
g.POST("winRecordPage", newactivityctrl.WinRecordPage)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/officialctrl"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func officialRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/official")
|
||||
{
|
||||
group.GET("/list", officialctrl.List)
|
||||
group.POST("/update", officialctrl.Update)
|
||||
group.POST("/add", officialctrl.Add)
|
||||
group.DELETE("/delete", officialctrl.Delete)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,107 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/officialWebsitectrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
const (
|
||||
officialWebsitePathList = "/list"
|
||||
officialWebsitePathCreate = "/create"
|
||||
officialWebsitePathUpdate = "/update"
|
||||
officialWebsitePathDelete = "/delete"
|
||||
)
|
||||
|
||||
func newOfficialWebsiteRoute(router *gin.RouterGroup) {
|
||||
g := router.Group("/officialWebsite")
|
||||
{
|
||||
g.GET("", officialWebsitectrl.GetBasicData) // 品牌站基础数据接口,包含基础静态数据和CMS动态数据
|
||||
g.POST("", officialWebsitectrl.CreateBasicData)
|
||||
g.PUT("", officialWebsitectrl.UpdateBasicData)
|
||||
g.DELETE("", officialWebsitectrl.DeleteBasicData)
|
||||
|
||||
hero := g.Group("/hero")
|
||||
{
|
||||
hero.GET(officialWebsitePathList, officialWebsitectrl.ListHero)
|
||||
hero.POST(officialWebsitePathCreate, officialWebsitectrl.CreateHero)
|
||||
hero.PUT(officialWebsitePathUpdate, officialWebsitectrl.UpdateHero)
|
||||
hero.DELETE(officialWebsitePathDelete, officialWebsitectrl.DeleteHero)
|
||||
}
|
||||
|
||||
album := g.Group("/album")
|
||||
{
|
||||
album.GET(officialWebsitePathList, officialWebsitectrl.ListAlbum)
|
||||
album.POST(officialWebsitePathCreate, officialWebsitectrl.CreateAlbum)
|
||||
album.PUT(officialWebsitePathUpdate, officialWebsitectrl.UpdateAlbum)
|
||||
album.DELETE(officialWebsitePathDelete, officialWebsitectrl.DeleteAlbum)
|
||||
}
|
||||
|
||||
video := g.Group("/video")
|
||||
{
|
||||
video.GET(officialWebsitePathList, officialWebsitectrl.ListVideo)
|
||||
video.POST(officialWebsitePathCreate, officialWebsitectrl.CreateVideo)
|
||||
video.PUT(officialWebsitePathUpdate, officialWebsitectrl.UpdateVideo)
|
||||
video.DELETE(officialWebsitePathDelete, officialWebsitectrl.DeleteVideo)
|
||||
video.GET("/listFromVid", officialWebsitectrl.ListVideoFromVid)
|
||||
video.PUT("/batch", officialWebsitectrl.BatchUpdateVideos)
|
||||
video.PUT("/import", officialWebsitectrl.BatchImportVideos)
|
||||
}
|
||||
|
||||
photograph := g.Group("/photograph")
|
||||
{
|
||||
photograph.GET(officialWebsitePathList, officialWebsitectrl.ListPhotograph)
|
||||
photograph.POST(officialWebsitePathCreate, officialWebsitectrl.CreatePhotograph)
|
||||
photograph.PUT(officialWebsitePathUpdate, officialWebsitectrl.UpdatePhotograph)
|
||||
photograph.DELETE(officialWebsitePathDelete, officialWebsitectrl.DeletePhotograph)
|
||||
photograph.PUT("/batch", officialWebsitectrl.BatchUpdatePhotograph)
|
||||
}
|
||||
|
||||
tag := g.Group("/tag")
|
||||
{
|
||||
tag.GET(officialWebsitePathList, officialWebsitectrl.ListTag)
|
||||
tag.POST(officialWebsitePathCreate, officialWebsitectrl.CreateTag)
|
||||
tag.PUT(officialWebsitePathUpdate, officialWebsitectrl.UpdateTag)
|
||||
tag.DELETE(officialWebsitePathDelete, officialWebsitectrl.DeleteTag)
|
||||
}
|
||||
|
||||
recruitForm := g.Group("/recruitForm")
|
||||
{
|
||||
recruitForm.GET(officialWebsitePathList, officialWebsitectrl.ListRecruitForm)
|
||||
recruitForm.PUT(officialWebsitePathUpdate, officialWebsitectrl.UpdateRecruitForm)
|
||||
recruitForm.DELETE(officialWebsitePathDelete, officialWebsitectrl.DeleteRecruitForm)
|
||||
}
|
||||
|
||||
jobList := g.Group("/jobList")
|
||||
{
|
||||
jobList.GET(officialWebsitePathList, officialWebsitectrl.ListJobList)
|
||||
jobList.POST(officialWebsitePathCreate, officialWebsitectrl.CreateJobList)
|
||||
jobList.PUT(officialWebsitePathUpdate, officialWebsitectrl.UpdateJobList)
|
||||
jobList.DELETE(officialWebsitePathDelete, officialWebsitectrl.DeleteJobList)
|
||||
}
|
||||
|
||||
news := g.Group("/news")
|
||||
{
|
||||
news.GET(officialWebsitePathList, officialWebsitectrl.ListNews)
|
||||
news.POST(officialWebsitePathCreate, officialWebsitectrl.CreateNews)
|
||||
news.PUT(officialWebsitePathUpdate, officialWebsitectrl.UpdateNews)
|
||||
news.DELETE(officialWebsitePathDelete, officialWebsitectrl.DeleteNews)
|
||||
}
|
||||
|
||||
partner := g.Group("/partner")
|
||||
{
|
||||
partner.GET(officialWebsitePathList, officialWebsitectrl.ListPartner)
|
||||
partner.POST(officialWebsitePathCreate, officialWebsitectrl.CreatePartner)
|
||||
partner.PUT(officialWebsitePathUpdate, officialWebsitectrl.UpdatePartner)
|
||||
partner.DELETE(officialWebsitePathDelete, officialWebsitectrl.DeletePartner)
|
||||
}
|
||||
|
||||
business := g.Group("/business")
|
||||
{
|
||||
business.GET(officialWebsitePathList, officialWebsitectrl.ListBusiness)
|
||||
business.POST(officialWebsitePathCreate, officialWebsitectrl.CreateBusiness)
|
||||
business.PUT(officialWebsitePathUpdate, officialWebsitectrl.UpdateBusiness)
|
||||
business.DELETE(officialWebsitePathDelete, officialWebsitectrl.DeleteBusiness)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/operationlogctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
// 帖子、用户操作日志
|
||||
func operationLogRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/operation/log")
|
||||
{
|
||||
group.GET("list", operationlogctrl.OperationLogList)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/paymentguidectrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func paymentGuideRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/payment-guide")
|
||||
{
|
||||
group.GET("/list", paymentguidectrl.List)
|
||||
group.POST("/add", paymentguidectrl.Add)
|
||||
group.POST("/edit", paymentguidectrl.Edit)
|
||||
group.DELETE("/delete", paymentguidectrl.Delete)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/productctrl"
|
||||
"91porn-server/web/middleware/limitHandler"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func productRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/business")
|
||||
{
|
||||
//商品管理
|
||||
group.GET("/product/list", productctrl.FindVipList)
|
||||
group.POST("/product/update", productctrl.Update)
|
||||
group.POST("/product", productctrl.Insert)
|
||||
group.DELETE("/product", productctrl.Delete)
|
||||
group.GET("/getConfig", productctrl.GetConfig) //获取配置
|
||||
group.POST("/setConfig", productctrl.SetConfig) //修改配置
|
||||
group.GET("/product/checkbox", productctrl.CheckboxList)
|
||||
//商品购买订单
|
||||
group.GET("/product/order", productctrl.ProductLog)
|
||||
group.POST("/product/order/export", limitHandler.FilterRequestByExport(), productctrl.ProductLogExport)
|
||||
position := group.Group("/productPosition")
|
||||
{
|
||||
position.POST("/list", productctrl.GetPosition)
|
||||
position.POST("/names", productctrl.GetPositionNames)
|
||||
position.POST("/add", productctrl.InsertPosition)
|
||||
position.POST("/edit", productctrl.UpdatePosition)
|
||||
position.POST("/del", productctrl.DeletePosition)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/productBenefitctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func productBenefitRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/productBenefit")
|
||||
{
|
||||
//商品管理
|
||||
group.GET("/list", productBenefitctrl.GetProductBenefitList)
|
||||
group.POST("/update", productBenefitctrl.UpdateProductBenefit)
|
||||
group.POST("/add", productBenefitctrl.AddProductBenefit)
|
||||
group.DELETE("/del", productBenefitctrl.DeleteProductBenefit)
|
||||
group.GET("/all/list", productBenefitctrl.GetAllProductBenefitList)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/promoteurlctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func promoteUrlRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/promoteUrl")
|
||||
{
|
||||
//商品管理
|
||||
group.GET("/list", promoteurlctrl.FindMany)
|
||||
group.POST("/update", promoteurlctrl.Update)
|
||||
group.POST("/insert", promoteurlctrl.Insert)
|
||||
group.DELETE("/delete", promoteurlctrl.Delete)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/proxyctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func proxyRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/proxy")
|
||||
{
|
||||
group.GET("/log", proxyctrl.ProxyLog)
|
||||
group.GET("/totalIncome", proxyctrl.AllIncome)
|
||||
group.GET("/income/details", proxyctrl.IncomeDetails)
|
||||
group.GET("/promotion", proxyctrl.PromotionQuery)
|
||||
}
|
||||
}
|
||||
Executable
+18
@@ -0,0 +1,18 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/quicksearchctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
// quickSearchRouter 快捷搜索表管理
|
||||
func quickSearchRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/quickSearch")
|
||||
{
|
||||
group.GET("/list", quicksearchctrl.List)
|
||||
group.POST("/create", quicksearchctrl.Create)
|
||||
group.POST("/update", quicksearchctrl.Update)
|
||||
group.POST("/delete", quicksearchctrl.Delete)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/rechargectrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func rechargeRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/recharge")
|
||||
{
|
||||
//支付渠道
|
||||
group.GET("/channel/list", rechargectrl.GetChannel)
|
||||
group.POST("/channel/update", rechargectrl.ChannelUpdate)
|
||||
group.POST("/channel/add", rechargectrl.ChannelInsert)
|
||||
group.DELETE("/channel/delete", rechargectrl.ChannelDelete)
|
||||
//金币配置
|
||||
group.GET("/gold/list", rechargectrl.GetGoldList)
|
||||
group.POST("/gold/update", rechargectrl.GoldUpdate)
|
||||
group.POST("/gold/add", rechargectrl.GoldInsert)
|
||||
group.DELETE("/gold/delete", rechargectrl.GoldDelete)
|
||||
//充值订单
|
||||
group.GET("/order/list", rechargectrl.OrderList)
|
||||
group.POST("/order/update", rechargectrl.UpdateOrder)
|
||||
//游戏金币配置
|
||||
group.GET("/game/gold/list", rechargectrl.GetGameGoldList)
|
||||
group.POST("/game/gold/update", rechargectrl.GameGoldUpdate)
|
||||
group.POST("/game/gold/add", rechargectrl.GameGoldInsert)
|
||||
group.DELETE("/game/gold/delete", rechargectrl.GameGoldDelete)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/vidctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func rejectTemp(router *gin.RouterGroup) {
|
||||
r := router.Group("/rejectTemp")
|
||||
{
|
||||
r.POST("/insert", vidctrl.RejectTemplateInsert)
|
||||
r.POST("/update", vidctrl.RejectTemplateUpdate)
|
||||
r.POST("/del", vidctrl.RejectTemplateDelete)
|
||||
r.GET("/list", vidctrl.GetRejectTemplate)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/scenebannerctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func sceneBannerRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/banner")
|
||||
{
|
||||
group.GET("/list", scenebannerctrl.List)
|
||||
group.POST("/add", scenebannerctrl.Add)
|
||||
group.POST("/edit", scenebannerctrl.Edit)
|
||||
group.DELETE("/delete", scenebannerctrl.Delete)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/sensitivewordctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func sensitiveWordRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/sensitive-word")
|
||||
{
|
||||
group.GET("/list", sensitivewordctrl.List)
|
||||
group.POST("/add", sensitivewordctrl.Add)
|
||||
group.POST("/update", sensitivewordctrl.Update)
|
||||
group.POST("/delete", sensitivewordctrl.Delete)
|
||||
group.POST("/import", sensitivewordctrl.Import)
|
||||
group.GET("/export", sensitivewordctrl.Export)
|
||||
group.GET("/template", sensitivewordctrl.Template)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/signctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func taskRouter(router *gin.RouterGroup) {
|
||||
task := router.Group("/task")
|
||||
{
|
||||
config := task.Group("/growth")
|
||||
{
|
||||
config.POST("/add", signctrl.AddConfig)
|
||||
config.POST("/edit", signctrl.ModifyConfig)
|
||||
config.GET("/list", signctrl.QueryAllConfig)
|
||||
}
|
||||
once := task.Group("/once")
|
||||
{
|
||||
once.GET("/list", signctrl.OnceTaskList)
|
||||
once.POST("/add", signctrl.AddOnceTask)
|
||||
once.POST("/edit", signctrl.EditOnceTask)
|
||||
}
|
||||
daily := task.Group("/daily")
|
||||
{
|
||||
daily.GET("/list", signctrl.DailyTaskList)
|
||||
daily.POST("/add", signctrl.AddDailyTask)
|
||||
daily.POST("/edit", signctrl.EditDailyTask)
|
||||
}
|
||||
sign := task.Group("/sign")
|
||||
{
|
||||
sign.POST("/add", signctrl.SignAddConfig)
|
||||
sign.POST("/edit", signctrl.SignModifyConfig)
|
||||
sign.GET("/list", signctrl.SignQueryAllConfig)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/sourcectrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func sourceRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/source")
|
||||
{
|
||||
group.GET("/list", sourcectrl.SourceList)
|
||||
group.POST("/add", sourcectrl.SourceAdd)
|
||||
group.DELETE("/del", sourcectrl.SourceDel)
|
||||
group.POST("/edit", sourcectrl.SourceEdit)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/statctrl"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func statRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/stats")
|
||||
{
|
||||
group.GET("/user/daily/list", statctrl.DailyStats) //用户每日统计
|
||||
group.GET("/video/earn/list", statctrl.VideoEarnStats)
|
||||
group.GET("/video/earn/aggregate", statctrl.VideoAggregateStats)
|
||||
group.GET("/video/publisher/deduction", statctrl.VideoPublisherDeductionStats)
|
||||
order := group.Group("/order")
|
||||
{
|
||||
order.GET("/list", statctrl.OrderStats) //充值和兑换订单统计
|
||||
order.POST("/sucRate", statctrl.RchSucRate) //充值和兑换订单统计
|
||||
}
|
||||
export := group.Group("/export")
|
||||
{
|
||||
export.GET("/trans", statctrl.DataStat) //用户每日统计
|
||||
export.GET("/vidsales", statctrl.VidStat) //用户每日统计
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/statcenterctl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
// syncRouter 数据同步
|
||||
func syncRouter(router *gin.RouterGroup) {
|
||||
routerGroup := router.Group("/router")
|
||||
{
|
||||
// 返回所有同步接口路由
|
||||
routerGroup.GET("/all", statcenterctl.SyncAllRouterList)
|
||||
}
|
||||
userGroup := router.Group("/user")
|
||||
{
|
||||
// 新用户
|
||||
userGroup.GET("/newUser", statcenterctl.NewUserRegisterList)
|
||||
// 用户访问
|
||||
userGroup.GET("/userAccess", statcenterctl.NewUserAccessList)
|
||||
// 邀请
|
||||
userGroup.GET("/inviteRecord", statcenterctl.NewUserInviterList)
|
||||
}
|
||||
orderGroup := router.Group("/order")
|
||||
{
|
||||
// 充值订单,所有的
|
||||
orderGroup.GET("/newOrder", statcenterctl.NewUserRechargeList)
|
||||
// 充值订单,已完成的
|
||||
orderGroup.GET("/finishOrder", statcenterctl.NewUserPaidRechargeList)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/synccdnctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func syncCdnRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/cdn")
|
||||
{
|
||||
group.POST("/sync", synccdnctrl.SyncCdn)
|
||||
group.POST("/syncWithOptions", synccdnctrl.SyncWithOptions)
|
||||
}
|
||||
}
|
||||
Executable
+19
@@ -0,0 +1,19 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/sysconfctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
// sysConfRouter 系统通用配置管理
|
||||
func sysConfRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/sysconf")
|
||||
{
|
||||
group.GET("/all", sysconfctrl.All)
|
||||
group.POST("/create", sysconfctrl.Create)
|
||||
group.POST("/update", sysconfctrl.Update)
|
||||
group.POST("/delete", sysconfctrl.Delete)
|
||||
group.POST("/update/select", sysconfctrl.UpdateSelect)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/tagctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func tagRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/tag")
|
||||
{
|
||||
group.GET("/list", tagctrl.List)
|
||||
group.GET("/pure/list", tagctrl.PureList)
|
||||
group.POST("/update", tagctrl.Update)
|
||||
group.POST("/add", tagctrl.Add)
|
||||
group.DELETE("/delete", tagctrl.Delete)
|
||||
tagConf := group.Group("/conf")
|
||||
{
|
||||
tagConf.GET("", tagctrl.TagConfList)
|
||||
tagConf.POST("/add", tagctrl.AddTagConf)
|
||||
tagConf.POST("/delete", tagctrl.DeleteTagConf)
|
||||
tagConf.POST("/update", tagctrl.UpdateTagConf)
|
||||
}
|
||||
}
|
||||
recmd := router.Group("/recmd")
|
||||
{
|
||||
recmd.GET("/list", tagctrl.RecmdList)
|
||||
recmd.POST("/add", tagctrl.RecmdAdd)
|
||||
recmd.POST("/update", tagctrl.RecmdUpdate)
|
||||
recmd.DELETE("/delete", tagctrl.RecmdDelete)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/tonectrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func toneRoute(router *gin.RouterGroup) {
|
||||
group := router.Group("/vid/tone")
|
||||
{
|
||||
group.GET("/list", tonectrl.List)
|
||||
group.POST("/update", tonectrl.Update)
|
||||
}
|
||||
group = router.Group("/api/web/vid/tone/offi_recom")
|
||||
{
|
||||
group.GET("/list", tonectrl.OffiRecomList)
|
||||
group.POST("/add", tonectrl.OffiRecomAdd)
|
||||
group.DELETE("/delete", tonectrl.OffiRecomDelete)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/updownloadctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func updownloadRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/vid")
|
||||
{
|
||||
group.POST("/upload", updownloadctrl.Upload)
|
||||
group.POST("/uploadStatic", updownloadctrl.UploadStatic)
|
||||
group.POST("/uploadStaticBatch", updownloadctrl.UploadStaticBatch)
|
||||
group.POST("/uploadVideo", updownloadctrl.UploadVideo)
|
||||
group.POST("/uploadDotStream", updownloadctrl.UploadDotStream)
|
||||
group.POST("/uploadDotJson", updownloadctrl.UploadDotJson)
|
||||
group.POST("/submit", updownloadctrl.Submit)
|
||||
group.POST("/pullFileInfoFromAws", updownloadctrl.PullFileInfoFromAws)
|
||||
group.GET("/m3u8/*source", updownloadctrl.DownloadM3u8)
|
||||
group.StaticFile("/sec", "config/enc.key")
|
||||
group.StaticFile("/sp/sec", "config/enc.key")
|
||||
group.StaticFile("/pms/sec", "config/enc_pms.key")
|
||||
group.StaticFile("/pms/mt_sec", "config/enkeymt.key")
|
||||
group.StaticFile("/sp/lsjsec", "config/lsjm3u8.key")
|
||||
group.StaticFile("/sp/m3u8sec", "config/m3u8.key")
|
||||
group.POST("/syncNewVideo", updownloadctrl.SyncNewVideo)
|
||||
group.POST("/spiderSyncSubmit", updownloadctrl.SpiderSyncSubmit)
|
||||
group.POST("/uploadSuccess", updownloadctrl.UploadVideoSuccess)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/chat_message_ctrl"
|
||||
"91porn-server/web/api/userctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func userRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/user")
|
||||
{
|
||||
group.GET("/list", userctrl.List)
|
||||
group.GET("/vipInfo", userctrl.VipInfo)
|
||||
group.POST("/update", userctrl.Update)
|
||||
group.POST("/banned", userctrl.Banned)
|
||||
group.POST("/advertiser", userctrl.SetAdvertiser)
|
||||
group.POST("/forbid", userctrl.Forbid)
|
||||
group.POST("/lock", userctrl.Lock)
|
||||
group.POST("/devID/reset", userctrl.DevIDReset)
|
||||
//group.GET("/record/play", userctrl.PlayRecord)
|
||||
group.GET("/login/list", userctrl.LoginList)
|
||||
group.GET("/play/list", userctrl.PlayList)
|
||||
group.GET("/report/list", userctrl.ReportList)
|
||||
group.GET("/report/types/list", userctrl.ReportTypesList)
|
||||
group.POST("/report/setStatus", userctrl.SetStatus)
|
||||
group.GET("/reco/list", userctrl.GetUserRecoList)
|
||||
group.POST("/reco/modify", userctrl.ModifyUserReco)
|
||||
group.POST("/reco/add", userctrl.AddUserReco)
|
||||
group.POST("/reco/del", userctrl.DelUserReco)
|
||||
group.POST("/credit", userctrl.CreditAmount) //用户增减金币
|
||||
group.POST("/integral", userctrl.CreditIntegral) //用户增减积分
|
||||
group.POST("/credit/fruitCoin", userctrl.FruitCoinChange) //管理员操作用户果币变更
|
||||
group.POST("/credit/aiMateBalance", userctrl.SetAiMateBalance) //管理员操作用户ai伴侣币变更
|
||||
group.POST("/credit/gold", userctrl.CreditGold) //用户扣除金币、收益
|
||||
group.POST("qr_code", userctrl.GenerateQRCode)
|
||||
group.POST("/update/freeTimes", userctrl.UpdateFreeTimes)
|
||||
group.POST("/update/download", userctrl.UpdateDownload)
|
||||
group.POST("/update/lotteryTimes", userctrl.UpdateLotteryTimes)
|
||||
group.POST("/deleteComment", userctrl.DeleteComment)
|
||||
group.GET("/queryGameCode", userctrl.QueryGameCode)
|
||||
group.POST("/privateZone", userctrl.PrivateZone)
|
||||
}
|
||||
faqRouter := group.Group("/faq")
|
||||
{
|
||||
faqRouter.POST("/add", userctrl.FaqAdd)
|
||||
faqRouter.GET("/list", userctrl.FaqList)
|
||||
faqRouter.POST("/update", userctrl.FaqUpdate)
|
||||
faqRouter.DELETE("/del", userctrl.FaqDelete)
|
||||
faqRouter.GET("/cate/list", userctrl.FaqCateList)
|
||||
}
|
||||
feedbackRouter := group.Group("/feedback")
|
||||
{
|
||||
feedbackRouter.GET("/list", userctrl.FeedbackList)
|
||||
feedbackRouter.POST("/update", userctrl.FeedbackUpdate)
|
||||
feedbackRouter.DELETE("/del", userctrl.FeedbackDelete)
|
||||
}
|
||||
resourceRouter := group.Group("/resource")
|
||||
{
|
||||
resourceRouter.GET("/list", userctrl.GetUserResourceList)
|
||||
resourceRouter.POST("/add", userctrl.AddUserResource)
|
||||
resourceRouter.POST("/update", userctrl.ModifyUserResource)
|
||||
resourceRouter.POST("/del", userctrl.DelUserResource)
|
||||
}
|
||||
chatMessageRouter := group.Group("/chatMessage")
|
||||
{
|
||||
chatMessageRouter.GET("/list", chat_message_ctrl.List)
|
||||
chatMessageRouter.POST("/del", chat_message_ctrl.Del)
|
||||
chatMessageRouter.POST("/send", chat_message_ctrl.Send)
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/versionctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func versionRouter(router *gin.RouterGroup) {
|
||||
{
|
||||
router.GET("/ver/list", versionctrl.FindList)
|
||||
router.POST("/ver/update", versionctrl.Update)
|
||||
router.POST("/ver", versionctrl.Insert)
|
||||
router.DELETE("/ver", versionctrl.Delete)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,58 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/vidctrl"
|
||||
"91porn-server/web/middleware/limitHandler"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func vidRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/vid")
|
||||
{
|
||||
group.GET("/list", vidctrl.GetVidList)
|
||||
group.POST("/export", limitHandler.FilterRequestByExport(), vidctrl.ExportVidList)
|
||||
group.POST("/listDetail", vidctrl.ListDetail)
|
||||
group.POST("/update", vidctrl.UpdateVidInfo)
|
||||
group.DELETE("/del", vidctrl.DeleteVids)
|
||||
group.POST("/batch/update", vidctrl.UpdateVids)
|
||||
group.POST("/batch/pass", vidctrl.PassVid)
|
||||
group.GET("/view/:id", vidctrl.ViewVid)
|
||||
group.POST("/push", vidctrl.PushVid)
|
||||
group.GET("/push/list", vidctrl.PushVidList)
|
||||
group.POST("/push/delete", vidctrl.DeletePushVid)
|
||||
group.POST("/batch/edit", vidctrl.PassAndEditVids)
|
||||
group.POST("/qr_code")
|
||||
group.POST("batch/reco", vidctrl.BatchUpdateReco)
|
||||
group.POST("/popularity/config", vidctrl.ConfigPopularity)
|
||||
group.GET("/popularity/config", vidctrl.GetPopularityConfig)
|
||||
group.POST("/reindex", vidctrl.Reindex)
|
||||
group.POST("/search", vidctrl.Search)
|
||||
group.POST("/batch/newsType/update", vidctrl.BatchUpdateVidNewsType)
|
||||
group.POST("/batch/update/tags", vidctrl.UpdateVidTags)
|
||||
|
||||
// 定时上线
|
||||
group.POST("/timeOnline/batchAudit", vidctrl.BatchAudit)
|
||||
group.GET("/timeOnline/list", vidctrl.GetTimeOnlineVidList)
|
||||
group.POST("/timeOnline/del", vidctrl.DelVidTimeOnlines)
|
||||
group.POST("/timeOnline/edit", vidctrl.EditVidTimeOnlineInfo)
|
||||
|
||||
}
|
||||
mediaR := router.Group("/mediaResource")
|
||||
{
|
||||
mediaR.GET("/list", vidctrl.GetMediaList)
|
||||
mediaR.POST("/use", vidctrl.UseMedia)
|
||||
mediaR.POST("/ignore", vidctrl.IgnoreMedia)
|
||||
}
|
||||
// 折扣专区相关
|
||||
discountArea := router.Group("/discount_area")
|
||||
{
|
||||
discountArea.GET("/list", vidctrl.DiscountAreaList)
|
||||
discountArea.POST("/add", vidctrl.DiscountAreaAdd)
|
||||
discountArea.POST("/update", vidctrl.DiscountAreaUpdate)
|
||||
discountArea.POST("/delete", vidctrl.DiscountAreaDelete)
|
||||
discountArea.GET("/vid/list", vidctrl.DiscountAreaVids)
|
||||
discountArea.POST("/vid/add", vidctrl.DiscountAreaAddVid)
|
||||
discountArea.POST("/vid/delete", vidctrl.DiscountAreaDeleteVid)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/video_activity_ctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func videoActivityRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/video_activity")
|
||||
{
|
||||
group.POST("", video_activity_ctrl.Submit)
|
||||
group.PUT("", video_activity_ctrl.Edit)
|
||||
group.GET("", video_activity_ctrl.QueryAll)
|
||||
group.GET("/box", video_activity_ctrl.Box)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/video_gold_coin_ctrl"
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func videoGoldCoinRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/video_gold_coin")
|
||||
{
|
||||
group.PUT("", video_gold_coin_ctrl.Update)
|
||||
group.POST("", video_gold_coin_ctrl.Add)
|
||||
group.GET("", video_gold_coin_ctrl.QueryAll)
|
||||
group.DELETE("", video_gold_coin_ctrl.Delete)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/vipcardexperimentctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func vipCardExperimentRouter(router *gin.RouterGroup) {
|
||||
group := router.Group("/vip-card-experiment")
|
||||
{
|
||||
group.GET("/current", vipcardexperimentctrl.Current)
|
||||
group.POST("/publish", vipcardexperimentctrl.Publish)
|
||||
group.POST("/disable", vipcardexperimentctrl.Disable)
|
||||
group.GET("/statistics", vipcardexperimentctrl.Statistics)
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package router
|
||||
|
||||
import (
|
||||
"91porn-server/web/api/withdrawctrl"
|
||||
|
||||
"github.com/gin-gonic/gin"
|
||||
)
|
||||
|
||||
func withdrawRouter(router *gin.RouterGroup) {
|
||||
{
|
||||
//商品管理
|
||||
router.POST("/withdraw/check", withdrawctrl.Check)
|
||||
router.POST("/product/refuse", withdrawctrl.Refuse)
|
||||
router.GET("/withdraw/list", withdrawctrl.ExchgOrder)
|
||||
router.POST("/withdraw/refund", withdrawctrl.Refund)
|
||||
|
||||
router.GET("/withdraw/refund/list", withdrawctrl.RefundList)
|
||||
router.POST("/withdraw/refund/dealwith", withdrawctrl.RefundDealWith)
|
||||
}
|
||||
group := router.Group("/withdraw")
|
||||
{
|
||||
//支付渠道
|
||||
group.GET("/channel/list", withdrawctrl.GetChannel)
|
||||
group.POST("/channel/update", withdrawctrl.ChannelUpdate)
|
||||
group.POST("/channel/add", withdrawctrl.ChannelInsert)
|
||||
group.DELETE("/channel/delete", withdrawctrl.ChannelDelete)
|
||||
group.POST("/channel/batch", withdrawctrl.ChannelBatch)
|
||||
}
|
||||
txnact := router.Group("/txnact")
|
||||
{
|
||||
txnact.POST("/list", withdrawctrl.FindAct)
|
||||
txnact.POST("/edit", withdrawctrl.EditAct)
|
||||
txnact.POST("/del", withdrawctrl.DelAct)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user