Files
zmkgC/internal/app/system/service/notification_recipients.go

38 lines
1.4 KiB
Go
Raw Normal View History

2025-07-07 20:11:59 +08:00
// ==========================================================================
// GFast自动生成service操作代码。
// 生成日期2024-04-11 16:58:12
// 生成路径: internal/app/system/service/notification_recipients.go
// 生成人gfast
// desc:通知接收
// company:云南奇讯科技有限公司
// ==========================================================================
package service
import (
"context"
"github.com/tiger1103/gfast/v3/api/v1/system"
"github.com/tiger1103/gfast/v3/internal/app/system/model"
)
type INotificationRecipients interface {
List(ctx context.Context, req *system.NotificationRecipientsSearchReq) (res *system.NotificationRecipientsSearchRes, err error)
GetById(ctx context.Context, Id uint) (res *model.NotificationRecipientsInfoRes, err error)
Add(ctx context.Context, req *system.NotificationRecipientsAddReq) (err error)
Edit(ctx context.Context, req *system.NotificationRecipientsEditReq) (err error)
Delete(ctx context.Context, Id []uint) (err error)
}
var localNotificationRecipients INotificationRecipients
func NotificationRecipients() INotificationRecipients {
if localNotificationRecipients == nil {
panic("implement not found for interface INotificationRecipients, forgot register?")
}
return localNotificationRecipients
}
func RegisterNotificationRecipients(i INotificationRecipients) {
localNotificationRecipients = i
}