add apis
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
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
This commit is contained in:
+478
-33
@@ -386,6 +386,394 @@ func (*EmptyRequest) Descriptor() ([]byte, []int) {
|
||||
return file_water_water_proto_rawDescGZIP(), []int{6}
|
||||
}
|
||||
|
||||
type AddWarningRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
HostCode string `protobuf:"bytes,1,opt,name=host_code,json=hostCode,proto3" json:"host_code,omitempty"`
|
||||
Time string `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"`
|
||||
Type int32 `protobuf:"varint,3,opt,name=type,proto3" json:"type,omitempty"`
|
||||
Content string `protobuf:"bytes,4,opt,name=content,proto3" json:"content,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *AddWarningRequest) Reset() {
|
||||
*x = AddWarningRequest{}
|
||||
mi := &file_water_water_proto_msgTypes[7]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *AddWarningRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*AddWarningRequest) ProtoMessage() {}
|
||||
|
||||
func (x *AddWarningRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_water_water_proto_msgTypes[7]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use AddWarningRequest.ProtoReflect.Descriptor instead.
|
||||
func (*AddWarningRequest) Descriptor() ([]byte, []int) {
|
||||
return file_water_water_proto_rawDescGZIP(), []int{7}
|
||||
}
|
||||
|
||||
func (x *AddWarningRequest) GetHostCode() string {
|
||||
if x != nil {
|
||||
return x.HostCode
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *AddWarningRequest) GetTime() string {
|
||||
if x != nil {
|
||||
return x.Time
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *AddWarningRequest) GetType() int32 {
|
||||
if x != nil {
|
||||
return x.Type
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *AddWarningRequest) GetContent() string {
|
||||
if x != nil {
|
||||
return x.Content
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type GetWarningItemsRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
|
||||
Size int32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
|
||||
HostCode string `protobuf:"bytes,3,opt,name=host_code,json=hostCode,proto3" json:"host_code,omitempty"`
|
||||
Type int32 `protobuf:"varint,4,opt,name=type,proto3" json:"type,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *GetWarningItemsRequest) Reset() {
|
||||
*x = GetWarningItemsRequest{}
|
||||
mi := &file_water_water_proto_msgTypes[8]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *GetWarningItemsRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*GetWarningItemsRequest) ProtoMessage() {}
|
||||
|
||||
func (x *GetWarningItemsRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_water_water_proto_msgTypes[8]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use GetWarningItemsRequest.ProtoReflect.Descriptor instead.
|
||||
func (*GetWarningItemsRequest) Descriptor() ([]byte, []int) {
|
||||
return file_water_water_proto_rawDescGZIP(), []int{8}
|
||||
}
|
||||
|
||||
func (x *GetWarningItemsRequest) GetPage() int32 {
|
||||
if x != nil {
|
||||
return x.Page
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *GetWarningItemsRequest) GetSize() int32 {
|
||||
if x != nil {
|
||||
return x.Size
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *GetWarningItemsRequest) GetHostCode() string {
|
||||
if x != nil {
|
||||
return x.HostCode
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *GetWarningItemsRequest) GetType() int32 {
|
||||
if x != nil {
|
||||
return x.Type
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type WarningStatusRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *WarningStatusRequest) Reset() {
|
||||
*x = WarningStatusRequest{}
|
||||
mi := &file_water_water_proto_msgTypes[9]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *WarningStatusRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*WarningStatusRequest) ProtoMessage() {}
|
||||
|
||||
func (x *WarningStatusRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_water_water_proto_msgTypes[9]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use WarningStatusRequest.ProtoReflect.Descriptor instead.
|
||||
func (*WarningStatusRequest) Descriptor() ([]byte, []int) {
|
||||
return file_water_water_proto_rawDescGZIP(), []int{9}
|
||||
}
|
||||
|
||||
func (x *WarningStatusRequest) GetId() int64 {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *WarningStatusRequest) GetStatus() int32 {
|
||||
if x != nil {
|
||||
return x.Status
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type ChangeAdminRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
HostCode string `protobuf:"bytes,1,opt,name=host_code,json=hostCode,proto3" json:"host_code,omitempty"`
|
||||
UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ChangeAdminRequest) Reset() {
|
||||
*x = ChangeAdminRequest{}
|
||||
mi := &file_water_water_proto_msgTypes[10]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ChangeAdminRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ChangeAdminRequest) ProtoMessage() {}
|
||||
|
||||
func (x *ChangeAdminRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_water_water_proto_msgTypes[10]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use ChangeAdminRequest.ProtoReflect.Descriptor instead.
|
||||
func (*ChangeAdminRequest) Descriptor() ([]byte, []int) {
|
||||
return file_water_water_proto_rawDescGZIP(), []int{10}
|
||||
}
|
||||
|
||||
func (x *ChangeAdminRequest) GetHostCode() string {
|
||||
if x != nil {
|
||||
return x.HostCode
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *ChangeAdminRequest) GetUserId() int64 {
|
||||
if x != nil {
|
||||
return x.UserId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type UsersRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
HostCode string `protobuf:"bytes,1,opt,name=host_code,json=hostCode,proto3" json:"host_code,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *UsersRequest) Reset() {
|
||||
*x = UsersRequest{}
|
||||
mi := &file_water_water_proto_msgTypes[11]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *UsersRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*UsersRequest) ProtoMessage() {}
|
||||
|
||||
func (x *UsersRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_water_water_proto_msgTypes[11]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use UsersRequest.ProtoReflect.Descriptor instead.
|
||||
func (*UsersRequest) Descriptor() ([]byte, []int) {
|
||||
return file_water_water_proto_rawDescGZIP(), []int{11}
|
||||
}
|
||||
|
||||
func (x *UsersRequest) GetHostCode() string {
|
||||
if x != nil {
|
||||
return x.HostCode
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type ApplyUserRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
HostCode string `protobuf:"bytes,1,opt,name=host_code,json=hostCode,proto3" json:"host_code,omitempty"`
|
||||
UserId int64 `protobuf:"varint,2,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ApplyUserRequest) Reset() {
|
||||
*x = ApplyUserRequest{}
|
||||
mi := &file_water_water_proto_msgTypes[12]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ApplyUserRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ApplyUserRequest) ProtoMessage() {}
|
||||
|
||||
func (x *ApplyUserRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_water_water_proto_msgTypes[12]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use ApplyUserRequest.ProtoReflect.Descriptor instead.
|
||||
func (*ApplyUserRequest) Descriptor() ([]byte, []int) {
|
||||
return file_water_water_proto_rawDescGZIP(), []int{12}
|
||||
}
|
||||
|
||||
func (x *ApplyUserRequest) GetHostCode() string {
|
||||
if x != nil {
|
||||
return x.HostCode
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *ApplyUserRequest) GetUserId() int64 {
|
||||
if x != nil {
|
||||
return x.UserId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type ApplyStatusRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ApplyStatusRequest) Reset() {
|
||||
*x = ApplyStatusRequest{}
|
||||
mi := &file_water_water_proto_msgTypes[13]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ApplyStatusRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ApplyStatusRequest) ProtoMessage() {}
|
||||
|
||||
func (x *ApplyStatusRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_water_water_proto_msgTypes[13]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use ApplyStatusRequest.ProtoReflect.Descriptor instead.
|
||||
func (*ApplyStatusRequest) Descriptor() ([]byte, []int) {
|
||||
return file_water_water_proto_rawDescGZIP(), []int{13}
|
||||
}
|
||||
|
||||
func (x *ApplyStatusRequest) GetId() int64 {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *ApplyStatusRequest) GetStatus() int32 {
|
||||
if x != nil {
|
||||
return x.Status
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type SettingRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
HostCode string `protobuf:"bytes,1,opt,name=host_code,json=hostCode,proto3" json:"host_code,omitempty"`
|
||||
@@ -401,7 +789,7 @@ type SettingRequest struct {
|
||||
|
||||
func (x *SettingRequest) Reset() {
|
||||
*x = SettingRequest{}
|
||||
mi := &file_water_water_proto_msgTypes[7]
|
||||
mi := &file_water_water_proto_msgTypes[14]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -413,7 +801,7 @@ func (x *SettingRequest) String() string {
|
||||
func (*SettingRequest) ProtoMessage() {}
|
||||
|
||||
func (x *SettingRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_water_water_proto_msgTypes[7]
|
||||
mi := &file_water_water_proto_msgTypes[14]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -426,7 +814,7 @@ func (x *SettingRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use SettingRequest.ProtoReflect.Descriptor instead.
|
||||
func (*SettingRequest) Descriptor() ([]byte, []int) {
|
||||
return file_water_water_proto_rawDescGZIP(), []int{7}
|
||||
return file_water_water_proto_rawDescGZIP(), []int{14}
|
||||
}
|
||||
|
||||
func (x *SettingRequest) GetHostCode() string {
|
||||
@@ -503,7 +891,31 @@ const file_water_water_proto_rawDesc = "" +
|
||||
"\x04code\x18\x01 \x01(\x05R\x04code\x12\x10\n" +
|
||||
"\x03msg\x18\x02 \x01(\tR\x03msg\x12\x12\n" +
|
||||
"\x04data\x18\x03 \x01(\tR\x04data\"\x0e\n" +
|
||||
"\fEmptyRequest\"\xeb\x01\n" +
|
||||
"\fEmptyRequest\"r\n" +
|
||||
"\x11AddWarningRequest\x12\x1b\n" +
|
||||
"\thost_code\x18\x01 \x01(\tR\bhostCode\x12\x12\n" +
|
||||
"\x04time\x18\x02 \x01(\tR\x04time\x12\x12\n" +
|
||||
"\x04type\x18\x03 \x01(\x05R\x04type\x12\x18\n" +
|
||||
"\acontent\x18\x04 \x01(\tR\acontent\"q\n" +
|
||||
"\x16GetWarningItemsRequest\x12\x12\n" +
|
||||
"\x04page\x18\x01 \x01(\x05R\x04page\x12\x12\n" +
|
||||
"\x04size\x18\x02 \x01(\x05R\x04size\x12\x1b\n" +
|
||||
"\thost_code\x18\x03 \x01(\tR\bhostCode\x12\x12\n" +
|
||||
"\x04type\x18\x04 \x01(\x05R\x04type\">\n" +
|
||||
"\x14WarningStatusRequest\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x16\n" +
|
||||
"\x06status\x18\x02 \x01(\x05R\x06status\"J\n" +
|
||||
"\x12changeAdminRequest\x12\x1b\n" +
|
||||
"\thost_code\x18\x01 \x01(\tR\bhostCode\x12\x17\n" +
|
||||
"\auser_id\x18\x02 \x01(\x03R\x06userId\"+\n" +
|
||||
"\fUsersRequest\x12\x1b\n" +
|
||||
"\thost_code\x18\x01 \x01(\tR\bhostCode\"H\n" +
|
||||
"\x10ApplyUserRequest\x12\x1b\n" +
|
||||
"\thost_code\x18\x01 \x01(\tR\bhostCode\x12\x17\n" +
|
||||
"\auser_id\x18\x02 \x01(\x03R\x06userId\"<\n" +
|
||||
"\x12ApplyStatusRequest\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x16\n" +
|
||||
"\x06status\x18\x02 \x01(\x05R\x06status\"\xeb\x01\n" +
|
||||
"\x0eSettingRequest\x12\x1b\n" +
|
||||
"\thost_code\x18\x01 \x01(\tR\bhostCode\x12!\n" +
|
||||
"\fsalt_percent\x18\x02 \x01(\x05R\vsaltPercent\x12\x1a\n" +
|
||||
@@ -512,7 +924,7 @@ const file_water_water_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"use_number\x18\x05 \x01(\x05R\tuseNumber\x12\x16\n" +
|
||||
"\x06soften\x18\x06 \x01(\x05R\x06soften\x12#\n" +
|
||||
"\rno_disturbing\x18\a \x01(\tR\fnoDisturbing2\x97\x04\n" +
|
||||
"\rno_disturbing\x18\a \x01(\tR\fnoDisturbing2\xfd\t\n" +
|
||||
"\x05Water\x12Z\n" +
|
||||
"\tWifiCheck\x12\x17.water.WifiCheckRequest\x1a\x0f.water.Response\"#\x82\xd3\xe4\x93\x02\x1d:\x01*\x12\x18/api/v3/water/wifi/check\x12T\n" +
|
||||
"\aWifiSet\x12\x15.water.WifiSetRequest\x1a\x0f.water.Response\"!\x82\xd3\xe4\x93\x02\x1b:\x01*\"\x16/api/v3/water/wifi/set\x12Q\n" +
|
||||
@@ -520,7 +932,17 @@ const file_water_water_proto_rawDesc = "" +
|
||||
"\bLogItems\x12\x16.water.LogItemsRequest\x1a\x0f.water.Response\"\"\x82\xd3\xe4\x93\x02\x1c:\x01*\x12\x17/api/v3/water/log/items\x12S\n" +
|
||||
"\aSetting\x12\x15.water.SettingRequest\x1a\x0f.water.Response\" \x82\xd3\xe4\x93\x02\x1a:\x01*\x12\x15/api/v3/water/setting\x12[\n" +
|
||||
"\n" +
|
||||
"GetSetting\x12\x16.water.HostCodeRequest\x1a\x0f.water.Response\"$\x82\xd3\xe4\x93\x02\x1e:\x01*\x12\x19/api/v3/water/get/settingB\tZ\a./waterb\x06proto3"
|
||||
"GetSetting\x12\x16.water.HostCodeRequest\x1a\x0f.water.Response\"$\x82\xd3\xe4\x93\x02\x1e:\x01*\x12\x19/api/v3/water/get/setting\x12S\n" +
|
||||
"\fGetWaterInfo\x12\x13.water.EmptyRequest\x1a\x0f.water.Response\"\x1d\x82\xd3\xe4\x93\x02\x17:\x01*\x12\x12/api/v3/water/info\x12^\n" +
|
||||
"\n" +
|
||||
"GetWarning\x12\x1d.water.GetWarningItemsRequest\x1a\x0f.water.Response\" \x82\xd3\xe4\x93\x02\x1a:\x01*\x12\x15/api/v3/water/warning\x12]\n" +
|
||||
"\n" +
|
||||
"AddWarning\x12\x18.water.AddWarningRequest\x1a\x0f.water.Response\"$\x82\xd3\xe4\x93\x02\x1e:\x01*\"\x19/api/v3/water/warning/add\x12f\n" +
|
||||
"\rWarningStatus\x12\x1b.water.WarningStatusRequest\x1a\x0f.water.Response\"'\x82\xd3\xe4\x93\x02!:\x01*\"\x1c/api/v3/water/warning/status\x12U\n" +
|
||||
"\tApplyUser\x12\x17.water.ApplyUserRequest\x1a\x0f.water.Response\"\x1e\x82\xd3\xe4\x93\x02\x18:\x01*\"\x13/api/v3/water/apply\x12`\n" +
|
||||
"\vApplyStatus\x12\x19.water.ApplyStatusRequest\x1a\x0f.water.Response\"%\x82\xd3\xe4\x93\x02\x1f:\x01*\"\x1a/api/v3/water/apply/status\x12`\n" +
|
||||
"\vchangeAdmin\x12\x19.water.changeAdminRequest\x1a\x0f.water.Response\"%\x82\xd3\xe4\x93\x02\x1f:\x01*\"\x1a/api/v3/water/change/admin\x12M\n" +
|
||||
"\x05Users\x12\x13.water.UsersRequest\x1a\x0f.water.Response\"\x1e\x82\xd3\xe4\x93\x02\x18:\x01*\"\x13/api/v3/water/usersB\tZ\a./waterb\x06proto3"
|
||||
|
||||
var (
|
||||
file_water_water_proto_rawDescOnce sync.Once
|
||||
@@ -534,35 +956,58 @@ func file_water_water_proto_rawDescGZIP() []byte {
|
||||
return file_water_water_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_water_water_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
||||
var file_water_water_proto_msgTypes = make([]protoimpl.MessageInfo, 15)
|
||||
var file_water_water_proto_goTypes = []any{
|
||||
(*WifiCheckRequest)(nil), // 0: water.WifiCheckRequest
|
||||
(*WifiSetRequest)(nil), // 1: water.WifiSetRequest
|
||||
(*HostCodeRequest)(nil), // 2: water.HostCodeRequest
|
||||
(*LogItemsRequest)(nil), // 3: water.LogItemsRequest
|
||||
(*AddLogRequest)(nil), // 4: water.AddLogRequest
|
||||
(*Response)(nil), // 5: water.Response
|
||||
(*EmptyRequest)(nil), // 6: water.EmptyRequest
|
||||
(*SettingRequest)(nil), // 7: water.SettingRequest
|
||||
(*WifiCheckRequest)(nil), // 0: water.WifiCheckRequest
|
||||
(*WifiSetRequest)(nil), // 1: water.WifiSetRequest
|
||||
(*HostCodeRequest)(nil), // 2: water.HostCodeRequest
|
||||
(*LogItemsRequest)(nil), // 3: water.LogItemsRequest
|
||||
(*AddLogRequest)(nil), // 4: water.AddLogRequest
|
||||
(*Response)(nil), // 5: water.Response
|
||||
(*EmptyRequest)(nil), // 6: water.EmptyRequest
|
||||
(*AddWarningRequest)(nil), // 7: water.AddWarningRequest
|
||||
(*GetWarningItemsRequest)(nil), // 8: water.GetWarningItemsRequest
|
||||
(*WarningStatusRequest)(nil), // 9: water.WarningStatusRequest
|
||||
(*ChangeAdminRequest)(nil), // 10: water.changeAdminRequest
|
||||
(*UsersRequest)(nil), // 11: water.UsersRequest
|
||||
(*ApplyUserRequest)(nil), // 12: water.ApplyUserRequest
|
||||
(*ApplyStatusRequest)(nil), // 13: water.ApplyStatusRequest
|
||||
(*SettingRequest)(nil), // 14: water.SettingRequest
|
||||
}
|
||||
var file_water_water_proto_depIdxs = []int32{
|
||||
0, // 0: water.Water.WifiCheck:input_type -> water.WifiCheckRequest
|
||||
1, // 1: water.Water.WifiSet:input_type -> water.WifiSetRequest
|
||||
4, // 2: water.Water.AddLog:input_type -> water.AddLogRequest
|
||||
3, // 3: water.Water.LogItems:input_type -> water.LogItemsRequest
|
||||
7, // 4: water.Water.Setting:input_type -> water.SettingRequest
|
||||
2, // 5: water.Water.GetSetting:input_type -> water.HostCodeRequest
|
||||
5, // 6: water.Water.WifiCheck:output_type -> water.Response
|
||||
5, // 7: water.Water.WifiSet:output_type -> water.Response
|
||||
5, // 8: water.Water.AddLog:output_type -> water.Response
|
||||
5, // 9: water.Water.LogItems:output_type -> water.Response
|
||||
5, // 10: water.Water.Setting:output_type -> water.Response
|
||||
5, // 11: water.Water.GetSetting:output_type -> water.Response
|
||||
6, // [6:12] is the sub-list for method output_type
|
||||
0, // [0:6] is the sub-list for method input_type
|
||||
0, // [0:0] is the sub-list for extension type_name
|
||||
0, // [0:0] is the sub-list for extension extendee
|
||||
0, // [0:0] is the sub-list for field type_name
|
||||
0, // 0: water.Water.WifiCheck:input_type -> water.WifiCheckRequest
|
||||
1, // 1: water.Water.WifiSet:input_type -> water.WifiSetRequest
|
||||
4, // 2: water.Water.AddLog:input_type -> water.AddLogRequest
|
||||
3, // 3: water.Water.LogItems:input_type -> water.LogItemsRequest
|
||||
14, // 4: water.Water.Setting:input_type -> water.SettingRequest
|
||||
2, // 5: water.Water.GetSetting:input_type -> water.HostCodeRequest
|
||||
6, // 6: water.Water.GetWaterInfo:input_type -> water.EmptyRequest
|
||||
8, // 7: water.Water.GetWarning:input_type -> water.GetWarningItemsRequest
|
||||
7, // 8: water.Water.AddWarning:input_type -> water.AddWarningRequest
|
||||
9, // 9: water.Water.WarningStatus:input_type -> water.WarningStatusRequest
|
||||
12, // 10: water.Water.ApplyUser:input_type -> water.ApplyUserRequest
|
||||
13, // 11: water.Water.ApplyStatus:input_type -> water.ApplyStatusRequest
|
||||
10, // 12: water.Water.changeAdmin:input_type -> water.changeAdminRequest
|
||||
11, // 13: water.Water.Users:input_type -> water.UsersRequest
|
||||
5, // 14: water.Water.WifiCheck:output_type -> water.Response
|
||||
5, // 15: water.Water.WifiSet:output_type -> water.Response
|
||||
5, // 16: water.Water.AddLog:output_type -> water.Response
|
||||
5, // 17: water.Water.LogItems:output_type -> water.Response
|
||||
5, // 18: water.Water.Setting:output_type -> water.Response
|
||||
5, // 19: water.Water.GetSetting:output_type -> water.Response
|
||||
5, // 20: water.Water.GetWaterInfo:output_type -> water.Response
|
||||
5, // 21: water.Water.GetWarning:output_type -> water.Response
|
||||
5, // 22: water.Water.AddWarning:output_type -> water.Response
|
||||
5, // 23: water.Water.WarningStatus:output_type -> water.Response
|
||||
5, // 24: water.Water.ApplyUser:output_type -> water.Response
|
||||
5, // 25: water.Water.ApplyStatus:output_type -> water.Response
|
||||
5, // 26: water.Water.changeAdmin:output_type -> water.Response
|
||||
5, // 27: water.Water.Users:output_type -> water.Response
|
||||
14, // [14:28] is the sub-list for method output_type
|
||||
0, // [0:14] is the sub-list for method input_type
|
||||
0, // [0:0] is the sub-list for extension type_name
|
||||
0, // [0:0] is the sub-list for extension extendee
|
||||
0, // [0:0] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_water_water_proto_init() }
|
||||
@@ -576,7 +1021,7 @@ func file_water_water_proto_init() {
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_water_water_proto_rawDesc), len(file_water_water_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 8,
|
||||
NumMessages: 15,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
|
||||
@@ -19,12 +19,20 @@ import (
|
||||
const _ = grpc.SupportPackageIsVersion9
|
||||
|
||||
const (
|
||||
Water_WifiCheck_FullMethodName = "/water.Water/WifiCheck"
|
||||
Water_WifiSet_FullMethodName = "/water.Water/WifiSet"
|
||||
Water_AddLog_FullMethodName = "/water.Water/AddLog"
|
||||
Water_LogItems_FullMethodName = "/water.Water/LogItems"
|
||||
Water_Setting_FullMethodName = "/water.Water/Setting"
|
||||
Water_GetSetting_FullMethodName = "/water.Water/GetSetting"
|
||||
Water_WifiCheck_FullMethodName = "/water.Water/WifiCheck"
|
||||
Water_WifiSet_FullMethodName = "/water.Water/WifiSet"
|
||||
Water_AddLog_FullMethodName = "/water.Water/AddLog"
|
||||
Water_LogItems_FullMethodName = "/water.Water/LogItems"
|
||||
Water_Setting_FullMethodName = "/water.Water/Setting"
|
||||
Water_GetSetting_FullMethodName = "/water.Water/GetSetting"
|
||||
Water_GetWaterInfo_FullMethodName = "/water.Water/GetWaterInfo"
|
||||
Water_GetWarning_FullMethodName = "/water.Water/GetWarning"
|
||||
Water_AddWarning_FullMethodName = "/water.Water/AddWarning"
|
||||
Water_WarningStatus_FullMethodName = "/water.Water/WarningStatus"
|
||||
Water_ApplyUser_FullMethodName = "/water.Water/ApplyUser"
|
||||
Water_ApplyStatus_FullMethodName = "/water.Water/ApplyStatus"
|
||||
Water_ChangeAdmin_FullMethodName = "/water.Water/changeAdmin"
|
||||
Water_Users_FullMethodName = "/water.Water/Users"
|
||||
)
|
||||
|
||||
// WaterClient is the client API for Water service.
|
||||
@@ -37,6 +45,22 @@ type WaterClient interface {
|
||||
LogItems(ctx context.Context, in *LogItemsRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
Setting(ctx context.Context, in *SettingRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
GetSetting(ctx context.Context, in *HostCodeRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
// 获取月,日量
|
||||
GetWaterInfo(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
// 获取 流量计 液位计 侵水计 超声 四种设备异常警告
|
||||
GetWarning(ctx context.Context, in *GetWarningItemsRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
// 添加 流量计 液位计 侵水计 超声 四种设备异常警
|
||||
AddWarning(ctx context.Context, in *AddWarningRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
// 状态
|
||||
WarningStatus(ctx context.Context, in *WarningStatusRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
// 申请
|
||||
ApplyUser(ctx context.Context, in *ApplyUserRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
// 同意
|
||||
ApplyStatus(ctx context.Context, in *ApplyStatusRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
// 转移管理人
|
||||
ChangeAdmin(ctx context.Context, in *ChangeAdminRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
// 管理人列表
|
||||
Users(ctx context.Context, in *UsersRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
}
|
||||
|
||||
type waterClient struct {
|
||||
@@ -107,6 +131,86 @@ func (c *waterClient) GetSetting(ctx context.Context, in *HostCodeRequest, opts
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *waterClient) GetWaterInfo(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
err := c.cc.Invoke(ctx, Water_GetWaterInfo_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *waterClient) GetWarning(ctx context.Context, in *GetWarningItemsRequest, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
err := c.cc.Invoke(ctx, Water_GetWarning_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *waterClient) AddWarning(ctx context.Context, in *AddWarningRequest, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
err := c.cc.Invoke(ctx, Water_AddWarning_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *waterClient) WarningStatus(ctx context.Context, in *WarningStatusRequest, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
err := c.cc.Invoke(ctx, Water_WarningStatus_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *waterClient) ApplyUser(ctx context.Context, in *ApplyUserRequest, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
err := c.cc.Invoke(ctx, Water_ApplyUser_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *waterClient) ApplyStatus(ctx context.Context, in *ApplyStatusRequest, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
err := c.cc.Invoke(ctx, Water_ApplyStatus_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *waterClient) ChangeAdmin(ctx context.Context, in *ChangeAdminRequest, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
err := c.cc.Invoke(ctx, Water_ChangeAdmin_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *waterClient) Users(ctx context.Context, in *UsersRequest, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
err := c.cc.Invoke(ctx, Water_Users_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// WaterServer is the server API for Water service.
|
||||
// All implementations must embed UnimplementedWaterServer
|
||||
// for forward compatibility.
|
||||
@@ -117,6 +221,22 @@ type WaterServer interface {
|
||||
LogItems(context.Context, *LogItemsRequest) (*Response, error)
|
||||
Setting(context.Context, *SettingRequest) (*Response, error)
|
||||
GetSetting(context.Context, *HostCodeRequest) (*Response, error)
|
||||
// 获取月,日量
|
||||
GetWaterInfo(context.Context, *EmptyRequest) (*Response, error)
|
||||
// 获取 流量计 液位计 侵水计 超声 四种设备异常警告
|
||||
GetWarning(context.Context, *GetWarningItemsRequest) (*Response, error)
|
||||
// 添加 流量计 液位计 侵水计 超声 四种设备异常警
|
||||
AddWarning(context.Context, *AddWarningRequest) (*Response, error)
|
||||
// 状态
|
||||
WarningStatus(context.Context, *WarningStatusRequest) (*Response, error)
|
||||
// 申请
|
||||
ApplyUser(context.Context, *ApplyUserRequest) (*Response, error)
|
||||
// 同意
|
||||
ApplyStatus(context.Context, *ApplyStatusRequest) (*Response, error)
|
||||
// 转移管理人
|
||||
ChangeAdmin(context.Context, *ChangeAdminRequest) (*Response, error)
|
||||
// 管理人列表
|
||||
Users(context.Context, *UsersRequest) (*Response, error)
|
||||
mustEmbedUnimplementedWaterServer()
|
||||
}
|
||||
|
||||
@@ -145,6 +265,30 @@ func (UnimplementedWaterServer) Setting(context.Context, *SettingRequest) (*Resp
|
||||
func (UnimplementedWaterServer) GetSetting(context.Context, *HostCodeRequest) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method GetSetting not implemented")
|
||||
}
|
||||
func (UnimplementedWaterServer) GetWaterInfo(context.Context, *EmptyRequest) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method GetWaterInfo not implemented")
|
||||
}
|
||||
func (UnimplementedWaterServer) GetWarning(context.Context, *GetWarningItemsRequest) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method GetWarning not implemented")
|
||||
}
|
||||
func (UnimplementedWaterServer) AddWarning(context.Context, *AddWarningRequest) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method AddWarning not implemented")
|
||||
}
|
||||
func (UnimplementedWaterServer) WarningStatus(context.Context, *WarningStatusRequest) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method WarningStatus not implemented")
|
||||
}
|
||||
func (UnimplementedWaterServer) ApplyUser(context.Context, *ApplyUserRequest) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method ApplyUser not implemented")
|
||||
}
|
||||
func (UnimplementedWaterServer) ApplyStatus(context.Context, *ApplyStatusRequest) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method ApplyStatus not implemented")
|
||||
}
|
||||
func (UnimplementedWaterServer) ChangeAdmin(context.Context, *ChangeAdminRequest) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method ChangeAdmin not implemented")
|
||||
}
|
||||
func (UnimplementedWaterServer) Users(context.Context, *UsersRequest) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Users not implemented")
|
||||
}
|
||||
func (UnimplementedWaterServer) mustEmbedUnimplementedWaterServer() {}
|
||||
func (UnimplementedWaterServer) testEmbeddedByValue() {}
|
||||
|
||||
@@ -274,6 +418,150 @@ func _Water_GetSetting_Handler(srv interface{}, ctx context.Context, dec func(in
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Water_GetWaterInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(EmptyRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(WaterServer).GetWaterInfo(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Water_GetWaterInfo_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(WaterServer).GetWaterInfo(ctx, req.(*EmptyRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Water_GetWarning_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetWarningItemsRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(WaterServer).GetWarning(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Water_GetWarning_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(WaterServer).GetWarning(ctx, req.(*GetWarningItemsRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Water_AddWarning_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(AddWarningRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(WaterServer).AddWarning(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Water_AddWarning_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(WaterServer).AddWarning(ctx, req.(*AddWarningRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Water_WarningStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(WarningStatusRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(WaterServer).WarningStatus(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Water_WarningStatus_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(WaterServer).WarningStatus(ctx, req.(*WarningStatusRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Water_ApplyUser_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ApplyUserRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(WaterServer).ApplyUser(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Water_ApplyUser_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(WaterServer).ApplyUser(ctx, req.(*ApplyUserRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Water_ApplyStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ApplyStatusRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(WaterServer).ApplyStatus(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Water_ApplyStatus_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(WaterServer).ApplyStatus(ctx, req.(*ApplyStatusRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Water_ChangeAdmin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ChangeAdminRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(WaterServer).ChangeAdmin(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Water_ChangeAdmin_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(WaterServer).ChangeAdmin(ctx, req.(*ChangeAdminRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Water_Users_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UsersRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(WaterServer).Users(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Water_Users_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(WaterServer).Users(ctx, req.(*UsersRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// Water_ServiceDesc is the grpc.ServiceDesc for Water service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
@@ -305,6 +593,38 @@ var Water_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "GetSetting",
|
||||
Handler: _Water_GetSetting_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetWaterInfo",
|
||||
Handler: _Water_GetWaterInfo_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetWarning",
|
||||
Handler: _Water_GetWarning_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "AddWarning",
|
||||
Handler: _Water_AddWarning_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "WarningStatus",
|
||||
Handler: _Water_WarningStatus_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ApplyUser",
|
||||
Handler: _Water_ApplyUser_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ApplyStatus",
|
||||
Handler: _Water_ApplyStatus_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "changeAdmin",
|
||||
Handler: _Water_ChangeAdmin_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Users",
|
||||
Handler: _Water_Users_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "water/water.proto",
|
||||
|
||||
Reference in New Issue
Block a user