Skip to content

Commit

Permalink
Merge pull request #32 from XiaoK29/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
XiaoK29 authored Jun 14, 2022
2 parents 234a48c + 129eb1b commit 6c6c276
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/controller/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func AddIndex(c *gin.Context) {

// BatchAddIndex 批量添加索引
func BatchAddIndex(c *gin.Context) {
documents := make([]model.IndexDoc, 0)
documents := make([]*model.IndexDoc, 0)
if err := c.BindJSON(&documents); err != nil {
ResponseErrorWithMsg(c, err.Error())
return
Expand Down

0 comments on commit 6c6c276

Please sign in to comment.