feat: 新增设备登录功能,包括API接口、RPC服务、逻辑处理和相关数据类型及错误码。
Build docker and publish / prepare (20.15.1) (push) Successful in 11s
Build docker and publish / build (map[dockerfile:deploy/Dockerfile.admin image_name:ppanel-admin name:admin]) (push) Successful in 4m32s
Build docker and publish / build (map[dockerfile:deploy/Dockerfile.api image_name:ppanel-api name:api]) (push) Successful in 8m6s
Build docker and publish / build (map[dockerfile:deploy/Dockerfile.node image_name:ppanel-node name:node]) (push) Successful in 4m26s
Build docker and publish / build (map[dockerfile:deploy/Dockerfile.rpc-core image_name:ppanel-rpc-core name:rpc-core]) (push) Successful in 8m23s
Build docker and publish / build (map[dockerfile:deploy/Dockerfile.scheduler image_name:ppanel-scheduler name:scheduler]) (push) Successful in 4m1s
Build docker and publish / deploy (push) Successful in 45s
Build docker and publish / notify (push) Successful in 3s
Build docker and publish / build (map[dockerfile:deploy/Dockerfile.queue image_name:ppanel-queue name:queue]) (push) Successful in 3m55s
Build docker and publish / prepare (20.15.1) (push) Successful in 11s
Build docker and publish / build (map[dockerfile:deploy/Dockerfile.admin image_name:ppanel-admin name:admin]) (push) Successful in 4m32s
Build docker and publish / build (map[dockerfile:deploy/Dockerfile.api image_name:ppanel-api name:api]) (push) Successful in 8m6s
Build docker and publish / build (map[dockerfile:deploy/Dockerfile.node image_name:ppanel-node name:node]) (push) Successful in 4m26s
Build docker and publish / build (map[dockerfile:deploy/Dockerfile.rpc-core image_name:ppanel-rpc-core name:rpc-core]) (push) Successful in 8m23s
Build docker and publish / build (map[dockerfile:deploy/Dockerfile.scheduler image_name:ppanel-scheduler name:scheduler]) (push) Successful in 4m1s
Build docker and publish / deploy (push) Successful in 45s
Build docker and publish / notify (push) Successful in 3s
Build docker and publish / build (map[dockerfile:deploy/Dockerfile.queue image_name:ppanel-queue name:queue]) (push) Successful in 3m55s
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
// goctl 1.9.2
|
||||
// Source: core.proto
|
||||
|
||||
package coreclient
|
||||
package coreClient
|
||||
|
||||
import (
|
||||
"context"
|
||||
@@ -14,12 +14,14 @@ import (
|
||||
)
|
||||
|
||||
type (
|
||||
BasicResponse = core.BasicResponse
|
||||
Empty = core.Empty
|
||||
GetNodeInfoReq = core.GetNodeInfoReq
|
||||
GetNodeInfoResp = core.GetNodeInfoResp
|
||||
GetUserInfoReq = core.GetUserInfoReq
|
||||
GetUserInfoResp = core.GetUserInfoResp
|
||||
BasicResponse = core.BasicResponse
|
||||
DeviceLoginReq = core.DeviceLoginReq
|
||||
DeviceLoginResp = core.DeviceLoginResp
|
||||
Empty = core.Empty
|
||||
GetNodeInfoReq = core.GetNodeInfoReq
|
||||
GetNodeInfoResp = core.GetNodeInfoResp
|
||||
GetUserInfoReq = core.GetUserInfoReq
|
||||
GetUserInfoResp = core.GetUserInfoResp
|
||||
|
||||
Core interface {
|
||||
// Ping 检查服务健康状态
|
||||
@@ -28,6 +30,8 @@ type (
|
||||
GetUserInfo(ctx context.Context, in *GetUserInfoReq, opts ...grpc.CallOption) (*GetUserInfoResp, error)
|
||||
// 节点相关
|
||||
GetNodeInfo(ctx context.Context, in *GetNodeInfoReq, opts ...grpc.CallOption) (*GetNodeInfoResp, error)
|
||||
// 设备登录
|
||||
DeviceLogin(ctx context.Context, in *DeviceLoginReq, opts ...grpc.CallOption) (*DeviceLoginResp, error)
|
||||
}
|
||||
|
||||
defaultCore struct {
|
||||
@@ -58,3 +62,9 @@ func (m *defaultCore) GetNodeInfo(ctx context.Context, in *GetNodeInfoReq, opts
|
||||
client := core.NewCoreClient(m.cli.Conn())
|
||||
return client.GetNodeInfo(ctx, in, opts...)
|
||||
}
|
||||
|
||||
// 设备登录
|
||||
func (m *defaultCore) DeviceLogin(ctx context.Context, in *DeviceLoginReq, opts ...grpc.CallOption) (*DeviceLoginResp, error) {
|
||||
client := core.NewCoreClient(m.cli.Conn())
|
||||
return client.DeviceLogin(ctx, in, opts...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user