organization_translator.go
461 字节
package translator
import "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/domain"
type OrganizationTranslator struct {
}
func (translator *OrganizationTranslator) ToOrganizationFromRepresentation(data map[string]interface{}) (*domain.Org, error) {
return &domain.Org{
OrgId: 0,
OrgName: "",
Company: nil,
}, nil
}
func NewOrganizationTranslator() (*OrganizationTranslator, error) {
return &OrganizationTranslator{}, nil
}