309d5278cb
CI / changes (push) Successful in 1m31s
CI / ad (push) Successful in 0s
CI / admin (push) Successful in 0s
CI / aiserver (push) Successful in 0s
CI / analysis (push) Successful in 1s
CI / bff (push) Successful in 26s
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 / percutaneous (push) Successful in 0s
CI / product (push) Successful in 0s
CI / record (push) Successful in 0s
CI / sale (push) Successful in 0s
CI / store (push) Successful in 1s
CI / support (push) Successful in 0s
CI / task (push) Successful in 0s
CI / user (push) Successful in 0s
CI / water (push) Failing after 8s
CI / wecom (push) Successful in 0s
CI / ws (push) Successful in 0s
103 lines
3.1 KiB
Go
103 lines
3.1 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)
|
|
}
|
|
|
|
// 获取月,日量
|
|
func (s *WaterServer) GetWaterInfo(ctx context.Context, in *water.EmptyRequest) (*water.Response, error) {
|
|
l := logic.NewGetWaterInfoLogic(ctx, s.svcCtx)
|
|
return l.GetWaterInfo(in)
|
|
}
|
|
|
|
// 获取 流量计 液位计 侵水计 超声 四种设备异常警告
|
|
func (s *WaterServer) GetWarning(ctx context.Context, in *water.GetWarningItemsRequest) (*water.Response, error) {
|
|
l := logic.NewGetWarningLogic(ctx, s.svcCtx)
|
|
return l.GetWarning(in)
|
|
}
|
|
|
|
// 添加 流量计 液位计 侵水计 超声 四种设备异常警
|
|
func (s *WaterServer) AddWarning(ctx context.Context, in *water.AddWarningRequest) (*water.Response, error) {
|
|
l := logic.NewAddWarningLogic(ctx, s.svcCtx)
|
|
return l.AddWarning(in)
|
|
}
|
|
|
|
// 状态
|
|
func (s *WaterServer) WarningStatus(ctx context.Context, in *water.WarningStatusRequest) (*water.Response, error) {
|
|
l := logic.NewWarningStatusLogic(ctx, s.svcCtx)
|
|
return l.WarningStatus(in)
|
|
}
|
|
|
|
// 申请
|
|
func (s *WaterServer) ApplyUser(ctx context.Context, in *water.ApplyUserRequest) (*water.Response, error) {
|
|
l := logic.NewApplyUserLogic(ctx, s.svcCtx)
|
|
return l.ApplyUser(in)
|
|
}
|
|
|
|
// 同意
|
|
func (s *WaterServer) ApplyStatus(ctx context.Context, in *water.ApplyStatusRequest) (*water.Response, error) {
|
|
l := logic.NewApplyStatusLogic(ctx, s.svcCtx)
|
|
return l.ApplyStatus(in)
|
|
}
|
|
|
|
// 转移管理人
|
|
func (s *WaterServer) ChangeAdmin(ctx context.Context, in *water.ChangeAdminRequest) (*water.Response, error) {
|
|
l := logic.NewChangeAdminLogic(ctx, s.svcCtx)
|
|
return l.ChangeAdmin(in)
|
|
}
|
|
|
|
// 管理人列表
|
|
func (s *WaterServer) Users(ctx context.Context, in *water.UsersRequest) (*water.Response, error) {
|
|
l := logic.NewUsersLogic(ctx, s.svcCtx)
|
|
return l.Users(in)
|
|
}
|