Files
zmkgC/internal/app/system/model/notification_recipients.go
2025-07-07 20:11:59 +08:00

36 lines
1.6 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// ==========================================================================
// 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"`
}