refactor: centralize protobuf and remove go-zero
This commit is contained in:
@@ -1,707 +0,0 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.8
|
||||
// protoc (unknown)
|
||||
// source: blocks.proto
|
||||
|
||||
package group
|
||||
|
||||
import (
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
sync "sync"
|
||||
unsafe "unsafe"
|
||||
)
|
||||
|
||||
const (
|
||||
// Verify that this generated code is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
||||
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
||||
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
||||
)
|
||||
|
||||
type FetchRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
PageNo int64 `protobuf:"varint,1,opt,name=page_no,json=pageNo,proto3" json:"page_no,omitempty"` // 页数
|
||||
PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // 每页记录数
|
||||
Params map[string]string `protobuf:"bytes,3,rep,name=params,proto3" json:"params,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"` // 条件参数,key=val,eg key:category_id=?,vlaue=11
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *FetchRequest) Reset() {
|
||||
*x = FetchRequest{}
|
||||
mi := &file_blocks_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *FetchRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*FetchRequest) ProtoMessage() {}
|
||||
|
||||
func (x *FetchRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_blocks_proto_msgTypes[0]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use FetchRequest.ProtoReflect.Descriptor instead.
|
||||
func (*FetchRequest) Descriptor() ([]byte, []int) {
|
||||
return file_blocks_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *FetchRequest) GetPageNo() int64 {
|
||||
if x != nil {
|
||||
return x.PageNo
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *FetchRequest) GetPageSize() int64 {
|
||||
if x != nil {
|
||||
return x.PageSize
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *FetchRequest) GetParams() map[string]string {
|
||||
if x != nil {
|
||||
return x.Params
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type IdentRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // 唯一ID
|
||||
Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` // 唯一码
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *IdentRequest) Reset() {
|
||||
*x = IdentRequest{}
|
||||
mi := &file_blocks_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *IdentRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*IdentRequest) ProtoMessage() {}
|
||||
|
||||
func (x *IdentRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_blocks_proto_msgTypes[1]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use IdentRequest.ProtoReflect.Descriptor instead.
|
||||
func (*IdentRequest) Descriptor() ([]byte, []int) {
|
||||
return file_blocks_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *IdentRequest) GetId() int64 {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *IdentRequest) GetIdentity() string {
|
||||
if x != nil {
|
||||
return x.Identity
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type VersionRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Version int64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"` // 时序版本号
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *VersionRequest) Reset() {
|
||||
*x = VersionRequest{}
|
||||
mi := &file_blocks_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *VersionRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*VersionRequest) ProtoMessage() {}
|
||||
|
||||
func (x *VersionRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_blocks_proto_msgTypes[2]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use VersionRequest.ProtoReflect.Descriptor instead.
|
||||
func (*VersionRequest) Descriptor() ([]byte, []int) {
|
||||
return file_blocks_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *VersionRequest) GetVersion() int64 {
|
||||
if x != nil {
|
||||
return x.Version
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type SearchRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Keyword string `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword,omitempty"` //关键词
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *SearchRequest) Reset() {
|
||||
*x = SearchRequest{}
|
||||
mi := &file_blocks_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *SearchRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*SearchRequest) ProtoMessage() {}
|
||||
|
||||
func (x *SearchRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_blocks_proto_msgTypes[3]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use SearchRequest.ProtoReflect.Descriptor instead.
|
||||
func (*SearchRequest) Descriptor() ([]byte, []int) {
|
||||
return file_blocks_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *SearchRequest) GetKeyword() string {
|
||||
if x != nil {
|
||||
return x.Keyword
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type StatusReply struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Data string `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // 数据
|
||||
Timeseq int64 `protobuf:"varint,2,opt,name=timeseq,proto3" json:"timeseq,omitempty"` // 响应时间序列
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *StatusReply) Reset() {
|
||||
*x = StatusReply{}
|
||||
mi := &file_blocks_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *StatusReply) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*StatusReply) ProtoMessage() {}
|
||||
|
||||
func (x *StatusReply) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_blocks_proto_msgTypes[4]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use StatusReply.ProtoReflect.Descriptor instead.
|
||||
func (*StatusReply) Descriptor() ([]byte, []int) {
|
||||
return file_blocks_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *StatusReply) GetData() string {
|
||||
if x != nil {
|
||||
return x.Data
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *StatusReply) GetTimeseq() int64 {
|
||||
if x != nil {
|
||||
return x.Timeseq
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type Empty struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *Empty) Reset() {
|
||||
*x = Empty{}
|
||||
mi := &file_blocks_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *Empty) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*Empty) ProtoMessage() {}
|
||||
|
||||
func (x *Empty) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_blocks_proto_msgTypes[5]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use Empty.ProtoReflect.Descriptor instead.
|
||||
func (*Empty) Descriptor() ([]byte, []int) {
|
||||
return file_blocks_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
// 推文列表
|
||||
type PostListReply struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
List []*PostItem `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
|
||||
Cnt int64 `protobuf:"varint,2,opt,name=cnt,proto3" json:"cnt,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *PostListReply) Reset() {
|
||||
*x = PostListReply{}
|
||||
mi := &file_blocks_proto_msgTypes[6]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *PostListReply) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*PostListReply) ProtoMessage() {}
|
||||
|
||||
func (x *PostListReply) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_blocks_proto_msgTypes[6]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use PostListReply.ProtoReflect.Descriptor instead.
|
||||
func (*PostListReply) Descriptor() ([]byte, []int) {
|
||||
return file_blocks_proto_rawDescGZIP(), []int{6}
|
||||
}
|
||||
|
||||
func (x *PostListReply) GetList() []*PostItem {
|
||||
if x != nil {
|
||||
return x.List
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *PostListReply) GetCnt() int64 {
|
||||
if x != nil {
|
||||
return x.Cnt
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// 推文
|
||||
type PostItem struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` // 唯一标识
|
||||
Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // 内容
|
||||
PassportId int64 `protobuf:"varint,3,opt,name=passport_id,json=passportId,proto3" json:"passport_id,omitempty"` // 通行证ID
|
||||
PassportIdentity string `protobuf:"bytes,4,opt,name=passport_identity,json=passportIdentity,proto3" json:"passport_identity,omitempty"` // 通行证Identity
|
||||
IsOpen bool `protobuf:"varint,5,opt,name=is_open,json=isOpen,proto3" json:"is_open,omitempty"` // 是否公开:默认为0-公开,1-不公开
|
||||
CntUnlike int64 `protobuf:"varint,6,opt,name=cnt_unlike,json=cntUnlike,proto3" json:"cnt_unlike,omitempty"` // 点踩数量
|
||||
CntComment int64 `protobuf:"varint,7,opt,name=cnt_comment,json=cntComment,proto3" json:"cnt_comment,omitempty"` // 评论数量
|
||||
CntLike int64 `protobuf:"varint,8,opt,name=cnt_like,json=cntLike,proto3" json:"cnt_like,omitempty"` // 点赞数量
|
||||
Attachs []*AttachItem `protobuf:"bytes,9,rep,name=attachs,proto3" json:"attachs,omitempty"` // 附件信息
|
||||
Tags []*TagItem `protobuf:"bytes,10,rep,name=tags,proto3" json:"tags,omitempty"` // 所属话题
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *PostItem) Reset() {
|
||||
*x = PostItem{}
|
||||
mi := &file_blocks_proto_msgTypes[7]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *PostItem) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*PostItem) ProtoMessage() {}
|
||||
|
||||
func (x *PostItem) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_blocks_proto_msgTypes[7]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use PostItem.ProtoReflect.Descriptor instead.
|
||||
func (*PostItem) Descriptor() ([]byte, []int) {
|
||||
return file_blocks_proto_rawDescGZIP(), []int{7}
|
||||
}
|
||||
|
||||
func (x *PostItem) GetIdentity() string {
|
||||
if x != nil {
|
||||
return x.Identity
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *PostItem) GetContent() string {
|
||||
if x != nil {
|
||||
return x.Content
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *PostItem) GetPassportId() int64 {
|
||||
if x != nil {
|
||||
return x.PassportId
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *PostItem) GetPassportIdentity() string {
|
||||
if x != nil {
|
||||
return x.PassportIdentity
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *PostItem) GetIsOpen() bool {
|
||||
if x != nil {
|
||||
return x.IsOpen
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (x *PostItem) GetCntUnlike() int64 {
|
||||
if x != nil {
|
||||
return x.CntUnlike
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *PostItem) GetCntComment() int64 {
|
||||
if x != nil {
|
||||
return x.CntComment
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *PostItem) GetCntLike() int64 {
|
||||
if x != nil {
|
||||
return x.CntLike
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *PostItem) GetAttachs() []*AttachItem {
|
||||
if x != nil {
|
||||
return x.Attachs
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (x *PostItem) GetTags() []*TagItem {
|
||||
if x != nil {
|
||||
return x.Tags
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// 附件
|
||||
type AttachItem struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` // 唯一标识
|
||||
AttachType string `protobuf:"bytes,2,opt,name=attach_type,json=attachType,proto3" json:"attach_type,omitempty"` // 文件类型
|
||||
Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"` // 文件路径
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *AttachItem) Reset() {
|
||||
*x = AttachItem{}
|
||||
mi := &file_blocks_proto_msgTypes[8]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *AttachItem) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*AttachItem) ProtoMessage() {}
|
||||
|
||||
func (x *AttachItem) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_blocks_proto_msgTypes[8]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use AttachItem.ProtoReflect.Descriptor instead.
|
||||
func (*AttachItem) Descriptor() ([]byte, []int) {
|
||||
return file_blocks_proto_rawDescGZIP(), []int{8}
|
||||
}
|
||||
|
||||
func (x *AttachItem) GetIdentity() string {
|
||||
if x != nil {
|
||||
return x.Identity
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *AttachItem) GetAttachType() string {
|
||||
if x != nil {
|
||||
return x.AttachType
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *AttachItem) GetUrl() string {
|
||||
if x != nil {
|
||||
return x.Url
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// 标签
|
||||
type TagItem struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // 标签唯一码
|
||||
Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` // 标签内容
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *TagItem) Reset() {
|
||||
*x = TagItem{}
|
||||
mi := &file_blocks_proto_msgTypes[9]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *TagItem) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*TagItem) ProtoMessage() {}
|
||||
|
||||
func (x *TagItem) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_blocks_proto_msgTypes[9]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use TagItem.ProtoReflect.Descriptor instead.
|
||||
func (*TagItem) Descriptor() ([]byte, []int) {
|
||||
return file_blocks_proto_rawDescGZIP(), []int{9}
|
||||
}
|
||||
|
||||
func (x *TagItem) GetKey() string {
|
||||
if x != nil {
|
||||
return x.Key
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *TagItem) GetContent() string {
|
||||
if x != nil {
|
||||
return x.Content
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
var File_blocks_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_blocks_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x12group/blocks.proto\x12\x05group\"\xb8\x01\n" +
|
||||
"\fFetchRequest\x12\x17\n" +
|
||||
"\apage_no\x18\x01 \x01(\x03R\x06pageNo\x12\x1b\n" +
|
||||
"\tpage_size\x18\x02 \x01(\x03R\bpageSize\x127\n" +
|
||||
"\x06params\x18\x03 \x03(\v2\x1f.group.FetchRequest.ParamsEntryR\x06params\x1a9\n" +
|
||||
"\vParamsEntry\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x14\n" +
|
||||
"\x05value\x18\x02 \x01(\tR\x05value:\x028\x01\":\n" +
|
||||
"\fIdentRequest\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
|
||||
"\bidentity\x18\x02 \x01(\tR\bidentity\"*\n" +
|
||||
"\x0eVersionRequest\x12\x18\n" +
|
||||
"\aversion\x18\x01 \x01(\x03R\aversion\")\n" +
|
||||
"\rSearchRequest\x12\x18\n" +
|
||||
"\akeyword\x18\x01 \x01(\tR\akeyword\";\n" +
|
||||
"\vStatusReply\x12\x12\n" +
|
||||
"\x04data\x18\x01 \x01(\tR\x04data\x12\x18\n" +
|
||||
"\atimeseq\x18\x02 \x01(\x03R\atimeseq\"\a\n" +
|
||||
"\x05Empty\"F\n" +
|
||||
"\rPostListReply\x12#\n" +
|
||||
"\x04list\x18\x01 \x03(\v2\x0f.group.PostItemR\x04list\x12\x10\n" +
|
||||
"\x03cnt\x18\x02 \x01(\x03R\x03cnt\"\xd3\x02\n" +
|
||||
"\bPostItem\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x18\n" +
|
||||
"\acontent\x18\x02 \x01(\tR\acontent\x12\x1f\n" +
|
||||
"\vpassport_id\x18\x03 \x01(\x03R\n" +
|
||||
"passportId\x12+\n" +
|
||||
"\x11passport_identity\x18\x04 \x01(\tR\x10passportIdentity\x12\x17\n" +
|
||||
"\ais_open\x18\x05 \x01(\bR\x06isOpen\x12\x1d\n" +
|
||||
"\n" +
|
||||
"cnt_unlike\x18\x06 \x01(\x03R\tcntUnlike\x12\x1f\n" +
|
||||
"\vcnt_comment\x18\a \x01(\x03R\n" +
|
||||
"cntComment\x12\x19\n" +
|
||||
"\bcnt_like\x18\b \x01(\x03R\acntLike\x12+\n" +
|
||||
"\aattachs\x18\t \x03(\v2\x11.group.AttachItemR\aattachs\x12\"\n" +
|
||||
"\x04tags\x18\n" +
|
||||
" \x03(\v2\x0e.group.TagItemR\x04tags\"[\n" +
|
||||
"\n" +
|
||||
"AttachItem\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x1f\n" +
|
||||
"\vattach_type\x18\x02 \x01(\tR\n" +
|
||||
"attachType\x12\x10\n" +
|
||||
"\x03url\x18\x03 \x01(\tR\x03url\"5\n" +
|
||||
"\aTagItem\x12\x10\n" +
|
||||
"\x03key\x18\x01 \x01(\tR\x03key\x12\x18\n" +
|
||||
"\acontent\x18\x02 \x01(\tR\acontentB\tZ\a.;groupb\x06proto3"
|
||||
|
||||
var (
|
||||
file_blocks_proto_rawDescOnce sync.Once
|
||||
file_blocks_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_blocks_proto_rawDescGZIP() []byte {
|
||||
file_blocks_proto_rawDescOnce.Do(func() {
|
||||
file_blocks_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_blocks_proto_rawDesc), len(file_blocks_proto_rawDesc)))
|
||||
})
|
||||
return file_blocks_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_blocks_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
|
||||
var file_blocks_proto_goTypes = []any{
|
||||
(*FetchRequest)(nil), // 0: group.FetchRequest
|
||||
(*IdentRequest)(nil), // 1: group.IdentRequest
|
||||
(*VersionRequest)(nil), // 2: group.VersionRequest
|
||||
(*SearchRequest)(nil), // 3: group.SearchRequest
|
||||
(*StatusReply)(nil), // 4: group.StatusReply
|
||||
(*Empty)(nil), // 5: group.Empty
|
||||
(*PostListReply)(nil), // 6: group.PostListReply
|
||||
(*PostItem)(nil), // 7: group.PostItem
|
||||
(*AttachItem)(nil), // 8: group.AttachItem
|
||||
(*TagItem)(nil), // 9: group.TagItem
|
||||
nil, // 10: group.FetchRequest.ParamsEntry
|
||||
}
|
||||
var file_blocks_proto_depIdxs = []int32{
|
||||
10, // 0: group.FetchRequest.params:type_name -> group.FetchRequest.ParamsEntry
|
||||
7, // 1: group.PostListReply.list:type_name -> group.PostItem
|
||||
8, // 2: group.PostItem.attachs:type_name -> group.AttachItem
|
||||
9, // 3: group.PostItem.tags:type_name -> group.TagItem
|
||||
4, // [4:4] is the sub-list for method output_type
|
||||
4, // [4:4] is the sub-list for method input_type
|
||||
4, // [4:4] is the sub-list for extension type_name
|
||||
4, // [4:4] is the sub-list for extension extendee
|
||||
0, // [0:4] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_blocks_proto_init() }
|
||||
func file_blocks_proto_init() {
|
||||
if File_blocks_proto != nil {
|
||||
return
|
||||
}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_blocks_proto_rawDesc), len(file_blocks_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 11,
|
||||
NumExtensions: 0,
|
||||
NumServices: 0,
|
||||
},
|
||||
GoTypes: file_blocks_proto_goTypes,
|
||||
DependencyIndexes: file_blocks_proto_depIdxs,
|
||||
MessageInfos: file_blocks_proto_msgTypes,
|
||||
}.Build()
|
||||
File_blocks_proto = out.File
|
||||
file_blocks_proto_goTypes = nil
|
||||
file_blocks_proto_depIdxs = nil
|
||||
}
|
||||
14
module/social/group/pb/blocks_compat.go
Normal file
14
module/social/group/pb/blocks_compat.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package group
|
||||
|
||||
import blocks "bsm/full/protobuf"
|
||||
|
||||
type Empty = blocks.Empty
|
||||
type FetchRequest = blocks.FetchRequest
|
||||
type IdentRequest = blocks.IdentRequest
|
||||
type VersionRequest = blocks.VersionRequest
|
||||
type SearchRequest = blocks.SearchRequest
|
||||
type StatusReply = blocks.DataStatusReply
|
||||
type PostListReply = blocks.GroupPostListReply
|
||||
type PostItem = blocks.GroupPostItem
|
||||
type AttachItem = blocks.GroupAttachItem
|
||||
type TagItem = blocks.GroupTagItem
|
||||
@@ -1,12 +1,13 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.8
|
||||
// protoc (unknown)
|
||||
// source: group.proto
|
||||
// protoc-gen-go v1.36.11
|
||||
// protoc v7.35.0
|
||||
// source: module/social/group/proto/group.proto
|
||||
|
||||
package group
|
||||
|
||||
import (
|
||||
protobuf "bsm/full/protobuf"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
@@ -46,7 +47,7 @@ type GroupItem struct {
|
||||
|
||||
func (x *GroupItem) Reset() {
|
||||
*x = GroupItem{}
|
||||
mi := &file_group_proto_msgTypes[0]
|
||||
mi := &file_module_social_group_proto_group_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -58,7 +59,7 @@ func (x *GroupItem) String() string {
|
||||
func (*GroupItem) ProtoMessage() {}
|
||||
|
||||
func (x *GroupItem) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_group_proto_msgTypes[0]
|
||||
mi := &file_module_social_group_proto_group_proto_msgTypes[0]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -71,7 +72,7 @@ func (x *GroupItem) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use GroupItem.ProtoReflect.Descriptor instead.
|
||||
func (*GroupItem) Descriptor() ([]byte, []int) {
|
||||
return file_group_proto_rawDescGZIP(), []int{0}
|
||||
return file_module_social_group_proto_group_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *GroupItem) GetId() int64 {
|
||||
@@ -204,7 +205,7 @@ type GroupsReply struct {
|
||||
|
||||
func (x *GroupsReply) Reset() {
|
||||
*x = GroupsReply{}
|
||||
mi := &file_group_proto_msgTypes[1]
|
||||
mi := &file_module_social_group_proto_group_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -216,7 +217,7 @@ func (x *GroupsReply) String() string {
|
||||
func (*GroupsReply) ProtoMessage() {}
|
||||
|
||||
func (x *GroupsReply) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_group_proto_msgTypes[1]
|
||||
mi := &file_module_social_group_proto_group_proto_msgTypes[1]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -229,7 +230,7 @@ func (x *GroupsReply) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use GroupsReply.ProtoReflect.Descriptor instead.
|
||||
func (*GroupsReply) Descriptor() ([]byte, []int) {
|
||||
return file_group_proto_rawDescGZIP(), []int{1}
|
||||
return file_module_social_group_proto_group_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *GroupsReply) GetTotal() int32 {
|
||||
@@ -253,11 +254,11 @@ func (x *GroupsReply) GetGroups() []*GroupItem {
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_group_proto protoreflect.FileDescriptor
|
||||
var File_module_social_group_proto_group_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_group_proto_rawDesc = "" +
|
||||
const file_module_social_group_proto_group_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x18social/group/group.proto\x12\x05group\x1a\x12group/blocks.proto\"\x94\x04\n" +
|
||||
"%module/social/group/proto/group.proto\x12\x05group\x1a\x15protobuf/blocks.proto\"\x94\x04\n" +
|
||||
"\tGroupItem\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
|
||||
"\bidentity\x18\x02 \x01(\tR\bidentity\x12\x16\n" +
|
||||
@@ -284,50 +285,50 @@ const file_group_proto_rawDesc = "" +
|
||||
"\vGroupsReply\x12\x14\n" +
|
||||
"\x05total\x18\x01 \x01(\x05R\x05total\x12\x18\n" +
|
||||
"\aversion\x18\x02 \x01(\x03R\aversion\x12(\n" +
|
||||
"\x06groups\x18\x03 \x03(\v2\x10.group.GroupItemR\x06groups2\xa8\x02\n" +
|
||||
"\x05Basic\x122\n" +
|
||||
"\x06Search\x12\x14.group.SearchRequest\x1a\x12.group.GroupsReply\x12)\n" +
|
||||
"\x05Fetch\x12\f.group.Empty\x1a\x12.group.GroupsReply\x12,\n" +
|
||||
"\x03Get\x12\x13.group.IdentRequest\x1a\x10.group.GroupItem\x12.\n" +
|
||||
"\x06Create\x12\x10.group.GroupItem\x1a\x12.group.StatusReply\x12.\n" +
|
||||
"\x06Modify\x12\x10.group.GroupItem\x1a\x12.group.StatusReply\x122\n" +
|
||||
"\aDisband\x12\x13.group.IdentRequest\x1a\x12.group.StatusReplyB\tZ\a.;groupb\x06proto3"
|
||||
"\x06groups\x18\x03 \x03(\v2\x10.group.GroupItemR\x06groups2\xbb\x02\n" +
|
||||
"\x05Basic\x123\n" +
|
||||
"\x06Search\x12\x15.blocks.SearchRequest\x1a\x12.group.GroupsReply\x12*\n" +
|
||||
"\x05Fetch\x12\r.blocks.Empty\x1a\x12.group.GroupsReply\x12-\n" +
|
||||
"\x03Get\x12\x14.blocks.IdentRequest\x1a\x10.group.GroupItem\x123\n" +
|
||||
"\x06Create\x12\x10.group.GroupItem\x1a\x17.blocks.DataStatusReply\x123\n" +
|
||||
"\x06Modify\x12\x10.group.GroupItem\x1a\x17.blocks.DataStatusReply\x128\n" +
|
||||
"\aDisband\x12\x14.blocks.IdentRequest\x1a\x17.blocks.DataStatusReplyB'Z%bsm/full/module/social/group/pb;groupb\x06proto3"
|
||||
|
||||
var (
|
||||
file_group_proto_rawDescOnce sync.Once
|
||||
file_group_proto_rawDescData []byte
|
||||
file_module_social_group_proto_group_proto_rawDescOnce sync.Once
|
||||
file_module_social_group_proto_group_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_group_proto_rawDescGZIP() []byte {
|
||||
file_group_proto_rawDescOnce.Do(func() {
|
||||
file_group_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_group_proto_rawDesc), len(file_group_proto_rawDesc)))
|
||||
func file_module_social_group_proto_group_proto_rawDescGZIP() []byte {
|
||||
file_module_social_group_proto_group_proto_rawDescOnce.Do(func() {
|
||||
file_module_social_group_proto_group_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_module_social_group_proto_group_proto_rawDesc), len(file_module_social_group_proto_group_proto_rawDesc)))
|
||||
})
|
||||
return file_group_proto_rawDescData
|
||||
return file_module_social_group_proto_group_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_group_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_group_proto_goTypes = []any{
|
||||
(*GroupItem)(nil), // 0: group.GroupItem
|
||||
(*GroupsReply)(nil), // 1: group.GroupsReply
|
||||
(*SearchRequest)(nil), // 2: group.SearchRequest
|
||||
(*Empty)(nil), // 3: group.Empty
|
||||
(*IdentRequest)(nil), // 4: group.IdentRequest
|
||||
(*StatusReply)(nil), // 5: group.StatusReply
|
||||
var file_module_social_group_proto_group_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
||||
var file_module_social_group_proto_group_proto_goTypes = []any{
|
||||
(*GroupItem)(nil), // 0: group.GroupItem
|
||||
(*GroupsReply)(nil), // 1: group.GroupsReply
|
||||
(*protobuf.SearchRequest)(nil), // 2: blocks.SearchRequest
|
||||
(*protobuf.Empty)(nil), // 3: blocks.Empty
|
||||
(*protobuf.IdentRequest)(nil), // 4: blocks.IdentRequest
|
||||
(*protobuf.DataStatusReply)(nil), // 5: blocks.DataStatusReply
|
||||
}
|
||||
var file_group_proto_depIdxs = []int32{
|
||||
var file_module_social_group_proto_group_proto_depIdxs = []int32{
|
||||
0, // 0: group.GroupsReply.groups:type_name -> group.GroupItem
|
||||
2, // 1: group.Basic.Search:input_type -> group.SearchRequest
|
||||
3, // 2: group.Basic.Fetch:input_type -> group.Empty
|
||||
4, // 3: group.Basic.Get:input_type -> group.IdentRequest
|
||||
2, // 1: group.Basic.Search:input_type -> blocks.SearchRequest
|
||||
3, // 2: group.Basic.Fetch:input_type -> blocks.Empty
|
||||
4, // 3: group.Basic.Get:input_type -> blocks.IdentRequest
|
||||
0, // 4: group.Basic.Create:input_type -> group.GroupItem
|
||||
0, // 5: group.Basic.Modify:input_type -> group.GroupItem
|
||||
4, // 6: group.Basic.Disband:input_type -> group.IdentRequest
|
||||
4, // 6: group.Basic.Disband:input_type -> blocks.IdentRequest
|
||||
1, // 7: group.Basic.Search:output_type -> group.GroupsReply
|
||||
1, // 8: group.Basic.Fetch:output_type -> group.GroupsReply
|
||||
0, // 9: group.Basic.Get:output_type -> group.GroupItem
|
||||
5, // 10: group.Basic.Create:output_type -> group.StatusReply
|
||||
5, // 11: group.Basic.Modify:output_type -> group.StatusReply
|
||||
5, // 12: group.Basic.Disband:output_type -> group.StatusReply
|
||||
5, // 10: group.Basic.Create:output_type -> blocks.DataStatusReply
|
||||
5, // 11: group.Basic.Modify:output_type -> blocks.DataStatusReply
|
||||
5, // 12: group.Basic.Disband:output_type -> blocks.DataStatusReply
|
||||
7, // [7:13] is the sub-list for method output_type
|
||||
1, // [1:7] is the sub-list for method input_type
|
||||
1, // [1:1] is the sub-list for extension type_name
|
||||
@@ -335,27 +336,26 @@ var file_group_proto_depIdxs = []int32{
|
||||
0, // [0:1] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_group_proto_init() }
|
||||
func file_group_proto_init() {
|
||||
if File_group_proto != nil {
|
||||
func init() { file_module_social_group_proto_group_proto_init() }
|
||||
func file_module_social_group_proto_group_proto_init() {
|
||||
if File_module_social_group_proto_group_proto != nil {
|
||||
return
|
||||
}
|
||||
file_blocks_proto_init()
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_group_proto_rawDesc), len(file_group_proto_rawDesc)),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_module_social_group_proto_group_proto_rawDesc), len(file_module_social_group_proto_group_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 2,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
GoTypes: file_group_proto_goTypes,
|
||||
DependencyIndexes: file_group_proto_depIdxs,
|
||||
MessageInfos: file_group_proto_msgTypes,
|
||||
GoTypes: file_module_social_group_proto_group_proto_goTypes,
|
||||
DependencyIndexes: file_module_social_group_proto_group_proto_depIdxs,
|
||||
MessageInfos: file_module_social_group_proto_group_proto_msgTypes,
|
||||
}.Build()
|
||||
File_group_proto = out.File
|
||||
file_group_proto_goTypes = nil
|
||||
file_group_proto_depIdxs = nil
|
||||
File_module_social_group_proto_group_proto = out.File
|
||||
file_module_social_group_proto_group_proto_goTypes = nil
|
||||
file_module_social_group_proto_group_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
|
||||
// source: group.proto
|
||||
// source: module/social/group/proto/group.proto
|
||||
|
||||
/*
|
||||
Package group is a reverse proxy.
|
||||
@@ -9,6 +9,7 @@ It translates gRPC into RESTful JSON APIs.
|
||||
package group
|
||||
|
||||
import (
|
||||
"bsm/full/protobuf"
|
||||
"context"
|
||||
"errors"
|
||||
"io"
|
||||
@@ -37,7 +38,7 @@ var (
|
||||
|
||||
func request_Basic_Search_0(ctx context.Context, marshaler runtime.Marshaler, client BasicClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||||
var (
|
||||
protoReq SearchRequest
|
||||
protoReq blocks.SearchRequest
|
||||
metadata runtime.ServerMetadata
|
||||
)
|
||||
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
|
||||
@@ -52,7 +53,7 @@ func request_Basic_Search_0(ctx context.Context, marshaler runtime.Marshaler, cl
|
||||
|
||||
func local_request_Basic_Search_0(ctx context.Context, marshaler runtime.Marshaler, server BasicServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||||
var (
|
||||
protoReq SearchRequest
|
||||
protoReq blocks.SearchRequest
|
||||
metadata runtime.ServerMetadata
|
||||
)
|
||||
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
|
||||
@@ -64,7 +65,7 @@ func local_request_Basic_Search_0(ctx context.Context, marshaler runtime.Marshal
|
||||
|
||||
func request_Basic_Fetch_0(ctx context.Context, marshaler runtime.Marshaler, client BasicClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||||
var (
|
||||
protoReq Empty
|
||||
protoReq blocks.Empty
|
||||
metadata runtime.ServerMetadata
|
||||
)
|
||||
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
|
||||
@@ -79,7 +80,7 @@ func request_Basic_Fetch_0(ctx context.Context, marshaler runtime.Marshaler, cli
|
||||
|
||||
func local_request_Basic_Fetch_0(ctx context.Context, marshaler runtime.Marshaler, server BasicServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||||
var (
|
||||
protoReq Empty
|
||||
protoReq blocks.Empty
|
||||
metadata runtime.ServerMetadata
|
||||
)
|
||||
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
|
||||
@@ -91,7 +92,7 @@ func local_request_Basic_Fetch_0(ctx context.Context, marshaler runtime.Marshale
|
||||
|
||||
func request_Basic_Get_0(ctx context.Context, marshaler runtime.Marshaler, client BasicClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||||
var (
|
||||
protoReq IdentRequest
|
||||
protoReq blocks.IdentRequest
|
||||
metadata runtime.ServerMetadata
|
||||
)
|
||||
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
|
||||
@@ -106,7 +107,7 @@ func request_Basic_Get_0(ctx context.Context, marshaler runtime.Marshaler, clien
|
||||
|
||||
func local_request_Basic_Get_0(ctx context.Context, marshaler runtime.Marshaler, server BasicServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||||
var (
|
||||
protoReq IdentRequest
|
||||
protoReq blocks.IdentRequest
|
||||
metadata runtime.ServerMetadata
|
||||
)
|
||||
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
|
||||
@@ -172,7 +173,7 @@ func local_request_Basic_Modify_0(ctx context.Context, marshaler runtime.Marshal
|
||||
|
||||
func request_Basic_Disband_0(ctx context.Context, marshaler runtime.Marshaler, client BasicClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||||
var (
|
||||
protoReq IdentRequest
|
||||
protoReq blocks.IdentRequest
|
||||
metadata runtime.ServerMetadata
|
||||
)
|
||||
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
|
||||
@@ -187,7 +188,7 @@ func request_Basic_Disband_0(ctx context.Context, marshaler runtime.Marshaler, c
|
||||
|
||||
func local_request_Basic_Disband_0(ctx context.Context, marshaler runtime.Marshaler, server BasicServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||||
var (
|
||||
protoReq IdentRequest
|
||||
protoReq blocks.IdentRequest
|
||||
metadata runtime.ServerMetadata
|
||||
)
|
||||
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.5.1
|
||||
// - protoc (unknown)
|
||||
// source: group.proto
|
||||
// - protoc-gen-go-grpc v1.6.2
|
||||
// - protoc v7.35.0
|
||||
// source: module/social/group/proto/group.proto
|
||||
|
||||
package group
|
||||
|
||||
import (
|
||||
protobuf "bsm/full/protobuf"
|
||||
context "context"
|
||||
grpc "google.golang.org/grpc"
|
||||
codes "google.golang.org/grpc/codes"
|
||||
@@ -33,18 +34,18 @@ const (
|
||||
//
|
||||
// 群组
|
||||
type BasicClient interface {
|
||||
//搜索
|
||||
Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*GroupsReply, error)
|
||||
//获取群组列表
|
||||
Fetch(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*GroupsReply, error)
|
||||
//获取群组信息
|
||||
Get(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*GroupItem, error)
|
||||
//创建群组
|
||||
Create(ctx context.Context, in *GroupItem, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
//修改群组信息
|
||||
Modify(ctx context.Context, in *GroupItem, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
//解散群组
|
||||
Disband(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
// 搜索
|
||||
Search(ctx context.Context, in *protobuf.SearchRequest, opts ...grpc.CallOption) (*GroupsReply, error)
|
||||
// 获取群组列表
|
||||
Fetch(ctx context.Context, in *protobuf.Empty, opts ...grpc.CallOption) (*GroupsReply, error)
|
||||
// 获取群组信息
|
||||
Get(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*GroupItem, error)
|
||||
// 创建群组
|
||||
Create(ctx context.Context, in *GroupItem, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error)
|
||||
// 修改群组信息
|
||||
Modify(ctx context.Context, in *GroupItem, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error)
|
||||
// 解散群组
|
||||
Disband(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error)
|
||||
}
|
||||
|
||||
type basicClient struct {
|
||||
@@ -55,7 +56,7 @@ func NewBasicClient(cc grpc.ClientConnInterface) BasicClient {
|
||||
return &basicClient{cc}
|
||||
}
|
||||
|
||||
func (c *basicClient) Search(ctx context.Context, in *SearchRequest, opts ...grpc.CallOption) (*GroupsReply, error) {
|
||||
func (c *basicClient) Search(ctx context.Context, in *protobuf.SearchRequest, opts ...grpc.CallOption) (*GroupsReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(GroupsReply)
|
||||
err := c.cc.Invoke(ctx, Basic_Search_FullMethodName, in, out, cOpts...)
|
||||
@@ -65,7 +66,7 @@ func (c *basicClient) Search(ctx context.Context, in *SearchRequest, opts ...grp
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *basicClient) Fetch(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*GroupsReply, error) {
|
||||
func (c *basicClient) Fetch(ctx context.Context, in *protobuf.Empty, opts ...grpc.CallOption) (*GroupsReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(GroupsReply)
|
||||
err := c.cc.Invoke(ctx, Basic_Fetch_FullMethodName, in, out, cOpts...)
|
||||
@@ -75,7 +76,7 @@ func (c *basicClient) Fetch(ctx context.Context, in *Empty, opts ...grpc.CallOpt
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *basicClient) Get(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*GroupItem, error) {
|
||||
func (c *basicClient) Get(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*GroupItem, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(GroupItem)
|
||||
err := c.cc.Invoke(ctx, Basic_Get_FullMethodName, in, out, cOpts...)
|
||||
@@ -85,9 +86,9 @@ func (c *basicClient) Get(ctx context.Context, in *IdentRequest, opts ...grpc.Ca
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *basicClient) Create(ctx context.Context, in *GroupItem, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
func (c *basicClient) Create(ctx context.Context, in *GroupItem, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(StatusReply)
|
||||
out := new(protobuf.DataStatusReply)
|
||||
err := c.cc.Invoke(ctx, Basic_Create_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -95,9 +96,9 @@ func (c *basicClient) Create(ctx context.Context, in *GroupItem, opts ...grpc.Ca
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *basicClient) Modify(ctx context.Context, in *GroupItem, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
func (c *basicClient) Modify(ctx context.Context, in *GroupItem, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(StatusReply)
|
||||
out := new(protobuf.DataStatusReply)
|
||||
err := c.cc.Invoke(ctx, Basic_Modify_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -105,9 +106,9 @@ func (c *basicClient) Modify(ctx context.Context, in *GroupItem, opts ...grpc.Ca
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *basicClient) Disband(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
func (c *basicClient) Disband(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(StatusReply)
|
||||
out := new(protobuf.DataStatusReply)
|
||||
err := c.cc.Invoke(ctx, Basic_Disband_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -116,53 +117,51 @@ func (c *basicClient) Disband(ctx context.Context, in *IdentRequest, opts ...grp
|
||||
}
|
||||
|
||||
// BasicServer is the server API for Basic service.
|
||||
// All implementations must embed UnimplementedBasicServer
|
||||
// All implementations should embed UnimplementedBasicServer
|
||||
// for forward compatibility.
|
||||
//
|
||||
// 群组
|
||||
type BasicServer interface {
|
||||
//搜索
|
||||
Search(context.Context, *SearchRequest) (*GroupsReply, error)
|
||||
//获取群组列表
|
||||
Fetch(context.Context, *Empty) (*GroupsReply, error)
|
||||
//获取群组信息
|
||||
Get(context.Context, *IdentRequest) (*GroupItem, error)
|
||||
//创建群组
|
||||
Create(context.Context, *GroupItem) (*StatusReply, error)
|
||||
//修改群组信息
|
||||
Modify(context.Context, *GroupItem) (*StatusReply, error)
|
||||
//解散群组
|
||||
Disband(context.Context, *IdentRequest) (*StatusReply, error)
|
||||
mustEmbedUnimplementedBasicServer()
|
||||
// 搜索
|
||||
Search(context.Context, *protobuf.SearchRequest) (*GroupsReply, error)
|
||||
// 获取群组列表
|
||||
Fetch(context.Context, *protobuf.Empty) (*GroupsReply, error)
|
||||
// 获取群组信息
|
||||
Get(context.Context, *protobuf.IdentRequest) (*GroupItem, error)
|
||||
// 创建群组
|
||||
Create(context.Context, *GroupItem) (*protobuf.DataStatusReply, error)
|
||||
// 修改群组信息
|
||||
Modify(context.Context, *GroupItem) (*protobuf.DataStatusReply, error)
|
||||
// 解散群组
|
||||
Disband(context.Context, *protobuf.IdentRequest) (*protobuf.DataStatusReply, error)
|
||||
}
|
||||
|
||||
// UnimplementedBasicServer must be embedded to have
|
||||
// UnimplementedBasicServer should be embedded to have
|
||||
// forward compatible implementations.
|
||||
//
|
||||
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
||||
// pointer dereference when methods are called.
|
||||
type UnimplementedBasicServer struct{}
|
||||
|
||||
func (UnimplementedBasicServer) Search(context.Context, *SearchRequest) (*GroupsReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Search not implemented")
|
||||
func (UnimplementedBasicServer) Search(context.Context, *protobuf.SearchRequest) (*GroupsReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Search not implemented")
|
||||
}
|
||||
func (UnimplementedBasicServer) Fetch(context.Context, *Empty) (*GroupsReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Fetch not implemented")
|
||||
func (UnimplementedBasicServer) Fetch(context.Context, *protobuf.Empty) (*GroupsReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Fetch not implemented")
|
||||
}
|
||||
func (UnimplementedBasicServer) Get(context.Context, *IdentRequest) (*GroupItem, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
|
||||
func (UnimplementedBasicServer) Get(context.Context, *protobuf.IdentRequest) (*GroupItem, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Get not implemented")
|
||||
}
|
||||
func (UnimplementedBasicServer) Create(context.Context, *GroupItem) (*StatusReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
|
||||
func (UnimplementedBasicServer) Create(context.Context, *GroupItem) (*protobuf.DataStatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Create not implemented")
|
||||
}
|
||||
func (UnimplementedBasicServer) Modify(context.Context, *GroupItem) (*StatusReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Modify not implemented")
|
||||
func (UnimplementedBasicServer) Modify(context.Context, *GroupItem) (*protobuf.DataStatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Modify not implemented")
|
||||
}
|
||||
func (UnimplementedBasicServer) Disband(context.Context, *IdentRequest) (*StatusReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Disband not implemented")
|
||||
func (UnimplementedBasicServer) Disband(context.Context, *protobuf.IdentRequest) (*protobuf.DataStatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Disband not implemented")
|
||||
}
|
||||
func (UnimplementedBasicServer) mustEmbedUnimplementedBasicServer() {}
|
||||
func (UnimplementedBasicServer) testEmbeddedByValue() {}
|
||||
func (UnimplementedBasicServer) testEmbeddedByValue() {}
|
||||
|
||||
// UnsafeBasicServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to BasicServer will
|
||||
@@ -172,7 +171,7 @@ type UnsafeBasicServer interface {
|
||||
}
|
||||
|
||||
func RegisterBasicServer(s grpc.ServiceRegistrar, srv BasicServer) {
|
||||
// If the following call pancis, it indicates UnimplementedBasicServer was
|
||||
// If the following call panics, it indicates UnimplementedBasicServer was
|
||||
// embedded by pointer and is nil. This will cause panics if an
|
||||
// unimplemented method is ever invoked, so we test this at initialization
|
||||
// time to prevent it from happening at runtime later due to I/O.
|
||||
@@ -183,7 +182,7 @@ func RegisterBasicServer(s grpc.ServiceRegistrar, srv BasicServer) {
|
||||
}
|
||||
|
||||
func _Basic_Search_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(SearchRequest)
|
||||
in := new(protobuf.SearchRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -195,13 +194,13 @@ func _Basic_Search_Handler(srv interface{}, ctx context.Context, dec func(interf
|
||||
FullMethod: Basic_Search_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(BasicServer).Search(ctx, req.(*SearchRequest))
|
||||
return srv.(BasicServer).Search(ctx, req.(*protobuf.SearchRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Basic_Fetch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(Empty)
|
||||
in := new(protobuf.Empty)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -213,13 +212,13 @@ func _Basic_Fetch_Handler(srv interface{}, ctx context.Context, dec func(interfa
|
||||
FullMethod: Basic_Fetch_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(BasicServer).Fetch(ctx, req.(*Empty))
|
||||
return srv.(BasicServer).Fetch(ctx, req.(*protobuf.Empty))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Basic_Get_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(IdentRequest)
|
||||
in := new(protobuf.IdentRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -231,7 +230,7 @@ func _Basic_Get_Handler(srv interface{}, ctx context.Context, dec func(interface
|
||||
FullMethod: Basic_Get_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(BasicServer).Get(ctx, req.(*IdentRequest))
|
||||
return srv.(BasicServer).Get(ctx, req.(*protobuf.IdentRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
@@ -273,7 +272,7 @@ func _Basic_Modify_Handler(srv interface{}, ctx context.Context, dec func(interf
|
||||
}
|
||||
|
||||
func _Basic_Disband_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(IdentRequest)
|
||||
in := new(protobuf.IdentRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -285,7 +284,7 @@ func _Basic_Disband_Handler(srv interface{}, ctx context.Context, dec func(inter
|
||||
FullMethod: Basic_Disband_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(BasicServer).Disband(ctx, req.(*IdentRequest))
|
||||
return srv.(BasicServer).Disband(ctx, req.(*protobuf.IdentRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
@@ -323,5 +322,5 @@ var Basic_ServiceDesc = grpc.ServiceDesc{
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "group.proto",
|
||||
Metadata: "module/social/group/proto/group.proto",
|
||||
}
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// versions:
|
||||
// protoc-gen-go v1.36.8
|
||||
// protoc (unknown)
|
||||
// source: member.proto
|
||||
// protoc-gen-go v1.36.11
|
||||
// protoc v7.35.0
|
||||
// source: module/social/group/proto/member.proto
|
||||
|
||||
package group
|
||||
|
||||
import (
|
||||
protobuf "bsm/full/protobuf"
|
||||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||||
reflect "reflect"
|
||||
@@ -35,7 +36,7 @@ type PassportInfoSimpleCard struct {
|
||||
|
||||
func (x *PassportInfoSimpleCard) Reset() {
|
||||
*x = PassportInfoSimpleCard{}
|
||||
mi := &file_member_proto_msgTypes[0]
|
||||
mi := &file_module_social_group_proto_member_proto_msgTypes[0]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -47,7 +48,7 @@ func (x *PassportInfoSimpleCard) String() string {
|
||||
func (*PassportInfoSimpleCard) ProtoMessage() {}
|
||||
|
||||
func (x *PassportInfoSimpleCard) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_member_proto_msgTypes[0]
|
||||
mi := &file_module_social_group_proto_member_proto_msgTypes[0]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -60,7 +61,7 @@ func (x *PassportInfoSimpleCard) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use PassportInfoSimpleCard.ProtoReflect.Descriptor instead.
|
||||
func (*PassportInfoSimpleCard) Descriptor() ([]byte, []int) {
|
||||
return file_member_proto_rawDescGZIP(), []int{0}
|
||||
return file_module_social_group_proto_member_proto_rawDescGZIP(), []int{0}
|
||||
}
|
||||
|
||||
func (x *PassportInfoSimpleCard) GetIdentity() string {
|
||||
@@ -126,7 +127,7 @@ type PassportInfoDetailCard struct {
|
||||
|
||||
func (x *PassportInfoDetailCard) Reset() {
|
||||
*x = PassportInfoDetailCard{}
|
||||
mi := &file_member_proto_msgTypes[1]
|
||||
mi := &file_module_social_group_proto_member_proto_msgTypes[1]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -138,7 +139,7 @@ func (x *PassportInfoDetailCard) String() string {
|
||||
func (*PassportInfoDetailCard) ProtoMessage() {}
|
||||
|
||||
func (x *PassportInfoDetailCard) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_member_proto_msgTypes[1]
|
||||
mi := &file_module_social_group_proto_member_proto_msgTypes[1]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -151,7 +152,7 @@ func (x *PassportInfoDetailCard) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use PassportInfoDetailCard.ProtoReflect.Descriptor instead.
|
||||
func (*PassportInfoDetailCard) Descriptor() ([]byte, []int) {
|
||||
return file_member_proto_rawDescGZIP(), []int{1}
|
||||
return file_module_social_group_proto_member_proto_rawDescGZIP(), []int{1}
|
||||
}
|
||||
|
||||
func (x *PassportInfoDetailCard) GetIdentity() string {
|
||||
@@ -256,7 +257,7 @@ type GroupMemberReply struct {
|
||||
|
||||
func (x *GroupMemberReply) Reset() {
|
||||
*x = GroupMemberReply{}
|
||||
mi := &file_member_proto_msgTypes[2]
|
||||
mi := &file_module_social_group_proto_member_proto_msgTypes[2]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -268,7 +269,7 @@ func (x *GroupMemberReply) String() string {
|
||||
func (*GroupMemberReply) ProtoMessage() {}
|
||||
|
||||
func (x *GroupMemberReply) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_member_proto_msgTypes[2]
|
||||
mi := &file_module_social_group_proto_member_proto_msgTypes[2]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -281,7 +282,7 @@ func (x *GroupMemberReply) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use GroupMemberReply.ProtoReflect.Descriptor instead.
|
||||
func (*GroupMemberReply) Descriptor() ([]byte, []int) {
|
||||
return file_member_proto_rawDescGZIP(), []int{2}
|
||||
return file_module_social_group_proto_member_proto_rawDescGZIP(), []int{2}
|
||||
}
|
||||
|
||||
func (x *GroupMemberReply) GetTotal() int32 {
|
||||
@@ -316,7 +317,7 @@ type DoJoinRequest struct {
|
||||
|
||||
func (x *DoJoinRequest) Reset() {
|
||||
*x = DoJoinRequest{}
|
||||
mi := &file_member_proto_msgTypes[3]
|
||||
mi := &file_module_social_group_proto_member_proto_msgTypes[3]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -328,7 +329,7 @@ func (x *DoJoinRequest) String() string {
|
||||
func (*DoJoinRequest) ProtoMessage() {}
|
||||
|
||||
func (x *DoJoinRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_member_proto_msgTypes[3]
|
||||
mi := &file_module_social_group_proto_member_proto_msgTypes[3]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -341,7 +342,7 @@ func (x *DoJoinRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use DoJoinRequest.ProtoReflect.Descriptor instead.
|
||||
func (*DoJoinRequest) Descriptor() ([]byte, []int) {
|
||||
return file_member_proto_rawDescGZIP(), []int{3}
|
||||
return file_module_social_group_proto_member_proto_rawDescGZIP(), []int{3}
|
||||
}
|
||||
|
||||
func (x *DoJoinRequest) GetId() int64 {
|
||||
@@ -375,7 +376,7 @@ type JoinFetchReply struct {
|
||||
|
||||
func (x *JoinFetchReply) Reset() {
|
||||
*x = JoinFetchReply{}
|
||||
mi := &file_member_proto_msgTypes[4]
|
||||
mi := &file_module_social_group_proto_member_proto_msgTypes[4]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -387,7 +388,7 @@ func (x *JoinFetchReply) String() string {
|
||||
func (*JoinFetchReply) ProtoMessage() {}
|
||||
|
||||
func (x *JoinFetchReply) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_member_proto_msgTypes[4]
|
||||
mi := &file_module_social_group_proto_member_proto_msgTypes[4]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -400,7 +401,7 @@ func (x *JoinFetchReply) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use JoinFetchReply.ProtoReflect.Descriptor instead.
|
||||
func (*JoinFetchReply) Descriptor() ([]byte, []int) {
|
||||
return file_member_proto_rawDescGZIP(), []int{4}
|
||||
return file_module_social_group_proto_member_proto_rawDescGZIP(), []int{4}
|
||||
}
|
||||
|
||||
func (x *JoinFetchReply) GetTotal() int32 {
|
||||
@@ -431,7 +432,7 @@ type ApplyJoinGroupItem struct {
|
||||
|
||||
func (x *ApplyJoinGroupItem) Reset() {
|
||||
*x = ApplyJoinGroupItem{}
|
||||
mi := &file_member_proto_msgTypes[5]
|
||||
mi := &file_module_social_group_proto_member_proto_msgTypes[5]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -443,7 +444,7 @@ func (x *ApplyJoinGroupItem) String() string {
|
||||
func (*ApplyJoinGroupItem) ProtoMessage() {}
|
||||
|
||||
func (x *ApplyJoinGroupItem) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_member_proto_msgTypes[5]
|
||||
mi := &file_module_social_group_proto_member_proto_msgTypes[5]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -456,7 +457,7 @@ func (x *ApplyJoinGroupItem) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use ApplyJoinGroupItem.ProtoReflect.Descriptor instead.
|
||||
func (*ApplyJoinGroupItem) Descriptor() ([]byte, []int) {
|
||||
return file_member_proto_rawDescGZIP(), []int{5}
|
||||
return file_module_social_group_proto_member_proto_rawDescGZIP(), []int{5}
|
||||
}
|
||||
|
||||
func (x *ApplyJoinGroupItem) GetIdentity() string {
|
||||
@@ -512,7 +513,7 @@ type GroupOPRequest struct {
|
||||
|
||||
func (x *GroupOPRequest) Reset() {
|
||||
*x = GroupOPRequest{}
|
||||
mi := &file_member_proto_msgTypes[6]
|
||||
mi := &file_module_social_group_proto_member_proto_msgTypes[6]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
@@ -524,7 +525,7 @@ func (x *GroupOPRequest) String() string {
|
||||
func (*GroupOPRequest) ProtoMessage() {}
|
||||
|
||||
func (x *GroupOPRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_member_proto_msgTypes[6]
|
||||
mi := &file_module_social_group_proto_member_proto_msgTypes[6]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
@@ -537,7 +538,7 @@ func (x *GroupOPRequest) ProtoReflect() protoreflect.Message {
|
||||
|
||||
// Deprecated: Use GroupOPRequest.ProtoReflect.Descriptor instead.
|
||||
func (*GroupOPRequest) Descriptor() ([]byte, []int) {
|
||||
return file_member_proto_rawDescGZIP(), []int{6}
|
||||
return file_module_social_group_proto_member_proto_rawDescGZIP(), []int{6}
|
||||
}
|
||||
|
||||
func (x *GroupOPRequest) GetIdentity() string {
|
||||
@@ -561,11 +562,11 @@ func (x *GroupOPRequest) GetDirection() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
var File_member_proto protoreflect.FileDescriptor
|
||||
var File_module_social_group_proto_member_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_member_proto_rawDesc = "" +
|
||||
const file_module_social_group_proto_member_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"\x19social/group/member.proto\x12\x05group\x1a\x12group/blocks.proto\"\xaf\x01\n" +
|
||||
"&module/social/group/proto/member.proto\x12\x05group\x1a\x15protobuf/blocks.proto\"\xaf\x01\n" +
|
||||
"\x16PassportInfoSimpleCard\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x1a\n" +
|
||||
"\bnickname\x18\x02 \x01(\tR\bnickname\x12\x1f\n" +
|
||||
@@ -612,59 +613,59 @@ const file_member_proto_rawDesc = "" +
|
||||
"\x0eGroupOPRequest\x12\x1a\n" +
|
||||
"\bidentity\x18\x01 \x01(\tR\bidentity\x12%\n" +
|
||||
"\x0egroup_identity\x18\x02 \x01(\tR\rgroupIdentity\x12\x1c\n" +
|
||||
"\tdirection\x18\x03 \x01(\tR\tdirection2\x85\x03\n" +
|
||||
"\x06Member\x125\n" +
|
||||
"\x05Fetch\x12\x13.group.IdentRequest\x1a\x17.group.GroupMemberReply\x122\n" +
|
||||
"\x06DoJoin\x12\x14.group.DoJoinRequest\x1a\x12.group.StatusReply\x120\n" +
|
||||
"\tJoinFetch\x12\f.group.Empty\x1a\x15.group.JoinFetchReply\x129\n" +
|
||||
"\fJoinDoHandle\x12\x15.group.GroupOPRequest\x1a\x12.group.StatusReply\x129\n" +
|
||||
"\fDoSetManager\x12\x15.group.GroupOPRequest\x1a\x12.group.StatusReply\x123\n" +
|
||||
"\x06DoKick\x12\x15.group.GroupOPRequest\x1a\x12.group.StatusReply\x123\n" +
|
||||
"\x06DoQuit\x12\x15.group.GroupOPRequest\x1a\x12.group.StatusReplyB\tZ\a.;groupb\x06proto3"
|
||||
"\tdirection\x18\x03 \x01(\tR\tdirection2\xa0\x03\n" +
|
||||
"\x06Member\x126\n" +
|
||||
"\x05Fetch\x12\x14.blocks.IdentRequest\x1a\x17.group.GroupMemberReply\x127\n" +
|
||||
"\x06DoJoin\x12\x14.group.DoJoinRequest\x1a\x17.blocks.DataStatusReply\x121\n" +
|
||||
"\tJoinFetch\x12\r.blocks.Empty\x1a\x15.group.JoinFetchReply\x12>\n" +
|
||||
"\fJoinDoHandle\x12\x15.group.GroupOPRequest\x1a\x17.blocks.DataStatusReply\x12>\n" +
|
||||
"\fDoSetManager\x12\x15.group.GroupOPRequest\x1a\x17.blocks.DataStatusReply\x128\n" +
|
||||
"\x06DoKick\x12\x15.group.GroupOPRequest\x1a\x17.blocks.DataStatusReply\x128\n" +
|
||||
"\x06DoQuit\x12\x15.group.GroupOPRequest\x1a\x17.blocks.DataStatusReplyB'Z%bsm/full/module/social/group/pb;groupb\x06proto3"
|
||||
|
||||
var (
|
||||
file_member_proto_rawDescOnce sync.Once
|
||||
file_member_proto_rawDescData []byte
|
||||
file_module_social_group_proto_member_proto_rawDescOnce sync.Once
|
||||
file_module_social_group_proto_member_proto_rawDescData []byte
|
||||
)
|
||||
|
||||
func file_member_proto_rawDescGZIP() []byte {
|
||||
file_member_proto_rawDescOnce.Do(func() {
|
||||
file_member_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_member_proto_rawDesc), len(file_member_proto_rawDesc)))
|
||||
func file_module_social_group_proto_member_proto_rawDescGZIP() []byte {
|
||||
file_module_social_group_proto_member_proto_rawDescOnce.Do(func() {
|
||||
file_module_social_group_proto_member_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_module_social_group_proto_member_proto_rawDesc), len(file_module_social_group_proto_member_proto_rawDesc)))
|
||||
})
|
||||
return file_member_proto_rawDescData
|
||||
return file_module_social_group_proto_member_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_member_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
||||
var file_member_proto_goTypes = []any{
|
||||
(*PassportInfoSimpleCard)(nil), // 0: group.PassportInfoSimpleCard
|
||||
(*PassportInfoDetailCard)(nil), // 1: group.PassportInfoDetailCard
|
||||
(*GroupMemberReply)(nil), // 2: group.GroupMemberReply
|
||||
(*DoJoinRequest)(nil), // 3: group.DoJoinRequest
|
||||
(*JoinFetchReply)(nil), // 4: group.JoinFetchReply
|
||||
(*ApplyJoinGroupItem)(nil), // 5: group.ApplyJoinGroupItem
|
||||
(*GroupOPRequest)(nil), // 6: group.GroupOPRequest
|
||||
(*IdentRequest)(nil), // 7: group.IdentRequest
|
||||
(*Empty)(nil), // 8: group.Empty
|
||||
(*StatusReply)(nil), // 9: group.StatusReply
|
||||
var file_module_social_group_proto_member_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
|
||||
var file_module_social_group_proto_member_proto_goTypes = []any{
|
||||
(*PassportInfoSimpleCard)(nil), // 0: group.PassportInfoSimpleCard
|
||||
(*PassportInfoDetailCard)(nil), // 1: group.PassportInfoDetailCard
|
||||
(*GroupMemberReply)(nil), // 2: group.GroupMemberReply
|
||||
(*DoJoinRequest)(nil), // 3: group.DoJoinRequest
|
||||
(*JoinFetchReply)(nil), // 4: group.JoinFetchReply
|
||||
(*ApplyJoinGroupItem)(nil), // 5: group.ApplyJoinGroupItem
|
||||
(*GroupOPRequest)(nil), // 6: group.GroupOPRequest
|
||||
(*protobuf.IdentRequest)(nil), // 7: blocks.IdentRequest
|
||||
(*protobuf.Empty)(nil), // 8: blocks.Empty
|
||||
(*protobuf.DataStatusReply)(nil), // 9: blocks.DataStatusReply
|
||||
}
|
||||
var file_member_proto_depIdxs = []int32{
|
||||
var file_module_social_group_proto_member_proto_depIdxs = []int32{
|
||||
0, // 0: group.GroupMemberReply.members:type_name -> group.PassportInfoSimpleCard
|
||||
5, // 1: group.JoinFetchReply.applys:type_name -> group.ApplyJoinGroupItem
|
||||
1, // 2: group.ApplyJoinGroupItem.from:type_name -> group.PassportInfoDetailCard
|
||||
7, // 3: group.Member.Fetch:input_type -> group.IdentRequest
|
||||
7, // 3: group.Member.Fetch:input_type -> blocks.IdentRequest
|
||||
3, // 4: group.Member.DoJoin:input_type -> group.DoJoinRequest
|
||||
8, // 5: group.Member.JoinFetch:input_type -> group.Empty
|
||||
8, // 5: group.Member.JoinFetch:input_type -> blocks.Empty
|
||||
6, // 6: group.Member.JoinDoHandle:input_type -> group.GroupOPRequest
|
||||
6, // 7: group.Member.DoSetManager:input_type -> group.GroupOPRequest
|
||||
6, // 8: group.Member.DoKick:input_type -> group.GroupOPRequest
|
||||
6, // 9: group.Member.DoQuit:input_type -> group.GroupOPRequest
|
||||
2, // 10: group.Member.Fetch:output_type -> group.GroupMemberReply
|
||||
9, // 11: group.Member.DoJoin:output_type -> group.StatusReply
|
||||
9, // 11: group.Member.DoJoin:output_type -> blocks.DataStatusReply
|
||||
4, // 12: group.Member.JoinFetch:output_type -> group.JoinFetchReply
|
||||
9, // 13: group.Member.JoinDoHandle:output_type -> group.StatusReply
|
||||
9, // 14: group.Member.DoSetManager:output_type -> group.StatusReply
|
||||
9, // 15: group.Member.DoKick:output_type -> group.StatusReply
|
||||
9, // 16: group.Member.DoQuit:output_type -> group.StatusReply
|
||||
9, // 13: group.Member.JoinDoHandle:output_type -> blocks.DataStatusReply
|
||||
9, // 14: group.Member.DoSetManager:output_type -> blocks.DataStatusReply
|
||||
9, // 15: group.Member.DoKick:output_type -> blocks.DataStatusReply
|
||||
9, // 16: group.Member.DoQuit:output_type -> blocks.DataStatusReply
|
||||
10, // [10:17] is the sub-list for method output_type
|
||||
3, // [3:10] is the sub-list for method input_type
|
||||
3, // [3:3] is the sub-list for extension type_name
|
||||
@@ -672,27 +673,26 @@ var file_member_proto_depIdxs = []int32{
|
||||
0, // [0:3] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_member_proto_init() }
|
||||
func file_member_proto_init() {
|
||||
if File_member_proto != nil {
|
||||
func init() { file_module_social_group_proto_member_proto_init() }
|
||||
func file_module_social_group_proto_member_proto_init() {
|
||||
if File_module_social_group_proto_member_proto != nil {
|
||||
return
|
||||
}
|
||||
file_blocks_proto_init()
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_member_proto_rawDesc), len(file_member_proto_rawDesc)),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_module_social_group_proto_member_proto_rawDesc), len(file_module_social_group_proto_member_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 7,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
GoTypes: file_member_proto_goTypes,
|
||||
DependencyIndexes: file_member_proto_depIdxs,
|
||||
MessageInfos: file_member_proto_msgTypes,
|
||||
GoTypes: file_module_social_group_proto_member_proto_goTypes,
|
||||
DependencyIndexes: file_module_social_group_proto_member_proto_depIdxs,
|
||||
MessageInfos: file_module_social_group_proto_member_proto_msgTypes,
|
||||
}.Build()
|
||||
File_member_proto = out.File
|
||||
file_member_proto_goTypes = nil
|
||||
file_member_proto_depIdxs = nil
|
||||
File_module_social_group_proto_member_proto = out.File
|
||||
file_module_social_group_proto_member_proto_goTypes = nil
|
||||
file_module_social_group_proto_member_proto_depIdxs = nil
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
|
||||
// source: member.proto
|
||||
// source: module/social/group/proto/member.proto
|
||||
|
||||
/*
|
||||
Package group is a reverse proxy.
|
||||
@@ -9,6 +9,7 @@ It translates gRPC into RESTful JSON APIs.
|
||||
package group
|
||||
|
||||
import (
|
||||
"bsm/full/protobuf"
|
||||
"context"
|
||||
"errors"
|
||||
"io"
|
||||
@@ -37,7 +38,7 @@ var (
|
||||
|
||||
func request_Member_Fetch_0(ctx context.Context, marshaler runtime.Marshaler, client MemberClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||||
var (
|
||||
protoReq IdentRequest
|
||||
protoReq blocks.IdentRequest
|
||||
metadata runtime.ServerMetadata
|
||||
)
|
||||
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
|
||||
@@ -52,7 +53,7 @@ func request_Member_Fetch_0(ctx context.Context, marshaler runtime.Marshaler, cl
|
||||
|
||||
func local_request_Member_Fetch_0(ctx context.Context, marshaler runtime.Marshaler, server MemberServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||||
var (
|
||||
protoReq IdentRequest
|
||||
protoReq blocks.IdentRequest
|
||||
metadata runtime.ServerMetadata
|
||||
)
|
||||
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
|
||||
@@ -91,7 +92,7 @@ func local_request_Member_DoJoin_0(ctx context.Context, marshaler runtime.Marsha
|
||||
|
||||
func request_Member_JoinFetch_0(ctx context.Context, marshaler runtime.Marshaler, client MemberClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||||
var (
|
||||
protoReq Empty
|
||||
protoReq blocks.Empty
|
||||
metadata runtime.ServerMetadata
|
||||
)
|
||||
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
|
||||
@@ -106,7 +107,7 @@ func request_Member_JoinFetch_0(ctx context.Context, marshaler runtime.Marshaler
|
||||
|
||||
func local_request_Member_JoinFetch_0(ctx context.Context, marshaler runtime.Marshaler, server MemberServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
|
||||
var (
|
||||
protoReq Empty
|
||||
protoReq blocks.Empty
|
||||
metadata runtime.ServerMetadata
|
||||
)
|
||||
if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.5.1
|
||||
// - protoc (unknown)
|
||||
// source: member.proto
|
||||
// - protoc-gen-go-grpc v1.6.2
|
||||
// - protoc v7.35.0
|
||||
// source: module/social/group/proto/member.proto
|
||||
|
||||
package group
|
||||
|
||||
import (
|
||||
protobuf "bsm/full/protobuf"
|
||||
context "context"
|
||||
grpc "google.golang.org/grpc"
|
||||
codes "google.golang.org/grpc/codes"
|
||||
@@ -34,20 +35,20 @@ const (
|
||||
//
|
||||
// relation-关系管理:群组
|
||||
type MemberClient interface {
|
||||
//获取群组成员列表
|
||||
Fetch(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*GroupMemberReply, error)
|
||||
//申请加群
|
||||
DoJoin(ctx context.Context, in *DoJoinRequest, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
//申请加群列表
|
||||
JoinFetch(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*JoinFetchReply, error)
|
||||
//申请加群处理
|
||||
JoinDoHandle(ctx context.Context, in *GroupOPRequest, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
//设置或取消管理员
|
||||
DoSetManager(ctx context.Context, in *GroupOPRequest, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
//踢人
|
||||
DoKick(ctx context.Context, in *GroupOPRequest, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
//退群
|
||||
DoQuit(ctx context.Context, in *GroupOPRequest, opts ...grpc.CallOption) (*StatusReply, error)
|
||||
// 获取群组成员列表
|
||||
Fetch(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*GroupMemberReply, error)
|
||||
// 申请加群
|
||||
DoJoin(ctx context.Context, in *DoJoinRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error)
|
||||
// 申请加群列表
|
||||
JoinFetch(ctx context.Context, in *protobuf.Empty, opts ...grpc.CallOption) (*JoinFetchReply, error)
|
||||
// 申请加群处理
|
||||
JoinDoHandle(ctx context.Context, in *GroupOPRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error)
|
||||
// 设置或取消管理员
|
||||
DoSetManager(ctx context.Context, in *GroupOPRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error)
|
||||
// 踢人
|
||||
DoKick(ctx context.Context, in *GroupOPRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error)
|
||||
// 退群
|
||||
DoQuit(ctx context.Context, in *GroupOPRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error)
|
||||
}
|
||||
|
||||
type memberClient struct {
|
||||
@@ -58,7 +59,7 @@ func NewMemberClient(cc grpc.ClientConnInterface) MemberClient {
|
||||
return &memberClient{cc}
|
||||
}
|
||||
|
||||
func (c *memberClient) Fetch(ctx context.Context, in *IdentRequest, opts ...grpc.CallOption) (*GroupMemberReply, error) {
|
||||
func (c *memberClient) Fetch(ctx context.Context, in *protobuf.IdentRequest, opts ...grpc.CallOption) (*GroupMemberReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(GroupMemberReply)
|
||||
err := c.cc.Invoke(ctx, Member_Fetch_FullMethodName, in, out, cOpts...)
|
||||
@@ -68,9 +69,9 @@ func (c *memberClient) Fetch(ctx context.Context, in *IdentRequest, opts ...grpc
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *memberClient) DoJoin(ctx context.Context, in *DoJoinRequest, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
func (c *memberClient) DoJoin(ctx context.Context, in *DoJoinRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(StatusReply)
|
||||
out := new(protobuf.DataStatusReply)
|
||||
err := c.cc.Invoke(ctx, Member_DoJoin_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -78,7 +79,7 @@ func (c *memberClient) DoJoin(ctx context.Context, in *DoJoinRequest, opts ...gr
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *memberClient) JoinFetch(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*JoinFetchReply, error) {
|
||||
func (c *memberClient) JoinFetch(ctx context.Context, in *protobuf.Empty, opts ...grpc.CallOption) (*JoinFetchReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(JoinFetchReply)
|
||||
err := c.cc.Invoke(ctx, Member_JoinFetch_FullMethodName, in, out, cOpts...)
|
||||
@@ -88,9 +89,9 @@ func (c *memberClient) JoinFetch(ctx context.Context, in *Empty, opts ...grpc.Ca
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *memberClient) JoinDoHandle(ctx context.Context, in *GroupOPRequest, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
func (c *memberClient) JoinDoHandle(ctx context.Context, in *GroupOPRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(StatusReply)
|
||||
out := new(protobuf.DataStatusReply)
|
||||
err := c.cc.Invoke(ctx, Member_JoinDoHandle_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -98,9 +99,9 @@ func (c *memberClient) JoinDoHandle(ctx context.Context, in *GroupOPRequest, opt
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *memberClient) DoSetManager(ctx context.Context, in *GroupOPRequest, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
func (c *memberClient) DoSetManager(ctx context.Context, in *GroupOPRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(StatusReply)
|
||||
out := new(protobuf.DataStatusReply)
|
||||
err := c.cc.Invoke(ctx, Member_DoSetManager_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -108,9 +109,9 @@ func (c *memberClient) DoSetManager(ctx context.Context, in *GroupOPRequest, opt
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *memberClient) DoKick(ctx context.Context, in *GroupOPRequest, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
func (c *memberClient) DoKick(ctx context.Context, in *GroupOPRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(StatusReply)
|
||||
out := new(protobuf.DataStatusReply)
|
||||
err := c.cc.Invoke(ctx, Member_DoKick_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -118,9 +119,9 @@ func (c *memberClient) DoKick(ctx context.Context, in *GroupOPRequest, opts ...g
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *memberClient) DoQuit(ctx context.Context, in *GroupOPRequest, opts ...grpc.CallOption) (*StatusReply, error) {
|
||||
func (c *memberClient) DoQuit(ctx context.Context, in *GroupOPRequest, opts ...grpc.CallOption) (*protobuf.DataStatusReply, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(StatusReply)
|
||||
out := new(protobuf.DataStatusReply)
|
||||
err := c.cc.Invoke(ctx, Member_DoQuit_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
@@ -129,58 +130,56 @@ func (c *memberClient) DoQuit(ctx context.Context, in *GroupOPRequest, opts ...g
|
||||
}
|
||||
|
||||
// MemberServer is the server API for Member service.
|
||||
// All implementations must embed UnimplementedMemberServer
|
||||
// All implementations should embed UnimplementedMemberServer
|
||||
// for forward compatibility.
|
||||
//
|
||||
// relation-关系管理:群组
|
||||
type MemberServer interface {
|
||||
//获取群组成员列表
|
||||
Fetch(context.Context, *IdentRequest) (*GroupMemberReply, error)
|
||||
//申请加群
|
||||
DoJoin(context.Context, *DoJoinRequest) (*StatusReply, error)
|
||||
//申请加群列表
|
||||
JoinFetch(context.Context, *Empty) (*JoinFetchReply, error)
|
||||
//申请加群处理
|
||||
JoinDoHandle(context.Context, *GroupOPRequest) (*StatusReply, error)
|
||||
//设置或取消管理员
|
||||
DoSetManager(context.Context, *GroupOPRequest) (*StatusReply, error)
|
||||
//踢人
|
||||
DoKick(context.Context, *GroupOPRequest) (*StatusReply, error)
|
||||
//退群
|
||||
DoQuit(context.Context, *GroupOPRequest) (*StatusReply, error)
|
||||
mustEmbedUnimplementedMemberServer()
|
||||
// 获取群组成员列表
|
||||
Fetch(context.Context, *protobuf.IdentRequest) (*GroupMemberReply, error)
|
||||
// 申请加群
|
||||
DoJoin(context.Context, *DoJoinRequest) (*protobuf.DataStatusReply, error)
|
||||
// 申请加群列表
|
||||
JoinFetch(context.Context, *protobuf.Empty) (*JoinFetchReply, error)
|
||||
// 申请加群处理
|
||||
JoinDoHandle(context.Context, *GroupOPRequest) (*protobuf.DataStatusReply, error)
|
||||
// 设置或取消管理员
|
||||
DoSetManager(context.Context, *GroupOPRequest) (*protobuf.DataStatusReply, error)
|
||||
// 踢人
|
||||
DoKick(context.Context, *GroupOPRequest) (*protobuf.DataStatusReply, error)
|
||||
// 退群
|
||||
DoQuit(context.Context, *GroupOPRequest) (*protobuf.DataStatusReply, error)
|
||||
}
|
||||
|
||||
// UnimplementedMemberServer must be embedded to have
|
||||
// UnimplementedMemberServer should be embedded to have
|
||||
// forward compatible implementations.
|
||||
//
|
||||
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
||||
// pointer dereference when methods are called.
|
||||
type UnimplementedMemberServer struct{}
|
||||
|
||||
func (UnimplementedMemberServer) Fetch(context.Context, *IdentRequest) (*GroupMemberReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method Fetch not implemented")
|
||||
func (UnimplementedMemberServer) Fetch(context.Context, *protobuf.IdentRequest) (*GroupMemberReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Fetch not implemented")
|
||||
}
|
||||
func (UnimplementedMemberServer) DoJoin(context.Context, *DoJoinRequest) (*StatusReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method DoJoin not implemented")
|
||||
func (UnimplementedMemberServer) DoJoin(context.Context, *DoJoinRequest) (*protobuf.DataStatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method DoJoin not implemented")
|
||||
}
|
||||
func (UnimplementedMemberServer) JoinFetch(context.Context, *Empty) (*JoinFetchReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method JoinFetch not implemented")
|
||||
func (UnimplementedMemberServer) JoinFetch(context.Context, *protobuf.Empty) (*JoinFetchReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method JoinFetch not implemented")
|
||||
}
|
||||
func (UnimplementedMemberServer) JoinDoHandle(context.Context, *GroupOPRequest) (*StatusReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method JoinDoHandle not implemented")
|
||||
func (UnimplementedMemberServer) JoinDoHandle(context.Context, *GroupOPRequest) (*protobuf.DataStatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method JoinDoHandle not implemented")
|
||||
}
|
||||
func (UnimplementedMemberServer) DoSetManager(context.Context, *GroupOPRequest) (*StatusReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method DoSetManager not implemented")
|
||||
func (UnimplementedMemberServer) DoSetManager(context.Context, *GroupOPRequest) (*protobuf.DataStatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method DoSetManager not implemented")
|
||||
}
|
||||
func (UnimplementedMemberServer) DoKick(context.Context, *GroupOPRequest) (*StatusReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method DoKick not implemented")
|
||||
func (UnimplementedMemberServer) DoKick(context.Context, *GroupOPRequest) (*protobuf.DataStatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method DoKick not implemented")
|
||||
}
|
||||
func (UnimplementedMemberServer) DoQuit(context.Context, *GroupOPRequest) (*StatusReply, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method DoQuit not implemented")
|
||||
func (UnimplementedMemberServer) DoQuit(context.Context, *GroupOPRequest) (*protobuf.DataStatusReply, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method DoQuit not implemented")
|
||||
}
|
||||
func (UnimplementedMemberServer) mustEmbedUnimplementedMemberServer() {}
|
||||
func (UnimplementedMemberServer) testEmbeddedByValue() {}
|
||||
func (UnimplementedMemberServer) testEmbeddedByValue() {}
|
||||
|
||||
// UnsafeMemberServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to MemberServer will
|
||||
@@ -190,7 +189,7 @@ type UnsafeMemberServer interface {
|
||||
}
|
||||
|
||||
func RegisterMemberServer(s grpc.ServiceRegistrar, srv MemberServer) {
|
||||
// If the following call pancis, it indicates UnimplementedMemberServer was
|
||||
// If the following call panics, it indicates UnimplementedMemberServer was
|
||||
// embedded by pointer and is nil. This will cause panics if an
|
||||
// unimplemented method is ever invoked, so we test this at initialization
|
||||
// time to prevent it from happening at runtime later due to I/O.
|
||||
@@ -201,7 +200,7 @@ func RegisterMemberServer(s grpc.ServiceRegistrar, srv MemberServer) {
|
||||
}
|
||||
|
||||
func _Member_Fetch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(IdentRequest)
|
||||
in := new(protobuf.IdentRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -213,7 +212,7 @@ func _Member_Fetch_Handler(srv interface{}, ctx context.Context, dec func(interf
|
||||
FullMethod: Member_Fetch_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MemberServer).Fetch(ctx, req.(*IdentRequest))
|
||||
return srv.(MemberServer).Fetch(ctx, req.(*protobuf.IdentRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
@@ -237,7 +236,7 @@ func _Member_DoJoin_Handler(srv interface{}, ctx context.Context, dec func(inter
|
||||
}
|
||||
|
||||
func _Member_JoinFetch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(Empty)
|
||||
in := new(protobuf.Empty)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -249,7 +248,7 @@ func _Member_JoinFetch_Handler(srv interface{}, ctx context.Context, dec func(in
|
||||
FullMethod: Member_JoinFetch_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(MemberServer).JoinFetch(ctx, req.(*Empty))
|
||||
return srv.(MemberServer).JoinFetch(ctx, req.(*protobuf.Empty))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
@@ -363,5 +362,5 @@ var Member_ServiceDesc = grpc.ServiceDesc{
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "member.proto",
|
||||
Metadata: "module/social/group/proto/member.proto",
|
||||
}
|
||||
|
||||
@@ -1,67 +0,0 @@
|
||||
syntax = "proto3";
|
||||
package group;
|
||||
option go_package = ".;group";
|
||||
|
||||
message FetchRequest {
|
||||
int64 page_no=1; // 页数
|
||||
int64 page_size=2; // 每页记录数
|
||||
map<string,string> params=3; // 条件参数,key=val,eg key:category_id=?,vlaue=11
|
||||
}
|
||||
|
||||
message IdentRequest{
|
||||
int64 id = 1; // 唯一ID
|
||||
string identity = 2; // 唯一码
|
||||
}
|
||||
|
||||
message VersionRequest {
|
||||
int64 version=1; // 时序版本号
|
||||
}
|
||||
|
||||
|
||||
message SearchRequest {
|
||||
string keyword=1; //关键词
|
||||
}
|
||||
|
||||
message StatusReply{
|
||||
string data=1; // 数据
|
||||
int64 timeseq=2; // 响应时间序列
|
||||
}
|
||||
|
||||
|
||||
message Empty{
|
||||
}
|
||||
|
||||
|
||||
|
||||
// 推文列表
|
||||
message PostListReply{
|
||||
repeated PostItem list = 1;
|
||||
int64 cnt = 2;
|
||||
}
|
||||
|
||||
// 推文
|
||||
message PostItem{
|
||||
string identity = 1; // 唯一标识
|
||||
string content = 2; // 内容
|
||||
int64 passport_id=3; // 通行证ID
|
||||
string passport_identity = 4; // 通行证Identity
|
||||
bool is_open =5; // 是否公开:默认为0-公开,1-不公开
|
||||
int64 cnt_unlike = 6; // 点踩数量
|
||||
int64 cnt_comment = 7; // 评论数量
|
||||
int64 cnt_like = 8; // 点赞数量
|
||||
repeated AttachItem attachs = 9; // 附件信息
|
||||
repeated TagItem tags = 10; // 所属话题
|
||||
}
|
||||
|
||||
// 附件
|
||||
message AttachItem{
|
||||
string identity = 1; // 唯一标识
|
||||
string attach_type = 2; // 文件类型
|
||||
string url = 3; // 文件路径
|
||||
}
|
||||
|
||||
// 标签
|
||||
message TagItem {
|
||||
string key = 1; // 标签唯一码
|
||||
string content = 2; // 标签内容
|
||||
}
|
||||
@@ -1,27 +1,27 @@
|
||||
syntax = "proto3";
|
||||
package group;
|
||||
option go_package = ".;group";
|
||||
import "blocks.proto";
|
||||
option go_package = "bsm/full/module/social/group/pb;group";
|
||||
import "protobuf/blocks.proto";
|
||||
|
||||
// 群组
|
||||
service Basic{
|
||||
//搜索
|
||||
rpc Search(SearchRequest) returns (GroupsReply);
|
||||
rpc Search(blocks.SearchRequest) returns (GroupsReply);
|
||||
|
||||
//获取群组列表
|
||||
rpc Fetch(Empty) returns (GroupsReply);
|
||||
rpc Fetch(blocks.Empty) returns (GroupsReply);
|
||||
|
||||
//获取群组信息
|
||||
rpc Get(IdentRequest) returns (GroupItem);
|
||||
rpc Get(blocks.IdentRequest) returns (GroupItem);
|
||||
|
||||
//创建群组
|
||||
rpc Create(GroupItem) returns (StatusReply);
|
||||
rpc Create(GroupItem) returns (blocks.DataStatusReply);
|
||||
|
||||
//修改群组信息
|
||||
rpc Modify(GroupItem) returns (StatusReply);
|
||||
|
||||
rpc Modify(GroupItem) returns (blocks.DataStatusReply);
|
||||
|
||||
//解散群组
|
||||
rpc Disband(IdentRequest) returns (StatusReply);
|
||||
rpc Disband(blocks.IdentRequest) returns (blocks.DataStatusReply);
|
||||
}
|
||||
message GroupItem {
|
||||
int64 id =1; // 主键
|
||||
|
||||
@@ -1,32 +1,32 @@
|
||||
syntax = "proto3";
|
||||
package group;
|
||||
option go_package = ".;group";
|
||||
import "blocks.proto";
|
||||
option go_package = "bsm/full/module/social/group/pb;group";
|
||||
import "protobuf/blocks.proto";
|
||||
|
||||
// relation-关系管理:群组
|
||||
service Member{
|
||||
//获取群组成员列表
|
||||
rpc Fetch(IdentRequest) returns (GroupMemberReply);
|
||||
rpc Fetch(blocks.IdentRequest) returns (GroupMemberReply);
|
||||
|
||||
//申请加群
|
||||
rpc DoJoin(DoJoinRequest) returns (StatusReply);
|
||||
rpc DoJoin(DoJoinRequest) returns (blocks.DataStatusReply);
|
||||
|
||||
//申请加群列表
|
||||
rpc JoinFetch(Empty) returns (JoinFetchReply);
|
||||
rpc JoinFetch(blocks.Empty) returns (JoinFetchReply);
|
||||
|
||||
//申请加群处理
|
||||
rpc JoinDoHandle(GroupOPRequest) returns (StatusReply);
|
||||
rpc JoinDoHandle(GroupOPRequest) returns (blocks.DataStatusReply);
|
||||
|
||||
|
||||
//设置或取消管理员
|
||||
rpc DoSetManager(GroupOPRequest) returns (StatusReply);
|
||||
rpc DoSetManager(GroupOPRequest) returns (blocks.DataStatusReply);
|
||||
|
||||
//踢人
|
||||
rpc DoKick(GroupOPRequest) returns (StatusReply);
|
||||
rpc DoKick(GroupOPRequest) returns (blocks.DataStatusReply);
|
||||
|
||||
//退群
|
||||
rpc DoQuit(GroupOPRequest) returns (StatusReply);
|
||||
|
||||
rpc DoQuit(GroupOPRequest) returns (blocks.DataStatusReply);
|
||||
|
||||
}
|
||||
|
||||
message PassportInfoSimpleCard{
|
||||
|
||||
Reference in New Issue
Block a user