notice_personal.go
977 字节
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 TransformToNoticePersonalDomainModelFromPgModels(noticePersonalModel *models.NoticePersonal) (*domain.NoticePersonal, error) {
return &domain.NoticePersonal{
CreatedAt: noticePersonalModel.CreatedAt,
DeletedAt: noticePersonalModel.DeletedAt,
UpdatedAt: noticePersonalModel.UpdatedAt,
Extend: noticePersonalModel.Extend,
CompanyId: noticePersonalModel.CompanyId,
Content: noticePersonalModel.Content,
IsRead: noticePersonalModel.IsRead,
Module: noticePersonalModel.Module,
ModuleAction: noticePersonalModel.ModuleAction,
NoticePersonalId: noticePersonalModel.NoticePersonalId,
OrgId: noticePersonalModel.OrgId,
UserId: noticePersonalModel.UserId,
}, nil
}