32 lines
914 B
Go
32 lines
914 B
Go
package router
|
|
|
|
import (
|
|
"91porn-server/app/api/newactivityctrl"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func newActivityRoute(router *gin.RouterGroup) {
|
|
g := router.Group("/newactivity")
|
|
{
|
|
g.POST("userBanlance", newactivityctrl.UserBalance)
|
|
g.POST("modelList", newactivityctrl.ModelList)
|
|
g.POST("findOneModel", newactivityctrl.FindOneModel)
|
|
g.POST("buyGiftsSchedule", newactivityctrl.BuyGiftsSchedule)
|
|
g.POST("buyGifts", newactivityctrl.BuyGifts)
|
|
g.POST("winRecords", newactivityctrl.WinRecords)
|
|
//问卷调查
|
|
questionnaire := g.Group("/questionnaire")
|
|
{
|
|
questionnaire.POST("/submit", newactivityctrl.Submit)
|
|
questionnaire.GET("getQuestionnaireByUser", newactivityctrl.GetQuestionnaireByUsers)
|
|
}
|
|
}
|
|
game := router.Group("/game")
|
|
{
|
|
game.GET("userInfo", newactivityctrl.UserInfo)
|
|
game.GET("deduct", newactivityctrl.Deduct2Coins)
|
|
game.GET("code", newactivityctrl.RecordRewardCode)
|
|
}
|
|
}
|