36 lines
1.6 KiB
Go
36 lines
1.6 KiB
Go
|
// ==========================================================================
|
|||
|
// GFast自动生成model操作代码。
|
|||
|
// 生成日期:2024-04-11 16:58:12
|
|||
|
// 生成路径: internal/app/system/model/notification_recipients.go
|
|||
|
// 生成人:gfast
|
|||
|
// desc:通知接收
|
|||
|
// company:云南奇讯科技有限公司
|
|||
|
// ==========================================================================
|
|||
|
|
|||
|
package model
|
|||
|
|
|||
|
import (
|
|||
|
"github.com/gogf/gf/v2/os/gtime"
|
|||
|
"github.com/gogf/gf/v2/util/gmeta"
|
|||
|
)
|
|||
|
|
|||
|
// NotificationRecipientsInfoRes is the golang structure for table notification_recipients.
|
|||
|
type NotificationRecipientsInfoRes struct {
|
|||
|
gmeta.Meta `orm:"table:notification_recipients"`
|
|||
|
Id uint `orm:"id,primary" json:"id"` //
|
|||
|
CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` //
|
|||
|
NotificationId int `orm:"notification_id" json:"notificationId"` // 关联的通知ID
|
|||
|
RecipientId int `orm:"recipient_id" json:"recipientId"` // 接收者ID
|
|||
|
RecipientRole string `orm:"recipient_role" json:"recipientRole"` // 接收者权限
|
|||
|
NotificationStatus int `orm:"notification_status" json:"notificationStatus"` // 0 未读 | 1 已读
|
|||
|
}
|
|||
|
|
|||
|
type NotificationRecipientsListRes struct {
|
|||
|
Id uint `json:"id"`
|
|||
|
CreatedAt *gtime.Time `json:"createdAt"`
|
|||
|
NotificationId int `json:"notificationId"`
|
|||
|
RecipientId int `json:"recipientId"`
|
|||
|
RecipientRole string `json:"recipientRole"`
|
|||
|
NotificationStatus int `json:"notificationStatus"`
|
|||
|
}
|