notice_empty.go 625 字节
package transform

import (
	"gitlab.fjmaimaimai.com/allied-creation/allied-creation-basic/pkg/domain"
	"gitlab.fjmaimaimai.com/allied-creation/allied-creation-basic/pkg/infrastructure/pg/models"
)

func TransformToNoticeEmptyDomainModelFromPgModels(noticeEmptyModel *models.NoticeEmpty) (*domain.NoticeEmpty, error) {
	return &domain.NoticeEmpty{
		NoticeEmptyId: noticeEmptyModel.NoticeEmptyId,
		Content:       noticeEmptyModel.Content,
		IsPush:        noticeEmptyModel.IsPush,
		Module:        noticeEmptyModel.Module,
		ModuleAction:  noticeEmptyModel.ModuleAction,
		SysCode:       noticeEmptyModel.SysCode,
	}, nil
}