( c *gin.Context, collection settingspkg.CollectionName, )
| 599 | } |
| 600 | |
| 601 | func parseSettingsCollectionRequest( |
| 602 | c *gin.Context, |
| 603 | collection settingspkg.CollectionName, |
| 604 | ) (settingspkg.CollectionRequest, error) { |
| 605 | scope, workspaceID, err := parseSettingsScope(c.Query("scope"), c.Query("workspace_id")) |
| 606 | if err != nil { |
| 607 | return settingspkg.CollectionRequest{}, err |
| 608 | } |
| 609 | return settingspkg.CollectionRequest{ |
| 610 | Collection: collection, |
| 611 | Scope: scope, |
| 612 | WorkspaceID: workspaceID, |
| 613 | }, nil |
| 614 | } |
| 615 | |
| 616 | func parseConfigApplyRecordFilter(c *gin.Context) (settingspkg.ApplyRecordFilter, error) { |
| 617 | limit := 0 |
no test coverage detected