添加文章模糊索引

master
DESKTOP-4RNDQIC\29019 2020-06-16 00:34:59 +08:00
parent f354fea655
commit 9f44ade2ad
2 changed files with 7 additions and 1 deletions

View File

@ -198,6 +198,12 @@ func UpdateArtilce(c *gin.Context) {
rsp.Status = 0 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) { func AddArticle(c *gin.Context) {
rsp := RespBase{Msg:"FAIL", Status:210,} rsp := RespBase{Msg:"FAIL", Status:210,}
type ReqAddArticle struct { type ReqAddArticle struct {

View File

@ -118,7 +118,7 @@ func main() {
api.GET("/article/:id",controller.GetArticle) //获取文章 api.GET("/article/:id",controller.GetArticle) //获取文章
api.POST("/articles",controller.GetArticles) // 获取所有文章 api.POST("/articles",controller.GetArticles) // 获取所有文章
api.PUT("/article",controller.AddArticle) // 添加文章 api.PUT("/article",controller.AddArticle) // 添加文章
api.PUT("/article_search",controller.AddArticle) // 添加文章
api.GET("article_type",controller.ArticlesType) //获取所有文章分类 api.GET("article_type",controller.ArticlesType) //获取所有文章分类
api.PUT("article_type",controller.AddArticleType) api.PUT("article_type",controller.AddArticleType)
api.DELETE("article_type",controller.DeleteArticleType) api.DELETE("article_type",controller.DeleteArticleType)