|
@@ -1,6 +1,6 @@
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
// versions:
|
|
|
-// protoc-gen-go v1.26.0
|
|
|
+// protoc-gen-go v1.25.0
|
|
|
// protoc v3.15.1
|
|
|
// source: resourcesCenter.proto
|
|
|
|
|
@@ -8,6 +8,7 @@ package resourcesCenter
|
|
|
|
|
|
import (
|
|
|
context "context"
|
|
|
+ proto "github.com/golang/protobuf/proto"
|
|
|
grpc "google.golang.org/grpc"
|
|
|
codes "google.golang.org/grpc/codes"
|
|
|
status "google.golang.org/grpc/status"
|
|
@@ -24,6 +25,11 @@ const (
|
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
|
)
|
|
|
|
|
|
+// This is a compile-time assertion that a sufficiently up-to-date version
|
|
|
+// of the legacy proto package is being used.
|
|
|
+const _ = proto.ProtoPackageIsVersion4
|
|
|
+
|
|
|
+//option go_package = "resourcesCenter/";
|
|
|
type Response struct {
|
|
|
state protoimpl.MessageState
|
|
|
sizeCache protoimpl.SizeCache
|
|
@@ -393,12 +399,12 @@ type ResourceBalance struct {
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
- Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
- EmployeeId int64 `protobuf:"varint,2,opt,name=employeeId,proto3" json:"employeeId,omitempty"` //人员标识
|
|
|
- Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` //资源名称
|
|
|
- Number int64 `protobuf:"varint,4,opt,name=number,proto3" json:"number,omitempty"` //剩余数量
|
|
|
- Code string `protobuf:"bytes,5,opt,name=code,proto3" json:"code,omitempty"` //资源代码
|
|
|
- Spec string `protobuf:"bytes,6,opt,name=spec,proto3" json:"spec,omitempty"` //规格
|
|
|
+ Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
+ EmployeeId int64 `protobuf:"varint,2,opt,name=employeeId,proto3" json:"employeeId,omitempty"` //人员标识
|
|
|
+ Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` //资源名称
|
|
|
+ Number int64 `protobuf:"varint,4,opt,name=number,proto3" json:"number,omitempty"` //剩余数量
|
|
|
+ ResourceType string `protobuf:"bytes,5,opt,name=resourceType,proto3" json:"resourceType,omitempty"` //资源代码
|
|
|
+ Spec string `protobuf:"bytes,6,opt,name=spec,proto3" json:"spec,omitempty"` //规格
|
|
|
}
|
|
|
|
|
|
func (x *ResourceBalance) Reset() {
|
|
@@ -461,9 +467,9 @@ func (x *ResourceBalance) GetNumber() int64 {
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
-func (x *ResourceBalance) GetCode() string {
|
|
|
+func (x *ResourceBalance) GetResourceType() string {
|
|
|
if x != nil {
|
|
|
- return x.Code
|
|
|
+ return x.ResourceType
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
@@ -594,17 +600,16 @@ func (x *ConsumeRecord) GetDepartmentId() int64 {
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
-//根据账户标识查询资源权限请求参数
|
|
|
-type ResourcesAuthReq struct {
|
|
|
+type ResourcesReq struct {
|
|
|
state protoimpl.MessageState
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
- EmployeeId int64 `protobuf:"varint,1,opt,name=employeeId,proto3" json:"employeeId,omitempty"`
|
|
|
+ AccountId int64 `protobuf:"varint,1,opt,name=accountId,proto3" json:"accountId,omitempty"`
|
|
|
}
|
|
|
|
|
|
-func (x *ResourcesAuthReq) Reset() {
|
|
|
- *x = ResourcesAuthReq{}
|
|
|
+func (x *ResourcesReq) Reset() {
|
|
|
+ *x = ResourcesReq{}
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
mi := &file_resourcesCenter_proto_msgTypes[6]
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
@@ -612,13 +617,13 @@ func (x *ResourcesAuthReq) Reset() {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-func (x *ResourcesAuthReq) String() string {
|
|
|
+func (x *ResourcesReq) String() string {
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
}
|
|
|
|
|
|
-func (*ResourcesAuthReq) ProtoMessage() {}
|
|
|
+func (*ResourcesReq) ProtoMessage() {}
|
|
|
|
|
|
-func (x *ResourcesAuthReq) ProtoReflect() protoreflect.Message {
|
|
|
+func (x *ResourcesReq) ProtoReflect() protoreflect.Message {
|
|
|
mi := &file_resourcesCenter_proto_msgTypes[6]
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
@@ -630,18 +635,19 @@ func (x *ResourcesAuthReq) ProtoReflect() protoreflect.Message {
|
|
|
return mi.MessageOf(x)
|
|
|
}
|
|
|
|
|
|
-// Deprecated: Use ResourcesAuthReq.ProtoReflect.Descriptor instead.
|
|
|
-func (*ResourcesAuthReq) Descriptor() ([]byte, []int) {
|
|
|
+// Deprecated: Use ResourcesReq.ProtoReflect.Descriptor instead.
|
|
|
+func (*ResourcesReq) Descriptor() ([]byte, []int) {
|
|
|
return file_resourcesCenter_proto_rawDescGZIP(), []int{6}
|
|
|
}
|
|
|
|
|
|
-func (x *ResourcesAuthReq) GetEmployeeId() int64 {
|
|
|
+func (x *ResourcesReq) GetAccountId() int64 {
|
|
|
if x != nil {
|
|
|
- return x.EmployeeId
|
|
|
+ return x.AccountId
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
+//根据账户标识查询资源权限请求参数
|
|
|
type ResourcesAuthRes struct {
|
|
|
state protoimpl.MessageState
|
|
|
sizeCache protoimpl.SizeCache
|
|
@@ -706,69 +712,6 @@ func (x *ResourcesAuthRes) GetData() []*ResourcesAuth {
|
|
|
}
|
|
|
|
|
|
//根据账户标识查询账户余额
|
|
|
-type AccountBalanceReq struct {
|
|
|
- state protoimpl.MessageState
|
|
|
- sizeCache protoimpl.SizeCache
|
|
|
- unknownFields protoimpl.UnknownFields
|
|
|
-
|
|
|
- EmployeeId int64 `protobuf:"varint,1,opt,name=employeeId,proto3" json:"employeeId,omitempty"` //用户标识
|
|
|
- CompanyId int64 `protobuf:"varint,2,opt,name=companyId,proto3" json:"companyId,omitempty"` //公司标识
|
|
|
- DepartmentId int64 `protobuf:"varint,3,opt,name=departmentId,proto3" json:"departmentId,omitempty"` //部门标识
|
|
|
-}
|
|
|
-
|
|
|
-func (x *AccountBalanceReq) Reset() {
|
|
|
- *x = AccountBalanceReq{}
|
|
|
- if protoimpl.UnsafeEnabled {
|
|
|
- mi := &file_resourcesCenter_proto_msgTypes[8]
|
|
|
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
- ms.StoreMessageInfo(mi)
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-func (x *AccountBalanceReq) String() string {
|
|
|
- return protoimpl.X.MessageStringOf(x)
|
|
|
-}
|
|
|
-
|
|
|
-func (*AccountBalanceReq) ProtoMessage() {}
|
|
|
-
|
|
|
-func (x *AccountBalanceReq) ProtoReflect() protoreflect.Message {
|
|
|
- mi := &file_resourcesCenter_proto_msgTypes[8]
|
|
|
- if protoimpl.UnsafeEnabled && x != nil {
|
|
|
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
- if ms.LoadMessageInfo() == nil {
|
|
|
- ms.StoreMessageInfo(mi)
|
|
|
- }
|
|
|
- return ms
|
|
|
- }
|
|
|
- return mi.MessageOf(x)
|
|
|
-}
|
|
|
-
|
|
|
-// Deprecated: Use AccountBalanceReq.ProtoReflect.Descriptor instead.
|
|
|
-func (*AccountBalanceReq) Descriptor() ([]byte, []int) {
|
|
|
- return file_resourcesCenter_proto_rawDescGZIP(), []int{8}
|
|
|
-}
|
|
|
-
|
|
|
-func (x *AccountBalanceReq) GetEmployeeId() int64 {
|
|
|
- if x != nil {
|
|
|
- return x.EmployeeId
|
|
|
- }
|
|
|
- return 0
|
|
|
-}
|
|
|
-
|
|
|
-func (x *AccountBalanceReq) GetCompanyId() int64 {
|
|
|
- if x != nil {
|
|
|
- return x.CompanyId
|
|
|
- }
|
|
|
- return 0
|
|
|
-}
|
|
|
-
|
|
|
-func (x *AccountBalanceReq) GetDepartmentId() int64 {
|
|
|
- if x != nil {
|
|
|
- return x.DepartmentId
|
|
|
- }
|
|
|
- return 0
|
|
|
-}
|
|
|
-
|
|
|
type AccountBalanceRes struct {
|
|
|
state protoimpl.MessageState
|
|
|
sizeCache protoimpl.SizeCache
|
|
@@ -782,7 +725,7 @@ type AccountBalanceRes struct {
|
|
|
func (x *AccountBalanceRes) Reset() {
|
|
|
*x = AccountBalanceRes{}
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
- mi := &file_resourcesCenter_proto_msgTypes[9]
|
|
|
+ mi := &file_resourcesCenter_proto_msgTypes[8]
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
@@ -795,7 +738,7 @@ func (x *AccountBalanceRes) String() string {
|
|
|
func (*AccountBalanceRes) ProtoMessage() {}
|
|
|
|
|
|
func (x *AccountBalanceRes) ProtoReflect() protoreflect.Message {
|
|
|
- mi := &file_resourcesCenter_proto_msgTypes[9]
|
|
|
+ mi := &file_resourcesCenter_proto_msgTypes[8]
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
@@ -808,7 +751,7 @@ func (x *AccountBalanceRes) ProtoReflect() protoreflect.Message {
|
|
|
|
|
|
// Deprecated: Use AccountBalanceRes.ProtoReflect.Descriptor instead.
|
|
|
func (*AccountBalanceRes) Descriptor() ([]byte, []int) {
|
|
|
- return file_resourcesCenter_proto_rawDescGZIP(), []int{9}
|
|
|
+ return file_resourcesCenter_proto_rawDescGZIP(), []int{8}
|
|
|
}
|
|
|
|
|
|
func (x *AccountBalanceRes) GetCode() int64 {
|
|
@@ -833,61 +776,6 @@ func (x *AccountBalanceRes) GetData() []*ResourceBalance {
|
|
|
}
|
|
|
|
|
|
//查询流水账
|
|
|
-type ConsumeRecordReq struct {
|
|
|
- state protoimpl.MessageState
|
|
|
- sizeCache protoimpl.SizeCache
|
|
|
- unknownFields protoimpl.UnknownFields
|
|
|
-
|
|
|
- EmployeeId int64 `protobuf:"varint,1,opt,name=employeeId,proto3" json:"employeeId,omitempty"`
|
|
|
- CompanyId int64 `protobuf:"varint,2,opt,name=companyId,proto3" json:"companyId,omitempty"`
|
|
|
-}
|
|
|
-
|
|
|
-func (x *ConsumeRecordReq) Reset() {
|
|
|
- *x = ConsumeRecordReq{}
|
|
|
- if protoimpl.UnsafeEnabled {
|
|
|
- mi := &file_resourcesCenter_proto_msgTypes[10]
|
|
|
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
- ms.StoreMessageInfo(mi)
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
-func (x *ConsumeRecordReq) String() string {
|
|
|
- return protoimpl.X.MessageStringOf(x)
|
|
|
-}
|
|
|
-
|
|
|
-func (*ConsumeRecordReq) ProtoMessage() {}
|
|
|
-
|
|
|
-func (x *ConsumeRecordReq) ProtoReflect() protoreflect.Message {
|
|
|
- mi := &file_resourcesCenter_proto_msgTypes[10]
|
|
|
- if protoimpl.UnsafeEnabled && x != nil {
|
|
|
- ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
- if ms.LoadMessageInfo() == nil {
|
|
|
- ms.StoreMessageInfo(mi)
|
|
|
- }
|
|
|
- return ms
|
|
|
- }
|
|
|
- return mi.MessageOf(x)
|
|
|
-}
|
|
|
-
|
|
|
-// Deprecated: Use ConsumeRecordReq.ProtoReflect.Descriptor instead.
|
|
|
-func (*ConsumeRecordReq) Descriptor() ([]byte, []int) {
|
|
|
- return file_resourcesCenter_proto_rawDescGZIP(), []int{10}
|
|
|
-}
|
|
|
-
|
|
|
-func (x *ConsumeRecordReq) GetEmployeeId() int64 {
|
|
|
- if x != nil {
|
|
|
- return x.EmployeeId
|
|
|
- }
|
|
|
- return 0
|
|
|
-}
|
|
|
-
|
|
|
-func (x *ConsumeRecordReq) GetCompanyId() int64 {
|
|
|
- if x != nil {
|
|
|
- return x.CompanyId
|
|
|
- }
|
|
|
- return 0
|
|
|
-}
|
|
|
-
|
|
|
type ConsumeRecordRes struct {
|
|
|
state protoimpl.MessageState
|
|
|
sizeCache protoimpl.SizeCache
|
|
@@ -901,7 +789,7 @@ type ConsumeRecordRes struct {
|
|
|
func (x *ConsumeRecordRes) Reset() {
|
|
|
*x = ConsumeRecordRes{}
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
- mi := &file_resourcesCenter_proto_msgTypes[11]
|
|
|
+ mi := &file_resourcesCenter_proto_msgTypes[9]
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
@@ -914,7 +802,7 @@ func (x *ConsumeRecordRes) String() string {
|
|
|
func (*ConsumeRecordRes) ProtoMessage() {}
|
|
|
|
|
|
func (x *ConsumeRecordRes) ProtoReflect() protoreflect.Message {
|
|
|
- mi := &file_resourcesCenter_proto_msgTypes[11]
|
|
|
+ mi := &file_resourcesCenter_proto_msgTypes[9]
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
@@ -927,7 +815,7 @@ func (x *ConsumeRecordRes) ProtoReflect() protoreflect.Message {
|
|
|
|
|
|
// Deprecated: Use ConsumeRecordRes.ProtoReflect.Descriptor instead.
|
|
|
func (*ConsumeRecordRes) Descriptor() ([]byte, []int) {
|
|
|
- return file_resourcesCenter_proto_rawDescGZIP(), []int{11}
|
|
|
+ return file_resourcesCenter_proto_rawDescGZIP(), []int{9}
|
|
|
}
|
|
|
|
|
|
func (x *ConsumeRecordRes) GetCode() int64 {
|
|
@@ -1004,15 +892,16 @@ var file_resourcesCenter_proto_rawDesc = []byte{
|
|
|
0x71, 0x75, 0x6f, 0x74, 0x61, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x18, 0x05,
|
|
|
0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x12, 0x14, 0x0a, 0x05, 0x73,
|
|
|
0x74, 0x61, 0x74, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74,
|
|
|
- 0x65, 0x22, 0x95, 0x01, 0x0a, 0x0f, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x61,
|
|
|
+ 0x65, 0x22, 0xa5, 0x01, 0x0a, 0x0f, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x61,
|
|
|
0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
|
0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x65, 0x6d, 0x70, 0x6c, 0x6f, 0x79, 0x65,
|
|
|
0x65, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x65, 0x6d, 0x70, 0x6c, 0x6f,
|
|
|
0x79, 0x65, 0x65, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20,
|
|
|
0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x75, 0x6d,
|
|
|
0x62, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6e, 0x75, 0x6d, 0x62, 0x65,
|
|
|
- 0x72, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
- 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x06, 0x20,
|
|
|
+ 0x72, 0x12, 0x22, 0x0a, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x54, 0x79, 0x70,
|
|
|
+ 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
|
|
|
+ 0x65, 0x54, 0x79, 0x70, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x70, 0x65, 0x63, 0x18, 0x06, 0x20,
|
|
|
0x01, 0x28, 0x09, 0x52, 0x04, 0x73, 0x70, 0x65, 0x63, 0x22, 0xbd, 0x02, 0x0a, 0x0d, 0x43, 0x6f,
|
|
|
0x6e, 0x73, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x0e, 0x0a, 0x02, 0x69,
|
|
|
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x02, 0x69, 0x64, 0x12, 0x1e, 0x0a, 0x0a, 0x65,
|
|
@@ -1033,74 +922,59 @@ var file_resourcesCenter_proto_rawDesc = []byte{
|
|
|
0x72, 0x54, 0x79, 0x70, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x75, 0x73, 0x65,
|
|
|
0x72, 0x54, 0x79, 0x70, 0x65, 0x12, 0x22, 0x0a, 0x0c, 0x64, 0x65, 0x70, 0x61, 0x72, 0x74, 0x6d,
|
|
|
0x65, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x64, 0x65, 0x70,
|
|
|
- 0x61, 0x72, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x32, 0x0a, 0x10, 0x52, 0x65, 0x73,
|
|
|
- 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x12, 0x1e, 0x0a,
|
|
|
- 0x0a, 0x65, 0x6d, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
|
- 0x03, 0x52, 0x0a, 0x65, 0x6d, 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x65, 0x49, 0x64, 0x22, 0x74, 0x0a,
|
|
|
- 0x10, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65,
|
|
|
- 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52,
|
|
|
- 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
|
|
|
- 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12,
|
|
|
- 0x32, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e,
|
|
|
- 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e,
|
|
|
- 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x41, 0x75, 0x74, 0x68, 0x52, 0x04, 0x64,
|
|
|
- 0x61, 0x74, 0x61, 0x22, 0x75, 0x0a, 0x11, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x61,
|
|
|
- 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x71, 0x12, 0x1e, 0x0a, 0x0a, 0x65, 0x6d, 0x70, 0x6c,
|
|
|
- 0x6f, 0x79, 0x65, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x65, 0x6d,
|
|
|
- 0x70, 0x6c, 0x6f, 0x79, 0x65, 0x65, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x70,
|
|
|
- 0x61, 0x6e, 0x79, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x6f, 0x6d,
|
|
|
- 0x70, 0x61, 0x6e, 0x79, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0c, 0x64, 0x65, 0x70, 0x61, 0x72, 0x74,
|
|
|
- 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x64, 0x65,
|
|
|
- 0x70, 0x61, 0x72, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x77, 0x0a, 0x11, 0x41, 0x63,
|
|
|
- 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x12,
|
|
|
- 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63,
|
|
|
- 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02,
|
|
|
- 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x34, 0x0a,
|
|
|
- 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x72, 0x65,
|
|
|
- 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65,
|
|
|
- 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x04, 0x64,
|
|
|
- 0x61, 0x74, 0x61, 0x22, 0x50, 0x0a, 0x10, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x52, 0x65,
|
|
|
- 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71, 0x12, 0x1e, 0x0a, 0x0a, 0x65, 0x6d, 0x70, 0x6c, 0x6f,
|
|
|
- 0x79, 0x65, 0x65, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x65, 0x6d, 0x70,
|
|
|
- 0x6c, 0x6f, 0x79, 0x65, 0x65, 0x49, 0x64, 0x12, 0x1c, 0x0a, 0x09, 0x63, 0x6f, 0x6d, 0x70, 0x61,
|
|
|
- 0x6e, 0x79, 0x49, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x70,
|
|
|
- 0x61, 0x6e, 0x79, 0x49, 0x64, 0x22, 0x74, 0x0a, 0x10, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65,
|
|
|
- 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64,
|
|
|
- 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a,
|
|
|
- 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
|
|
|
- 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x32, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18,
|
|
|
- 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
|
|
|
- 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x52,
|
|
|
- 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x32, 0xbb, 0x03, 0x0a, 0x0f,
|
|
|
- 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x12,
|
|
|
- 0x59, 0x0a, 0x11, 0x66, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73,
|
|
|
- 0x41, 0x75, 0x74, 0x68, 0x12, 0x21, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73,
|
|
|
- 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73,
|
|
|
- 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x71, 0x1a, 0x21, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
|
|
|
+ 0x61, 0x72, 0x74, 0x6d, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x2c, 0x0a, 0x0c, 0x52, 0x65, 0x73,
|
|
|
+ 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x12, 0x1c, 0x0a, 0x09, 0x61, 0x63, 0x63,
|
|
|
+ 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x61, 0x63,
|
|
|
+ 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x74, 0x0a, 0x10, 0x52, 0x65, 0x73, 0x6f, 0x75,
|
|
|
+ 0x72, 0x63, 0x65, 0x73, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63,
|
|
|
+ 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12,
|
|
|
+ 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
|
|
|
+ 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x32, 0x0a, 0x04, 0x64, 0x61, 0x74,
|
|
|
+ 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
|
|
|
0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72,
|
|
|
- 0x63, 0x65, 0x73, 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x73, 0x12, 0x5c, 0x0a, 0x12, 0x66, 0x69,
|
|
|
- 0x6e, 0x64, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65,
|
|
|
- 0x12, 0x22, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74,
|
|
|
- 0x65, 0x72, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63,
|
|
|
- 0x65, 0x52, 0x65, 0x71, 0x1a, 0x22, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73,
|
|
|
- 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x61,
|
|
|
- 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73, 0x12, 0x59, 0x0a, 0x11, 0x66, 0x69, 0x6e, 0x64,
|
|
|
- 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x21, 0x2e,
|
|
|
- 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e,
|
|
|
- 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x71,
|
|
|
- 0x1a, 0x21, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74,
|
|
|
- 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64,
|
|
|
- 0x52, 0x65, 0x73, 0x12, 0x48, 0x0a, 0x11, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65,
|
|
|
- 0x72, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x18, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75,
|
|
|
- 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x42, 0x61, 0x6c, 0x61, 0x6e,
|
|
|
- 0x63, 0x65, 0x1a, 0x19, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65,
|
|
|
- 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a,
|
|
|
- 0x12, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x44, 0x65, 0x74, 0x61, 0x69,
|
|
|
- 0x6c, 0x65, 0x64, 0x12, 0x19, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43,
|
|
|
- 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x1a, 0x19,
|
|
|
+ 0x63, 0x65, 0x73, 0x41, 0x75, 0x74, 0x68, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x77, 0x0a,
|
|
|
+ 0x11, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52,
|
|
|
+ 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
|
|
|
+ 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
|
|
|
+ 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
|
|
|
+ 0x12, 0x34, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20,
|
|
|
0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72,
|
|
|
- 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x12, 0x5a, 0x10, 0x72, 0x65, 0x73,
|
|
|
- 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2f, 0x62, 0x06, 0x70,
|
|
|
+ 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65,
|
|
|
+ 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x22, 0x74, 0x0a, 0x10, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d,
|
|
|
+ 0x65, 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x6f,
|
|
|
+ 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18,
|
|
|
+ 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
+ 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x32, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61,
|
|
|
+ 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
|
|
|
+ 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65,
|
|
|
+ 0x52, 0x65, 0x63, 0x6f, 0x72, 0x64, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 0x32, 0xae, 0x03, 0x0a,
|
|
|
+ 0x0f, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72,
|
|
|
+ 0x12, 0x55, 0x0a, 0x11, 0x66, 0x69, 0x6e, 0x64, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
|
|
|
+ 0x73, 0x41, 0x75, 0x74, 0x68, 0x12, 0x1d, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
|
|
|
+ 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
|
|
|
+ 0x73, 0x52, 0x65, 0x71, 0x1a, 0x21, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73,
|
|
|
+ 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73,
|
|
|
+ 0x41, 0x75, 0x74, 0x68, 0x52, 0x65, 0x73, 0x12, 0x57, 0x0a, 0x12, 0x66, 0x69, 0x6e, 0x64, 0x41,
|
|
|
+ 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x1d, 0x2e,
|
|
|
+ 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e,
|
|
|
+ 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x1a, 0x22, 0x2e, 0x72,
|
|
|
+ 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x41,
|
|
|
+ 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x52, 0x65, 0x73,
|
|
|
+ 0x12, 0x55, 0x0a, 0x11, 0x66, 0x69, 0x6e, 0x64, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x52,
|
|
|
+ 0x65, 0x63, 0x6f, 0x72, 0x64, 0x12, 0x1d, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
|
|
|
+ 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
|
|
|
+ 0x73, 0x52, 0x65, 0x71, 0x1a, 0x21, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73,
|
|
|
+ 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x75, 0x6d, 0x65, 0x52, 0x65,
|
|
|
+ 0x63, 0x6f, 0x72, 0x64, 0x52, 0x65, 0x73, 0x12, 0x48, 0x0a, 0x11, 0x75, 0x70, 0x64, 0x61, 0x74,
|
|
|
+ 0x65, 0x55, 0x73, 0x65, 0x72, 0x42, 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x12, 0x18, 0x2e, 0x72,
|
|
|
+ 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x42,
|
|
|
+ 0x61, 0x6c, 0x61, 0x6e, 0x63, 0x65, 0x1a, 0x19, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
|
|
|
+ 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
|
|
+ 0x65, 0x12, 0x4a, 0x0a, 0x12, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x44,
|
|
|
+ 0x65, 0x74, 0x61, 0x69, 0x6c, 0x65, 0x64, 0x12, 0x19, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
|
|
|
+ 0x63, 0x65, 0x73, 0x43, 0x65, 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c,
|
|
|
+ 0x65, 0x64, 0x1a, 0x19, 0x2e, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x43, 0x65,
|
|
|
+ 0x6e, 0x74, 0x65, 0x72, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x62, 0x06, 0x70,
|
|
|
0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
}
|
|
|
|
|
@@ -1116,7 +990,7 @@ func file_resourcesCenter_proto_rawDescGZIP() []byte {
|
|
|
return file_resourcesCenter_proto_rawDescData
|
|
|
}
|
|
|
|
|
|
-var file_resourcesCenter_proto_msgTypes = make([]protoimpl.MessageInfo, 12)
|
|
|
+var file_resourcesCenter_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
|
|
|
var file_resourcesCenter_proto_goTypes = []interface{}{
|
|
|
(*Response)(nil), // 0: resourcesCenter.Response
|
|
|
(*Balance)(nil), // 1: resourcesCenter.Balance
|
|
@@ -1124,32 +998,30 @@ var file_resourcesCenter_proto_goTypes = []interface{}{
|
|
|
(*ResourcesAuth)(nil), // 3: resourcesCenter.ResourcesAuth
|
|
|
(*ResourceBalance)(nil), // 4: resourcesCenter.ResourceBalance
|
|
|
(*ConsumeRecord)(nil), // 5: resourcesCenter.ConsumeRecord
|
|
|
- (*ResourcesAuthReq)(nil), // 6: resourcesCenter.ResourcesAuthReq
|
|
|
+ (*ResourcesReq)(nil), // 6: resourcesCenter.ResourcesReq
|
|
|
(*ResourcesAuthRes)(nil), // 7: resourcesCenter.ResourcesAuthRes
|
|
|
- (*AccountBalanceReq)(nil), // 8: resourcesCenter.AccountBalanceReq
|
|
|
- (*AccountBalanceRes)(nil), // 9: resourcesCenter.AccountBalanceRes
|
|
|
- (*ConsumeRecordReq)(nil), // 10: resourcesCenter.ConsumeRecordReq
|
|
|
- (*ConsumeRecordRes)(nil), // 11: resourcesCenter.ConsumeRecordRes
|
|
|
+ (*AccountBalanceRes)(nil), // 8: resourcesCenter.AccountBalanceRes
|
|
|
+ (*ConsumeRecordRes)(nil), // 9: resourcesCenter.ConsumeRecordRes
|
|
|
}
|
|
|
var file_resourcesCenter_proto_depIdxs = []int32{
|
|
|
- 3, // 0: resourcesCenter.ResourcesAuthRes.data:type_name -> resourcesCenter.ResourcesAuth
|
|
|
- 4, // 1: resourcesCenter.AccountBalanceRes.data:type_name -> resourcesCenter.ResourceBalance
|
|
|
- 5, // 2: resourcesCenter.ConsumeRecordRes.data:type_name -> resourcesCenter.ConsumeRecord
|
|
|
- 6, // 3: resourcesCenter.ResourcesCenter.findResourcesAuth:input_type -> resourcesCenter.ResourcesAuthReq
|
|
|
- 8, // 4: resourcesCenter.ResourcesCenter.findAccountBalance:input_type -> resourcesCenter.AccountBalanceReq
|
|
|
- 10, // 5: resourcesCenter.ResourcesCenter.findConsumeRecord:input_type -> resourcesCenter.ConsumeRecordReq
|
|
|
- 1, // 6: resourcesCenter.ResourcesCenter.updateUserBalance:input_type -> resourcesCenter.Balance
|
|
|
- 2, // 7: resourcesCenter.ResourcesCenter.updateUserDetailed:input_type -> resourcesCenter.Detailed
|
|
|
- 7, // 8: resourcesCenter.ResourcesCenter.findResourcesAuth:output_type -> resourcesCenter.ResourcesAuthRes
|
|
|
- 9, // 9: resourcesCenter.ResourcesCenter.findAccountBalance:output_type -> resourcesCenter.AccountBalanceRes
|
|
|
- 11, // 10: resourcesCenter.ResourcesCenter.findConsumeRecord:output_type -> resourcesCenter.ConsumeRecordRes
|
|
|
- 0, // 11: resourcesCenter.ResourcesCenter.updateUserBalance:output_type -> resourcesCenter.Response
|
|
|
- 0, // 12: resourcesCenter.ResourcesCenter.updateUserDetailed:output_type -> resourcesCenter.Response
|
|
|
- 8, // [8:13] is the sub-list for method output_type
|
|
|
- 3, // [3:8] is the sub-list for method input_type
|
|
|
- 3, // [3:3] is the sub-list for extension type_name
|
|
|
- 3, // [3:3] is the sub-list for extension extendee
|
|
|
- 0, // [0:3] is the sub-list for field type_name
|
|
|
+ 3, // 0: resourcesCenter.ResourcesAuthRes.data:type_name -> resourcesCenter.ResourcesAuth
|
|
|
+ 4, // 1: resourcesCenter.AccountBalanceRes.data:type_name -> resourcesCenter.ResourceBalance
|
|
|
+ 5, // 2: resourcesCenter.ConsumeRecordRes.data:type_name -> resourcesCenter.ConsumeRecord
|
|
|
+ 6, // 3: resourcesCenter.ResourcesCenter.findResourcesAuth:input_type -> resourcesCenter.ResourcesReq
|
|
|
+ 6, // 4: resourcesCenter.ResourcesCenter.findAccountBalance:input_type -> resourcesCenter.ResourcesReq
|
|
|
+ 6, // 5: resourcesCenter.ResourcesCenter.findConsumeRecord:input_type -> resourcesCenter.ResourcesReq
|
|
|
+ 1, // 6: resourcesCenter.ResourcesCenter.updateUserBalance:input_type -> resourcesCenter.Balance
|
|
|
+ 2, // 7: resourcesCenter.ResourcesCenter.updateUserDetailed:input_type -> resourcesCenter.Detailed
|
|
|
+ 7, // 8: resourcesCenter.ResourcesCenter.findResourcesAuth:output_type -> resourcesCenter.ResourcesAuthRes
|
|
|
+ 8, // 9: resourcesCenter.ResourcesCenter.findAccountBalance:output_type -> resourcesCenter.AccountBalanceRes
|
|
|
+ 9, // 10: resourcesCenter.ResourcesCenter.findConsumeRecord:output_type -> resourcesCenter.ConsumeRecordRes
|
|
|
+ 0, // 11: resourcesCenter.ResourcesCenter.updateUserBalance:output_type -> resourcesCenter.Response
|
|
|
+ 0, // 12: resourcesCenter.ResourcesCenter.updateUserDetailed:output_type -> resourcesCenter.Response
|
|
|
+ 8, // [8:13] is the sub-list for method output_type
|
|
|
+ 3, // [3:8] is the sub-list for method input_type
|
|
|
+ 3, // [3:3] is the sub-list for extension type_name
|
|
|
+ 3, // [3:3] is the sub-list for extension extendee
|
|
|
+ 0, // [0:3] is the sub-list for field type_name
|
|
|
}
|
|
|
|
|
|
func init() { file_resourcesCenter_proto_init() }
|
|
@@ -1231,7 +1103,7 @@ func file_resourcesCenter_proto_init() {
|
|
|
}
|
|
|
}
|
|
|
file_resourcesCenter_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
|
|
- switch v := v.(*ResourcesAuthReq); i {
|
|
|
+ switch v := v.(*ResourcesReq); i {
|
|
|
case 0:
|
|
|
return &v.state
|
|
|
case 1:
|
|
@@ -1255,18 +1127,6 @@ func file_resourcesCenter_proto_init() {
|
|
|
}
|
|
|
}
|
|
|
file_resourcesCenter_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
|
|
- switch v := v.(*AccountBalanceReq); i {
|
|
|
- case 0:
|
|
|
- return &v.state
|
|
|
- case 1:
|
|
|
- return &v.sizeCache
|
|
|
- case 2:
|
|
|
- return &v.unknownFields
|
|
|
- default:
|
|
|
- return nil
|
|
|
- }
|
|
|
- }
|
|
|
- file_resourcesCenter_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
|
|
switch v := v.(*AccountBalanceRes); i {
|
|
|
case 0:
|
|
|
return &v.state
|
|
@@ -1278,19 +1138,7 @@ func file_resourcesCenter_proto_init() {
|
|
|
return nil
|
|
|
}
|
|
|
}
|
|
|
- file_resourcesCenter_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
|
|
- switch v := v.(*ConsumeRecordReq); i {
|
|
|
- case 0:
|
|
|
- return &v.state
|
|
|
- case 1:
|
|
|
- return &v.sizeCache
|
|
|
- case 2:
|
|
|
- return &v.unknownFields
|
|
|
- default:
|
|
|
- return nil
|
|
|
- }
|
|
|
- }
|
|
|
- file_resourcesCenter_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ file_resourcesCenter_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
|
|
switch v := v.(*ConsumeRecordRes); i {
|
|
|
case 0:
|
|
|
return &v.state
|
|
@@ -1309,7 +1157,7 @@ func file_resourcesCenter_proto_init() {
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
RawDescriptor: file_resourcesCenter_proto_rawDesc,
|
|
|
NumEnums: 0,
|
|
|
- NumMessages: 12,
|
|
|
+ NumMessages: 10,
|
|
|
NumExtensions: 0,
|
|
|
NumServices: 1,
|
|
|
},
|
|
@@ -1336,11 +1184,11 @@ const _ = grpc.SupportPackageIsVersion6
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
|
type ResourcesCenterClient interface {
|
|
|
//查询账户资源权限
|
|
|
- FindResourcesAuth(ctx context.Context, in *ResourcesAuthReq, opts ...grpc.CallOption) (*ResourcesAuthRes, error)
|
|
|
+ FindResourcesAuth(ctx context.Context, in *ResourcesReq, opts ...grpc.CallOption) (*ResourcesAuthRes, error)
|
|
|
//查询账户资源余额
|
|
|
- FindAccountBalance(ctx context.Context, in *AccountBalanceReq, opts ...grpc.CallOption) (*AccountBalanceRes, error)
|
|
|
+ FindAccountBalance(ctx context.Context, in *ResourcesReq, opts ...grpc.CallOption) (*AccountBalanceRes, error)
|
|
|
//查询流水账
|
|
|
- FindConsumeRecord(ctx context.Context, in *ConsumeRecordReq, opts ...grpc.CallOption) (*ConsumeRecordRes, error)
|
|
|
+ FindConsumeRecord(ctx context.Context, in *ResourcesReq, opts ...grpc.CallOption) (*ConsumeRecordRes, error)
|
|
|
//根据账户标识修改资源结存账
|
|
|
UpdateUserBalance(ctx context.Context, in *Balance, opts ...grpc.CallOption) (*Response, error)
|
|
|
//根据账户标识记录资源使用流水账
|
|
@@ -1355,7 +1203,7 @@ func NewResourcesCenterClient(cc grpc.ClientConnInterface) ResourcesCenterClient
|
|
|
return &resourcesCenterClient{cc}
|
|
|
}
|
|
|
|
|
|
-func (c *resourcesCenterClient) FindResourcesAuth(ctx context.Context, in *ResourcesAuthReq, opts ...grpc.CallOption) (*ResourcesAuthRes, error) {
|
|
|
+func (c *resourcesCenterClient) FindResourcesAuth(ctx context.Context, in *ResourcesReq, opts ...grpc.CallOption) (*ResourcesAuthRes, error) {
|
|
|
out := new(ResourcesAuthRes)
|
|
|
err := c.cc.Invoke(ctx, "/resourcesCenter.ResourcesCenter/findResourcesAuth", in, out, opts...)
|
|
|
if err != nil {
|
|
@@ -1364,7 +1212,7 @@ func (c *resourcesCenterClient) FindResourcesAuth(ctx context.Context, in *Resou
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
-func (c *resourcesCenterClient) FindAccountBalance(ctx context.Context, in *AccountBalanceReq, opts ...grpc.CallOption) (*AccountBalanceRes, error) {
|
|
|
+func (c *resourcesCenterClient) FindAccountBalance(ctx context.Context, in *ResourcesReq, opts ...grpc.CallOption) (*AccountBalanceRes, error) {
|
|
|
out := new(AccountBalanceRes)
|
|
|
err := c.cc.Invoke(ctx, "/resourcesCenter.ResourcesCenter/findAccountBalance", in, out, opts...)
|
|
|
if err != nil {
|
|
@@ -1373,7 +1221,7 @@ func (c *resourcesCenterClient) FindAccountBalance(ctx context.Context, in *Acco
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
-func (c *resourcesCenterClient) FindConsumeRecord(ctx context.Context, in *ConsumeRecordReq, opts ...grpc.CallOption) (*ConsumeRecordRes, error) {
|
|
|
+func (c *resourcesCenterClient) FindConsumeRecord(ctx context.Context, in *ResourcesReq, opts ...grpc.CallOption) (*ConsumeRecordRes, error) {
|
|
|
out := new(ConsumeRecordRes)
|
|
|
err := c.cc.Invoke(ctx, "/resourcesCenter.ResourcesCenter/findConsumeRecord", in, out, opts...)
|
|
|
if err != nil {
|
|
@@ -1403,11 +1251,11 @@ func (c *resourcesCenterClient) UpdateUserDetailed(ctx context.Context, in *Deta
|
|
|
// ResourcesCenterServer is the server API for ResourcesCenter service.
|
|
|
type ResourcesCenterServer interface {
|
|
|
//查询账户资源权限
|
|
|
- FindResourcesAuth(context.Context, *ResourcesAuthReq) (*ResourcesAuthRes, error)
|
|
|
+ FindResourcesAuth(context.Context, *ResourcesReq) (*ResourcesAuthRes, error)
|
|
|
//查询账户资源余额
|
|
|
- FindAccountBalance(context.Context, *AccountBalanceReq) (*AccountBalanceRes, error)
|
|
|
+ FindAccountBalance(context.Context, *ResourcesReq) (*AccountBalanceRes, error)
|
|
|
//查询流水账
|
|
|
- FindConsumeRecord(context.Context, *ConsumeRecordReq) (*ConsumeRecordRes, error)
|
|
|
+ FindConsumeRecord(context.Context, *ResourcesReq) (*ConsumeRecordRes, error)
|
|
|
//根据账户标识修改资源结存账
|
|
|
UpdateUserBalance(context.Context, *Balance) (*Response, error)
|
|
|
//根据账户标识记录资源使用流水账
|
|
@@ -1418,13 +1266,13 @@ type ResourcesCenterServer interface {
|
|
|
type UnimplementedResourcesCenterServer struct {
|
|
|
}
|
|
|
|
|
|
-func (*UnimplementedResourcesCenterServer) FindResourcesAuth(context.Context, *ResourcesAuthReq) (*ResourcesAuthRes, error) {
|
|
|
+func (*UnimplementedResourcesCenterServer) FindResourcesAuth(context.Context, *ResourcesReq) (*ResourcesAuthRes, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method FindResourcesAuth not implemented")
|
|
|
}
|
|
|
-func (*UnimplementedResourcesCenterServer) FindAccountBalance(context.Context, *AccountBalanceReq) (*AccountBalanceRes, error) {
|
|
|
+func (*UnimplementedResourcesCenterServer) FindAccountBalance(context.Context, *ResourcesReq) (*AccountBalanceRes, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method FindAccountBalance not implemented")
|
|
|
}
|
|
|
-func (*UnimplementedResourcesCenterServer) FindConsumeRecord(context.Context, *ConsumeRecordReq) (*ConsumeRecordRes, error) {
|
|
|
+func (*UnimplementedResourcesCenterServer) FindConsumeRecord(context.Context, *ResourcesReq) (*ConsumeRecordRes, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method FindConsumeRecord not implemented")
|
|
|
}
|
|
|
func (*UnimplementedResourcesCenterServer) UpdateUserBalance(context.Context, *Balance) (*Response, error) {
|
|
@@ -1439,7 +1287,7 @@ func RegisterResourcesCenterServer(s *grpc.Server, srv ResourcesCenterServer) {
|
|
|
}
|
|
|
|
|
|
func _ResourcesCenter_FindResourcesAuth_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
- in := new(ResourcesAuthReq)
|
|
|
+ in := new(ResourcesReq)
|
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
@@ -1451,13 +1299,13 @@ func _ResourcesCenter_FindResourcesAuth_Handler(srv interface{}, ctx context.Con
|
|
|
FullMethod: "/resourcesCenter.ResourcesCenter/FindResourcesAuth",
|
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.(ResourcesCenterServer).FindResourcesAuth(ctx, req.(*ResourcesAuthReq))
|
|
|
+ return srv.(ResourcesCenterServer).FindResourcesAuth(ctx, req.(*ResourcesReq))
|
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
func _ResourcesCenter_FindAccountBalance_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
- in := new(AccountBalanceReq)
|
|
|
+ in := new(ResourcesReq)
|
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
@@ -1469,13 +1317,13 @@ func _ResourcesCenter_FindAccountBalance_Handler(srv interface{}, ctx context.Co
|
|
|
FullMethod: "/resourcesCenter.ResourcesCenter/FindAccountBalance",
|
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.(ResourcesCenterServer).FindAccountBalance(ctx, req.(*AccountBalanceReq))
|
|
|
+ return srv.(ResourcesCenterServer).FindAccountBalance(ctx, req.(*ResourcesReq))
|
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
func _ResourcesCenter_FindConsumeRecord_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
- in := new(ConsumeRecordReq)
|
|
|
+ in := new(ResourcesReq)
|
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
@@ -1487,7 +1335,7 @@ func _ResourcesCenter_FindConsumeRecord_Handler(srv interface{}, ctx context.Con
|
|
|
FullMethod: "/resourcesCenter.ResourcesCenter/FindConsumeRecord",
|
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.(ResourcesCenterServer).FindConsumeRecord(ctx, req.(*ConsumeRecordReq))
|
|
|
+ return srv.(ResourcesCenterServer).FindConsumeRecord(ctx, req.(*ResourcesReq))
|
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|