feat: use Client interface instead of client struct when interacting with UniFi SDK (#21)
* feat: use Client interface instead of client struct when interacting with UniFi SDK Breaking change! * chore: linting * chore: linting
This commit is contained in:
committed by
GitHub
parent
fadc5ada8b
commit
dca894e8e7
4
unifi/setting_broadcast.generated.go
generated
4
unifi/setting_broadcast.generated.go
generated
@@ -51,7 +51,7 @@ func (dst *SettingBroadcast) UnmarshalJSON(b []byte) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (c *Client) getSettingBroadcast(ctx context.Context, site string) (*SettingBroadcast, error) {
|
||||
func (c *client) getSettingBroadcast(ctx context.Context, site string) (*SettingBroadcast, error) {
|
||||
var respBody struct {
|
||||
Meta Meta `json:"meta"`
|
||||
Data []SettingBroadcast `json:"data"`
|
||||
@@ -70,7 +70,7 @@ func (c *Client) getSettingBroadcast(ctx context.Context, site string) (*Setting
|
||||
return &d, nil
|
||||
}
|
||||
|
||||
func (c *Client) updateSettingBroadcast(ctx context.Context, site string, d *SettingBroadcast) (*SettingBroadcast, error) {
|
||||
func (c *client) updateSettingBroadcast(ctx context.Context, site string, d *SettingBroadcast) (*SettingBroadcast, error) {
|
||||
var respBody struct {
|
||||
Meta Meta `json:"meta"`
|
||||
Data []SettingBroadcast `json:"data"`
|
||||
|
||||
Reference in New Issue
Block a user