-
Notifications
You must be signed in to change notification settings - Fork 15
/
group_notice.go
38 lines (31 loc) · 1022 Bytes
/
group_notice.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// ================================================================================
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
// You can delete these comments if you wish manually maintain this interface file.
// ================================================================================
package service
import (
"context"
"github.com/iimeta/iim-client/internal/model"
)
type (
IGroupNotice interface {
// 群公告列表
List(ctx context.Context, params model.NoticeListReq) (*model.NoticeListRes, error)
// 发布或更新群公告
CreateAndUpdate(ctx context.Context, params model.NoticeEditReq) error
// 删除群公告
Delete(ctx context.Context, params model.NoticeDeleteReq) error
}
)
var (
localGroupNotice IGroupNotice
)
func GroupNotice() IGroupNotice {
if localGroupNotice == nil {
panic("implement not found for interface IGroupNotice, forgot register?")
}
return localGroupNotice
}
func RegisterGroupNotice(i IGroupNotice) {
localGroupNotice = i
}