notice_personal.go
1.0 KB
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,
SysCode: noticePersonalModel.SysCode,
UserId: noticePersonalModel.UserId,
}, nil
}