Browse Source

增加批量添加

master
zhenghaorong 2 years ago
parent
commit
cd13573588
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      chain.go
  2. +2
    -2
      transaction_chain.go

+ 2
- 2
chain.go View File

@ -112,11 +112,11 @@ func (this *Query) WhereOr(where string) *Query {
this.where_or = append(this.where_or, where) this.where_or = append(this.where_or, where)
return this return this
} }
func (this *Query) saveData(value map[string]interface{}) *Query {
func (this *Query) SaveData(value map[string]interface{}) *Query {
this.save_data = append(this.save_data, value) this.save_data = append(this.save_data, value)
return this return this
} }
func (this *Query) saveDatas(value []map[string]interface{}) *Query {
func (this *Query) SaveDatas(value []map[string]interface{}) *Query {
this.save_data = append(this.save_data, value...) this.save_data = append(this.save_data, value...)
return this return this
} }


+ 2
- 2
transaction_chain.go View File

@ -118,11 +118,11 @@ func (this *TxQuery) Value(value interface{}) *TxQuery {
this.value = append(this.value, value) this.value = append(this.value, value)
return this return this
} }
func (this *TxQuery) saveData(value map[string]interface{}) *TxQuery {
func (this *TxQuery) SaveData(value map[string]interface{}) *TxQuery {
this.save_data = append(this.save_data, value) this.save_data = append(this.save_data, value)
return this return this
} }
func (this *TxQuery) saveDatas(value []map[string]interface{}) *TxQuery {
func (this *TxQuery) SaveDatas(value []map[string]interface{}) *TxQuery {
this.save_data = append(this.save_data, value...) this.save_data = append(this.save_data, value...)
return this return this
} }


Loading…
Cancel
Save