@@ -189,10 +189,10 @@ type Parameters struct {
189189}
190190
191191func CreateParameters (filterType reflect.Type , modelType reflect.Type ) * Parameters {
192- paramIndex , filterIndex , firstLayerIndexes , _ := CreateParams (filterType , modelType )
192+ paramIndex , filterIndex , firstLayerIndexes , _ := CreateAttributes (filterType , modelType )
193193 return & Parameters {ParamIndex : paramIndex , FilterIndex : filterIndex , CSVIndex : firstLayerIndexes }
194194}
195- func CreateParams (filterType reflect.Type , modelType reflect.Type , opts ... string ) (map [string ]int , int , map [string ]int , map [string ]int ) {
195+ func CreateAttributes (filterType reflect.Type , modelType reflect.Type , opts ... string ) (map [string ]int , int , map [string ]int , map [string ]int ) {
196196 embedField := ""
197197 if len (opts ) > 0 {
198198 embedField = opts [0 ]
@@ -204,7 +204,7 @@ func CreateParams(filterType reflect.Type, modelType reflect.Type, opts ...strin
204204 firstLayerIndexes , secondLayerIndexes := BuildJsonMap (model , fields , embedField )
205205 return paramIndex , filterIndex , firstLayerIndexes , secondLayerIndexes
206206}
207- func BuildParams (filterType reflect.Type ) (map [string ]int , int ) {
207+ func BuildAttributes (filterType reflect.Type ) (map [string ]int , int ) {
208208 paramIndex := BuildParamIndex (filterType )
209209 filterIndex := FindFilterIndex (filterType )
210210 return paramIndex , filterIndex
0 commit comments