chore: 并入 iotlcm-upstream-proxy 历史到 upstream-proxy/(原提交 44209ec)

This commit is contained in:
MiFaZhan
2026-11-02 13:28:02 +08:00
117 changed files with 8690 additions and 0 deletions
+12
View File
@@ -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)
}
+23
View File
@@ -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"`
}