This repository was archived by the owner on Jun 12, 2024. It is now read-only.
File tree 4 files changed +15
-14
lines changed
4 files changed +15
-14
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ linters:
50
50
- goconst
51
51
- gocritic
52
52
- gocyclo
53
+ - gofmt
53
54
- goprintffuncname
54
55
- gosimple
55
56
- govet
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ func (ctrl *V1Controller) HandleGroupUpdate() errchain.HandlerFunc {
57
57
ok := ctrl .svc .Currencies .IsSupported (body .Currency )
58
58
if ! ok {
59
59
return repo.Group {}, validate .NewFieldErrors (
60
- validate .NewFieldError ("currency" , "currency '" + body .Currency + "' is not supported" ),
60
+ validate .NewFieldError ("currency" , "currency '" + body .Currency + "' is not supported" ),
61
61
)
62
62
}
63
63
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ import (
27
27
// @Param pageSize query int false "items per page"
28
28
// @Param labels query []string false "label Ids" collectionFormat(multi)
29
29
// @Param locations query []string false "location Ids" collectionFormat(multi)
30
- // @Param parentIds query []string false "parent Ids" collectionFormat(multi)
30
+ // @Param parentIds query []string false "parent Ids" collectionFormat(multi)
31
31
// @Success 200 {object} repo.PaginationResult[repo.ItemSummary]{}
32
32
// @Router /v1/items [GET]
33
33
// @Security Bearer
@@ -57,7 +57,7 @@ func (ctrl *V1Controller) HandleItemsGetAll() errchain.HandlerFunc {
57
57
Search : params .Get ("q" ),
58
58
LocationIDs : queryUUIDList (params , "locations" ),
59
59
LabelIDs : queryUUIDList (params , "labels" ),
60
- ParentItemIDs : queryUUIDList (params , "parentIds" ),
60
+ ParentItemIDs : queryUUIDList (params , "parentIds" ),
61
61
IncludeArchived : queryBool (params .Get ("includeArchived" )),
62
62
Fields : filterFieldItems (params ["fields" ]),
63
63
OrderBy : params .Get ("orderBy" ),
Original file line number Diff line number Diff line change @@ -17,20 +17,20 @@ const (
17
17
18
18
type Config struct {
19
19
conf.Version
20
- Mode string `yaml:"mode" conf:"default:development"` // development or production
21
- Web WebConfig `yaml:"web"`
22
- Storage Storage `yaml:"storage"`
23
- Log LoggerConf `yaml:"logger"`
24
- Mailer MailerConf `yaml:"mailer"`
25
- Demo bool `yaml:"demo"`
26
- Debug DebugConf `yaml:"debug"`
27
- Options Options `yaml:"options"`
20
+ Mode string `yaml:"mode" conf:"default:development"` // development or production
21
+ Web WebConfig `yaml:"web"`
22
+ Storage Storage `yaml:"storage"`
23
+ Log LoggerConf `yaml:"logger"`
24
+ Mailer MailerConf `yaml:"mailer"`
25
+ Demo bool `yaml:"demo"`
26
+ Debug DebugConf `yaml:"debug"`
27
+ Options Options `yaml:"options"`
28
28
}
29
29
30
30
type Options struct {
31
- AllowRegistration bool `yaml:"disable_registration" conf:"default:true"`
32
- AutoIncrementAssetID bool `yaml:"auto_increment_asset_id" conf:"default:true"`
33
- CurrencyConfig string `yaml:"currencies"`
31
+ AllowRegistration bool `yaml:"disable_registration" conf:"default:true"`
32
+ AutoIncrementAssetID bool `yaml:"auto_increment_asset_id" conf:"default:true"`
33
+ CurrencyConfig string `yaml:"currencies"`
34
34
}
35
35
36
36
type DebugConf struct {
You can’t perform that action at this time.
0 commit comments