company_translator.go
431 字节
package translator
import "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/domain"
type CompanyTranslator struct {
}
func (translator *CompanyTranslator) ToCompanyFromRepresentation(data map[string]interface{}) (*domain.Company, error) {
return &domain.Company{
CompanyId: 0,
CompanyName: "",
}, nil
}
func NewCompanyTranslator() (*CompanyTranslator, error) {
return &CompanyTranslator{}, nil
}