Update IPSecESPLifetime

This commit is contained in:
appkins
2025-04-13 22:23:08 -05:00
parent 39c704d3ec
commit 73d68d5ac1
8 changed files with 19 additions and 19 deletions

View File

@@ -12,7 +12,7 @@ type Setting struct {
Key string `json:"key"`
}
func (s *Setting) newFields() (interface{}, error) {
func (s *Setting) newFields() (any, error) {
switch s.Key {
case "auto_speedtest":
return &SettingAutoSpeedtest{}, nil
@@ -79,7 +79,7 @@ func (s *Setting) newFields() (interface{}, error) {
return nil, fmt.Errorf("unexpected key %q", s.Key)
}
func (c *Client) GetSetting(ctx context.Context, site, key string) (*Setting, interface{}, error) {
func (c *Client) GetSetting(ctx context.Context, site, key string) (*Setting, any, error) {
var respBody struct {
Meta meta `json:"meta"`
Data []json.RawMessage `json:"data"`