Skip to content

Commit 4fc62f6

Browse files
refacto: move struct
1 parent d8608dd commit 4fc62f6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

databases_preview.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,6 @@ type DatabasesPreviewService interface {
2424

2525
var _ DatabasesPreviewService = (*PreviewClient)(nil)
2626

27-
type DatabaseCreateParams struct {
28-
AddonProviderID string `json:"addon_provider_id"`
29-
PlanID string `json:"plan_id"`
30-
DatabaseName string `json:"database_name"`
31-
ProjectID string `json:"project_id,omitempty"`
32-
}
33-
3427
// DatabaseNG stands for Database Next Generation.
3528
type DatabaseNG struct {
3629
App App `json:"app"`
@@ -48,6 +41,13 @@ func NewPreviewClient(parent *Client) *PreviewClient {
4841
}
4942
}
5043

44+
type DatabaseCreateParams struct {
45+
AddonProviderID string `json:"addon_provider_id"`
46+
PlanID string `json:"plan_id"`
47+
DatabaseName string `json:"database_name"`
48+
ProjectID string `json:"project_id,omitempty"`
49+
}
50+
5151
func (c *PreviewClient) DatabaseCreate(ctx context.Context, params DatabaseCreateParams) (DatabaseNG, error) {
5252
var res DatabaseNG
5353

0 commit comments

Comments
 (0)