mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-10 18:38:22 +00:00
Fix Create and Update API Methods
This commit is contained in:
parent
74fc3b0b8c
commit
93ce84e581
1 changed files with 4 additions and 4 deletions
|
@ -39,8 +39,8 @@ func (f *Object) GetServices(ctx context.Context, params struct{}) (GetServicesR
|
|||
}
|
||||
|
||||
type CreateServiceParameters struct {
|
||||
Name string
|
||||
Service object.Service
|
||||
Name string
|
||||
object.Service
|
||||
}
|
||||
|
||||
func (f *Object) CreateService(ctx context.Context, params CreateServiceParameters) (struct{}, error) {
|
||||
|
@ -57,8 +57,8 @@ func (f *Object) CreateService(ctx context.Context, params CreateServiceParamete
|
|||
}
|
||||
|
||||
type UpdateServiceParameters struct {
|
||||
Name string
|
||||
Service object.Service
|
||||
Name string
|
||||
object.Service
|
||||
}
|
||||
|
||||
func (f *Object) UpdateService(ctx context.Context, params UpdateServiceParameters) (struct{}, error) {
|
||||
|
|
Loading…
Add table
Reference in a new issue