chore: 并入 iotlcm-admin-svr 历史到 admin-svr/(原提交 49818c6)

This commit is contained in:
MiFaZhan
2026-11-02 13:27:59 +08:00
1250 changed files with 154111 additions and 0 deletions
@@ -0,0 +1,28 @@
package workerdiagnostic
import (
"context"
v1 "git.5iot.com/iotlcm-public/iotlcm-admin-svr/api/workerdiagnostic/v1"
workerdiagnosticservice "git.5iot.com/iotlcm-public/iotlcm-admin-svr/internal/service/workerdiagnostic"
)
type Controller struct {
service *workerdiagnosticservice.Service
}
func New(service *workerdiagnosticservice.Service) *Controller {
return &Controller{service: service}
}
func (c *Controller) Diagnostic(ctx context.Context, req *v1.DiagnosticReq) (*v1.DiagnosticRes, error) {
result, err := c.service.Publish(ctx, req.Message)
if err != nil {
return nil, err
}
return &v1.DiagnosticRes{
TraceID: result.TraceID,
Queue: result.Queue,
SentAt: result.SentAt,
}, nil
}
@@ -0,0 +1,5 @@
// =================================================================================
// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
// =================================================================================
package workerdiagnostic
@@ -0,0 +1,15 @@
// =================================================================================
// This is auto-generated by GoFrame CLI tool only once. Fill this file as you wish.
// =================================================================================
package workerdiagnostic
import (
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/api/workerdiagnostic"
)
type ControllerV1 struct{}
func NewV1() workerdiagnostic.IWorkerdiagnosticV1 {
return &ControllerV1{}
}
@@ -0,0 +1,14 @@
package workerdiagnostic
import (
"context"
"github.com/gogf/gf/v2/errors/gcode"
"github.com/gogf/gf/v2/errors/gerror"
"git.5iot.com/iotlcm-public/iotlcm-admin-svr/api/workerdiagnostic/v1"
)
func (c *ControllerV1) Diagnostic(ctx context.Context, req *v1.DiagnosticReq) (res *v1.DiagnosticRes, err error) {
return nil, gerror.NewCode(gcode.CodeNotImplemented)
}