mirror of
https://github.com/VaalaCat/frp-panel.git
synced 2025-09-26 19:31:18 +08:00
764 lines
24 KiB
Go
764 lines
24 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
// versions:
|
||
// protoc-gen-go v1.33.0
|
||
// protoc v5.26.0
|
||
// source: common.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 RespCode int32
|
||
|
||
const (
|
||
RespCode_RESP_CODE_UNSPECIFIED RespCode = 0
|
||
RespCode_RESP_CODE_SUCCESS RespCode = 1
|
||
RespCode_RESP_CODE_NOT_FOUND RespCode = 2
|
||
RespCode_RESP_CODE_ALREADY_EXISTS RespCode = 3
|
||
RespCode_RESP_CODE_INVALID RespCode = 4
|
||
RespCode_RESP_CODE_FINISH RespCode = 5
|
||
RespCode_RESP_CODE_UNAUTHORIZED RespCode = 6
|
||
)
|
||
|
||
// Enum value maps for RespCode.
|
||
var (
|
||
RespCode_name = map[int32]string{
|
||
0: "RESP_CODE_UNSPECIFIED",
|
||
1: "RESP_CODE_SUCCESS",
|
||
2: "RESP_CODE_NOT_FOUND",
|
||
3: "RESP_CODE_ALREADY_EXISTS",
|
||
4: "RESP_CODE_INVALID",
|
||
5: "RESP_CODE_FINISH",
|
||
6: "RESP_CODE_UNAUTHORIZED",
|
||
}
|
||
RespCode_value = map[string]int32{
|
||
"RESP_CODE_UNSPECIFIED": 0,
|
||
"RESP_CODE_SUCCESS": 1,
|
||
"RESP_CODE_NOT_FOUND": 2,
|
||
"RESP_CODE_ALREADY_EXISTS": 3,
|
||
"RESP_CODE_INVALID": 4,
|
||
"RESP_CODE_FINISH": 5,
|
||
"RESP_CODE_UNAUTHORIZED": 6,
|
||
}
|
||
)
|
||
|
||
func (x RespCode) Enum() *RespCode {
|
||
p := new(RespCode)
|
||
*p = x
|
||
return p
|
||
}
|
||
|
||
func (x RespCode) String() string {
|
||
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
||
}
|
||
|
||
func (RespCode) Descriptor() protoreflect.EnumDescriptor {
|
||
return file_common_proto_enumTypes[0].Descriptor()
|
||
}
|
||
|
||
func (RespCode) Type() protoreflect.EnumType {
|
||
return &file_common_proto_enumTypes[0]
|
||
}
|
||
|
||
func (x RespCode) Number() protoreflect.EnumNumber {
|
||
return protoreflect.EnumNumber(x)
|
||
}
|
||
|
||
// Deprecated: Use RespCode.Descriptor instead.
|
||
func (RespCode) EnumDescriptor() ([]byte, []int) {
|
||
return file_common_proto_rawDescGZIP(), []int{0}
|
||
}
|
||
|
||
type ClientType int32
|
||
|
||
const (
|
||
ClientType_CLIENT_TYPE_UNSPECIFIED ClientType = 0
|
||
ClientType_CLIENT_TYPE_FRPC ClientType = 1
|
||
ClientType_CLIENT_TYPE_FRPS ClientType = 2
|
||
)
|
||
|
||
// Enum value maps for ClientType.
|
||
var (
|
||
ClientType_name = map[int32]string{
|
||
0: "CLIENT_TYPE_UNSPECIFIED",
|
||
1: "CLIENT_TYPE_FRPC",
|
||
2: "CLIENT_TYPE_FRPS",
|
||
}
|
||
ClientType_value = map[string]int32{
|
||
"CLIENT_TYPE_UNSPECIFIED": 0,
|
||
"CLIENT_TYPE_FRPC": 1,
|
||
"CLIENT_TYPE_FRPS": 2,
|
||
}
|
||
)
|
||
|
||
func (x ClientType) Enum() *ClientType {
|
||
p := new(ClientType)
|
||
*p = x
|
||
return p
|
||
}
|
||
|
||
func (x ClientType) String() string {
|
||
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
||
}
|
||
|
||
func (ClientType) Descriptor() protoreflect.EnumDescriptor {
|
||
return file_common_proto_enumTypes[1].Descriptor()
|
||
}
|
||
|
||
func (ClientType) Type() protoreflect.EnumType {
|
||
return &file_common_proto_enumTypes[1]
|
||
}
|
||
|
||
func (x ClientType) Number() protoreflect.EnumNumber {
|
||
return protoreflect.EnumNumber(x)
|
||
}
|
||
|
||
// Deprecated: Use ClientType.Descriptor instead.
|
||
func (ClientType) EnumDescriptor() ([]byte, []int) {
|
||
return file_common_proto_rawDescGZIP(), []int{1}
|
||
}
|
||
|
||
type Status struct {
|
||
state protoimpl.MessageState
|
||
sizeCache protoimpl.SizeCache
|
||
unknownFields protoimpl.UnknownFields
|
||
|
||
Code RespCode `protobuf:"varint,1,opt,name=code,proto3,enum=common.RespCode" json:"code,omitempty"`
|
||
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
|
||
}
|
||
|
||
func (x *Status) Reset() {
|
||
*x = Status{}
|
||
if protoimpl.UnsafeEnabled {
|
||
mi := &file_common_proto_msgTypes[0]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
}
|
||
|
||
func (x *Status) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*Status) ProtoMessage() {}
|
||
|
||
func (x *Status) ProtoReflect() protoreflect.Message {
|
||
mi := &file_common_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 Status.ProtoReflect.Descriptor instead.
|
||
func (*Status) Descriptor() ([]byte, []int) {
|
||
return file_common_proto_rawDescGZIP(), []int{0}
|
||
}
|
||
|
||
func (x *Status) GetCode() RespCode {
|
||
if x != nil {
|
||
return x.Code
|
||
}
|
||
return RespCode_RESP_CODE_UNSPECIFIED
|
||
}
|
||
|
||
func (x *Status) GetMessage() string {
|
||
if x != nil {
|
||
return x.Message
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type CommonRequest struct {
|
||
state protoimpl.MessageState
|
||
sizeCache protoimpl.SizeCache
|
||
unknownFields protoimpl.UnknownFields
|
||
}
|
||
|
||
func (x *CommonRequest) Reset() {
|
||
*x = CommonRequest{}
|
||
if protoimpl.UnsafeEnabled {
|
||
mi := &file_common_proto_msgTypes[1]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
}
|
||
|
||
func (x *CommonRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CommonRequest) ProtoMessage() {}
|
||
|
||
func (x *CommonRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_common_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 CommonRequest.ProtoReflect.Descriptor instead.
|
||
func (*CommonRequest) Descriptor() ([]byte, []int) {
|
||
return file_common_proto_rawDescGZIP(), []int{1}
|
||
}
|
||
|
||
type CommonResponse struct {
|
||
state protoimpl.MessageState
|
||
sizeCache protoimpl.SizeCache
|
||
unknownFields protoimpl.UnknownFields
|
||
|
||
Status *Status `protobuf:"bytes,1,opt,name=status,proto3,oneof" json:"status,omitempty"`
|
||
}
|
||
|
||
func (x *CommonResponse) Reset() {
|
||
*x = CommonResponse{}
|
||
if protoimpl.UnsafeEnabled {
|
||
mi := &file_common_proto_msgTypes[2]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
}
|
||
|
||
func (x *CommonResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CommonResponse) ProtoMessage() {}
|
||
|
||
func (x *CommonResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_common_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 CommonResponse.ProtoReflect.Descriptor instead.
|
||
func (*CommonResponse) Descriptor() ([]byte, []int) {
|
||
return file_common_proto_rawDescGZIP(), []int{2}
|
||
}
|
||
|
||
func (x *CommonResponse) GetStatus() *Status {
|
||
if x != nil {
|
||
return x.Status
|
||
}
|
||
return nil
|
||
}
|
||
|
||
type Client struct {
|
||
state protoimpl.MessageState
|
||
sizeCache protoimpl.SizeCache
|
||
unknownFields protoimpl.UnknownFields
|
||
|
||
Id *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"`
|
||
Secret *string `protobuf:"bytes,2,opt,name=secret,proto3,oneof" json:"secret,omitempty"`
|
||
Config *string `protobuf:"bytes,3,opt,name=config,proto3,oneof" json:"config,omitempty"`
|
||
Comment *string `protobuf:"bytes,5,opt,name=comment,proto3,oneof" json:"comment,omitempty"` // 用户自定义的备注
|
||
ServerId *string `protobuf:"bytes,6,opt,name=server_id,json=serverId,proto3,oneof" json:"server_id,omitempty"`
|
||
Stopped *bool `protobuf:"varint,7,opt,name=stopped,proto3,oneof" json:"stopped,omitempty"`
|
||
}
|
||
|
||
func (x *Client) Reset() {
|
||
*x = Client{}
|
||
if protoimpl.UnsafeEnabled {
|
||
mi := &file_common_proto_msgTypes[3]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
}
|
||
|
||
func (x *Client) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*Client) ProtoMessage() {}
|
||
|
||
func (x *Client) ProtoReflect() protoreflect.Message {
|
||
mi := &file_common_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 Client.ProtoReflect.Descriptor instead.
|
||
func (*Client) Descriptor() ([]byte, []int) {
|
||
return file_common_proto_rawDescGZIP(), []int{3}
|
||
}
|
||
|
||
func (x *Client) GetId() string {
|
||
if x != nil && x.Id != nil {
|
||
return *x.Id
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Client) GetSecret() string {
|
||
if x != nil && x.Secret != nil {
|
||
return *x.Secret
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Client) GetConfig() string {
|
||
if x != nil && x.Config != nil {
|
||
return *x.Config
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Client) GetComment() string {
|
||
if x != nil && x.Comment != nil {
|
||
return *x.Comment
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Client) GetServerId() string {
|
||
if x != nil && x.ServerId != nil {
|
||
return *x.ServerId
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Client) GetStopped() bool {
|
||
if x != nil && x.Stopped != nil {
|
||
return *x.Stopped
|
||
}
|
||
return false
|
||
}
|
||
|
||
type Server struct {
|
||
state protoimpl.MessageState
|
||
sizeCache protoimpl.SizeCache
|
||
unknownFields protoimpl.UnknownFields
|
||
|
||
Id *string `protobuf:"bytes,1,opt,name=id,proto3,oneof" json:"id,omitempty"`
|
||
Secret *string `protobuf:"bytes,2,opt,name=secret,proto3,oneof" json:"secret,omitempty"`
|
||
Ip *string `protobuf:"bytes,3,opt,name=ip,proto3,oneof" json:"ip,omitempty"`
|
||
Config *string `protobuf:"bytes,4,opt,name=config,proto3,oneof" json:"config,omitempty"` // 在定义上,ip和port只是为了方便使用
|
||
Comment *string `protobuf:"bytes,5,opt,name=comment,proto3,oneof" json:"comment,omitempty"` // 用户自定义的备注
|
||
}
|
||
|
||
func (x *Server) Reset() {
|
||
*x = Server{}
|
||
if protoimpl.UnsafeEnabled {
|
||
mi := &file_common_proto_msgTypes[4]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
}
|
||
|
||
func (x *Server) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*Server) ProtoMessage() {}
|
||
|
||
func (x *Server) ProtoReflect() protoreflect.Message {
|
||
mi := &file_common_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 Server.ProtoReflect.Descriptor instead.
|
||
func (*Server) Descriptor() ([]byte, []int) {
|
||
return file_common_proto_rawDescGZIP(), []int{4}
|
||
}
|
||
|
||
func (x *Server) GetId() string {
|
||
if x != nil && x.Id != nil {
|
||
return *x.Id
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Server) GetSecret() string {
|
||
if x != nil && x.Secret != nil {
|
||
return *x.Secret
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Server) GetIp() string {
|
||
if x != nil && x.Ip != nil {
|
||
return *x.Ip
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Server) GetConfig() string {
|
||
if x != nil && x.Config != nil {
|
||
return *x.Config
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *Server) GetComment() string {
|
||
if x != nil && x.Comment != nil {
|
||
return *x.Comment
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type User struct {
|
||
state protoimpl.MessageState
|
||
sizeCache protoimpl.SizeCache
|
||
unknownFields protoimpl.UnknownFields
|
||
|
||
UserID *int64 `protobuf:"varint,1,opt,name=UserID,proto3,oneof" json:"UserID,omitempty"`
|
||
TenantID *int64 `protobuf:"varint,2,opt,name=TenantID,proto3,oneof" json:"TenantID,omitempty"`
|
||
UserName *string `protobuf:"bytes,3,opt,name=UserName,proto3,oneof" json:"UserName,omitempty"`
|
||
Email *string `protobuf:"bytes,4,opt,name=Email,proto3,oneof" json:"Email,omitempty"`
|
||
Status *string `protobuf:"bytes,5,opt,name=Status,proto3,oneof" json:"Status,omitempty"`
|
||
Role *string `protobuf:"bytes,6,opt,name=Role,proto3,oneof" json:"Role,omitempty"`
|
||
Token *string `protobuf:"bytes,7,opt,name=Token,proto3,oneof" json:"Token,omitempty"`
|
||
RawPassword *string `protobuf:"bytes,8,opt,name=RawPassword,proto3,oneof" json:"RawPassword,omitempty"`
|
||
}
|
||
|
||
func (x *User) Reset() {
|
||
*x = User{}
|
||
if protoimpl.UnsafeEnabled {
|
||
mi := &file_common_proto_msgTypes[5]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
}
|
||
|
||
func (x *User) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*User) ProtoMessage() {}
|
||
|
||
func (x *User) ProtoReflect() protoreflect.Message {
|
||
mi := &file_common_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 User.ProtoReflect.Descriptor instead.
|
||
func (*User) Descriptor() ([]byte, []int) {
|
||
return file_common_proto_rawDescGZIP(), []int{5}
|
||
}
|
||
|
||
func (x *User) GetUserID() int64 {
|
||
if x != nil && x.UserID != nil {
|
||
return *x.UserID
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *User) GetTenantID() int64 {
|
||
if x != nil && x.TenantID != nil {
|
||
return *x.TenantID
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *User) GetUserName() string {
|
||
if x != nil && x.UserName != nil {
|
||
return *x.UserName
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *User) GetEmail() string {
|
||
if x != nil && x.Email != nil {
|
||
return *x.Email
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *User) GetStatus() string {
|
||
if x != nil && x.Status != nil {
|
||
return *x.Status
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *User) GetRole() string {
|
||
if x != nil && x.Role != nil {
|
||
return *x.Role
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *User) GetToken() string {
|
||
if x != nil && x.Token != nil {
|
||
return *x.Token
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *User) GetRawPassword() string {
|
||
if x != nil && x.RawPassword != nil {
|
||
return *x.RawPassword
|
||
}
|
||
return ""
|
||
}
|
||
|
||
var File_common_proto protoreflect.FileDescriptor
|
||
|
||
var file_common_proto_rawDesc = []byte{
|
||
0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06,
|
||
0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x22, 0x48, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73,
|
||
0x12, 0x24, 0x0a, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x10,
|
||
0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x43, 0x6f, 0x64, 0x65,
|
||
0x52, 0x04, 0x63, 0x6f, 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67,
|
||
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65,
|
||
0x22, 0x0f, 0x0a, 0x0d, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
||
0x74, 0x22, 0x48, 0x0a, 0x0e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
||
0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x01, 0x20,
|
||
0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x53, 0x74, 0x61,
|
||
0x74, 0x75, 0x73, 0x48, 0x00, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x88, 0x01, 0x01,
|
||
0x42, 0x09, 0x0a, 0x07, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0xfa, 0x01, 0x0a, 0x06,
|
||
0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x13, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01,
|
||
0x28, 0x09, 0x48, 0x00, 0x52, 0x02, 0x69, 0x64, 0x88, 0x01, 0x01, 0x12, 0x1b, 0x0a, 0x06, 0x73,
|
||
0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x06, 0x73,
|
||
0x65, 0x63, 0x72, 0x65, 0x74, 0x88, 0x01, 0x01, 0x12, 0x1b, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66,
|
||
0x69, 0x67, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x02, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66,
|
||
0x69, 0x67, 0x88, 0x01, 0x01, 0x12, 0x1d, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74,
|
||
0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x03, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e,
|
||
0x74, 0x88, 0x01, 0x01, 0x12, 0x20, 0x0a, 0x09, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x69,
|
||
0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x48, 0x04, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x65,
|
||
0x72, 0x49, 0x64, 0x88, 0x01, 0x01, 0x12, 0x1d, 0x0a, 0x07, 0x73, 0x74, 0x6f, 0x70, 0x70, 0x65,
|
||
0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x48, 0x05, 0x52, 0x07, 0x73, 0x74, 0x6f, 0x70, 0x70,
|
||
0x65, 0x64, 0x88, 0x01, 0x01, 0x42, 0x05, 0x0a, 0x03, 0x5f, 0x69, 0x64, 0x42, 0x09, 0x0a, 0x07,
|
||
0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x63, 0x6f, 0x6e, 0x66,
|
||
0x69, 0x67, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x42, 0x0c,
|
||
0x0a, 0x0a, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x42, 0x0a, 0x0a, 0x08,
|
||
0x5f, 0x73, 0x74, 0x6f, 0x70, 0x70, 0x65, 0x64, 0x22, 0xbb, 0x01, 0x0a, 0x06, 0x53, 0x65, 0x72,
|
||
0x76, 0x65, 0x72, 0x12, 0x13, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48,
|
||
0x00, 0x52, 0x02, 0x69, 0x64, 0x88, 0x01, 0x01, 0x12, 0x1b, 0x0a, 0x06, 0x73, 0x65, 0x63, 0x72,
|
||
0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x06, 0x73, 0x65, 0x63, 0x72,
|
||
0x65, 0x74, 0x88, 0x01, 0x01, 0x12, 0x13, 0x0a, 0x02, 0x69, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28,
|
||
0x09, 0x48, 0x02, 0x52, 0x02, 0x69, 0x70, 0x88, 0x01, 0x01, 0x12, 0x1b, 0x0a, 0x06, 0x63, 0x6f,
|
||
0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x03, 0x52, 0x06, 0x63, 0x6f,
|
||
0x6e, 0x66, 0x69, 0x67, 0x88, 0x01, 0x01, 0x12, 0x1d, 0x0a, 0x07, 0x63, 0x6f, 0x6d, 0x6d, 0x65,
|
||
0x6e, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x04, 0x52, 0x07, 0x63, 0x6f, 0x6d, 0x6d,
|
||
0x65, 0x6e, 0x74, 0x88, 0x01, 0x01, 0x42, 0x05, 0x0a, 0x03, 0x5f, 0x69, 0x64, 0x42, 0x09, 0x0a,
|
||
0x07, 0x5f, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x42, 0x05, 0x0a, 0x03, 0x5f, 0x69, 0x70, 0x42,
|
||
0x09, 0x0a, 0x07, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x42, 0x0a, 0x0a, 0x08, 0x5f, 0x63,
|
||
0x6f, 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x22, 0xd5, 0x02, 0x0a, 0x04, 0x55, 0x73, 0x65, 0x72, 0x12,
|
||
0x1b, 0x0a, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x48,
|
||
0x00, 0x52, 0x06, 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 0x88, 0x01, 0x01, 0x12, 0x1f, 0x0a, 0x08,
|
||
0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x48, 0x01,
|
||
0x52, 0x08, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x49, 0x44, 0x88, 0x01, 0x01, 0x12, 0x1f, 0x0a,
|
||
0x08, 0x55, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48,
|
||
0x02, 0x52, 0x08, 0x55, 0x73, 0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x88, 0x01, 0x01, 0x12, 0x19,
|
||
0x0a, 0x05, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x03, 0x52,
|
||
0x05, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x88, 0x01, 0x01, 0x12, 0x1b, 0x0a, 0x06, 0x53, 0x74, 0x61,
|
||
0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x48, 0x04, 0x52, 0x06, 0x53, 0x74, 0x61,
|
||
0x74, 0x75, 0x73, 0x88, 0x01, 0x01, 0x12, 0x17, 0x0a, 0x04, 0x52, 0x6f, 0x6c, 0x65, 0x18, 0x06,
|
||
0x20, 0x01, 0x28, 0x09, 0x48, 0x05, 0x52, 0x04, 0x52, 0x6f, 0x6c, 0x65, 0x88, 0x01, 0x01, 0x12,
|
||
0x19, 0x0a, 0x05, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x48, 0x06,
|
||
0x52, 0x05, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x88, 0x01, 0x01, 0x12, 0x25, 0x0a, 0x0b, 0x52, 0x61,
|
||
0x77, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x48,
|
||
0x07, 0x52, 0x0b, 0x52, 0x61, 0x77, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x88, 0x01,
|
||
0x01, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x55, 0x73, 0x65, 0x72, 0x49, 0x44, 0x42, 0x0b, 0x0a, 0x09,
|
||
0x5f, 0x54, 0x65, 0x6e, 0x61, 0x6e, 0x74, 0x49, 0x44, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x55, 0x73,
|
||
0x65, 0x72, 0x4e, 0x61, 0x6d, 0x65, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x45, 0x6d, 0x61, 0x69, 0x6c,
|
||
0x42, 0x09, 0x0a, 0x07, 0x5f, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x07, 0x0a, 0x05, 0x5f,
|
||
0x52, 0x6f, 0x6c, 0x65, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x42, 0x0e,
|
||
0x0a, 0x0c, 0x5f, 0x52, 0x61, 0x77, 0x50, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x2a, 0xbc,
|
||
0x01, 0x0a, 0x08, 0x52, 0x65, 0x73, 0x70, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x19, 0x0a, 0x15, 0x52,
|
||
0x45, 0x53, 0x50, 0x5f, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49,
|
||
0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x52, 0x45, 0x53, 0x50, 0x5f, 0x43,
|
||
0x4f, 0x44, 0x45, 0x5f, 0x53, 0x55, 0x43, 0x43, 0x45, 0x53, 0x53, 0x10, 0x01, 0x12, 0x17, 0x0a,
|
||
0x13, 0x52, 0x45, 0x53, 0x50, 0x5f, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x4e, 0x4f, 0x54, 0x5f, 0x46,
|
||
0x4f, 0x55, 0x4e, 0x44, 0x10, 0x02, 0x12, 0x1c, 0x0a, 0x18, 0x52, 0x45, 0x53, 0x50, 0x5f, 0x43,
|
||
0x4f, 0x44, 0x45, 0x5f, 0x41, 0x4c, 0x52, 0x45, 0x41, 0x44, 0x59, 0x5f, 0x45, 0x58, 0x49, 0x53,
|
||
0x54, 0x53, 0x10, 0x03, 0x12, 0x15, 0x0a, 0x11, 0x52, 0x45, 0x53, 0x50, 0x5f, 0x43, 0x4f, 0x44,
|
||
0x45, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x04, 0x12, 0x14, 0x0a, 0x10, 0x52,
|
||
0x45, 0x53, 0x50, 0x5f, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x46, 0x49, 0x4e, 0x49, 0x53, 0x48, 0x10,
|
||
0x05, 0x12, 0x1a, 0x0a, 0x16, 0x52, 0x45, 0x53, 0x50, 0x5f, 0x43, 0x4f, 0x44, 0x45, 0x5f, 0x55,
|
||
0x4e, 0x41, 0x55, 0x54, 0x48, 0x4f, 0x52, 0x49, 0x5a, 0x45, 0x44, 0x10, 0x06, 0x2a, 0x55, 0x0a,
|
||
0x0a, 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1b, 0x0a, 0x17, 0x43,
|
||
0x4c, 0x49, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,
|
||
0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x14, 0x0a, 0x10, 0x43, 0x4c, 0x49, 0x45,
|
||
0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, 0x52, 0x50, 0x43, 0x10, 0x01, 0x12, 0x14,
|
||
0x0a, 0x10, 0x43, 0x4c, 0x49, 0x45, 0x4e, 0x54, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x46, 0x52,
|
||
0x50, 0x53, 0x10, 0x02, 0x42, 0x07, 0x5a, 0x05, 0x2e, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70,
|
||
0x72, 0x6f, 0x74, 0x6f, 0x33,
|
||
}
|
||
|
||
var (
|
||
file_common_proto_rawDescOnce sync.Once
|
||
file_common_proto_rawDescData = file_common_proto_rawDesc
|
||
)
|
||
|
||
func file_common_proto_rawDescGZIP() []byte {
|
||
file_common_proto_rawDescOnce.Do(func() {
|
||
file_common_proto_rawDescData = protoimpl.X.CompressGZIP(file_common_proto_rawDescData)
|
||
})
|
||
return file_common_proto_rawDescData
|
||
}
|
||
|
||
var file_common_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
|
||
var file_common_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
||
var file_common_proto_goTypes = []interface{}{
|
||
(RespCode)(0), // 0: common.RespCode
|
||
(ClientType)(0), // 1: common.ClientType
|
||
(*Status)(nil), // 2: common.Status
|
||
(*CommonRequest)(nil), // 3: common.CommonRequest
|
||
(*CommonResponse)(nil), // 4: common.CommonResponse
|
||
(*Client)(nil), // 5: common.Client
|
||
(*Server)(nil), // 6: common.Server
|
||
(*User)(nil), // 7: common.User
|
||
}
|
||
var file_common_proto_depIdxs = []int32{
|
||
0, // 0: common.Status.code:type_name -> common.RespCode
|
||
2, // 1: common.CommonResponse.status:type_name -> common.Status
|
||
2, // [2:2] is the sub-list for method output_type
|
||
2, // [2:2] 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_common_proto_init() }
|
||
func file_common_proto_init() {
|
||
if File_common_proto != nil {
|
||
return
|
||
}
|
||
if !protoimpl.UnsafeEnabled {
|
||
file_common_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
||
switch v := v.(*Status); i {
|
||
case 0:
|
||
return &v.state
|
||
case 1:
|
||
return &v.sizeCache
|
||
case 2:
|
||
return &v.unknownFields
|
||
default:
|
||
return nil
|
||
}
|
||
}
|
||
file_common_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
||
switch v := v.(*CommonRequest); i {
|
||
case 0:
|
||
return &v.state
|
||
case 1:
|
||
return &v.sizeCache
|
||
case 2:
|
||
return &v.unknownFields
|
||
default:
|
||
return nil
|
||
}
|
||
}
|
||
file_common_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
||
switch v := v.(*CommonResponse); i {
|
||
case 0:
|
||
return &v.state
|
||
case 1:
|
||
return &v.sizeCache
|
||
case 2:
|
||
return &v.unknownFields
|
||
default:
|
||
return nil
|
||
}
|
||
}
|
||
file_common_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
||
switch v := v.(*Client); i {
|
||
case 0:
|
||
return &v.state
|
||
case 1:
|
||
return &v.sizeCache
|
||
case 2:
|
||
return &v.unknownFields
|
||
default:
|
||
return nil
|
||
}
|
||
}
|
||
file_common_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
||
switch v := v.(*Server); i {
|
||
case 0:
|
||
return &v.state
|
||
case 1:
|
||
return &v.sizeCache
|
||
case 2:
|
||
return &v.unknownFields
|
||
default:
|
||
return nil
|
||
}
|
||
}
|
||
file_common_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
||
switch v := v.(*User); i {
|
||
case 0:
|
||
return &v.state
|
||
case 1:
|
||
return &v.sizeCache
|
||
case 2:
|
||
return &v.unknownFields
|
||
default:
|
||
return nil
|
||
}
|
||
}
|
||
}
|
||
file_common_proto_msgTypes[2].OneofWrappers = []interface{}{}
|
||
file_common_proto_msgTypes[3].OneofWrappers = []interface{}{}
|
||
file_common_proto_msgTypes[4].OneofWrappers = []interface{}{}
|
||
file_common_proto_msgTypes[5].OneofWrappers = []interface{}{}
|
||
type x struct{}
|
||
out := protoimpl.TypeBuilder{
|
||
File: protoimpl.DescBuilder{
|
||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||
RawDescriptor: file_common_proto_rawDesc,
|
||
NumEnums: 2,
|
||
NumMessages: 6,
|
||
NumExtensions: 0,
|
||
NumServices: 0,
|
||
},
|
||
GoTypes: file_common_proto_goTypes,
|
||
DependencyIndexes: file_common_proto_depIdxs,
|
||
EnumInfos: file_common_proto_enumTypes,
|
||
MessageInfos: file_common_proto_msgTypes,
|
||
}.Build()
|
||
File_common_proto = out.File
|
||
file_common_proto_rawDesc = nil
|
||
file_common_proto_goTypes = nil
|
||
file_common_proto_depIdxs = nil
|
||
}
|