-
Notifications
You must be signed in to change notification settings - Fork 152
/
provider.go
47 lines (44 loc) · 1.09 KB
/
provider.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
40
41
42
43
44
45
46
47
package user
import (
"github.com/ArtisanCloud/PowerWeChat/v2/src/kernel"
"github.com/ArtisanCloud/PowerWeChat/v2/src/work/user/batchJobs"
"github.com/ArtisanCloud/PowerWeChat/v2/src/work/user/exportJobs"
"github.com/ArtisanCloud/PowerWeChat/v2/src/work/user/linkedCorp"
"github.com/ArtisanCloud/PowerWeChat/v2/src/work/user/tag"
)
func RegisterProvider(app kernel.ApplicationInterface) (
*Client,
*batchJobs.Client,
*exportJobs.Client,
*linkedCorp.Client,
*tag.Client,
error,
) {
//config := app.GetConfig()
client, err := NewClient(app)
if err != nil {
return nil, nil, nil, nil, nil, err
}
UserBatchJobs, err := batchJobs.NewClient(app)
if err != nil {
return nil, nil, nil, nil, nil, err
}
UserExportJobs, err := exportJobs.NewClient(app)
if err != nil {
return nil, nil, nil, nil, nil, err
}
UserLinkedCorp, err := linkedCorp.NewClient(app)
if err != nil {
return nil, nil, nil, nil, nil, err
}
UserTag, err := tag.NewClient(app)
if err != nil {
return nil, nil, nil, nil, nil, err
}
return client,
UserBatchJobs,
UserExportJobs,
UserLinkedCorp,
UserTag,
nil
}