Browse Source

update

master
jaydan 1 year ago
parent
commit
4709cfbc84
  1. 142
      user_group/v1/user_group.pb.go
  2. 4
      user_group/v1/user_group.proto
  3. 12
      user_group/v1/user_group_grpc.pb.go

142
user_group/v1/user_group.pb.go

@ -885,7 +885,7 @@ func (x *CalculateUserGroupReq) GetUserGroupId() int64 {
return 0
}
type CalculateUserGroupTargetReq struct {
type CalculateUserGroupByTargetReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
@ -895,8 +895,8 @@ type CalculateUserGroupTargetReq struct {
Uid int64 `protobuf:"varint,2,opt,name=uid,proto3" json:"uid"`
}
func (x *CalculateUserGroupTargetReq) Reset() {
*x = CalculateUserGroupTargetReq{}
func (x *CalculateUserGroupByTargetReq) Reset() {
*x = CalculateUserGroupByTargetReq{}
if protoimpl.UnsafeEnabled {
mi := &file_user_group_v1_user_group_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@ -904,13 +904,13 @@ func (x *CalculateUserGroupTargetReq) Reset() {
}
}
func (x *CalculateUserGroupTargetReq) String() string {
func (x *CalculateUserGroupByTargetReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CalculateUserGroupTargetReq) ProtoMessage() {}
func (*CalculateUserGroupByTargetReq) ProtoMessage() {}
func (x *CalculateUserGroupTargetReq) ProtoReflect() protoreflect.Message {
func (x *CalculateUserGroupByTargetReq) ProtoReflect() protoreflect.Message {
mi := &file_user_group_v1_user_group_proto_msgTypes[13]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
@ -922,19 +922,19 @@ func (x *CalculateUserGroupTargetReq) ProtoReflect() protoreflect.Message {
return mi.MessageOf(x)
}
// Deprecated: Use CalculateUserGroupTargetReq.ProtoReflect.Descriptor instead.
func (*CalculateUserGroupTargetReq) Descriptor() ([]byte, []int) {
// Deprecated: Use CalculateUserGroupByTargetReq.ProtoReflect.Descriptor instead.
func (*CalculateUserGroupByTargetReq) Descriptor() ([]byte, []int) {
return file_user_group_v1_user_group_proto_rawDescGZIP(), []int{13}
}
func (x *CalculateUserGroupTargetReq) GetTarget() int32 {
func (x *CalculateUserGroupByTargetReq) GetTarget() int32 {
if x != nil {
return x.Target
}
return 0
}
func (x *CalculateUserGroupTargetReq) GetUid() int64 {
func (x *CalculateUserGroupByTargetReq) GetUid() int64 {
if x != nil {
return x.Uid
}
@ -1060,66 +1060,66 @@ var file_user_group_v1_user_group_proto_rawDesc = []byte{
0x43, 0x61, 0x6c, 0x63, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f,
0x75, 0x70, 0x52, 0x65, 0x71, 0x12, 0x22, 0x0a, 0x0d, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x67, 0x72,
0x6f, 0x75, 0x70, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0b, 0x75, 0x73,
0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x22, 0x47, 0x0a, 0x1b, 0x43, 0x61, 0x6c,
0x63, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x54,
0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61, 0x72, 0x67,
0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74,
0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x75,
0x69, 0x64, 0x32, 0x92, 0x06, 0x0a, 0x09, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70,
0x12, 0x58, 0x0a, 0x0f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72,
0x6f, 0x75, 0x70, 0x12, 0x21, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70,
0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72,
0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x1a, 0x22, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x63, 0x68, 0x61,
0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x63, 0x6f,
0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x58, 0x0a, 0x0f, 0x55, 0x70,
0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x21, 0x2e,
0x75, 0x73, 0x65, 0x72, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x70,
0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71,
0x1a, 0x22, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x63, 0x68, 0x61, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e,
0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x45,
0x6d, 0x70, 0x74, 0x79, 0x12, 0x55, 0x0a, 0x0e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x73, 0x65,
0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x20, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x67, 0x72,
0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72,
0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x1a, 0x21, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x5f,
0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x64, 0x22, 0x49, 0x0a, 0x1d, 0x43, 0x61, 0x6c,
0x63, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42,
0x79, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x74, 0x61,
0x72, 0x67, 0x65, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x06, 0x74, 0x61, 0x72, 0x67,
0x65, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52,
0x03, 0x75, 0x69, 0x64, 0x32, 0x94, 0x06, 0x0a, 0x09, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f,
0x75, 0x70, 0x12, 0x58, 0x0a, 0x0f, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72,
0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x21, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x67, 0x72, 0x6f,
0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72,
0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x1a, 0x22, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x63,
0x68, 0x61, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e,
0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x58, 0x0a, 0x0f,
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12,
0x21, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e,
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52,
0x65, 0x71, 0x1a, 0x22, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x63, 0x68, 0x61, 0x74, 0x2e, 0x61, 0x70,
0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e,
0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x55, 0x0a, 0x0e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55,
0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x20, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x5f,
0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x73,
0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x12, 0x64, 0x0a, 0x13, 0x51,
0x75, 0x65, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x54, 0x6f, 0x74,
0x61, 0x6c, 0x12, 0x20, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e,
0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75,
0x70, 0x52, 0x65, 0x71, 0x1a, 0x2b, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x63, 0x68, 0x61, 0x74, 0x2e,
0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d,
0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x73,
0x70, 0x12, 0x48, 0x0a, 0x07, 0x41, 0x64, 0x64, 0x55, 0x73, 0x65, 0x72, 0x12, 0x19, 0x2e, 0x75,
0x73, 0x65, 0x72, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x64, 0x64,
0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x22, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x63, 0x68,
0x61, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x63,
0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x6a, 0x0a, 0x15, 0x51,
0x75, 0x65, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x55, 0x73, 0x65,
0x72, 0x4d, 0x61, 0x70, 0x12, 0x27, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x67, 0x72, 0x6f, 0x75,
0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x1a, 0x21, 0x2e, 0x75, 0x73, 0x65,
0x72, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79,
0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x12, 0x64, 0x0a,
0x13, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x54,
0x6f, 0x74, 0x61, 0x6c, 0x12, 0x20, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x67, 0x72, 0x6f, 0x75,
0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72,
0x6f, 0x75, 0x70, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x61, 0x70, 0x52, 0x65, 0x71, 0x1a, 0x28, 0x2e,
0x75, 0x73, 0x65, 0x72, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75,
0x65, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x55, 0x73, 0x65, 0x72,
0x4d, 0x61, 0x70, 0x52, 0x65, 0x73, 0x70, 0x12, 0x67, 0x0a, 0x12, 0x43, 0x61, 0x6c, 0x63, 0x75,
0x6c, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x24, 0x2e,
0x75, 0x73, 0x65, 0x72, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x61,
0x6c, 0x63, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70,
0x52, 0x65, 0x71, 0x1a, 0x2b, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x63, 0x68, 0x61, 0x74, 0x2e, 0x61,
0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f,
0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70,
0x12, 0x75, 0x0a, 0x1a, 0x43, 0x61, 0x6c, 0x63, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65,
0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x79, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x12, 0x2a,
0x2e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x43,
0x61, 0x6c, 0x63, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75,
0x70, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x2b, 0x2e, 0x6d, 0x65, 0x74,
0x61, 0x63, 0x68, 0x61, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f,
0x74, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x42, 0x40, 0x5a, 0x3e, 0x67, 0x69, 0x74, 0x2e, 0x67,
0x7a, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x6a, 0x75, 0x6d, 0x61, 0x69,
0x79, 0x78, 0x2e, 0x63, 0x6e, 0x2f, 0x6a, 0x6d, 0x2f, 0x6a, 0x6d, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x2f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f, 0x76, 0x31, 0x3b, 0x75,
0x73, 0x65, 0x72, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
0x33,
0x6f, 0x75, 0x70, 0x52, 0x65, 0x71, 0x1a, 0x2b, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x63, 0x68, 0x61,
0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x63, 0x6f,
0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52,
0x65, 0x73, 0x70, 0x12, 0x48, 0x0a, 0x07, 0x41, 0x64, 0x64, 0x55, 0x73, 0x65, 0x72, 0x12, 0x19,
0x2e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x41,
0x64, 0x64, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x71, 0x1a, 0x22, 0x2e, 0x6d, 0x65, 0x74, 0x61,
0x63, 0x68, 0x61, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x6a, 0x0a,
0x15, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x55,
0x73, 0x65, 0x72, 0x4d, 0x61, 0x70, 0x12, 0x27, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x67, 0x72,
0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72,
0x47, 0x72, 0x6f, 0x75, 0x70, 0x55, 0x73, 0x65, 0x72, 0x4d, 0x61, 0x70, 0x52, 0x65, 0x71, 0x1a,
0x28, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e,
0x51, 0x75, 0x65, 0x72, 0x79, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x55, 0x73,
0x65, 0x72, 0x4d, 0x61, 0x70, 0x52, 0x65, 0x73, 0x70, 0x12, 0x67, 0x0a, 0x12, 0x43, 0x61, 0x6c,
0x63, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12,
0x24, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31, 0x2e,
0x43, 0x61, 0x6c, 0x63, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72, 0x6f,
0x75, 0x70, 0x52, 0x65, 0x71, 0x1a, 0x2b, 0x2e, 0x6d, 0x65, 0x74, 0x61, 0x63, 0x68, 0x61, 0x74,
0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x63, 0x6f, 0x6d,
0x6d, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65, 0x72, 0x79, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65,
0x73, 0x70, 0x12, 0x77, 0x0a, 0x1a, 0x43, 0x61, 0x6c, 0x63, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x55,
0x73, 0x65, 0x72, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x42, 0x79, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74,
0x12, 0x2c, 0x2e, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2e, 0x76, 0x31,
0x2e, 0x43, 0x61, 0x6c, 0x63, 0x75, 0x6c, 0x61, 0x74, 0x65, 0x55, 0x73, 0x65, 0x72, 0x47, 0x72,
0x6f, 0x75, 0x70, 0x42, 0x79, 0x54, 0x61, 0x72, 0x67, 0x65, 0x74, 0x52, 0x65, 0x71, 0x1a, 0x2b,
0x2e, 0x6d, 0x65, 0x74, 0x61, 0x63, 0x68, 0x61, 0x74, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x73, 0x65,
0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x51, 0x75, 0x65,
0x72, 0x79, 0x54, 0x6f, 0x74, 0x61, 0x6c, 0x52, 0x65, 0x73, 0x70, 0x42, 0x40, 0x5a, 0x3e, 0x67,
0x69, 0x74, 0x2e, 0x67, 0x7a, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x6a,
0x75, 0x6d, 0x61, 0x69, 0x79, 0x78, 0x2e, 0x63, 0x6e, 0x2f, 0x6a, 0x6d, 0x2f, 0x6a, 0x6d, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x2f,
0x76, 0x31, 0x3b, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x62, 0x06, 0x70,
0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
@ -1149,7 +1149,7 @@ var file_user_group_v1_user_group_proto_goTypes = []interface{}{
(*QueryUserGroupUserMapRespItem)(nil), // 10: user_group.v1.QueryUserGroupUserMapRespItem
(*QueryUserGroupUserMapResp)(nil), // 11: user_group.v1.QueryUserGroupUserMapResp
(*CalculateUserGroupReq)(nil), // 12: user_group.v1.CalculateUserGroupReq
(*CalculateUserGroupTargetReq)(nil), // 13: user_group.v1.CalculateUserGroupTargetReq
(*CalculateUserGroupByTargetReq)(nil), // 13: user_group.v1.CalculateUserGroupByTargetReq
(*common.Empty)(nil), // 14: metachat.api.service.common.Empty
(*common.QueryTotalResp)(nil), // 15: metachat.api.service.common.QueryTotalResp
}
@ -1166,7 +1166,7 @@ var file_user_group_v1_user_group_proto_depIdxs = []int32{
8, // 9: user_group.v1.UserGroup.AddUser:input_type -> user_group.v1.AddUserReq
9, // 10: user_group.v1.UserGroup.QueryUserGroupUserMap:input_type -> user_group.v1.QueryUserGroupUserMapReq
12, // 11: user_group.v1.UserGroup.CalculateUserGroup:input_type -> user_group.v1.CalculateUserGroupReq
13, // 12: user_group.v1.UserGroup.CalculateUserGroupByTarget:input_type -> user_group.v1.CalculateUserGroupTargetReq
13, // 12: user_group.v1.UserGroup.CalculateUserGroupByTarget:input_type -> user_group.v1.CalculateUserGroupByTargetReq
14, // 13: user_group.v1.UserGroup.CreateUserGroup:output_type -> metachat.api.service.common.Empty
14, // 14: user_group.v1.UserGroup.UpdateUserGroup:output_type -> metachat.api.service.common.Empty
7, // 15: user_group.v1.UserGroup.QueryUserGroup:output_type -> user_group.v1.QueryUserGroupResp
@ -1345,7 +1345,7 @@ func file_user_group_v1_user_group_proto_init() {
}
}
file_user_group_v1_user_group_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CalculateUserGroupTargetReq); i {
switch v := v.(*CalculateUserGroupByTargetReq); i {
case 0:
return &v.state
case 1:

4
user_group/v1/user_group.proto

@ -22,7 +22,7 @@ service UserGroup {
//
rpc CalculateUserGroup (CalculateUserGroupReq) returns (metachat.api.service.common.QueryTotalResp);
//
rpc CalculateUserGroupByTarget (CalculateUserGroupTargetReq) returns (metachat.api.service.common.QueryTotalResp);
rpc CalculateUserGroupByTarget (CalculateUserGroupByTargetReq) returns (metachat.api.service.common.QueryTotalResp);
}
message CreateUserGroupRoleReq {
@ -120,7 +120,7 @@ message CalculateUserGroupReq {
int64 user_group_id = 1;
}
message CalculateUserGroupTargetReq {
message CalculateUserGroupByTargetReq {
// 1 - 2 -
int32 target = 1;
int64 uid = 2;

12
user_group/v1/user_group_grpc.pb.go

@ -38,7 +38,7 @@ type UserGroupClient interface {
// 计算属于用户组的用户
CalculateUserGroup(ctx context.Context, in *CalculateUserGroupReq, opts ...grpc.CallOption) (*common.QueryTotalResp, error)
// 计算用户所属的用户组,基于事件
CalculateUserGroupByTarget(ctx context.Context, in *CalculateUserGroupTargetReq, opts ...grpc.CallOption) (*common.QueryTotalResp, error)
CalculateUserGroupByTarget(ctx context.Context, in *CalculateUserGroupByTargetReq, opts ...grpc.CallOption) (*common.QueryTotalResp, error)
}
type userGroupClient struct {
@ -112,7 +112,7 @@ func (c *userGroupClient) CalculateUserGroup(ctx context.Context, in *CalculateU
return out, nil
}
func (c *userGroupClient) CalculateUserGroupByTarget(ctx context.Context, in *CalculateUserGroupTargetReq, opts ...grpc.CallOption) (*common.QueryTotalResp, error) {
func (c *userGroupClient) CalculateUserGroupByTarget(ctx context.Context, in *CalculateUserGroupByTargetReq, opts ...grpc.CallOption) (*common.QueryTotalResp, error) {
out := new(common.QueryTotalResp)
err := c.cc.Invoke(ctx, "/user_group.v1.UserGroup/CalculateUserGroupByTarget", in, out, opts...)
if err != nil {
@ -140,7 +140,7 @@ type UserGroupServer interface {
// 计算属于用户组的用户
CalculateUserGroup(context.Context, *CalculateUserGroupReq) (*common.QueryTotalResp, error)
// 计算用户所属的用户组,基于事件
CalculateUserGroupByTarget(context.Context, *CalculateUserGroupTargetReq) (*common.QueryTotalResp, error)
CalculateUserGroupByTarget(context.Context, *CalculateUserGroupByTargetReq) (*common.QueryTotalResp, error)
mustEmbedUnimplementedUserGroupServer()
}
@ -169,7 +169,7 @@ func (UnimplementedUserGroupServer) QueryUserGroupUserMap(context.Context, *Quer
func (UnimplementedUserGroupServer) CalculateUserGroup(context.Context, *CalculateUserGroupReq) (*common.QueryTotalResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method CalculateUserGroup not implemented")
}
func (UnimplementedUserGroupServer) CalculateUserGroupByTarget(context.Context, *CalculateUserGroupTargetReq) (*common.QueryTotalResp, error) {
func (UnimplementedUserGroupServer) CalculateUserGroupByTarget(context.Context, *CalculateUserGroupByTargetReq) (*common.QueryTotalResp, error) {
return nil, status.Errorf(codes.Unimplemented, "method CalculateUserGroupByTarget not implemented")
}
func (UnimplementedUserGroupServer) mustEmbedUnimplementedUserGroupServer() {}
@ -312,7 +312,7 @@ func _UserGroup_CalculateUserGroup_Handler(srv interface{}, ctx context.Context,
}
func _UserGroup_CalculateUserGroupByTarget_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CalculateUserGroupTargetReq)
in := new(CalculateUserGroupByTargetReq)
if err := dec(in); err != nil {
return nil, err
}
@ -324,7 +324,7 @@ func _UserGroup_CalculateUserGroupByTarget_Handler(srv interface{}, ctx context.
FullMethod: "/user_group.v1.UserGroup/CalculateUserGroupByTarget",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(UserGroupServer).CalculateUserGroupByTarget(ctx, req.(*CalculateUserGroupTargetReq))
return srv.(UserGroupServer).CalculateUserGroupByTarget(ctx, req.(*CalculateUserGroupByTargetReq))
}
return interceptor(ctx, in, info, handler)
}

Loading…
Cancel
Save