-
Notifications
You must be signed in to change notification settings - Fork 2
/
sdk_huawei.go
40 lines (33 loc) · 1.34 KB
/
sdk_huawei.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
// ================================================================================
// 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 sys_service
import (
"context"
"github.com/SupenBysz/gf-admin-community/sys_model"
)
type (
ISdkHuawei interface {
// GetHuaweiSdkConfList 获取阿里云SDK应用配置列表
GetHuaweiSdkConfList(ctx context.Context) ([]*sys_model.HuaweiSdkConf, error)
// GetHuaweiSdkConf 根据identifier标识获取SDK配置信息
GetHuaweiSdkConf(ctx context.Context, identifier string) (tokenInfo *sys_model.HuaweiSdkConf, err error)
// SaveHuaweiSdkConf 保存SDK应用配信息, isCreate判断是更新还是新建
SaveHuaweiSdkConf(ctx context.Context, info *sys_model.HuaweiSdkConf, isCreate bool) (*sys_model.HuaweiSdkConf, error)
// DeleteHuaweiSdkConf 删除华为SDK应用配置信息
DeleteHuaweiSdkConf(ctx context.Context, identifier string) (bool, error)
}
)
var (
localSdkHuawei ISdkHuawei
)
func SdkHuawei() ISdkHuawei {
if localSdkHuawei == nil {
panic("implement not found for interface ISdkHuawei, forgot register?")
}
return localSdkHuawei
}
func RegisterSdkHuawei(i ISdkHuawei) {
localSdkHuawei = i
}