go_dreamfactory/pb/forum_msg.pb.go
2022-08-10 13:38:11 +08:00

542 lines
16 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.28.0
// protoc v3.20.0
// source: forum/forum_msg.proto
package pb
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
)
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 ForumGetListReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Herocid string `protobuf:"bytes,1,opt,name=herocid,proto3" json:"herocid"` //英雄配置id
}
func (x *ForumGetListReq) Reset() {
*x = ForumGetListReq{}
if protoimpl.UnsafeEnabled {
mi := &file_forum_forum_msg_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ForumGetListReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ForumGetListReq) ProtoMessage() {}
func (x *ForumGetListReq) ProtoReflect() protoreflect.Message {
mi := &file_forum_forum_msg_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ForumGetListReq.ProtoReflect.Descriptor instead.
func (*ForumGetListReq) Descriptor() ([]byte, []int) {
return file_forum_forum_msg_proto_rawDescGZIP(), []int{0}
}
func (x *ForumGetListReq) GetHerocid() string {
if x != nil {
return x.Herocid
}
return ""
}
//获取评论回应
type ForumGetListResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Comment []*DBComment `protobuf:"bytes,1,rep,name=comment,proto3" json:"comment"`
}
func (x *ForumGetListResp) Reset() {
*x = ForumGetListResp{}
if protoimpl.UnsafeEnabled {
mi := &file_forum_forum_msg_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ForumGetListResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ForumGetListResp) ProtoMessage() {}
func (x *ForumGetListResp) ProtoReflect() protoreflect.Message {
mi := &file_forum_forum_msg_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ForumGetListResp.ProtoReflect.Descriptor instead.
func (*ForumGetListResp) Descriptor() ([]byte, []int) {
return file_forum_forum_msg_proto_rawDescGZIP(), []int{1}
}
func (x *ForumGetListResp) GetComment() []*DBComment {
if x != nil {
return x.Comment
}
return nil
}
//发布评论请求
type ForumReleaseCommentReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Avatar int32 `protobuf:"varint,1,opt,name=avatar,proto3" json:"avatar"` //用户头像
Uname string `protobuf:"bytes,2,opt,name=uname,proto3" json:"uname"` //用户名
Herocid string `protobuf:"bytes,3,opt,name=herocid,proto3" json:"herocid"` //英雄的配置id
Herooid string `protobuf:"bytes,4,opt,name=herooid,proto3" json:"herooid"` //英雄的实例id
Content string `protobuf:"bytes,5,opt,name=content,proto3" json:"content"` //评论内容
}
func (x *ForumReleaseCommentReq) Reset() {
*x = ForumReleaseCommentReq{}
if protoimpl.UnsafeEnabled {
mi := &file_forum_forum_msg_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ForumReleaseCommentReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ForumReleaseCommentReq) ProtoMessage() {}
func (x *ForumReleaseCommentReq) ProtoReflect() protoreflect.Message {
mi := &file_forum_forum_msg_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ForumReleaseCommentReq.ProtoReflect.Descriptor instead.
func (*ForumReleaseCommentReq) Descriptor() ([]byte, []int) {
return file_forum_forum_msg_proto_rawDescGZIP(), []int{2}
}
func (x *ForumReleaseCommentReq) GetAvatar() int32 {
if x != nil {
return x.Avatar
}
return 0
}
func (x *ForumReleaseCommentReq) GetUname() string {
if x != nil {
return x.Uname
}
return ""
}
func (x *ForumReleaseCommentReq) GetHerocid() string {
if x != nil {
return x.Herocid
}
return ""
}
func (x *ForumReleaseCommentReq) GetHerooid() string {
if x != nil {
return x.Herooid
}
return ""
}
func (x *ForumReleaseCommentReq) GetContent() string {
if x != nil {
return x.Content
}
return ""
}
//发布评论回应
type ForumReleaseCommentResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Comment *DBComment `protobuf:"bytes,1,opt,name=comment,proto3" json:"comment"`
}
func (x *ForumReleaseCommentResp) Reset() {
*x = ForumReleaseCommentResp{}
if protoimpl.UnsafeEnabled {
mi := &file_forum_forum_msg_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ForumReleaseCommentResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ForumReleaseCommentResp) ProtoMessage() {}
func (x *ForumReleaseCommentResp) ProtoReflect() protoreflect.Message {
mi := &file_forum_forum_msg_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ForumReleaseCommentResp.ProtoReflect.Descriptor instead.
func (*ForumReleaseCommentResp) Descriptor() ([]byte, []int) {
return file_forum_forum_msg_proto_rawDescGZIP(), []int{3}
}
func (x *ForumReleaseCommentResp) GetComment() *DBComment {
if x != nil {
return x.Comment
}
return nil
}
//查看英雄信息请求
type ForumWatchHeroReq struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Uid string `protobuf:"bytes,1,opt,name=uid,proto3" json:"uid"` //用户id
Stag string `protobuf:"bytes,2,opt,name=stag,proto3" json:"stag"` //区服id
HerocId string `protobuf:"bytes,3,opt,name=herocId,proto3" json:"herocId"` //用户cid
HerooId string `protobuf:"bytes,4,opt,name=herooId,proto3" json:"herooId"` //英雄实例id
}
func (x *ForumWatchHeroReq) Reset() {
*x = ForumWatchHeroReq{}
if protoimpl.UnsafeEnabled {
mi := &file_forum_forum_msg_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ForumWatchHeroReq) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ForumWatchHeroReq) ProtoMessage() {}
func (x *ForumWatchHeroReq) ProtoReflect() protoreflect.Message {
mi := &file_forum_forum_msg_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ForumWatchHeroReq.ProtoReflect.Descriptor instead.
func (*ForumWatchHeroReq) Descriptor() ([]byte, []int) {
return file_forum_forum_msg_proto_rawDescGZIP(), []int{4}
}
func (x *ForumWatchHeroReq) GetUid() string {
if x != nil {
return x.Uid
}
return ""
}
func (x *ForumWatchHeroReq) GetStag() string {
if x != nil {
return x.Stag
}
return ""
}
func (x *ForumWatchHeroReq) GetHerocId() string {
if x != nil {
return x.HerocId
}
return ""
}
func (x *ForumWatchHeroReq) GetHerooId() string {
if x != nil {
return x.HerooId
}
return ""
}
//查看英雄信息回应
type ForumWatchHeroResp struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Hero *DBHero `protobuf:"bytes,1,opt,name=hero,proto3" json:"hero"`
}
func (x *ForumWatchHeroResp) Reset() {
*x = ForumWatchHeroResp{}
if protoimpl.UnsafeEnabled {
mi := &file_forum_forum_msg_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ForumWatchHeroResp) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ForumWatchHeroResp) ProtoMessage() {}
func (x *ForumWatchHeroResp) ProtoReflect() protoreflect.Message {
mi := &file_forum_forum_msg_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ForumWatchHeroResp.ProtoReflect.Descriptor instead.
func (*ForumWatchHeroResp) Descriptor() ([]byte, []int) {
return file_forum_forum_msg_proto_rawDescGZIP(), []int{5}
}
func (x *ForumWatchHeroResp) GetHero() *DBHero {
if x != nil {
return x.Hero
}
return nil
}
var File_forum_forum_msg_proto protoreflect.FileDescriptor
var file_forum_forum_msg_proto_rawDesc = []byte{
0x0a, 0x15, 0x66, 0x6f, 0x72, 0x75, 0x6d, 0x2f, 0x66, 0x6f, 0x72, 0x75, 0x6d, 0x5f, 0x6d, 0x73,
0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x14, 0x66, 0x6f, 0x72, 0x75, 0x6d, 0x2f, 0x66,
0x6f, 0x72, 0x75, 0x6d, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x12, 0x68,
0x65, 0x72, 0x6f, 0x2f, 0x68, 0x65, 0x72, 0x6f, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x22, 0x2b, 0x0a, 0x0f, 0x46, 0x6f, 0x72, 0x75, 0x6d, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73,
0x74, 0x52, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, 0x68, 0x65, 0x72, 0x6f, 0x63, 0x69, 0x64, 0x18,
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x68, 0x65, 0x72, 0x6f, 0x63, 0x69, 0x64, 0x22, 0x38,
0x0a, 0x10, 0x46, 0x6f, 0x72, 0x75, 0x6d, 0x47, 0x65, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65,
0x73, 0x70, 0x12, 0x24, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20,
0x03, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x44, 0x42, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x52,
0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0x94, 0x01, 0x0a, 0x16, 0x46, 0x6f, 0x72,
0x75, 0x6d, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74,
0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x18, 0x01, 0x20,
0x01, 0x28, 0x05, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x75,
0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x75, 0x6e, 0x61, 0x6d,
0x65, 0x12, 0x18, 0x0a, 0x07, 0x68, 0x65, 0x72, 0x6f, 0x63, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01,
0x28, 0x09, 0x52, 0x07, 0x68, 0x65, 0x72, 0x6f, 0x63, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x68,
0x65, 0x72, 0x6f, 0x6f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x68, 0x65,
0x72, 0x6f, 0x6f, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74,
0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22,
0x3f, 0x0a, 0x17, 0x46, 0x6f, 0x72, 0x75, 0x6d, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x43,
0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x12, 0x24, 0x0a, 0x07, 0x63, 0x6f,
0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x44, 0x42,
0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74,
0x22, 0x6d, 0x0a, 0x11, 0x46, 0x6f, 0x72, 0x75, 0x6d, 0x57, 0x61, 0x74, 0x63, 0x68, 0x48, 0x65,
0x72, 0x6f, 0x52, 0x65, 0x71, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x74, 0x61, 0x67, 0x18,
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x73, 0x74, 0x61, 0x67, 0x12, 0x18, 0x0a, 0x07, 0x68,
0x65, 0x72, 0x6f, 0x63, 0x49, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x68, 0x65,
0x72, 0x6f, 0x63, 0x49, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x68, 0x65, 0x72, 0x6f, 0x6f, 0x49, 0x64,
0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x68, 0x65, 0x72, 0x6f, 0x6f, 0x49, 0x64, 0x22,
0x31, 0x0a, 0x12, 0x46, 0x6f, 0x72, 0x75, 0x6d, 0x57, 0x61, 0x74, 0x63, 0x68, 0x48, 0x65, 0x72,
0x6f, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1b, 0x0a, 0x04, 0x68, 0x65, 0x72, 0x6f, 0x18, 0x01, 0x20,
0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x44, 0x42, 0x48, 0x65, 0x72, 0x6f, 0x52, 0x04, 0x68, 0x65,
0x72, 0x6f, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
0x6f, 0x33,
}
var (
file_forum_forum_msg_proto_rawDescOnce sync.Once
file_forum_forum_msg_proto_rawDescData = file_forum_forum_msg_proto_rawDesc
)
func file_forum_forum_msg_proto_rawDescGZIP() []byte {
file_forum_forum_msg_proto_rawDescOnce.Do(func() {
file_forum_forum_msg_proto_rawDescData = protoimpl.X.CompressGZIP(file_forum_forum_msg_proto_rawDescData)
})
return file_forum_forum_msg_proto_rawDescData
}
var file_forum_forum_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
var file_forum_forum_msg_proto_goTypes = []interface{}{
(*ForumGetListReq)(nil), // 0: ForumGetListReq
(*ForumGetListResp)(nil), // 1: ForumGetListResp
(*ForumReleaseCommentReq)(nil), // 2: ForumReleaseCommentReq
(*ForumReleaseCommentResp)(nil), // 3: ForumReleaseCommentResp
(*ForumWatchHeroReq)(nil), // 4: ForumWatchHeroReq
(*ForumWatchHeroResp)(nil), // 5: ForumWatchHeroResp
(*DBComment)(nil), // 6: DBComment
(*DBHero)(nil), // 7: DBHero
}
var file_forum_forum_msg_proto_depIdxs = []int32{
6, // 0: ForumGetListResp.comment:type_name -> DBComment
6, // 1: ForumReleaseCommentResp.comment:type_name -> DBComment
7, // 2: ForumWatchHeroResp.hero:type_name -> DBHero
3, // [3:3] is the sub-list for method output_type
3, // [3:3] is the sub-list for method input_type
3, // [3:3] is the sub-list for extension type_name
3, // [3:3] is the sub-list for extension extendee
0, // [0:3] is the sub-list for field type_name
}
func init() { file_forum_forum_msg_proto_init() }
func file_forum_forum_msg_proto_init() {
if File_forum_forum_msg_proto != nil {
return
}
file_forum_forum_db_proto_init()
file_hero_hero_db_proto_init()
if !protoimpl.UnsafeEnabled {
file_forum_forum_msg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ForumGetListReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_forum_forum_msg_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ForumGetListResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_forum_forum_msg_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ForumReleaseCommentReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_forum_forum_msg_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ForumReleaseCommentResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_forum_forum_msg_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ForumWatchHeroReq); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_forum_forum_msg_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*ForumWatchHeroResp); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_forum_forum_msg_proto_rawDesc,
NumEnums: 0,
NumMessages: 6,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_forum_forum_msg_proto_goTypes,
DependencyIndexes: file_forum_forum_msg_proto_depIdxs,
MessageInfos: file_forum_forum_msg_proto_msgTypes,
}.Build()
File_forum_forum_msg_proto = out.File
file_forum_forum_msg_proto_rawDesc = nil
file_forum_forum_msg_proto_goTypes = nil
file_forum_forum_msg_proto_depIdxs = nil
}