|
@@ -328,6 +328,93 @@ func (x *DeductionReq) GetIds() []string {
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
+type RechargeReq struct {
|
|
|
+ state protoimpl.MessageState
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
+
|
|
|
+ Appid string `protobuf:"bytes,1,opt,name=appid,proto3" json:"appid,omitempty"`
|
|
|
+ FunctionCode string `protobuf:"bytes,2,opt,name=function_code,json=functionCode,proto3" json:"function_code,omitempty"` //功能代码
|
|
|
+ EntId int64 `protobuf:"varint,3,opt,name=ent_id,json=entId,proto3" json:"ent_id,omitempty"` //企业id
|
|
|
+ UserId int64 `protobuf:"varint,4,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` //用户id
|
|
|
+ Count int64 `protobuf:"varint,5,opt,name=count,proto3" json:"count,omitempty"` //扣除数量
|
|
|
+ Ids []string `protobuf:"bytes,6,rep,name=ids,proto3" json:"ids,omitempty"` //id列表
|
|
|
+}
|
|
|
+
|
|
|
+func (x *RechargeReq) Reset() {
|
|
|
+ *x = RechargeReq{}
|
|
|
+ if protoimpl.UnsafeEnabled {
|
|
|
+ mi := &file_resource_proto_msgTypes[4]
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+func (x *RechargeReq) String() string {
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
+}
|
|
|
+
|
|
|
+func (*RechargeReq) ProtoMessage() {}
|
|
|
+
|
|
|
+func (x *RechargeReq) ProtoReflect() protoreflect.Message {
|
|
|
+ mi := &file_resource_proto_msgTypes[4]
|
|
|
+ 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 RechargeReq.ProtoReflect.Descriptor instead.
|
|
|
+func (*RechargeReq) Descriptor() ([]byte, []int) {
|
|
|
+ return file_resource_proto_rawDescGZIP(), []int{4}
|
|
|
+}
|
|
|
+
|
|
|
+func (x *RechargeReq) GetAppid() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Appid
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *RechargeReq) GetFunctionCode() string {
|
|
|
+ if x != nil {
|
|
|
+ return x.FunctionCode
|
|
|
+ }
|
|
|
+ return ""
|
|
|
+}
|
|
|
+
|
|
|
+func (x *RechargeReq) GetEntId() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.EntId
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *RechargeReq) GetUserId() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.UserId
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *RechargeReq) GetCount() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.Count
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *RechargeReq) GetIds() []string {
|
|
|
+ if x != nil {
|
|
|
+ return x.Ids
|
|
|
+ }
|
|
|
+ return nil
|
|
|
+}
|
|
|
+
|
|
|
type EmpowerReq struct {
|
|
|
state protoimpl.MessageState
|
|
|
sizeCache protoimpl.SizeCache
|
|
@@ -342,7 +429,7 @@ type EmpowerReq struct {
|
|
|
func (x *EmpowerReq) Reset() {
|
|
|
*x = EmpowerReq{}
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
- mi := &file_resource_proto_msgTypes[4]
|
|
|
+ mi := &file_resource_proto_msgTypes[5]
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
@@ -355,7 +442,7 @@ func (x *EmpowerReq) String() string {
|
|
|
func (*EmpowerReq) ProtoMessage() {}
|
|
|
|
|
|
func (x *EmpowerReq) ProtoReflect() protoreflect.Message {
|
|
|
- mi := &file_resource_proto_msgTypes[4]
|
|
|
+ mi := &file_resource_proto_msgTypes[5]
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
@@ -368,7 +455,7 @@ func (x *EmpowerReq) ProtoReflect() protoreflect.Message {
|
|
|
|
|
|
// Deprecated: Use EmpowerReq.ProtoReflect.Descriptor instead.
|
|
|
func (*EmpowerReq) Descriptor() ([]byte, []int) {
|
|
|
- return file_resource_proto_rawDescGZIP(), []int{4}
|
|
|
+ return file_resource_proto_rawDescGZIP(), []int{5}
|
|
|
}
|
|
|
|
|
|
func (x *EmpowerReq) GetAppid() string {
|
|
@@ -414,7 +501,7 @@ type EmpowerListReq struct {
|
|
|
func (x *EmpowerListReq) Reset() {
|
|
|
*x = EmpowerListReq{}
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
- mi := &file_resource_proto_msgTypes[5]
|
|
|
+ mi := &file_resource_proto_msgTypes[6]
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
@@ -427,7 +514,7 @@ func (x *EmpowerListReq) String() string {
|
|
|
func (*EmpowerListReq) ProtoMessage() {}
|
|
|
|
|
|
func (x *EmpowerListReq) ProtoReflect() protoreflect.Message {
|
|
|
- mi := &file_resource_proto_msgTypes[5]
|
|
|
+ mi := &file_resource_proto_msgTypes[6]
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
@@ -440,7 +527,7 @@ func (x *EmpowerListReq) ProtoReflect() protoreflect.Message {
|
|
|
|
|
|
// Deprecated: Use EmpowerListReq.ProtoReflect.Descriptor instead.
|
|
|
func (*EmpowerListReq) Descriptor() ([]byte, []int) {
|
|
|
- return file_resource_proto_rawDescGZIP(), []int{5}
|
|
|
+ return file_resource_proto_rawDescGZIP(), []int{6}
|
|
|
}
|
|
|
|
|
|
func (x *EmpowerListReq) GetAppid() string {
|
|
@@ -484,13 +571,13 @@ type EmpowerListResp struct {
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"` //总条数,只有第一页的时候才返回, 如果企业下所有人都有权限返回-1
|
|
|
- List []*Empower `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` //企业用户id,如果企业下所有人都有权限,返回空数组
|
|
|
+ List []*Empower `protobuf:"bytes,2,rep,name=list,proto3" json:"list,omitempty"` //列表,如果企业下所有人都有权限,返回空数组
|
|
|
}
|
|
|
|
|
|
func (x *EmpowerListResp) Reset() {
|
|
|
*x = EmpowerListResp{}
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
- mi := &file_resource_proto_msgTypes[6]
|
|
|
+ mi := &file_resource_proto_msgTypes[7]
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
@@ -503,7 +590,7 @@ func (x *EmpowerListResp) String() string {
|
|
|
func (*EmpowerListResp) ProtoMessage() {}
|
|
|
|
|
|
func (x *EmpowerListResp) ProtoReflect() protoreflect.Message {
|
|
|
- mi := &file_resource_proto_msgTypes[6]
|
|
|
+ mi := &file_resource_proto_msgTypes[7]
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
@@ -516,7 +603,7 @@ func (x *EmpowerListResp) ProtoReflect() protoreflect.Message {
|
|
|
|
|
|
// Deprecated: Use EmpowerListResp.ProtoReflect.Descriptor instead.
|
|
|
func (*EmpowerListResp) Descriptor() ([]byte, []int) {
|
|
|
- return file_resource_proto_rawDescGZIP(), []int{6}
|
|
|
+ return file_resource_proto_rawDescGZIP(), []int{7}
|
|
|
}
|
|
|
|
|
|
func (x *EmpowerListResp) GetCount() int64 {
|
|
@@ -538,13 +625,15 @@ type Resp struct {
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
- Status int64 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` //0:失败 1:成功 -1:不在有效期内 -2:数量不足 -3:没有授权
|
|
|
+ Status int64 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` //0:失败 1:成功 -1:不在有效期内 -2:数量不足 -3:没有授权
|
|
|
+ UseCount int64 `protobuf:"varint,2,opt,name=use_count,json=useCount,proto3" json:"use_count,omitempty"` //使用数量
|
|
|
+ SurplusCount int64 `protobuf:"varint,3,opt,name=surplus_count,json=surplusCount,proto3" json:"surplus_count,omitempty"` //剩余数量
|
|
|
}
|
|
|
|
|
|
func (x *Resp) Reset() {
|
|
|
*x = Resp{}
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
- mi := &file_resource_proto_msgTypes[7]
|
|
|
+ mi := &file_resource_proto_msgTypes[8]
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
}
|
|
@@ -557,7 +646,7 @@ func (x *Resp) String() string {
|
|
|
func (*Resp) ProtoMessage() {}
|
|
|
|
|
|
func (x *Resp) ProtoReflect() protoreflect.Message {
|
|
|
- mi := &file_resource_proto_msgTypes[7]
|
|
|
+ mi := &file_resource_proto_msgTypes[8]
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
@@ -570,7 +659,7 @@ func (x *Resp) ProtoReflect() protoreflect.Message {
|
|
|
|
|
|
// Deprecated: Use Resp.ProtoReflect.Descriptor instead.
|
|
|
func (*Resp) Descriptor() ([]byte, []int) {
|
|
|
- return file_resource_proto_rawDescGZIP(), []int{7}
|
|
|
+ return file_resource_proto_rawDescGZIP(), []int{8}
|
|
|
}
|
|
|
|
|
|
func (x *Resp) GetStatus() int64 {
|
|
@@ -580,6 +669,20 @@ func (x *Resp) GetStatus() int64 {
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
+func (x *Resp) GetUseCount() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.UseCount
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
+func (x *Resp) GetSurplusCount() int64 {
|
|
|
+ if x != nil {
|
|
|
+ return x.SurplusCount
|
|
|
+ }
|
|
|
+ return 0
|
|
|
+}
|
|
|
+
|
|
|
var File_resource_proto protoreflect.FileDescriptor
|
|
|
|
|
|
var file_resource_proto_rawDesc = []byte{
|
|
@@ -619,47 +722,63 @@ var file_resource_proto_rawDesc = []byte{
|
|
|
0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74,
|
|
|
0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x10, 0x0a,
|
|
|
0x03, 0x69, 0x64, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x69, 0x64, 0x73, 0x22,
|
|
|
- 0x7e, 0x0a, 0x0a, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a,
|
|
|
- 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70,
|
|
|
- 0x70, 0x69, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f,
|
|
|
- 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x66, 0x75, 0x6e, 0x63,
|
|
|
- 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x65, 0x6e, 0x74, 0x5f,
|
|
|
- 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12,
|
|
|
- 0x1e, 0x0a, 0x0b, 0x65, 0x6e, 0x74, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x04,
|
|
|
- 0x20, 0x03, 0x28, 0x03, 0x52, 0x09, 0x65, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72, 0x49, 0x64, 0x22,
|
|
|
- 0x9a, 0x01, 0x0a, 0x0e, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x52,
|
|
|
- 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
|
- 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x75, 0x6e, 0x63,
|
|
|
- 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
- 0x0c, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x15, 0x0a,
|
|
|
- 0x06, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x65,
|
|
|
- 0x6e, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x6e, 0x75, 0x6d,
|
|
|
- 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x70, 0x61, 0x67, 0x65, 0x4e, 0x75, 0x6d, 0x12,
|
|
|
- 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x05, 0x20, 0x01,
|
|
|
- 0x28, 0x03, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x22, 0x45, 0x0a, 0x0f,
|
|
|
- 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12,
|
|
|
- 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05,
|
|
|
- 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1c, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x02, 0x20,
|
|
|
- 0x03, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x52, 0x04, 0x6c,
|
|
|
- 0x69, 0x73, 0x74, 0x22, 0x1e, 0x0a, 0x04, 0x52, 0x65, 0x73, 0x70, 0x12, 0x16, 0x0a, 0x06, 0x73,
|
|
|
- 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x73, 0x74, 0x61,
|
|
|
- 0x74, 0x75, 0x73, 0x32, 0xeb, 0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65,
|
|
|
- 0x12, 0x1f, 0x0a, 0x0b, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x12,
|
|
|
- 0x09, 0x2e, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x05, 0x2e, 0x52, 0x65, 0x73,
|
|
|
- 0x70, 0x12, 0x23, 0x0a, 0x0a, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x12,
|
|
|
- 0x0e, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a,
|
|
|
- 0x05, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x21, 0x0a, 0x09, 0x44, 0x65, 0x64, 0x75, 0x63, 0x74,
|
|
|
- 0x69, 0x6f, 0x6e, 0x12, 0x0d, 0x2e, 0x44, 0x65, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52,
|
|
|
- 0x65, 0x71, 0x1a, 0x05, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1f, 0x0a, 0x09, 0x52, 0x65, 0x45,
|
|
|
- 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x12, 0x0b, 0x2e, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72,
|
|
|
- 0x52, 0x65, 0x71, 0x1a, 0x05, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x23, 0x0a, 0x0d, 0x43, 0x61,
|
|
|
- 0x6e, 0x63, 0x65, 0x6c, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x12, 0x0b, 0x2e, 0x45, 0x6d,
|
|
|
- 0x70, 0x6f, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x05, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x12,
|
|
|
- 0x30, 0x0a, 0x0b, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x0f,
|
|
|
- 0x2e, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a,
|
|
|
- 0x10, 0x2e, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73,
|
|
|
- 0x70, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
|
|
- 0x33,
|
|
|
+ 0xa0, 0x01, 0x0a, 0x0b, 0x52, 0x65, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x52, 0x65, 0x71, 0x12,
|
|
|
+ 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
|
|
|
+ 0x61, 0x70, 0x70, 0x69, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f,
|
|
|
+ 0x6e, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x66, 0x75,
|
|
|
+ 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x65, 0x6e,
|
|
|
+ 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49,
|
|
|
+ 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01,
|
|
|
+ 0x28, 0x03, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f,
|
|
|
+ 0x75, 0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74,
|
|
|
+ 0x12, 0x10, 0x0a, 0x03, 0x69, 0x64, 0x73, 0x18, 0x06, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x69,
|
|
|
+ 0x64, 0x73, 0x22, 0x7e, 0x0a, 0x0a, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71,
|
|
|
+ 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
+ 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69,
|
|
|
+ 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x66,
|
|
|
+ 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x65,
|
|
|
+ 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x65, 0x6e, 0x74,
|
|
|
+ 0x49, 0x64, 0x12, 0x1e, 0x0a, 0x0b, 0x65, 0x6e, 0x74, 0x5f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69,
|
|
|
+ 0x64, 0x18, 0x04, 0x20, 0x03, 0x28, 0x03, 0x52, 0x09, 0x65, 0x6e, 0x74, 0x55, 0x73, 0x65, 0x72,
|
|
|
+ 0x49, 0x64, 0x22, 0x9a, 0x01, 0x0a, 0x0e, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x4c, 0x69,
|
|
|
+ 0x73, 0x74, 0x52, 0x65, 0x71, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x18, 0x01,
|
|
|
+ 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x61, 0x70, 0x70, 0x69, 0x64, 0x12, 0x23, 0x0a, 0x0d, 0x66,
|
|
|
+ 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01,
|
|
|
+ 0x28, 0x09, 0x52, 0x0c, 0x66, 0x75, 0x6e, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65,
|
|
|
+ 0x12, 0x15, 0x0a, 0x06, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03,
|
|
|
+ 0x52, 0x05, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x19, 0x0a, 0x08, 0x70, 0x61, 0x67, 0x65, 0x5f,
|
|
|
+ 0x6e, 0x75, 0x6d, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x70, 0x61, 0x67, 0x65, 0x4e,
|
|
|
+ 0x75, 0x6d, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18,
|
|
|
+ 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x22,
|
|
|
+ 0x45, 0x0a, 0x0f, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65,
|
|
|
+ 0x73, 0x70, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28,
|
|
|
+ 0x03, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1c, 0x0a, 0x04, 0x6c, 0x69, 0x73, 0x74,
|
|
|
+ 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x08, 0x2e, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72,
|
|
|
+ 0x52, 0x04, 0x6c, 0x69, 0x73, 0x74, 0x22, 0x60, 0x0a, 0x04, 0x52, 0x65, 0x73, 0x70, 0x12, 0x16,
|
|
|
+ 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06,
|
|
|
+ 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1b, 0x0a, 0x09, 0x75, 0x73, 0x65, 0x5f, 0x63, 0x6f,
|
|
|
+ 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x75, 0x73, 0x65, 0x43, 0x6f,
|
|
|
+ 0x75, 0x6e, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x75, 0x72, 0x70, 0x6c, 0x75, 0x73, 0x5f, 0x63,
|
|
|
+ 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x73, 0x75, 0x72, 0x70,
|
|
|
+ 0x6c, 0x75, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x32, 0x8c, 0x02, 0x0a, 0x08, 0x52, 0x65, 0x73,
|
|
|
+ 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x1f, 0x0a, 0x0b, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x48, 0x61,
|
|
|
+ 0x6e, 0x64, 0x6c, 0x65, 0x12, 0x09, 0x2e, 0x50, 0x6f, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a,
|
|
|
+ 0x05, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x23, 0x0a, 0x0a, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50,
|
|
|
+ 0x6f, 0x77, 0x65, 0x72, 0x12, 0x0e, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x50, 0x6f, 0x77, 0x65,
|
|
|
+ 0x72, 0x52, 0x65, 0x71, 0x1a, 0x05, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x21, 0x0a, 0x09, 0x44,
|
|
|
+ 0x65, 0x64, 0x75, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x0d, 0x2e, 0x44, 0x65, 0x64, 0x75, 0x63,
|
|
|
+ 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x1a, 0x05, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1f,
|
|
|
+ 0x0a, 0x08, 0x52, 0x65, 0x63, 0x68, 0x61, 0x72, 0x67, 0x65, 0x12, 0x0c, 0x2e, 0x52, 0x65, 0x63,
|
|
|
+ 0x68, 0x61, 0x72, 0x67, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x05, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x12,
|
|
|
+ 0x1f, 0x0a, 0x09, 0x52, 0x65, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x12, 0x0b, 0x2e, 0x45,
|
|
|
+ 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x05, 0x2e, 0x52, 0x65, 0x73, 0x70,
|
|
|
+ 0x12, 0x23, 0x0a, 0x0d, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65,
|
|
|
+ 0x72, 0x12, 0x0b, 0x2e, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x05,
|
|
|
+ 0x2e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x30, 0x0a, 0x0b, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72,
|
|
|
+ 0x4c, 0x69, 0x73, 0x74, 0x12, 0x0f, 0x2e, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x4c, 0x69,
|
|
|
+ 0x73, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x10, 0x2e, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x4c,
|
|
|
+ 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62,
|
|
|
+ 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
}
|
|
|
|
|
|
var (
|
|
@@ -674,33 +793,36 @@ func file_resource_proto_rawDescGZIP() []byte {
|
|
|
return file_resource_proto_rawDescData
|
|
|
}
|
|
|
|
|
|
-var file_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
|
|
|
+var file_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
|
|
var file_resource_proto_goTypes = []interface{}{
|
|
|
(*Empower)(nil), // 0: Empower
|
|
|
(*PowerReq)(nil), // 1: PowerReq
|
|
|
(*CheckPowerReq)(nil), // 2: CheckPowerReq
|
|
|
(*DeductionReq)(nil), // 3: DeductionReq
|
|
|
- (*EmpowerReq)(nil), // 4: EmpowerReq
|
|
|
- (*EmpowerListReq)(nil), // 5: EmpowerListReq
|
|
|
- (*EmpowerListResp)(nil), // 6: EmpowerListResp
|
|
|
- (*Resp)(nil), // 7: Resp
|
|
|
+ (*RechargeReq)(nil), // 4: RechargeReq
|
|
|
+ (*EmpowerReq)(nil), // 5: EmpowerReq
|
|
|
+ (*EmpowerListReq)(nil), // 6: EmpowerListReq
|
|
|
+ (*EmpowerListResp)(nil), // 7: EmpowerListResp
|
|
|
+ (*Resp)(nil), // 8: Resp
|
|
|
}
|
|
|
var file_resource_proto_depIdxs = []int32{
|
|
|
0, // 0: EmpowerListResp.list:type_name -> Empower
|
|
|
1, // 1: Resource.PowerHandle:input_type -> PowerReq
|
|
|
2, // 2: Resource.CheckPower:input_type -> CheckPowerReq
|
|
|
3, // 3: Resource.Deduction:input_type -> DeductionReq
|
|
|
- 4, // 4: Resource.ReEmpower:input_type -> EmpowerReq
|
|
|
- 4, // 5: Resource.CancelEmpower:input_type -> EmpowerReq
|
|
|
- 5, // 6: Resource.EmpowerList:input_type -> EmpowerListReq
|
|
|
- 7, // 7: Resource.PowerHandle:output_type -> Resp
|
|
|
- 7, // 8: Resource.CheckPower:output_type -> Resp
|
|
|
- 7, // 9: Resource.Deduction:output_type -> Resp
|
|
|
- 7, // 10: Resource.ReEmpower:output_type -> Resp
|
|
|
- 7, // 11: Resource.CancelEmpower:output_type -> Resp
|
|
|
- 6, // 12: Resource.EmpowerList:output_type -> EmpowerListResp
|
|
|
- 7, // [7:13] is the sub-list for method output_type
|
|
|
- 1, // [1:7] is the sub-list for method input_type
|
|
|
+ 4, // 4: Resource.Recharge:input_type -> RechargeReq
|
|
|
+ 5, // 5: Resource.ReEmpower:input_type -> EmpowerReq
|
|
|
+ 5, // 6: Resource.CancelEmpower:input_type -> EmpowerReq
|
|
|
+ 6, // 7: Resource.EmpowerList:input_type -> EmpowerListReq
|
|
|
+ 8, // 8: Resource.PowerHandle:output_type -> Resp
|
|
|
+ 8, // 9: Resource.CheckPower:output_type -> Resp
|
|
|
+ 8, // 10: Resource.Deduction:output_type -> Resp
|
|
|
+ 8, // 11: Resource.Recharge:output_type -> Resp
|
|
|
+ 8, // 12: Resource.ReEmpower:output_type -> Resp
|
|
|
+ 8, // 13: Resource.CancelEmpower:output_type -> Resp
|
|
|
+ 7, // 14: Resource.EmpowerList:output_type -> EmpowerListResp
|
|
|
+ 8, // [8:15] is the sub-list for method output_type
|
|
|
+ 1, // [1:8] is the sub-list for method input_type
|
|
|
1, // [1:1] is the sub-list for extension type_name
|
|
|
1, // [1:1] is the sub-list for extension extendee
|
|
|
0, // [0:1] is the sub-list for field type_name
|
|
@@ -761,7 +883,7 @@ func file_resource_proto_init() {
|
|
|
}
|
|
|
}
|
|
|
file_resource_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
|
- switch v := v.(*EmpowerReq); i {
|
|
|
+ switch v := v.(*RechargeReq); i {
|
|
|
case 0:
|
|
|
return &v.state
|
|
|
case 1:
|
|
@@ -773,7 +895,7 @@ func file_resource_proto_init() {
|
|
|
}
|
|
|
}
|
|
|
file_resource_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
|
|
- switch v := v.(*EmpowerListReq); i {
|
|
|
+ switch v := v.(*EmpowerReq); i {
|
|
|
case 0:
|
|
|
return &v.state
|
|
|
case 1:
|
|
@@ -785,7 +907,7 @@ func file_resource_proto_init() {
|
|
|
}
|
|
|
}
|
|
|
file_resource_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
|
|
- switch v := v.(*EmpowerListResp); i {
|
|
|
+ switch v := v.(*EmpowerListReq); i {
|
|
|
case 0:
|
|
|
return &v.state
|
|
|
case 1:
|
|
@@ -797,6 +919,18 @@ func file_resource_proto_init() {
|
|
|
}
|
|
|
}
|
|
|
file_resource_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
|
|
+ switch v := v.(*EmpowerListResp); i {
|
|
|
+ case 0:
|
|
|
+ return &v.state
|
|
|
+ case 1:
|
|
|
+ return &v.sizeCache
|
|
|
+ case 2:
|
|
|
+ return &v.unknownFields
|
|
|
+ default:
|
|
|
+ return nil
|
|
|
+ }
|
|
|
+ }
|
|
|
+ file_resource_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
|
|
switch v := v.(*Resp); i {
|
|
|
case 0:
|
|
|
return &v.state
|
|
@@ -815,7 +949,7 @@ func file_resource_proto_init() {
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
RawDescriptor: file_resource_proto_rawDesc,
|
|
|
NumEnums: 0,
|
|
|
- NumMessages: 8,
|
|
|
+ NumMessages: 9,
|
|
|
NumExtensions: 0,
|
|
|
NumServices: 1,
|
|
|
},
|