user_translator.go 2.3 KB
package translator

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

type UserTranslator struct {
}

func (translator *UserTranslator) ToRelevantFromRepresentation(data map[string]interface{}) (*domain.Relevant, error) {
	return &domain.Relevant{
		UserId:     0,
		UserBaseId: 0,
		Org:        nil,
		Orgs:       nil,
		Department: nil,
		Role:       nil,
		UserInfo:   nil,
		UserType:   0,
		Status:     0,
		Company:    nil,
	}, nil
}

func (translator *UserTranslator) ToReferrerFromRepresentation(data map[string]interface{}) (*domain.Referrer, error) {
	return &domain.Referrer{
		UserId:     0,
		UserBaseId: 0,
		Role:       nil,
		Orgs:       nil,
		Org:        nil,
		Department: nil,
		Company:    nil,
		UserInfo:   nil,
		UserType:   0,
	}, nil
}

func (translator *UserTranslator) ToUndertakerFromRepresentation(data map[string]interface{}) (*domain.Undertaker, error) {
	return &domain.Undertaker{
		UserId:             0,
		UserBaseId:         0,
		Org:                nil,
		Orgs:               nil,
		Department:         nil,
		Role:               nil,
		UserInfo:           nil,
		UserType:           0,
		Status:             0,
		Company:            nil,
		ContractAttachment: nil,
	}, nil
}

func (translator *UserTranslator) ToSalesmanFromRepresentation(data map[string]interface{}) (*domain.Salesman, error) {
	return &domain.Salesman{
		UserId:     0,
		UserBaseId: 0,
		Role:       nil,
		Orgs:       nil,
		Org:        nil,
		Department: nil,
		Company:    nil,
		UserInfo:   nil,
		UserType:   0,
	}, nil
}

func (translator *UserTranslator) ToOperatorFromRepresentation(data map[string]interface{}) (*domain.User, error) {
	return &domain.User{
		UserId:     0,
		UserBaseId: 0,
		Org:        nil,
		Orgs:       nil,
		Department: nil,
		Role:       nil,
		UserInfo:   nil,
		UserType:   0,
		Status:     0,
		Company:    nil,
	}, nil
}

func (translator *UserTranslator) ToUserFromRepresentation(data map[string]interface{}) (*domain.User, error) {
	return &domain.User{
		UserId:     0,
		UserBaseId: 0,
		Org:        nil,
		Orgs:       nil,
		Department: nil,
		Role:       nil,
		UserInfo:   nil,
		UserType:   0,
		Status:     0,
		Company:    nil,
	}, nil
}

func NewUserTranslator() (*UserTranslator, error) {
	return &UserTranslator{}, nil
}