lib/app/domain-helpers.go

21 lines
457 B
Go
Raw Permalink Normal View History

2021-01-14 06:36:35 +00:00
package app
import "code.tnxs.net/taxnexus/lib/api/geo/geo_models"
func unMarshalDomain(swag *geo_models.Domain) *Domain {
return &Domain{
Description: swag.Description,
Active: swag.Active,
ID: swag.ID,
Name: swag.Name,
}
}
func (obj *Domain) marshalToSwagger() *geo_models.Domain {
return &geo_models.Domain{
ID: obj.ID,
Active: obj.Active,
Description: obj.Description,
Name: obj.Name,
}
}