55 lines
1.5 KiB
Go
55 lines
1.5 KiB
Go
// Code generated by goctl. DO NOT EDIT.
|
|
// goctl 1.10.2
|
|
// Source: water.proto
|
|
|
|
package server
|
|
|
|
import (
|
|
"context"
|
|
|
|
"lone-services/rpc/water/pb"
|
|
"lone-services/services/water/internal/logic"
|
|
"lone-services/services/water/internal/svc"
|
|
)
|
|
|
|
type WaterServer struct {
|
|
svcCtx *svc.ServiceContext
|
|
water.UnimplementedWaterServer
|
|
}
|
|
|
|
func NewWaterServer(svcCtx *svc.ServiceContext) *WaterServer {
|
|
return &WaterServer{
|
|
svcCtx: svcCtx,
|
|
}
|
|
}
|
|
|
|
func (s *WaterServer) WifiCheck(ctx context.Context, in *water.WifiCheckRequest) (*water.Response, error) {
|
|
l := logic.NewWifiCheckLogic(ctx, s.svcCtx)
|
|
return l.WifiCheck(in)
|
|
}
|
|
|
|
func (s *WaterServer) WifiSet(ctx context.Context, in *water.WifiSetRequest) (*water.Response, error) {
|
|
l := logic.NewWifiSetLogic(ctx, s.svcCtx)
|
|
return l.WifiSet(in)
|
|
}
|
|
|
|
func (s *WaterServer) AddLog(ctx context.Context, in *water.AddLogRequest) (*water.Response, error) {
|
|
l := logic.NewAddLogLogic(ctx, s.svcCtx)
|
|
return l.AddLog(in)
|
|
}
|
|
|
|
func (s *WaterServer) LogItems(ctx context.Context, in *water.LogItemsRequest) (*water.Response, error) {
|
|
l := logic.NewLogItemsLogic(ctx, s.svcCtx)
|
|
return l.LogItems(in)
|
|
}
|
|
|
|
func (s *WaterServer) Setting(ctx context.Context, in *water.SettingRequest) (*water.Response, error) {
|
|
l := logic.NewSettingLogic(ctx, s.svcCtx)
|
|
return l.Setting(in)
|
|
}
|
|
|
|
func (s *WaterServer) GetSetting(ctx context.Context, in *water.HostCodeRequest) (*water.Response, error) {
|
|
l := logic.NewGetSettingLogic(ctx, s.svcCtx)
|
|
return l.GetSetting(in)
|
|
}
|