Files
lone-services/admin/admin/admin.pb.go
T
zzw 29ffc24bbb
CI / changes (push) Successful in 1s
CI / docker-bff (push) Successful in 2s
CI / docker-product (push) Failing after 1s
fix: admin database charset
2026-08-07 16:20:31 +08:00

636 lines
19 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc v3.19.4
// source: proto/admin.proto
package admin
import (
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
anypb "google.golang.org/protobuf/types/known/anypb"
reflect "reflect"
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 AdminEditRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
Avatar string `protobuf:"bytes,4,opt,name=avatar,proto3" json:"avatar,omitempty"`
Phone string `protobuf:"bytes,5,opt,name=phone,proto3" json:"phone,omitempty"`
Email string `protobuf:"bytes,6,opt,name=email,proto3" json:"email,omitempty"`
Roles []int64 `protobuf:"varint,7,rep,packed,name=roles,proto3" json:"roles,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AdminEditRequest) Reset() {
*x = AdminEditRequest{}
mi := &file_proto_admin_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AdminEditRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AdminEditRequest) ProtoMessage() {}
func (x *AdminEditRequest) ProtoReflect() protoreflect.Message {
mi := &file_proto_admin_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 AdminEditRequest.ProtoReflect.Descriptor instead.
func (*AdminEditRequest) Descriptor() ([]byte, []int) {
return file_proto_admin_proto_rawDescGZIP(), []int{0}
}
func (x *AdminEditRequest) GetId() int64 {
if x != nil {
return x.Id
}
return 0
}
func (x *AdminEditRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *AdminEditRequest) GetPassword() string {
if x != nil {
return x.Password
}
return ""
}
func (x *AdminEditRequest) GetAvatar() string {
if x != nil {
return x.Avatar
}
return ""
}
func (x *AdminEditRequest) GetPhone() string {
if x != nil {
return x.Phone
}
return ""
}
func (x *AdminEditRequest) GetEmail() string {
if x != nil {
return x.Email
}
return ""
}
func (x *AdminEditRequest) GetRoles() []int64 {
if x != nil {
return x.Roles
}
return nil
}
type StatusRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *StatusRequest) Reset() {
*x = StatusRequest{}
mi := &file_proto_admin_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *StatusRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*StatusRequest) ProtoMessage() {}
func (x *StatusRequest) ProtoReflect() protoreflect.Message {
mi := &file_proto_admin_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 StatusRequest.ProtoReflect.Descriptor instead.
func (*StatusRequest) Descriptor() ([]byte, []int) {
return file_proto_admin_proto_rawDescGZIP(), []int{1}
}
func (x *StatusRequest) GetId() int64 {
if x != nil {
return x.Id
}
return 0
}
func (x *StatusRequest) GetStatus() int32 {
if x != nil {
return x.Status
}
return 0
}
func (x *StatusRequest) GetReason() string {
if x != nil {
return x.Reason
}
return ""
}
type Response struct {
state protoimpl.MessageState `protogen:"open.v1"`
Code int32 `protobuf:"varint,1,opt,name=code,proto3" json:"code,omitempty"`
Msg string `protobuf:"bytes,2,opt,name=msg,proto3" json:"msg,omitempty"`
Data *anypb.Any `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Response) Reset() {
*x = Response{}
mi := &file_proto_admin_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Response) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Response) ProtoMessage() {}
func (x *Response) ProtoReflect() protoreflect.Message {
mi := &file_proto_admin_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 Response.ProtoReflect.Descriptor instead.
func (*Response) Descriptor() ([]byte, []int) {
return file_proto_admin_proto_rawDescGZIP(), []int{2}
}
func (x *Response) GetCode() int32 {
if x != nil {
return x.Code
}
return 0
}
func (x *Response) GetMsg() string {
if x != nil {
return x.Msg
}
return ""
}
func (x *Response) GetData() *anypb.Any {
if x != nil {
return x.Data
}
return nil
}
type PasswordRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PasswordRequest) Reset() {
*x = PasswordRequest{}
mi := &file_proto_admin_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PasswordRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PasswordRequest) ProtoMessage() {}
func (x *PasswordRequest) ProtoReflect() protoreflect.Message {
mi := &file_proto_admin_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 PasswordRequest.ProtoReflect.Descriptor instead.
func (*PasswordRequest) Descriptor() ([]byte, []int) {
return file_proto_admin_proto_rawDescGZIP(), []int{3}
}
func (x *PasswordRequest) GetId() int64 {
if x != nil {
return x.Id
}
return 0
}
func (x *PasswordRequest) GetPassword() string {
if x != nil {
return x.Password
}
return ""
}
type OwnPasswordRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Password string `protobuf:"bytes,1,opt,name=password,proto3" json:"password,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *OwnPasswordRequest) Reset() {
*x = OwnPasswordRequest{}
mi := &file_proto_admin_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *OwnPasswordRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*OwnPasswordRequest) ProtoMessage() {}
func (x *OwnPasswordRequest) ProtoReflect() protoreflect.Message {
mi := &file_proto_admin_proto_msgTypes[4]
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 OwnPasswordRequest.ProtoReflect.Descriptor instead.
func (*OwnPasswordRequest) Descriptor() ([]byte, []int) {
return file_proto_admin_proto_rawDescGZIP(), []int{4}
}
func (x *OwnPasswordRequest) GetPassword() string {
if x != nil {
return x.Password
}
return ""
}
type AdminInfoRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AdminInfoRequest) Reset() {
*x = AdminInfoRequest{}
mi := &file_proto_admin_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AdminInfoRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AdminInfoRequest) ProtoMessage() {}
func (x *AdminInfoRequest) ProtoReflect() protoreflect.Message {
mi := &file_proto_admin_proto_msgTypes[5]
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 AdminInfoRequest.ProtoReflect.Descriptor instead.
func (*AdminInfoRequest) Descriptor() ([]byte, []int) {
return file_proto_admin_proto_rawDescGZIP(), []int{5}
}
func (x *AdminInfoRequest) GetId() int64 {
if x != nil {
return x.Id
}
return 0
}
type AdminItemsRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Page int32 `protobuf:"varint,1,opt,name=page,proto3" json:"page,omitempty"`
Size int32 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
Phone string `protobuf:"bytes,3,opt,name=phone,proto3" json:"phone,omitempty"`
Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"`
Email string `protobuf:"bytes,6,opt,name=email,proto3" json:"email,omitempty"`
Status int32 `protobuf:"varint,7,opt,name=status,proto3" json:"status,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AdminItemsRequest) Reset() {
*x = AdminItemsRequest{}
mi := &file_proto_admin_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AdminItemsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AdminItemsRequest) ProtoMessage() {}
func (x *AdminItemsRequest) ProtoReflect() protoreflect.Message {
mi := &file_proto_admin_proto_msgTypes[6]
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 AdminItemsRequest.ProtoReflect.Descriptor instead.
func (*AdminItemsRequest) Descriptor() ([]byte, []int) {
return file_proto_admin_proto_rawDescGZIP(), []int{6}
}
func (x *AdminItemsRequest) GetPage() int32 {
if x != nil {
return x.Page
}
return 0
}
func (x *AdminItemsRequest) GetSize() int32 {
if x != nil {
return x.Size
}
return 0
}
func (x *AdminItemsRequest) GetPhone() string {
if x != nil {
return x.Phone
}
return ""
}
func (x *AdminItemsRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *AdminItemsRequest) GetEmail() string {
if x != nil {
return x.Email
}
return ""
}
func (x *AdminItemsRequest) GetStatus() int32 {
if x != nil {
return x.Status
}
return 0
}
type AdminLoginRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Username int32 `protobuf:"varint,1,opt,name=username,proto3" json:"username,omitempty"`
Password int32 `protobuf:"varint,2,opt,name=password,proto3" json:"password,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *AdminLoginRequest) Reset() {
*x = AdminLoginRequest{}
mi := &file_proto_admin_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *AdminLoginRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AdminLoginRequest) ProtoMessage() {}
func (x *AdminLoginRequest) ProtoReflect() protoreflect.Message {
mi := &file_proto_admin_proto_msgTypes[7]
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 AdminLoginRequest.ProtoReflect.Descriptor instead.
func (*AdminLoginRequest) Descriptor() ([]byte, []int) {
return file_proto_admin_proto_rawDescGZIP(), []int{7}
}
func (x *AdminLoginRequest) GetUsername() int32 {
if x != nil {
return x.Username
}
return 0
}
func (x *AdminLoginRequest) GetPassword() int32 {
if x != nil {
return x.Password
}
return 0
}
var File_proto_admin_proto protoreflect.FileDescriptor
const file_proto_admin_proto_rawDesc = "" +
"\n" +
"\x11proto/admin.proto\x12\x05admin\x1a\x19google/protobuf/any.proto\x1a\x1cgoogle/api/annotations.proto\"\xac\x01\n" +
"\x10AdminEditRequest\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x12\n" +
"\x04name\x18\x02 \x01(\tR\x04name\x12\x1a\n" +
"\bpassword\x18\x03 \x01(\tR\bpassword\x12\x16\n" +
"\x06avatar\x18\x04 \x01(\tR\x06avatar\x12\x14\n" +
"\x05phone\x18\x05 \x01(\tR\x05phone\x12\x14\n" +
"\x05email\x18\x06 \x01(\tR\x05email\x12\x14\n" +
"\x05roles\x18\a \x03(\x03R\x05roles\"O\n" +
"\rStatusRequest\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x16\n" +
"\x06status\x18\x02 \x01(\x05R\x06status\x12\x16\n" +
"\x06reason\x18\x03 \x01(\tR\x06reason\"Z\n" +
"\bResponse\x12\x12\n" +
"\x04code\x18\x01 \x01(\x05R\x04code\x12\x10\n" +
"\x03msg\x18\x02 \x01(\tR\x03msg\x12(\n" +
"\x04data\x18\x03 \x01(\v2\x14.google.protobuf.AnyR\x04data\"=\n" +
"\x0fPasswordRequest\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
"\bpassword\x18\x02 \x01(\tR\bpassword\"0\n" +
"\x12OwnPasswordRequest\x12\x1a\n" +
"\bpassword\x18\x01 \x01(\tR\bpassword\"\"\n" +
"\x10AdminInfoRequest\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x03R\x02id\"\x93\x01\n" +
"\x11AdminItemsRequest\x12\x12\n" +
"\x04page\x18\x01 \x01(\x05R\x04page\x12\x12\n" +
"\x04size\x18\x02 \x01(\x05R\x04size\x12\x14\n" +
"\x05phone\x18\x03 \x01(\tR\x05phone\x12\x12\n" +
"\x04name\x18\x05 \x01(\tR\x04name\x12\x14\n" +
"\x05email\x18\x06 \x01(\tR\x05email\x12\x16\n" +
"\x06status\x18\a \x01(\x05R\x06status\"K\n" +
"\x11AdminLoginRequest\x12\x1a\n" +
"\busername\x18\x01 \x01(\x05R\busername\x12\x1a\n" +
"\bpassword\x18\x02 \x01(\x05R\bpassword2\xe3\x03\n" +
"\x05Admin\x12T\n" +
"\bAdminAdd\x12\x17.admin.AdminEditRequest\x1a\x0f.admin.Response\"\x1e\x82\xd3\xe4\x93\x02\x18:\x01*\"\x13/admin/v3/admin/add\x125\n" +
"\tAdminEdit\x12\x17.admin.AdminEditRequest\x1a\x0f.admin.Response\x124\n" +
"\vAdminStatus\x12\x14.admin.StatusRequest\x1a\x0f.admin.Response\x123\n" +
"\bPassword\x12\x16.admin.PasswordRequest\x1a\x0f.admin.Response\x129\n" +
"\vOwnPassword\x12\x19.admin.OwnPasswordRequest\x1a\x0f.admin.Response\x125\n" +
"\tAdminInfo\x12\x17.admin.AdminInfoRequest\x1a\x0f.admin.Response\x127\n" +
"\n" +
"AdminItems\x12\x18.admin.AdminItemsRequest\x1a\x0f.admin.Response\x127\n" +
"\n" +
"AdminLogin\x12\x18.admin.AdminLoginRequest\x1a\x0f.admin.ResponseB\tZ\a./adminb\x06proto3"
var (
file_proto_admin_proto_rawDescOnce sync.Once
file_proto_admin_proto_rawDescData []byte
)
func file_proto_admin_proto_rawDescGZIP() []byte {
file_proto_admin_proto_rawDescOnce.Do(func() {
file_proto_admin_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_proto_admin_proto_rawDesc), len(file_proto_admin_proto_rawDesc)))
})
return file_proto_admin_proto_rawDescData
}
var file_proto_admin_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
var file_proto_admin_proto_goTypes = []any{
(*AdminEditRequest)(nil), // 0: admin.AdminEditRequest
(*StatusRequest)(nil), // 1: admin.StatusRequest
(*Response)(nil), // 2: admin.Response
(*PasswordRequest)(nil), // 3: admin.PasswordRequest
(*OwnPasswordRequest)(nil), // 4: admin.OwnPasswordRequest
(*AdminInfoRequest)(nil), // 5: admin.AdminInfoRequest
(*AdminItemsRequest)(nil), // 6: admin.AdminItemsRequest
(*AdminLoginRequest)(nil), // 7: admin.AdminLoginRequest
(*anypb.Any)(nil), // 8: google.protobuf.Any
}
var file_proto_admin_proto_depIdxs = []int32{
8, // 0: admin.Response.data:type_name -> google.protobuf.Any
0, // 1: admin.Admin.AdminAdd:input_type -> admin.AdminEditRequest
0, // 2: admin.Admin.AdminEdit:input_type -> admin.AdminEditRequest
1, // 3: admin.Admin.AdminStatus:input_type -> admin.StatusRequest
3, // 4: admin.Admin.Password:input_type -> admin.PasswordRequest
4, // 5: admin.Admin.OwnPassword:input_type -> admin.OwnPasswordRequest
5, // 6: admin.Admin.AdminInfo:input_type -> admin.AdminInfoRequest
6, // 7: admin.Admin.AdminItems:input_type -> admin.AdminItemsRequest
7, // 8: admin.Admin.AdminLogin:input_type -> admin.AdminLoginRequest
2, // 9: admin.Admin.AdminAdd:output_type -> admin.Response
2, // 10: admin.Admin.AdminEdit:output_type -> admin.Response
2, // 11: admin.Admin.AdminStatus:output_type -> admin.Response
2, // 12: admin.Admin.Password:output_type -> admin.Response
2, // 13: admin.Admin.OwnPassword:output_type -> admin.Response
2, // 14: admin.Admin.AdminInfo:output_type -> admin.Response
2, // 15: admin.Admin.AdminItems:output_type -> admin.Response
2, // 16: admin.Admin.AdminLogin:output_type -> admin.Response
9, // [9:17] is the sub-list for method output_type
1, // [1:9] 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_proto_admin_proto_init() }
func file_proto_admin_proto_init() {
if File_proto_admin_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_proto_admin_proto_rawDesc), len(file_proto_admin_proto_rawDesc)),
NumEnums: 0,
NumMessages: 8,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_proto_admin_proto_goTypes,
DependencyIndexes: file_proto_admin_proto_depIdxs,
MessageInfos: file_proto_admin_proto_msgTypes,
}.Build()
File_proto_admin_proto = out.File
file_proto_admin_proto_goTypes = nil
file_proto_admin_proto_depIdxs = nil
}