github.com/SupenBysz/gf-admin-community@v0.7.4/sys_service/sdk_ctyun.go (about) 1 // ================================================================================ 2 // Code generated and maintained by GoFrame CLI tool. DO NOT EDIT. 3 // You can delete these comments if you wish manually maintain this interface file. 4 // ================================================================================ 5 6 package sys_service 7 8 import ( 9 "context" 10 11 "github.com/SupenBysz/gf-admin-community/sys_model" 12 ) 13 14 type ( 15 ISdkCtyun interface { 16 // GetCtyunSdkConfList 获取天翼云SDK应用配置列表 17 GetCtyunSdkConfList(ctx context.Context) ([]*sys_model.CtyunSdkConf, error) 18 // GetCtyunSdkConf 根据identifier标识获取SDK配置信息 19 GetCtyunSdkConf(ctx context.Context, identifier string) (tokenInfo *sys_model.CtyunSdkConf, err error) 20 // SaveCtyunSdkConf 保存天翼SDK应用配信息, isCreate判断是更新还是新建 21 SaveCtyunSdkConf(ctx context.Context, info *sys_model.CtyunSdkConf, isCreate bool) (*sys_model.CtyunSdkConf, error) 22 // DeleteCtyunSdkConf 删除天翼SDK应用配置信息 23 DeleteCtyunSdkConf(ctx context.Context, identifier string) (bool, error) 24 } 25 ) 26 27 var ( 28 localSdkCtyun ISdkCtyun 29 ) 30 31 func SdkCtyun() ISdkCtyun { 32 if localSdkCtyun == nil { 33 panic("implement not found for interface ISdkCtyun, forgot register?") 34 } 35 return localSdkCtyun 36 } 37 38 func RegisterSdkCtyun(i ISdkCtyun) { 39 localSdkCtyun = i 40 }