refactor: drop access field usage

This commit is contained in:
Fu Diwei
2025-02-14 16:20:53 +08:00
parent fe93334f86
commit d21c027db8
6 changed files with 41 additions and 50 deletions

View File

@@ -12,7 +12,6 @@ type Access struct {
Name string `json:"name" db:"name"`
Provider string `json:"provider" db:"provider"`
Config string `json:"config" db:"config"`
Usage string `json:"usage" db:"usage"`
DeletedAt *time.Time `json:"deleted" db:"deleted"`
}

View File

@@ -48,7 +48,6 @@ func (r *AccessRepository) castRecordToModel(record *core.Record) (*domain.Acces
Name: record.GetString("name"),
Provider: record.GetString("provider"),
Config: record.GetString("config"),
Usage: record.GetString("usage"),
}
return access, nil
}