Files
Foundry-Scrapping-API/internal/foundry/temp_models/json/addresses.go

22 lines
470 B
Go

package json
import "gitea.local.lab/Lbenedar/foundry_helper_service/internal/foundry/temp_models/db"
type Addresses struct {
Local string `json:"local"`
Remote string `json:"remote"`
RemoteIsAccessible bool `json:"remoteIsAccessible"`
}
func (a *Addresses) ToDB(dest *db.Addresses) bool {
if dest == nil {
return false
}
dest.Local = a.Local
dest.Remote = a.Remote
dest.RemoteIsAccessible = a.RemoteIsAccessible
return true
}