department_translator.go 516 字节
package translator

import "gitlab.fjmaimaimai.com/allied-creation/allied-creation-cooperation/pkg/domain"

type DepartmentTranslator struct {
}

func (translator *DepartmentTranslator) ToDepartmentFromRepresentation(data map[string]interface{}) (*domain.Department, error) {
	return &domain.Department{
		DepartmentId:     0,
		DepartmentName:   "",
		DepartmentNumber: "",
		IsOrganization:   false,
	}, nil
}

func NewDepartmentTranslator() (*DepartmentTranslator, error) {
	return &DepartmentTranslator{}, nil
}