|
@@ -281,7 +281,7 @@ func (x *DeductionReq) GetIds() []string {
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
-type ReEmpowerReq struct {
|
|
|
+type EmpowerReq struct {
|
|
|
state protoimpl.MessageState
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
unknownFields protoimpl.UnknownFields
|
|
@@ -292,8 +292,8 @@ type ReEmpowerReq struct {
|
|
|
EntUserId []int64 `protobuf:"varint,4,rep,packed,name=ent_user_id,json=entUserId,proto3" json:"ent_user_id,omitempty"` //企业用户id
|
|
|
}
|
|
|
|
|
|
-func (x *ReEmpowerReq) Reset() {
|
|
|
- *x = ReEmpowerReq{}
|
|
|
+func (x *EmpowerReq) Reset() {
|
|
|
+ *x = EmpowerReq{}
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
mi := &file_resource_proto_msgTypes[3]
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
@@ -301,13 +301,13 @@ func (x *ReEmpowerReq) Reset() {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-func (x *ReEmpowerReq) String() string {
|
|
|
+func (x *EmpowerReq) String() string {
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
}
|
|
|
|
|
|
-func (*ReEmpowerReq) ProtoMessage() {}
|
|
|
+func (*EmpowerReq) ProtoMessage() {}
|
|
|
|
|
|
-func (x *ReEmpowerReq) ProtoReflect() protoreflect.Message {
|
|
|
+func (x *EmpowerReq) ProtoReflect() protoreflect.Message {
|
|
|
mi := &file_resource_proto_msgTypes[3]
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
@@ -319,33 +319,33 @@ func (x *ReEmpowerReq) ProtoReflect() protoreflect.Message {
|
|
|
return mi.MessageOf(x)
|
|
|
}
|
|
|
|
|
|
-// Deprecated: Use ReEmpowerReq.ProtoReflect.Descriptor instead.
|
|
|
-func (*ReEmpowerReq) Descriptor() ([]byte, []int) {
|
|
|
+// Deprecated: Use EmpowerReq.ProtoReflect.Descriptor instead.
|
|
|
+func (*EmpowerReq) Descriptor() ([]byte, []int) {
|
|
|
return file_resource_proto_rawDescGZIP(), []int{3}
|
|
|
}
|
|
|
|
|
|
-func (x *ReEmpowerReq) GetAppid() string {
|
|
|
+func (x *EmpowerReq) GetAppid() string {
|
|
|
if x != nil {
|
|
|
return x.Appid
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
-func (x *ReEmpowerReq) GetFunctionCode() string {
|
|
|
+func (x *EmpowerReq) GetFunctionCode() string {
|
|
|
if x != nil {
|
|
|
return x.FunctionCode
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
-func (x *ReEmpowerReq) GetEntId() int64 {
|
|
|
+func (x *EmpowerReq) GetEntId() int64 {
|
|
|
if x != nil {
|
|
|
return x.EntId
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
-func (x *ReEmpowerReq) GetEntUserId() []int64 {
|
|
|
+func (x *EmpowerReq) GetEntUserId() []int64 {
|
|
|
if x != nil {
|
|
|
return x.EntUserId
|
|
|
}
|
|
@@ -435,25 +435,27 @@ var file_resource_proto_rawDesc = []byte{
|
|
|
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, 0x80, 0x01, 0x0a, 0x0c, 0x52, 0x65, 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, 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, 0x96, 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, 0x21, 0x0a,
|
|
|
- 0x09, 0x52, 0x65, 0x45, 0x6d, 0x70, 0x6f, 0x77, 0x65, 0x72, 0x12, 0x0d, 0x2e, 0x52, 0x65, 0x45,
|
|
|
+ 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, 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, 0xb9, 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,
|
|
|
0x42, 0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
|
}
|
|
@@ -475,20 +477,22 @@ var file_resource_proto_goTypes = []interface{}{
|
|
|
(*PowerReq)(nil), // 0: PowerReq
|
|
|
(*CheckPowerReq)(nil), // 1: CheckPowerReq
|
|
|
(*DeductionReq)(nil), // 2: DeductionReq
|
|
|
- (*ReEmpowerReq)(nil), // 3: ReEmpowerReq
|
|
|
+ (*EmpowerReq)(nil), // 3: EmpowerReq
|
|
|
(*Resp)(nil), // 4: Resp
|
|
|
}
|
|
|
var file_resource_proto_depIdxs = []int32{
|
|
|
0, // 0: Resource.PowerHandle:input_type -> PowerReq
|
|
|
1, // 1: Resource.CheckPower:input_type -> CheckPowerReq
|
|
|
2, // 2: Resource.Deduction:input_type -> DeductionReq
|
|
|
- 3, // 3: Resource.ReEmpower:input_type -> ReEmpowerReq
|
|
|
- 4, // 4: Resource.PowerHandle:output_type -> Resp
|
|
|
- 4, // 5: Resource.CheckPower:output_type -> Resp
|
|
|
- 4, // 6: Resource.Deduction:output_type -> Resp
|
|
|
- 4, // 7: Resource.ReEmpower:output_type -> Resp
|
|
|
- 4, // [4:8] is the sub-list for method output_type
|
|
|
- 0, // [0:4] is the sub-list for method input_type
|
|
|
+ 3, // 3: Resource.ReEmpower:input_type -> EmpowerReq
|
|
|
+ 3, // 4: Resource.CancelEmpower:input_type -> EmpowerReq
|
|
|
+ 4, // 5: Resource.PowerHandle:output_type -> Resp
|
|
|
+ 4, // 6: Resource.CheckPower:output_type -> Resp
|
|
|
+ 4, // 7: Resource.Deduction:output_type -> Resp
|
|
|
+ 4, // 8: Resource.ReEmpower:output_type -> Resp
|
|
|
+ 4, // 9: Resource.CancelEmpower:output_type -> Resp
|
|
|
+ 5, // [5:10] is the sub-list for method output_type
|
|
|
+ 0, // [0:5] 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
|
|
@@ -537,7 +541,7 @@ func file_resource_proto_init() {
|
|
|
}
|
|
|
}
|
|
|
file_resource_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
|
- switch v := v.(*ReEmpowerReq); i {
|
|
|
+ switch v := v.(*EmpowerReq); i {
|
|
|
case 0:
|
|
|
return &v.state
|
|
|
case 1:
|