chore: 并入 iotlcm-upstream-proxy 历史到 upstream-proxy/(原提交 44209ec)
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
// =================================================================================
|
||||
// Code generated and maintained by GoFrame CLI tool. DO NOT EDIT.
|
||||
// =================================================================================
|
||||
|
||||
package cardquery
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
v1 "git.5iot.com/iotlcm-public/iotlcm-upstream-proxy/api/cardquery/v1"
|
||||
)
|
||||
|
||||
type ICardqueryV1 interface {
|
||||
SimBase(ctx context.Context, req *v1.SimBaseReq) (res *v1.SimBaseRes, err error)
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package v1
|
||||
|
||||
import (
|
||||
"git.5iot.com/iotlcm-public/iotlcm-upstream-proxy/internal/model"
|
||||
|
||||
"github.com/gogf/gf/v2/frame/g"
|
||||
)
|
||||
|
||||
// sim
|
||||
type SimBaseReq struct {
|
||||
g.Meta `path:"/sim/*any" tags:"CardQuery" method:"GET,POST" summary:"物联网卡基础请求"`
|
||||
model.SimBaseReqJson
|
||||
}
|
||||
|
||||
type SimBaseRes = model.SimBaseResJson
|
||||
@@ -0,0 +1,12 @@
|
||||
package channel
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
v1 "git.5iot.com/iotlcm-public/iotlcm-upstream-proxy/api/channel/v1"
|
||||
)
|
||||
|
||||
type IChannelV1 interface {
|
||||
Refresh(ctx context.Context, req *v1.RefreshReq) (res *v1.RefreshRes, err error)
|
||||
Remove(ctx context.Context, req *v1.RemoveReq) (res *v1.RemoveRes, err error)
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package v1
|
||||
|
||||
import "github.com/gogf/gf/v2/frame/g"
|
||||
|
||||
type RefreshReq struct {
|
||||
g.Meta `path:"/internal/channel/refresh" tags:"Internal" method:"POST" summary:"Refresh channel cache"`
|
||||
ChanKey string `json:"chanKey" in:"query" v:"required#chanKey is required"`
|
||||
}
|
||||
|
||||
type RefreshRes struct {
|
||||
ChanKey string `json:"chanKey"`
|
||||
Refreshed bool `json:"refreshed"`
|
||||
}
|
||||
|
||||
type RemoveReq struct {
|
||||
g.Meta `path:"/internal/channel/remove" tags:"Internal" method:"POST" summary:"Remove channel cache"`
|
||||
ChanKey string `json:"chanKey" in:"query" v:"required#chanKey is required"`
|
||||
}
|
||||
|
||||
type RemoveRes struct {
|
||||
ChanKey string `json:"chanKey"`
|
||||
Removed bool `json:"removed"`
|
||||
}
|
||||
Reference in New Issue
Block a user