-
Notifications
You must be signed in to change notification settings - Fork 16
/
group_apply.go
39 lines (32 loc) · 1.18 KB
/
group_apply.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
39
// ================================================================================
// 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 (
IGroupApply interface {
Create(ctx context.Context, params model.GroupApplyCreateReq) error
Agree(ctx context.Context, params model.ApplyAgreeReq) error
Decline(ctx context.Context, params model.GroupApplyDeclineReq) error
List(ctx context.Context, params model.ApplyListReq) (*model.GroupApplyListRes, error)
All(ctx context.Context) (*model.ApplyAllRes, error)
ApplyUnreadNum(ctx context.Context) (*model.GroupApplyUnreadNumRes, error)
Delete(ctx context.Context, applyId string, userId int) error
}
)
var (
localGroupApply IGroupApply
)
func GroupApply() IGroupApply {
if localGroupApply == nil {
panic("implement not found for interface IGroupApply, forgot register?")
}
return localGroupApply
}
func RegisterGroupApply(i IGroupApply) {
localGroupApply = i
}