初始
This commit is contained in:
37
internal/app/system/service/notification_recipients.go
Normal file
37
internal/app/system/service/notification_recipients.go
Normal file
@ -0,0 +1,37 @@
|
||||
// ==========================================================================
|
||||
// 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
|
||||
}
|
||||
Reference in New Issue
Block a user