refactor: 1.修正api auth 2.帖子话题业务
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package plant
|
||||
|
||||
import "github.com/gin-gonic/gin"
|
||||
|
||||
type TopicRouter struct{}
|
||||
|
||||
func (p *TopicRouter) InitTopicRouter(Router *gin.RouterGroup) {
|
||||
topicRouter := Router.Group("topic")
|
||||
{
|
||||
//话题管理
|
||||
topicRouter.POST("/add", topicApi.AddTopic) // 添加话题
|
||||
topicRouter.POST("/update", topicApi.UpdateTopic) //修改话题
|
||||
topicRouter.POST("/page", topicApi.TopicPage) //分页
|
||||
topicRouter.GET("/list", topicApi.TopicList)
|
||||
topicRouter.GET("/detail", topicApi.TopicDetail)
|
||||
topicRouter.POST("/delete", topicApi.DeleteTopic)
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user