Skip to content

Commit 7dc7888

Browse files
committed
Rename CreateParams to CreateAttributes
1 parent b82e11b commit 7dc7888

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

go.mod

Lines changed: 0 additions & 3 deletions
This file was deleted.

go.sum

Whitespace-only changes.

handler_util.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,10 @@ type Parameters struct {
189189
}
190190

191191
func 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

Comments
 (0)