添加文章模糊索引
parent
f354fea655
commit
9f44ade2ad
|
@ -198,6 +198,12 @@ func UpdateArtilce(c *gin.Context) {
|
|||
rsp.Status = 0
|
||||
|
||||
}
|
||||
func SearchArticle(c *gin.Context) {
|
||||
rsp := RespBase{Msg:"FAIL", Status:210,}
|
||||
defer func() {
|
||||
c.JSON(200,rsp)
|
||||
}()
|
||||
}
|
||||
func AddArticle(c *gin.Context) {
|
||||
rsp := RespBase{Msg:"FAIL", Status:210,}
|
||||
type ReqAddArticle struct {
|
||||
|
|
2
main.go
2
main.go
|
@ -118,7 +118,7 @@ func main() {
|
|||
api.GET("/article/:id",controller.GetArticle) //获取文章
|
||||
api.POST("/articles",controller.GetArticles) // 获取所有文章
|
||||
api.PUT("/article",controller.AddArticle) // 添加文章
|
||||
|
||||
api.PUT("/article_search",controller.AddArticle) // 添加文章
|
||||
api.GET("article_type",controller.ArticlesType) //获取所有文章分类
|
||||
api.PUT("article_type",controller.AddArticleType)
|
||||
api.DELETE("article_type",controller.DeleteArticleType)
|
||||
|
|
Loading…
Reference in New Issue