chore: 并入 iotlcm-openapi 历史到 openapi/(原提交 3b05d5a)
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
// ================================================================================
|
||||
// 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"
|
||||
"git.5iot.com/iotlcm-public/iotlcm-openapi/internal/model"
|
||||
)
|
||||
|
||||
type (
|
||||
IUpstreamChan interface {
|
||||
GetUpstreamChanConfig(ctx context.Context) (output model.UpstreamChanConfig, err error)
|
||||
GetSharedToken(ctx context.Context, chanKey string) (*model.SharedTokenResult, error)
|
||||
// 获取卡基本信息
|
||||
QuerySimBasicInfo(ctx context.Context, input *model.SimBasicInfoInput) ([]model.SimBaseRes[model.SimBasicInfoItem], error)
|
||||
// 查询会话信息
|
||||
QuerySimSession(ctx context.Context, input *model.SimSessionInput) ([]model.SimBaseRes[model.SimSessionItem], error)
|
||||
// 查询状态
|
||||
QuerySimCardStatus(ctx context.Context, input *model.SimCardStatusInput) ([]model.SimBaseRes[model.SimCardStatusItem], error)
|
||||
// 查询IMEI
|
||||
QuerySimImei(ctx context.Context, input *model.SimImeiInput) ([]model.SimBaseRes[model.SimImeiItem], error)
|
||||
// 查询流量
|
||||
QuerySimDatausage(ctx context.Context, input *model.SimDataUsageInput) ([]model.SimBaseRes[model.SimDataUsageItem], error)
|
||||
// 查询月流量
|
||||
QuerySimDatausageMonthly(ctx context.Context, input *model.SimDataUsageMonthlyInput) ([]model.SimBaseRes[model.SimDataUsageMonthlyOutputItem], error)
|
||||
// 查询日流量
|
||||
QuerySimDatausageDaily(ctx context.Context, input *model.SimDataUsageDailyInput) ([]model.SimBaseRes[model.SimDataUsageDailyOutputItem], error)
|
||||
// 查询已开通APN信息
|
||||
QuerySimApnInfo(ctx context.Context, input *model.SimApnInfoInput) ([]model.SimBaseRes[model.SimApnInfoItemList], error)
|
||||
// 卡状态变更
|
||||
ChangeSimStatus(ctx context.Context, input *model.SimCardStatusChangeInput) ([]model.SimBaseRes[model.SimCardStatusChangeItem], error)
|
||||
// 卡APN功能开停
|
||||
ChangeSimApnFunction(ctx context.Context, input *model.SimCardOperateChangeApnInput) ([]model.SimBaseRes[model.SimCardOperateChangeApnItem], error)
|
||||
// 查询机卡绑定状态
|
||||
QuerySimCardBindStatus(ctx context.Context, input *model.SimCardBindStatusInput) ([]model.SimBaseRes[model.SimCardBindStatusItem], error)
|
||||
// 查询设备状态
|
||||
QuerySimDeviceStatus(ctx context.Context, input *model.SimDeviceStatusInput) ([]model.SimBaseRes[model.SimDeviceStatusItem], error)
|
||||
// 查询地域限制状态
|
||||
QuerySimRegionLimitStatus(ctx context.Context, input *model.SimRegionLimitStatusInput) ([]model.SimBaseRes[model.SimRegionLimitStatusItem], error)
|
||||
}
|
||||
)
|
||||
|
||||
var (
|
||||
localUpstreamChan IUpstreamChan
|
||||
)
|
||||
|
||||
func UpstreamChan() IUpstreamChan {
|
||||
if localUpstreamChan == nil {
|
||||
panic("implement not found for interface IUpstreamChan, forgot register?")
|
||||
}
|
||||
return localUpstreamChan
|
||||
}
|
||||
|
||||
func RegisterUpstreamChan(i IUpstreamChan) {
|
||||
localUpstreamChan = i
|
||||
}
|
||||
Reference in New Issue
Block a user