refactor: 1.修正api auth 2.帖子话题业务

This commit is contained in:
Blizzard
2026-02-07 15:52:54 +08:00
parent e4de80eecc
commit 9adad90490
17 changed files with 314 additions and 35 deletions
+19
View File
@@ -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)
}
}