Debian Codegraph @

opensearch/data.go

raw symbols SCIP
1 package opensearch
2
3 import "net/http"
4
5 type PushArgs struct {
6 OpenSearchArgs // 这个参数不用填
7 Table_name string `ArgName:"table_name"` //要上传数据的表名
8 Items string `ArgName:"items"` //规定JSON格式
9 }
10
11 //上传文档
12 //支持新增、更新、删除的批量操作
13 func (this *Client) Push(appName string, args PushArgs, resp interface{}) error {
14 args.OpenSearchArgs.Action = "push"
15 return this.InvokeByAnyMethod(http.MethodPost, "", "/index/doc/"+appName, args, resp)
16 }