feat: rebind mobile
This commit is contained in:
@@ -42,3 +42,8 @@ func (s *AnalysisServer) Switch(ctx context.Context, in *analysis.SwitchReq) (*a
|
||||
l := analysislogic.NewSwitchLogic(ctx, s.svcCtx)
|
||||
return l.Switch(in)
|
||||
}
|
||||
|
||||
func (s *AnalysisServer) QrcodeInfo(ctx context.Context, in *analysis.QrcodeInfoReq) (*analysis.Response, error) {
|
||||
l := analysislogic.NewQrcodeInfoLogic(ctx, s.svcCtx)
|
||||
return l.QrcodeInfo(in)
|
||||
}
|
||||
|
||||
@@ -5,7 +5,10 @@
|
||||
package server
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"lone-services/rpc/analysis/pb"
|
||||
"lone-services/services/analysis/internal/logic/analysisdevice"
|
||||
"lone-services/services/analysis/internal/svc"
|
||||
)
|
||||
|
||||
@@ -19,3 +22,18 @@ func NewAnalysisDeviceServer(svcCtx *svc.ServiceContext) *AnalysisDeviceServer {
|
||||
svcCtx: svcCtx,
|
||||
}
|
||||
}
|
||||
|
||||
func (s *AnalysisDeviceServer) Policy(ctx context.Context, in *analysis.DevicePolicyReq) (*analysis.Response, error) {
|
||||
l := analysisdevicelogic.NewPolicyLogic(ctx, s.svcCtx)
|
||||
return l.Policy(in)
|
||||
}
|
||||
|
||||
func (s *AnalysisDeviceServer) Display(ctx context.Context, in *analysis.DeviceDisplayReq) (*analysis.Response, error) {
|
||||
l := analysisdevicelogic.NewDisplayLogic(ctx, s.svcCtx)
|
||||
return l.Display(in)
|
||||
}
|
||||
|
||||
func (s *AnalysisDeviceServer) OssCallback(ctx context.Context, in *analysis.OssCallbackReq) (*analysis.OssCallbackResp, error) {
|
||||
l := analysisdevicelogic.NewOssCallbackLogic(ctx, s.svcCtx)
|
||||
return l.OssCallback(in)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user