mirror of
https://github.com/speatzle/nfsense.git
synced 2025-05-11 19:08:20 +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 {
|
type CreateServiceParameters struct {
|
||||||
Name string
|
Name string
|
||||||
Service object.Service
|
object.Service
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *Object) CreateService(ctx context.Context, params CreateServiceParameters) (struct{}, error) {
|
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 {
|
type UpdateServiceParameters struct {
|
||||||
Name string
|
Name string
|
||||||
Service object.Service
|
object.Service
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *Object) UpdateService(ctx context.Context, params UpdateServiceParameters) (struct{}, error) {
|
func (f *Object) UpdateService(ctx context.Context, params UpdateServiceParameters) (struct{}, error) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue