diff --git a/ExecuteSql.go b/ExecuteSql.go new file mode 100644 index 0000000..e2f23e6 --- /dev/null +++ b/ExecuteSql.go @@ -0,0 +1,18 @@ +package burgeonsdk + +func (this *BurgeonConnection) NewExecuteSql() PostData { + return PostData{Id: 5, Command: "ExecuteSQL", Params: map[string]interface{}{ + "name": "", + "values": make([]string, 0), + "result": make([]string, 0), + }} +} + +func (this *PostData) ExecuteSqlSetName(name string) { + this.Params["name"] = name +} + +func (this *PostData) ExecuteSqlSetValues(value string) { + values := this.Params["values"].([]string) + values = append(values, value) +} diff --git a/ProcessOrder.go b/ProcessOrder.go index 2df1358..5b48e8e 100644 --- a/ProcessOrder.go +++ b/ProcessOrder.go @@ -1,7 +1,7 @@ package burgeonsdk func (this *BurgeonConnection) NewProcessOrder() PostData { - return PostData{Id: 3, Command: "ProcessOrder", Params: map[string]interface{}{ + return PostData{Id: 4, Command: "ProcessOrder", Params: map[string]interface{}{ "submit": false, "id": -1, "masterobj": make(map[string]interface{}), diff --git a/objectModify.go b/objectModify.go index ca0fda7..1d9a15b 100644 --- a/objectModify.go +++ b/objectModify.go @@ -1,7 +1,7 @@ package burgeonsdk func (this *BurgeonConnection) NewObjectModify() PostData { - return PostData{Id: 2, Command: "ObjectModify", Params: make(map[string]interface{})} + return PostData{Id: 3, Command: "ObjectModify", Params: make(map[string]interface{})} } //设置查询的表