324 lines
10 KiB
Go
324 lines
10 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11
|
|
// protoc v6.31.1
|
|
// source: services/user-svc/proto/user.proto
|
|
|
|
package proto
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
common "shared/proto/common"
|
|
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 RegisterRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
|
|
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RegisterRequest) Reset() {
|
|
*x = RegisterRequest{}
|
|
mi := &file_services_user_svc_proto_user_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RegisterRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RegisterRequest) ProtoMessage() {}
|
|
|
|
func (x *RegisterRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_services_user_svc_proto_user_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 RegisterRequest.ProtoReflect.Descriptor instead.
|
|
func (*RegisterRequest) Descriptor() ([]byte, []int) {
|
|
return file_services_user_svc_proto_user_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *RegisterRequest) GetAccount() string {
|
|
if x != nil {
|
|
return x.Account
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RegisterRequest) GetPassword() string {
|
|
if x != nil {
|
|
return x.Password
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// 注册响应
|
|
type RegisterResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
Account string `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"`
|
|
Response *common.Response `protobuf:"bytes,3,opt,name=response,proto3" json:"response,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *RegisterResponse) Reset() {
|
|
*x = RegisterResponse{}
|
|
mi := &file_services_user_svc_proto_user_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *RegisterResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*RegisterResponse) ProtoMessage() {}
|
|
|
|
func (x *RegisterResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_services_user_svc_proto_user_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 RegisterResponse.ProtoReflect.Descriptor instead.
|
|
func (*RegisterResponse) Descriptor() ([]byte, []int) {
|
|
return file_services_user_svc_proto_user_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *RegisterResponse) GetUserId() string {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RegisterResponse) GetAccount() string {
|
|
if x != nil {
|
|
return x.Account
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *RegisterResponse) GetResponse() *common.Response {
|
|
if x != nil {
|
|
return x.Response
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 获取用户信息请求
|
|
type GetUserByAccountRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetUserByAccountRequest) Reset() {
|
|
*x = GetUserByAccountRequest{}
|
|
mi := &file_services_user_svc_proto_user_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetUserByAccountRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetUserByAccountRequest) ProtoMessage() {}
|
|
|
|
func (x *GetUserByAccountRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_services_user_svc_proto_user_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 GetUserByAccountRequest.ProtoReflect.Descriptor instead.
|
|
func (*GetUserByAccountRequest) Descriptor() ([]byte, []int) {
|
|
return file_services_user_svc_proto_user_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *GetUserByAccountRequest) GetAccount() string {
|
|
if x != nil {
|
|
return x.Account
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// 获取用户信息响应
|
|
type GetUserByAccountResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
UserId string `protobuf:"bytes,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
|
|
Account string `protobuf:"bytes,2,opt,name=account,proto3" json:"account,omitempty"`
|
|
Response *common.Response `protobuf:"bytes,3,opt,name=response,proto3" json:"response,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *GetUserByAccountResponse) Reset() {
|
|
*x = GetUserByAccountResponse{}
|
|
mi := &file_services_user_svc_proto_user_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *GetUserByAccountResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*GetUserByAccountResponse) ProtoMessage() {}
|
|
|
|
func (x *GetUserByAccountResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_services_user_svc_proto_user_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 GetUserByAccountResponse.ProtoReflect.Descriptor instead.
|
|
func (*GetUserByAccountResponse) Descriptor() ([]byte, []int) {
|
|
return file_services_user_svc_proto_user_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *GetUserByAccountResponse) GetUserId() string {
|
|
if x != nil {
|
|
return x.UserId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetUserByAccountResponse) GetAccount() string {
|
|
if x != nil {
|
|
return x.Account
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *GetUserByAccountResponse) GetResponse() *common.Response {
|
|
if x != nil {
|
|
return x.Response
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_services_user_svc_proto_user_proto protoreflect.FileDescriptor
|
|
|
|
const file_services_user_svc_proto_user_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\"services/user-svc/proto/user.proto\x12\x04user\x1a shared/proto/common/common.proto\"G\n" +
|
|
"\x0fRegisterRequest\x12\x18\n" +
|
|
"\aaccount\x18\x01 \x01(\tR\aaccount\x12\x1a\n" +
|
|
"\bpassword\x18\x02 \x01(\tR\bpassword\"s\n" +
|
|
"\x10RegisterResponse\x12\x17\n" +
|
|
"\auser_id\x18\x01 \x01(\tR\x06userId\x12\x18\n" +
|
|
"\aaccount\x18\x02 \x01(\tR\aaccount\x12,\n" +
|
|
"\bresponse\x18\x03 \x01(\v2\x10.common.ResponseR\bresponse\"3\n" +
|
|
"\x17GetUserByAccountRequest\x12\x18\n" +
|
|
"\aaccount\x18\x01 \x01(\tR\aaccount\"{\n" +
|
|
"\x18GetUserByAccountResponse\x12\x17\n" +
|
|
"\auser_id\x18\x01 \x01(\tR\x06userId\x12\x18\n" +
|
|
"\aaccount\x18\x02 \x01(\tR\aaccount\x12,\n" +
|
|
"\bresponse\x18\x03 \x01(\v2\x10.common.ResponseR\bresponse2\x9b\x01\n" +
|
|
"\vUserService\x129\n" +
|
|
"\bRegister\x12\x15.user.RegisterRequest\x1a\x16.user.RegisterResponse\x12Q\n" +
|
|
"\x10GetUserByAccount\x12\x1d.user.GetUserByAccountRequest\x1a\x1e.user.GetUserByAccountResponseB\x10Z\x0euser-svc/protob\x06proto3"
|
|
|
|
var (
|
|
file_services_user_svc_proto_user_proto_rawDescOnce sync.Once
|
|
file_services_user_svc_proto_user_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_services_user_svc_proto_user_proto_rawDescGZIP() []byte {
|
|
file_services_user_svc_proto_user_proto_rawDescOnce.Do(func() {
|
|
file_services_user_svc_proto_user_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_services_user_svc_proto_user_proto_rawDesc), len(file_services_user_svc_proto_user_proto_rawDesc)))
|
|
})
|
|
return file_services_user_svc_proto_user_proto_rawDescData
|
|
}
|
|
|
|
var file_services_user_svc_proto_user_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
|
|
var file_services_user_svc_proto_user_proto_goTypes = []any{
|
|
(*RegisterRequest)(nil), // 0: user.RegisterRequest
|
|
(*RegisterResponse)(nil), // 1: user.RegisterResponse
|
|
(*GetUserByAccountRequest)(nil), // 2: user.GetUserByAccountRequest
|
|
(*GetUserByAccountResponse)(nil), // 3: user.GetUserByAccountResponse
|
|
(*common.Response)(nil), // 4: common.Response
|
|
}
|
|
var file_services_user_svc_proto_user_proto_depIdxs = []int32{
|
|
4, // 0: user.RegisterResponse.response:type_name -> common.Response
|
|
4, // 1: user.GetUserByAccountResponse.response:type_name -> common.Response
|
|
0, // 2: user.UserService.Register:input_type -> user.RegisterRequest
|
|
2, // 3: user.UserService.GetUserByAccount:input_type -> user.GetUserByAccountRequest
|
|
1, // 4: user.UserService.Register:output_type -> user.RegisterResponse
|
|
3, // 5: user.UserService.GetUserByAccount:output_type -> user.GetUserByAccountResponse
|
|
4, // [4:6] is the sub-list for method output_type
|
|
2, // [2:4] is the sub-list for method input_type
|
|
2, // [2:2] is the sub-list for extension type_name
|
|
2, // [2:2] is the sub-list for extension extendee
|
|
0, // [0:2] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_services_user_svc_proto_user_proto_init() }
|
|
func file_services_user_svc_proto_user_proto_init() {
|
|
if File_services_user_svc_proto_user_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_services_user_svc_proto_user_proto_rawDesc), len(file_services_user_svc_proto_user_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 4,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_services_user_svc_proto_user_proto_goTypes,
|
|
DependencyIndexes: file_services_user_svc_proto_user_proto_depIdxs,
|
|
MessageInfos: file_services_user_svc_proto_user_proto_msgTypes,
|
|
}.Build()
|
|
File_services_user_svc_proto_user_proto = out.File
|
|
file_services_user_svc_proto_user_proto_goTypes = nil
|
|
file_services_user_svc_proto_user_proto_depIdxs = nil
|
|
}
|