300 lines
9.2 KiB
Go
300 lines
9.2 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_db.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 CommentState int32
|
|
|
|
const (
|
|
CommentState_Release CommentState = 0 //发布
|
|
CommentState_Offline CommentState = 1 //下架
|
|
)
|
|
|
|
// Enum value maps for CommentState.
|
|
var (
|
|
CommentState_name = map[int32]string{
|
|
0: "Release",
|
|
1: "Offline",
|
|
}
|
|
CommentState_value = map[string]int32{
|
|
"Release": 0,
|
|
"Offline": 1,
|
|
}
|
|
)
|
|
|
|
func (x CommentState) Enum() *CommentState {
|
|
p := new(CommentState)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x CommentState) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (CommentState) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_forum_forum_db_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (CommentState) Type() protoreflect.EnumType {
|
|
return &file_forum_forum_db_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x CommentState) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use CommentState.Descriptor instead.
|
|
func (CommentState) EnumDescriptor() ([]byte, []int) {
|
|
return file_forum_forum_db_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
//评论数据
|
|
type DBComment struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id" bson:"_id"` //ID
|
|
Heroid string `protobuf:"bytes,2,opt,name=heroid,proto3" json:"heroid"` //英雄id
|
|
Heroobjid string `protobuf:"bytes,3,opt,name=heroobjid,proto3" json:"heroobjid"` //目标英雄的实例id
|
|
Uid string `protobuf:"bytes,4,opt,name=uid,proto3" json:"uid"` //发送用户id
|
|
Stage string `protobuf:"bytes,5,opt,name=stage,proto3" json:"stage"` //区服id
|
|
Avatar string `protobuf:"bytes,6,opt,name=avatar,proto3" json:"avatar"` //用户头像
|
|
Uname string `protobuf:"bytes,7,opt,name=uname,proto3" json:"uname"` //用户名
|
|
Ulv int32 `protobuf:"varint,8,opt,name=ulv,proto3" json:"ulv"`
|
|
State CommentState `protobuf:"varint,9,opt,name=state,proto3,enum=CommentState" json:"state"` //状态
|
|
Ctime int64 `protobuf:"varint,10,opt,name=ctime,proto3" json:"ctime"` //发布时间
|
|
Content string `protobuf:"bytes,11,opt,name=content,proto3" json:"content"` //内容
|
|
Starlist int32 `protobuf:"varint,12,opt,name=starlist,proto3" json:"starlist"` //点赞数
|
|
}
|
|
|
|
func (x *DBComment) Reset() {
|
|
*x = DBComment{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_forum_forum_db_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *DBComment) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*DBComment) ProtoMessage() {}
|
|
|
|
func (x *DBComment) ProtoReflect() protoreflect.Message {
|
|
mi := &file_forum_forum_db_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 DBComment.ProtoReflect.Descriptor instead.
|
|
func (*DBComment) Descriptor() ([]byte, []int) {
|
|
return file_forum_forum_db_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *DBComment) GetId() string {
|
|
if x != nil {
|
|
return x.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DBComment) GetHeroid() string {
|
|
if x != nil {
|
|
return x.Heroid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DBComment) GetHeroobjid() string {
|
|
if x != nil {
|
|
return x.Heroobjid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DBComment) GetUid() string {
|
|
if x != nil {
|
|
return x.Uid
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DBComment) GetStage() string {
|
|
if x != nil {
|
|
return x.Stage
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DBComment) GetAvatar() string {
|
|
if x != nil {
|
|
return x.Avatar
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DBComment) GetUname() string {
|
|
if x != nil {
|
|
return x.Uname
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DBComment) GetUlv() int32 {
|
|
if x != nil {
|
|
return x.Ulv
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DBComment) GetState() CommentState {
|
|
if x != nil {
|
|
return x.State
|
|
}
|
|
return CommentState_Release
|
|
}
|
|
|
|
func (x *DBComment) GetCtime() int64 {
|
|
if x != nil {
|
|
return x.Ctime
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *DBComment) GetContent() string {
|
|
if x != nil {
|
|
return x.Content
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *DBComment) GetStarlist() int32 {
|
|
if x != nil {
|
|
return x.Starlist
|
|
}
|
|
return 0
|
|
}
|
|
|
|
var File_forum_forum_db_proto protoreflect.FileDescriptor
|
|
|
|
var file_forum_forum_db_proto_rawDesc = []byte{
|
|
0x0a, 0x14, 0x66, 0x6f, 0x72, 0x75, 0x6d, 0x2f, 0x66, 0x6f, 0x72, 0x75, 0x6d, 0x5f, 0x64, 0x62,
|
|
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xaa, 0x02, 0x0a, 0x09, 0x44, 0x42, 0x43, 0x6f, 0x6d,
|
|
0x6d, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
|
|
0x52, 0x02, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x68, 0x65, 0x72, 0x6f, 0x69, 0x64, 0x18, 0x02,
|
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x68, 0x65, 0x72, 0x6f, 0x69, 0x64, 0x12, 0x1c, 0x0a, 0x09,
|
|
0x68, 0x65, 0x72, 0x6f, 0x6f, 0x62, 0x6a, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
0x09, 0x68, 0x65, 0x72, 0x6f, 0x6f, 0x62, 0x6a, 0x69, 0x64, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69,
|
|
0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x69, 0x64, 0x12, 0x14, 0x0a, 0x05,
|
|
0x73, 0x74, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x73, 0x74, 0x61,
|
|
0x67, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x18, 0x06, 0x20, 0x01,
|
|
0x28, 0x09, 0x52, 0x06, 0x61, 0x76, 0x61, 0x74, 0x61, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x75, 0x6e,
|
|
0x61, 0x6d, 0x65, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x75, 0x6e, 0x61, 0x6d, 0x65,
|
|
0x12, 0x10, 0x0a, 0x03, 0x75, 0x6c, 0x76, 0x18, 0x08, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03, 0x75,
|
|
0x6c, 0x76, 0x12, 0x23, 0x0a, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x09, 0x20, 0x01, 0x28,
|
|
0x0e, 0x32, 0x0d, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65,
|
|
0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x74, 0x69, 0x6d, 0x65,
|
|
0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x63, 0x74, 0x69, 0x6d, 0x65, 0x12, 0x18, 0x0a,
|
|
0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
|
|
0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x74, 0x61, 0x72, 0x6c,
|
|
0x69, 0x73, 0x74, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x73, 0x74, 0x61, 0x72, 0x6c,
|
|
0x69, 0x73, 0x74, 0x2a, 0x28, 0x0a, 0x0c, 0x43, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x53, 0x74,
|
|
0x61, 0x74, 0x65, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x65, 0x6c, 0x65, 0x61, 0x73, 0x65, 0x10, 0x00,
|
|
0x12, 0x0b, 0x0a, 0x07, 0x4f, 0x66, 0x66, 0x6c, 0x69, 0x6e, 0x65, 0x10, 0x01, 0x42, 0x06, 0x5a,
|
|
0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
}
|
|
|
|
var (
|
|
file_forum_forum_db_proto_rawDescOnce sync.Once
|
|
file_forum_forum_db_proto_rawDescData = file_forum_forum_db_proto_rawDesc
|
|
)
|
|
|
|
func file_forum_forum_db_proto_rawDescGZIP() []byte {
|
|
file_forum_forum_db_proto_rawDescOnce.Do(func() {
|
|
file_forum_forum_db_proto_rawDescData = protoimpl.X.CompressGZIP(file_forum_forum_db_proto_rawDescData)
|
|
})
|
|
return file_forum_forum_db_proto_rawDescData
|
|
}
|
|
|
|
var file_forum_forum_db_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
|
var file_forum_forum_db_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
|
|
var file_forum_forum_db_proto_goTypes = []interface{}{
|
|
(CommentState)(0), // 0: CommentState
|
|
(*DBComment)(nil), // 1: DBComment
|
|
}
|
|
var file_forum_forum_db_proto_depIdxs = []int32{
|
|
0, // 0: DBComment.state:type_name -> CommentState
|
|
1, // [1:1] is the sub-list for method output_type
|
|
1, // [1:1] is the sub-list for method input_type
|
|
1, // [1:1] is the sub-list for extension type_name
|
|
1, // [1:1] is the sub-list for extension extendee
|
|
0, // [0:1] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_forum_forum_db_proto_init() }
|
|
func file_forum_forum_db_proto_init() {
|
|
if File_forum_forum_db_proto != nil {
|
|
return
|
|
}
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_forum_forum_db_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*DBComment); 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_db_proto_rawDesc,
|
|
NumEnums: 1,
|
|
NumMessages: 1,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_forum_forum_db_proto_goTypes,
|
|
DependencyIndexes: file_forum_forum_db_proto_depIdxs,
|
|
EnumInfos: file_forum_forum_db_proto_enumTypes,
|
|
MessageInfos: file_forum_forum_db_proto_msgTypes,
|
|
}.Build()
|
|
File_forum_forum_db_proto = out.File
|
|
file_forum_forum_db_proto_rawDesc = nil
|
|
file_forum_forum_db_proto_goTypes = nil
|
|
file_forum_forum_db_proto_depIdxs = nil
|
|
}
|