@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user