6b8500ac5e
CI / changes (push) Successful in 1m29s
CI / ad (push) Successful in 0s
CI / admin (push) Successful in 0s
CI / bff (push) Successful in 29s
CI / chore (push) Successful in 0s
CI / equipment (push) Successful in 0s
CI / express (push) Successful in 0s
CI / factory (push) Successful in 0s
CI / message (push) Successful in 1s
CI / order (push) Successful in 0s
CI / payment (push) Successful in 0s
CI / product (push) Successful in 1s
CI / record (push) Successful in 0s
CI / sale (push) Successful in 20s
CI / support (push) Successful in 1s
CI / task (push) Successful in 0s
CI / user (push) Successful in 0s
CI / wecom (push) Successful in 1s
90 lines
2.9 KiB
Go
90 lines
2.9 KiB
Go
// Code generated by goctl. DO NOT EDIT.
|
|
// goctl 1.10.2
|
|
// Source: percutaneous.proto
|
|
|
|
package server
|
|
|
|
import (
|
|
"context"
|
|
|
|
"lone-services/rpc/percutaneous/pb"
|
|
"lone-services/services/percutaneous/internal/logic"
|
|
"lone-services/services/percutaneous/internal/svc"
|
|
)
|
|
|
|
type PercutaneousServer struct {
|
|
svcCtx *svc.ServiceContext
|
|
percutaneous.UnimplementedPercutaneousServer
|
|
}
|
|
|
|
func NewPercutaneousServer(svcCtx *svc.ServiceContext) *PercutaneousServer {
|
|
return &PercutaneousServer{
|
|
svcCtx: svcCtx,
|
|
}
|
|
}
|
|
|
|
func (s *PercutaneousServer) WifiCheck(ctx context.Context, in *percutaneous.WifiCheckRequest) (*percutaneous.Response, error) {
|
|
l := logic.NewWifiCheckLogic(ctx, s.svcCtx)
|
|
return l.WifiCheck(in)
|
|
}
|
|
|
|
func (s *PercutaneousServer) WifiSet(ctx context.Context, in *percutaneous.WifiSetRequest) (*percutaneous.Response, error) {
|
|
l := logic.NewWifiSetLogic(ctx, s.svcCtx)
|
|
return l.WifiSet(in)
|
|
}
|
|
|
|
func (s *PercutaneousServer) Use(ctx context.Context, in *percutaneous.UseRequest) (*percutaneous.Response, error) {
|
|
l := logic.NewUseLogic(ctx, s.svcCtx)
|
|
return l.Use(in)
|
|
}
|
|
|
|
func (s *PercutaneousServer) UsedLog(ctx context.Context, in *percutaneous.UsedLogRequest) (*percutaneous.Response, error) {
|
|
l := logic.NewUsedLogLogic(ctx, s.svcCtx)
|
|
return l.UsedLog(in)
|
|
}
|
|
|
|
func (s *PercutaneousServer) AddUser(ctx context.Context, in *percutaneous.AddUserRequest) (*percutaneous.Response, error) {
|
|
l := logic.NewAddUserLogic(ctx, s.svcCtx)
|
|
return l.AddUser(in)
|
|
}
|
|
|
|
func (s *PercutaneousServer) UserItems(ctx context.Context, in *percutaneous.UserItemsRequest) (*percutaneous.Response, error) {
|
|
l := logic.NewUserItemsLogic(ctx, s.svcCtx)
|
|
return l.UserItems(in)
|
|
}
|
|
|
|
func (s *PercutaneousServer) Weather(ctx context.Context, in *percutaneous.EmptyRequest) (*percutaneous.Response, error) {
|
|
l := logic.NewWeatherLogic(ctx, s.svcCtx)
|
|
return l.Weather(in)
|
|
}
|
|
|
|
// 登录二维码
|
|
func (s *PercutaneousServer) LoginQR(ctx context.Context, in *percutaneous.LoginQRRequest) (*percutaneous.Response, error) {
|
|
l := logic.NewLoginQRLogic(ctx, s.svcCtx)
|
|
return l.LoginQR(in)
|
|
}
|
|
|
|
// 添加用户
|
|
func (s *PercutaneousServer) AddUserQR(ctx context.Context, in *percutaneous.AddUserQRRequest) (*percutaneous.Response, error) {
|
|
l := logic.NewAddUserQRLogic(ctx, s.svcCtx)
|
|
return l.AddUserQR(in)
|
|
}
|
|
|
|
// WebSocket登录
|
|
func (s *PercutaneousServer) WsLoginStream(stream percutaneous.Percutaneous_WsLoginStreamServer) error {
|
|
l := logic.NewWsLoginStreamLogic(stream.Context(), s.svcCtx)
|
|
return l.WsLoginStream(stream)
|
|
}
|
|
|
|
// 添加用户
|
|
func (s *PercutaneousServer) WsAddUserStream(stream percutaneous.Percutaneous_WsAddUserStreamServer) error {
|
|
l := logic.NewWsAddUserStreamLogic(stream.Context(), s.svcCtx)
|
|
return l.WsAddUserStream(stream)
|
|
}
|
|
|
|
// 使用
|
|
func (s *PercutaneousServer) WsUsedStream(stream percutaneous.Percutaneous_WsUsedStreamServer) error {
|
|
l := logic.NewWsUsedStreamLogic(stream.Context(), s.svcCtx)
|
|
return l.WsUsedStream(stream)
|
|
}
|