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_dashboard.generated.go
generated
4
unifi/setting_dashboard.generated.go
generated
@@ -68,7 +68,7 @@ func (dst *SettingDashboardWidgets) UnmarshalJSON(b []byte) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (c *Client) getSettingDashboard(ctx context.Context, site string) (*SettingDashboard, error) {
|
||||
func (c *client) getSettingDashboard(ctx context.Context, site string) (*SettingDashboard, error) {
|
||||
var respBody struct {
|
||||
Meta Meta `json:"meta"`
|
||||
Data []SettingDashboard `json:"data"`
|
||||
@@ -87,7 +87,7 @@ func (c *Client) getSettingDashboard(ctx context.Context, site string) (*Setting
|
||||
return &d, nil
|
||||
}
|
||||
|
||||
func (c *Client) updateSettingDashboard(ctx context.Context, site string, d *SettingDashboard) (*SettingDashboard, error) {
|
||||
func (c *client) updateSettingDashboard(ctx context.Context, site string, d *SettingDashboard) (*SettingDashboard, error) {
|
||||
var respBody struct {
|
||||
Meta Meta `json:"meta"`
|
||||
Data []SettingDashboard `json:"data"`
|
||||
|
||||
Reference in New Issue
Block a user