695 lines
20 KiB
Go
695 lines
20 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.28.0
|
|
// protoc v3.20.0
|
|
// source: user/user_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 UserLoginReq struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account"` //账号
|
|
Sid int32 `protobuf:"varint,2,opt,name=sid,proto3" json:"sid"` //区服编号
|
|
}
|
|
|
|
func (x *UserLoginReq) Reset() {
|
|
*x = UserLoginReq{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_user_user_msg_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *UserLoginReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UserLoginReq) ProtoMessage() {}
|
|
|
|
func (x *UserLoginReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_user_user_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 UserLoginReq.ProtoReflect.Descriptor instead.
|
|
func (*UserLoginReq) Descriptor() ([]byte, []int) {
|
|
return file_user_user_msg_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *UserLoginReq) GetAccount() string {
|
|
if x != nil {
|
|
return x.Account
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UserLoginReq) GetSid() int32 {
|
|
if x != nil {
|
|
return x.Sid
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UserLoginResp struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Data *DBUser `protobuf:"bytes,1,opt,name=data,proto3" json:"data"`
|
|
}
|
|
|
|
func (x *UserLoginResp) Reset() {
|
|
*x = UserLoginResp{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_user_user_msg_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *UserLoginResp) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UserLoginResp) ProtoMessage() {}
|
|
|
|
func (x *UserLoginResp) ProtoReflect() protoreflect.Message {
|
|
mi := &file_user_user_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 UserLoginResp.ProtoReflect.Descriptor instead.
|
|
func (*UserLoginResp) Descriptor() ([]byte, []int) {
|
|
return file_user_user_msg_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *UserLoginResp) GetData() *DBUser {
|
|
if x != nil {
|
|
return x.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type UserRegisterReq struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account"`
|
|
Sid int32 `protobuf:"varint,2,opt,name=sid,proto3" json:"sid"`
|
|
}
|
|
|
|
func (x *UserRegisterReq) Reset() {
|
|
*x = UserRegisterReq{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_user_user_msg_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *UserRegisterReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UserRegisterReq) ProtoMessage() {}
|
|
|
|
func (x *UserRegisterReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_user_user_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 UserRegisterReq.ProtoReflect.Descriptor instead.
|
|
func (*UserRegisterReq) Descriptor() ([]byte, []int) {
|
|
return file_user_user_msg_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *UserRegisterReq) GetAccount() string {
|
|
if x != nil {
|
|
return x.Account
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UserRegisterReq) GetSid() int32 {
|
|
if x != nil {
|
|
return x.Sid
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UserRegisterResp struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Code ErrorCode `protobuf:"varint,1,opt,name=Code,proto3,enum=ErrorCode" json:"Code"`
|
|
Account string `protobuf:"bytes,2,opt,name=account,proto3" json:"account"`
|
|
}
|
|
|
|
func (x *UserRegisterResp) Reset() {
|
|
*x = UserRegisterResp{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_user_user_msg_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *UserRegisterResp) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UserRegisterResp) ProtoMessage() {}
|
|
|
|
func (x *UserRegisterResp) ProtoReflect() protoreflect.Message {
|
|
mi := &file_user_user_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 UserRegisterResp.ProtoReflect.Descriptor instead.
|
|
func (*UserRegisterResp) Descriptor() ([]byte, []int) {
|
|
return file_user_user_msg_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *UserRegisterResp) GetCode() ErrorCode {
|
|
if x != nil {
|
|
return x.Code
|
|
}
|
|
return ErrorCode_Success
|
|
}
|
|
|
|
func (x *UserRegisterResp) GetAccount() string {
|
|
if x != nil {
|
|
return x.Account
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type UserLoadResp struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
Data *CacheUser `protobuf:"bytes,1,opt,name=data,proto3" json:"data"`
|
|
}
|
|
|
|
func (x *UserLoadResp) Reset() {
|
|
*x = UserLoadResp{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_user_user_msg_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *UserLoadResp) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UserLoadResp) ProtoMessage() {}
|
|
|
|
func (x *UserLoadResp) ProtoReflect() protoreflect.Message {
|
|
mi := &file_user_user_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 UserLoadResp.ProtoReflect.Descriptor instead.
|
|
func (*UserLoadResp) Descriptor() ([]byte, []int) {
|
|
return file_user_user_msg_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *UserLoadResp) GetData() *CacheUser {
|
|
if x != nil {
|
|
return x.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
//创角
|
|
type UserCreateReq struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
NickName string `protobuf:"bytes,1,opt,name=NickName,proto3" json:"NickName"` //昵称
|
|
}
|
|
|
|
func (x *UserCreateReq) Reset() {
|
|
*x = UserCreateReq{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_user_user_msg_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *UserCreateReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UserCreateReq) ProtoMessage() {}
|
|
|
|
func (x *UserCreateReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_user_user_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 UserCreateReq.ProtoReflect.Descriptor instead.
|
|
func (*UserCreateReq) Descriptor() ([]byte, []int) {
|
|
return file_user_user_msg_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *UserCreateReq) GetNickName() string {
|
|
if x != nil {
|
|
return x.NickName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type UserCreateResp struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
}
|
|
|
|
func (x *UserCreateResp) Reset() {
|
|
*x = UserCreateResp{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_user_user_msg_proto_msgTypes[6]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *UserCreateResp) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UserCreateResp) ProtoMessage() {}
|
|
|
|
func (x *UserCreateResp) ProtoReflect() protoreflect.Message {
|
|
mi := &file_user_user_msg_proto_msgTypes[6]
|
|
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 UserCreateResp.ProtoReflect.Descriptor instead.
|
|
func (*UserCreateResp) Descriptor() ([]byte, []int) {
|
|
return file_user_user_msg_proto_rawDescGZIP(), []int{6}
|
|
}
|
|
|
|
//添加用户资源
|
|
type UserAddResReq struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
ResType string `protobuf:"bytes,1,opt,name=resType,proto3" json:"resType"` //资源类型
|
|
Count int32 `protobuf:"varint,2,opt,name=count,proto3" json:"count"` //资源数量
|
|
}
|
|
|
|
func (x *UserAddResReq) Reset() {
|
|
*x = UserAddResReq{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_user_user_msg_proto_msgTypes[7]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *UserAddResReq) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UserAddResReq) ProtoMessage() {}
|
|
|
|
func (x *UserAddResReq) ProtoReflect() protoreflect.Message {
|
|
mi := &file_user_user_msg_proto_msgTypes[7]
|
|
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 UserAddResReq.ProtoReflect.Descriptor instead.
|
|
func (*UserAddResReq) Descriptor() ([]byte, []int) {
|
|
return file_user_user_msg_proto_rawDescGZIP(), []int{7}
|
|
}
|
|
|
|
func (x *UserAddResReq) GetResType() string {
|
|
if x != nil {
|
|
return x.ResType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UserAddResReq) GetCount() int32 {
|
|
if x != nil {
|
|
return x.Count
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UserAddResResp struct {
|
|
state protoimpl.MessageState
|
|
sizeCache protoimpl.SizeCache
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
ResType string `protobuf:"bytes,1,opt,name=resType,proto3" json:"resType"` //资源类型
|
|
Count int32 `protobuf:"varint,2,opt,name=count,proto3" json:"count"` //资源数量
|
|
}
|
|
|
|
func (x *UserAddResResp) Reset() {
|
|
*x = UserAddResResp{}
|
|
if protoimpl.UnsafeEnabled {
|
|
mi := &file_user_user_msg_proto_msgTypes[8]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
}
|
|
|
|
func (x *UserAddResResp) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*UserAddResResp) ProtoMessage() {}
|
|
|
|
func (x *UserAddResResp) ProtoReflect() protoreflect.Message {
|
|
mi := &file_user_user_msg_proto_msgTypes[8]
|
|
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 UserAddResResp.ProtoReflect.Descriptor instead.
|
|
func (*UserAddResResp) Descriptor() ([]byte, []int) {
|
|
return file_user_user_msg_proto_rawDescGZIP(), []int{8}
|
|
}
|
|
|
|
func (x *UserAddResResp) GetResType() string {
|
|
if x != nil {
|
|
return x.ResType
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *UserAddResResp) GetCount() int32 {
|
|
if x != nil {
|
|
return x.Count
|
|
}
|
|
return 0
|
|
}
|
|
|
|
var File_user_user_msg_proto protoreflect.FileDescriptor
|
|
|
|
var file_user_user_msg_proto_rawDesc = []byte{
|
|
0x0a, 0x13, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x6d, 0x73, 0x67, 0x2e,
|
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x0f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x63, 0x6f, 0x64, 0x65,
|
|
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x12, 0x75, 0x73, 0x65, 0x72, 0x2f, 0x75, 0x73, 0x65,
|
|
0x72, 0x5f, 0x64, 0x62, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x3a, 0x0a, 0x0c, 0x55, 0x73,
|
|
0x65, 0x72, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63,
|
|
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x63,
|
|
0x6f, 0x75, 0x6e, 0x74, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
|
|
0x05, 0x52, 0x03, 0x73, 0x69, 0x64, 0x22, 0x2c, 0x0a, 0x0d, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x6f,
|
|
0x67, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1b, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18,
|
|
0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x07, 0x2e, 0x44, 0x42, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04,
|
|
0x64, 0x61, 0x74, 0x61, 0x22, 0x3d, 0x0a, 0x0f, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x67, 0x69,
|
|
0x73, 0x74, 0x65, 0x72, 0x52, 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75,
|
|
0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
|
|
0x74, 0x12, 0x10, 0x0a, 0x03, 0x73, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x03,
|
|
0x73, 0x69, 0x64, 0x22, 0x4c, 0x0a, 0x10, 0x55, 0x73, 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, 0x73,
|
|
0x74, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1e, 0x0a, 0x04, 0x43, 0x6f, 0x64, 0x65, 0x18,
|
|
0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x0a, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x64,
|
|
0x65, 0x52, 0x04, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75,
|
|
0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
|
|
0x74, 0x22, 0x2e, 0x0a, 0x0c, 0x55, 0x73, 0x65, 0x72, 0x4c, 0x6f, 0x61, 0x64, 0x52, 0x65, 0x73,
|
|
0x70, 0x12, 0x1e, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32,
|
|
0x0a, 0x2e, 0x43, 0x61, 0x63, 0x68, 0x65, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x64, 0x61, 0x74,
|
|
0x61, 0x22, 0x2b, 0x0a, 0x0d, 0x55, 0x73, 0x65, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52,
|
|
0x65, 0x71, 0x12, 0x1a, 0x0a, 0x08, 0x4e, 0x69, 0x63, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01,
|
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x4e, 0x69, 0x63, 0x6b, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x10,
|
|
0x0a, 0x0e, 0x55, 0x73, 0x65, 0x72, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70,
|
|
0x22, 0x3f, 0x0a, 0x0d, 0x55, 0x73, 0x65, 0x72, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, 0x52, 0x65,
|
|
0x71, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01, 0x20, 0x01,
|
|
0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x63,
|
|
0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x63, 0x6f, 0x75, 0x6e,
|
|
0x74, 0x22, 0x40, 0x0a, 0x0e, 0x55, 0x73, 0x65, 0x72, 0x41, 0x64, 0x64, 0x52, 0x65, 0x73, 0x52,
|
|
0x65, 0x73, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x73, 0x54, 0x79, 0x70, 0x65, 0x18, 0x01,
|
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x72, 0x65, 0x73, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a,
|
|
0x05, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x05, 0x63, 0x6f,
|
|
0x75, 0x6e, 0x74, 0x42, 0x06, 0x5a, 0x04, 0x2e, 0x3b, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f,
|
|
0x74, 0x6f, 0x33,
|
|
}
|
|
|
|
var (
|
|
file_user_user_msg_proto_rawDescOnce sync.Once
|
|
file_user_user_msg_proto_rawDescData = file_user_user_msg_proto_rawDesc
|
|
)
|
|
|
|
func file_user_user_msg_proto_rawDescGZIP() []byte {
|
|
file_user_user_msg_proto_rawDescOnce.Do(func() {
|
|
file_user_user_msg_proto_rawDescData = protoimpl.X.CompressGZIP(file_user_user_msg_proto_rawDescData)
|
|
})
|
|
return file_user_user_msg_proto_rawDescData
|
|
}
|
|
|
|
var file_user_user_msg_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
|
var file_user_user_msg_proto_goTypes = []interface{}{
|
|
(*UserLoginReq)(nil), // 0: UserLoginReq
|
|
(*UserLoginResp)(nil), // 1: UserLoginResp
|
|
(*UserRegisterReq)(nil), // 2: UserRegisterReq
|
|
(*UserRegisterResp)(nil), // 3: UserRegisterResp
|
|
(*UserLoadResp)(nil), // 4: UserLoadResp
|
|
(*UserCreateReq)(nil), // 5: UserCreateReq
|
|
(*UserCreateResp)(nil), // 6: UserCreateResp
|
|
(*UserAddResReq)(nil), // 7: UserAddResReq
|
|
(*UserAddResResp)(nil), // 8: UserAddResResp
|
|
(*DBUser)(nil), // 9: DBUser
|
|
(ErrorCode)(0), // 10: ErrorCode
|
|
(*CacheUser)(nil), // 11: CacheUser
|
|
}
|
|
var file_user_user_msg_proto_depIdxs = []int32{
|
|
9, // 0: UserLoginResp.data:type_name -> DBUser
|
|
10, // 1: UserRegisterResp.Code:type_name -> ErrorCode
|
|
11, // 2: UserLoadResp.data:type_name -> CacheUser
|
|
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_user_user_msg_proto_init() }
|
|
func file_user_user_msg_proto_init() {
|
|
if File_user_user_msg_proto != nil {
|
|
return
|
|
}
|
|
file_errorcode_proto_init()
|
|
file_user_user_db_proto_init()
|
|
if !protoimpl.UnsafeEnabled {
|
|
file_user_user_msg_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*UserLoginReq); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_user_user_msg_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*UserLoginResp); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_user_user_msg_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*UserRegisterReq); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_user_user_msg_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*UserRegisterResp); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_user_user_msg_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*UserLoadResp); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_user_user_msg_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*UserCreateReq); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_user_user_msg_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*UserCreateResp); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_user_user_msg_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*UserAddResReq); i {
|
|
case 0:
|
|
return &v.state
|
|
case 1:
|
|
return &v.sizeCache
|
|
case 2:
|
|
return &v.unknownFields
|
|
default:
|
|
return nil
|
|
}
|
|
}
|
|
file_user_user_msg_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
|
switch v := v.(*UserAddResResp); 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_user_user_msg_proto_rawDesc,
|
|
NumEnums: 0,
|
|
NumMessages: 9,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_user_user_msg_proto_goTypes,
|
|
DependencyIndexes: file_user_user_msg_proto_depIdxs,
|
|
MessageInfos: file_user_user_msg_proto_msgTypes,
|
|
}.Build()
|
|
File_user_user_msg_proto = out.File
|
|
file_user_user_msg_proto_rawDesc = nil
|
|
file_user_user_msg_proto_goTypes = nil
|
|
file_user_user_msg_proto_depIdxs = nil
|
|
}
|