Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2af83a5

Browse files
committed
删除索引命令
1 parent fff318b commit 2af83a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

websites/code2/studygolang/src/model/document.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,11 @@ func NewAddCommand(doc *Document, boost float64, overwrite bool, commitWithin in
155155
}
156156

157157
type DelCommand struct {
158-
*Document
158+
Id string `json:"id"`
159159
}
160160

161161
func NewDelCommand(doc *Document) *DelCommand {
162-
return &DelCommand{Document: doc}
162+
return &DelCommand{Id: doc.Id}
163163
}
164164

165165
type ResponseBody struct {

0 commit comments

Comments
 (0)