sent_notification.go 417 字节
package models

import (
	"gitlab.fjmaimaimai.com/linmadan/mmm-worth/pkg/domain"
	"time"
)

type SentNotification struct {
	TableName string `pg:"sent_notifications,alias:sent_notification"`
	// 发送出的通知ID
	Id int64
	NotificationId     int64
	// 通知
	Notification *Notification
	// 通知接收者
	Receiver *domain.EmployeeInfo
	// 是否已读
	IsRead bool
	// 通知读取时间
	ReadTime time.Time
}