add show course and map names
This commit is contained in:
@ -11,7 +11,7 @@ import (
|
||||
"time"
|
||||
|
||||
"git.loyso.art/frx/kurious/internal/common/errors"
|
||||
"git.loyso.art/frx/kurious/pkg/slices"
|
||||
"git.loyso.art/frx/kurious/internal/common/xslices"
|
||||
"git.loyso.art/frx/kurious/pkg/xdefault"
|
||||
|
||||
"github.com/go-resty/resty/v2"
|
||||
@ -52,8 +52,8 @@ func NewClient(ctx context.Context, log *slog.Logger, debug bool) (c *client, er
|
||||
return nil, err
|
||||
}
|
||||
|
||||
getQuerySet := func(fields []field) querySet {
|
||||
items := slices.Map(fields, func(f field) string {
|
||||
getQuerySet := func(fields []Field) querySet {
|
||||
items := xslices.Map(fields, func(f Field) string {
|
||||
return f.Value
|
||||
})
|
||||
|
||||
|
||||
@ -39,7 +39,7 @@ type ReduxMetadata struct {
|
||||
} `json:"data"`
|
||||
}
|
||||
|
||||
type field struct {
|
||||
type Field struct {
|
||||
Name string `json:"name"`
|
||||
Value string `json:"value"`
|
||||
}
|
||||
@ -51,7 +51,7 @@ type ReduxDictionaryContainer struct {
|
||||
UserID string `json:"userId"`
|
||||
Created time.Time `json:"created"`
|
||||
Updated time.Time `json:"updated"`
|
||||
Fields []field `json:"fields"`
|
||||
Fields []Field `json:"fields"`
|
||||
}
|
||||
|
||||
type ReduxDictionaries struct {
|
||||
|
||||
Reference in New Issue
Block a user