[#182] Rename methods to match updated field names

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2020-10-27 16:55:19 +03:00 committed by Alex Vanin
parent 5be034ab80
commit dc9fcd5d98
17 changed files with 47 additions and 47 deletions

View file

@ -156,7 +156,7 @@ type HeadResponseBody struct {
type SearchFilter struct {
matchType MatchType
name, val string
key, val string
}
type SearchRequestBody struct {
@ -1274,17 +1274,17 @@ func (f *SearchFilter) SetMatchType(v MatchType) {
}
}
func (f *SearchFilter) GetName() string {
func (f *SearchFilter) GetKey() string {
if f != nil {
return f.name
return f.key
}
return ""
}
func (f *SearchFilter) SetName(v string) {
func (f *SearchFilter) SetKey(v string) {
if f != nil {
f.name = v
f.key = v
}
}