2599 lines
88 KiB
Go
2599 lines
88 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
// versions:
|
||
// protoc-gen-go v1.36.11
|
||
// protoc v3.19.6
|
||
// source: service_admin.proto
|
||
|
||
package pb
|
||
|
||
import (
|
||
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
||
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
||
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 LoginAdminRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
|
||
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *LoginAdminRequest) Reset() {
|
||
*x = LoginAdminRequest{}
|
||
mi := &file_service_admin_proto_msgTypes[0]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *LoginAdminRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*LoginAdminRequest) ProtoMessage() {}
|
||
|
||
func (x *LoginAdminRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_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 LoginAdminRequest.ProtoReflect.Descriptor instead.
|
||
func (*LoginAdminRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_admin_proto_rawDescGZIP(), []int{0}
|
||
}
|
||
|
||
func (x *LoginAdminRequest) GetUsername() string {
|
||
if x != nil {
|
||
return x.Username
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *LoginAdminRequest) GetPassword() string {
|
||
if x != nil {
|
||
return x.Password
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type LoginAdminResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
AdminId int64 `protobuf:"varint,1,opt,name=adminId,proto3" json:"adminId,omitempty"`
|
||
IsOk bool `protobuf:"varint,2,opt,name=isOk,proto3" json:"isOk,omitempty"`
|
||
Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *LoginAdminResponse) Reset() {
|
||
*x = LoginAdminResponse{}
|
||
mi := &file_service_admin_proto_msgTypes[1]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *LoginAdminResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*LoginAdminResponse) ProtoMessage() {}
|
||
|
||
func (x *LoginAdminResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_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 LoginAdminResponse.ProtoReflect.Descriptor instead.
|
||
func (*LoginAdminResponse) Descriptor() ([]byte, []int) {
|
||
return file_service_admin_proto_rawDescGZIP(), []int{1}
|
||
}
|
||
|
||
func (x *LoginAdminResponse) GetAdminId() int64 {
|
||
if x != nil {
|
||
return x.AdminId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *LoginAdminResponse) GetIsOk() bool {
|
||
if x != nil {
|
||
return x.IsOk
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *LoginAdminResponse) GetMessage() string {
|
||
if x != nil {
|
||
return x.Message
|
||
}
|
||
return ""
|
||
}
|
||
|
||
// 检查管理员是否存在
|
||
type CheckAdminExistsRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
AdminId int64 `protobuf:"varint,1,opt,name=adminId,proto3" json:"adminId,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CheckAdminExistsRequest) Reset() {
|
||
*x = CheckAdminExistsRequest{}
|
||
mi := &file_service_admin_proto_msgTypes[2]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CheckAdminExistsRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CheckAdminExistsRequest) ProtoMessage() {}
|
||
|
||
func (x *CheckAdminExistsRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_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 CheckAdminExistsRequest.ProtoReflect.Descriptor instead.
|
||
func (*CheckAdminExistsRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_admin_proto_rawDescGZIP(), []int{2}
|
||
}
|
||
|
||
func (x *CheckAdminExistsRequest) GetAdminId() int64 {
|
||
if x != nil {
|
||
return x.AdminId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
type CheckAdminExistsResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
IsOk bool `protobuf:"varint,1,opt,name=isOk,proto3" json:"isOk,omitempty"`
|
||
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CheckAdminExistsResponse) Reset() {
|
||
*x = CheckAdminExistsResponse{}
|
||
mi := &file_service_admin_proto_msgTypes[3]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CheckAdminExistsResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CheckAdminExistsResponse) ProtoMessage() {}
|
||
|
||
func (x *CheckAdminExistsResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_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 CheckAdminExistsResponse.ProtoReflect.Descriptor instead.
|
||
func (*CheckAdminExistsResponse) Descriptor() ([]byte, []int) {
|
||
return file_service_admin_proto_rawDescGZIP(), []int{3}
|
||
}
|
||
|
||
func (x *CheckAdminExistsResponse) GetIsOk() bool {
|
||
if x != nil {
|
||
return x.IsOk
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *CheckAdminExistsResponse) GetMessage() string {
|
||
if x != nil {
|
||
return x.Message
|
||
}
|
||
return ""
|
||
}
|
||
|
||
// 检查管理员用户名是否存在
|
||
type CheckAdminUsernameRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
AdminId int64 `protobuf:"varint,1,opt,name=adminId,proto3" json:"adminId,omitempty"`
|
||
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CheckAdminUsernameRequest) Reset() {
|
||
*x = CheckAdminUsernameRequest{}
|
||
mi := &file_service_admin_proto_msgTypes[4]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CheckAdminUsernameRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CheckAdminUsernameRequest) ProtoMessage() {}
|
||
|
||
func (x *CheckAdminUsernameRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_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 CheckAdminUsernameRequest.ProtoReflect.Descriptor instead.
|
||
func (*CheckAdminUsernameRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_admin_proto_rawDescGZIP(), []int{4}
|
||
}
|
||
|
||
func (x *CheckAdminUsernameRequest) GetAdminId() int64 {
|
||
if x != nil {
|
||
return x.AdminId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *CheckAdminUsernameRequest) GetUsername() string {
|
||
if x != nil {
|
||
return x.Username
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type CheckAdminUsernameResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Exists bool `protobuf:"varint,1,opt,name=exists,proto3" json:"exists,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CheckAdminUsernameResponse) Reset() {
|
||
*x = CheckAdminUsernameResponse{}
|
||
mi := &file_service_admin_proto_msgTypes[5]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CheckAdminUsernameResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CheckAdminUsernameResponse) ProtoMessage() {}
|
||
|
||
func (x *CheckAdminUsernameResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_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 CheckAdminUsernameResponse.ProtoReflect.Descriptor instead.
|
||
func (*CheckAdminUsernameResponse) Descriptor() ([]byte, []int) {
|
||
return file_service_admin_proto_rawDescGZIP(), []int{5}
|
||
}
|
||
|
||
func (x *CheckAdminUsernameResponse) GetExists() bool {
|
||
if x != nil {
|
||
return x.Exists
|
||
}
|
||
return false
|
||
}
|
||
|
||
// 使用用管理员户名查找管理员信息
|
||
type FindAdminWithUsernameRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // 管理员用户名
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *FindAdminWithUsernameRequest) Reset() {
|
||
*x = FindAdminWithUsernameRequest{}
|
||
mi := &file_service_admin_proto_msgTypes[6]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *FindAdminWithUsernameRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*FindAdminWithUsernameRequest) ProtoMessage() {}
|
||
|
||
func (x *FindAdminWithUsernameRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_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 FindAdminWithUsernameRequest.ProtoReflect.Descriptor instead.
|
||
func (*FindAdminWithUsernameRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_admin_proto_rawDescGZIP(), []int{6}
|
||
}
|
||
|
||
func (x *FindAdminWithUsernameRequest) GetUsername() string {
|
||
if x != nil {
|
||
return x.Username
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type FindAdminWithUsernameResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Admin *Admin `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` // 管理员信息
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *FindAdminWithUsernameResponse) Reset() {
|
||
*x = FindAdminWithUsernameResponse{}
|
||
mi := &file_service_admin_proto_msgTypes[7]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *FindAdminWithUsernameResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*FindAdminWithUsernameResponse) ProtoMessage() {}
|
||
|
||
func (x *FindAdminWithUsernameResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_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 FindAdminWithUsernameResponse.ProtoReflect.Descriptor instead.
|
||
func (*FindAdminWithUsernameResponse) Descriptor() ([]byte, []int) {
|
||
return file_service_admin_proto_rawDescGZIP(), []int{7}
|
||
}
|
||
|
||
func (x *FindAdminWithUsernameResponse) GetAdmin() *Admin {
|
||
if x != nil {
|
||
return x.Admin
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// 获取管理员名称
|
||
type FindAdminFullnameRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
AdminId int64 `protobuf:"varint,1,opt,name=adminId,proto3" json:"adminId,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *FindAdminFullnameRequest) Reset() {
|
||
*x = FindAdminFullnameRequest{}
|
||
mi := &file_service_admin_proto_msgTypes[8]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *FindAdminFullnameRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*FindAdminFullnameRequest) ProtoMessage() {}
|
||
|
||
func (x *FindAdminFullnameRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_admin_proto_msgTypes[8]
|
||
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 FindAdminFullnameRequest.ProtoReflect.Descriptor instead.
|
||
func (*FindAdminFullnameRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_admin_proto_rawDescGZIP(), []int{8}
|
||
}
|
||
|
||
func (x *FindAdminFullnameRequest) GetAdminId() int64 {
|
||
if x != nil {
|
||
return x.AdminId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
type FindAdminFullnameResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Fullname string `protobuf:"bytes,1,opt,name=fullname,proto3" json:"fullname,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *FindAdminFullnameResponse) Reset() {
|
||
*x = FindAdminFullnameResponse{}
|
||
mi := &file_service_admin_proto_msgTypes[9]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *FindAdminFullnameResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*FindAdminFullnameResponse) ProtoMessage() {}
|
||
|
||
func (x *FindAdminFullnameResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_admin_proto_msgTypes[9]
|
||
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 FindAdminFullnameResponse.ProtoReflect.Descriptor instead.
|
||
func (*FindAdminFullnameResponse) Descriptor() ([]byte, []int) {
|
||
return file_service_admin_proto_rawDescGZIP(), []int{9}
|
||
}
|
||
|
||
func (x *FindAdminFullnameResponse) GetFullname() string {
|
||
if x != nil {
|
||
return x.Fullname
|
||
}
|
||
return ""
|
||
}
|
||
|
||
// 获取管理员信息
|
||
type FindEnabledAdminRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
AdminId int64 `protobuf:"varint,1,opt,name=adminId,proto3" json:"adminId,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *FindEnabledAdminRequest) Reset() {
|
||
*x = FindEnabledAdminRequest{}
|
||
mi := &file_service_admin_proto_msgTypes[10]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *FindEnabledAdminRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*FindEnabledAdminRequest) ProtoMessage() {}
|
||
|
||
func (x *FindEnabledAdminRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_admin_proto_msgTypes[10]
|
||
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 FindEnabledAdminRequest.ProtoReflect.Descriptor instead.
|
||
func (*FindEnabledAdminRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_admin_proto_rawDescGZIP(), []int{10}
|
||
}
|
||
|
||
func (x *FindEnabledAdminRequest) GetAdminId() int64 {
|
||
if x != nil {
|
||
return x.AdminId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
type FindEnabledAdminResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Admin *Admin `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *FindEnabledAdminResponse) Reset() {
|
||
*x = FindEnabledAdminResponse{}
|
||
mi := &file_service_admin_proto_msgTypes[11]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *FindEnabledAdminResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*FindEnabledAdminResponse) ProtoMessage() {}
|
||
|
||
func (x *FindEnabledAdminResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_admin_proto_msgTypes[11]
|
||
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 FindEnabledAdminResponse.ProtoReflect.Descriptor instead.
|
||
func (*FindEnabledAdminResponse) Descriptor() ([]byte, []int) {
|
||
return file_service_admin_proto_rawDescGZIP(), []int{11}
|
||
}
|
||
|
||
func (x *FindEnabledAdminResponse) GetAdmin() *Admin {
|
||
if x != nil {
|
||
return x.Admin
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// 创建或修改管理员
|
||
type CreateOrUpdateAdminRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
|
||
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CreateOrUpdateAdminRequest) Reset() {
|
||
*x = CreateOrUpdateAdminRequest{}
|
||
mi := &file_service_admin_proto_msgTypes[12]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CreateOrUpdateAdminRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CreateOrUpdateAdminRequest) ProtoMessage() {}
|
||
|
||
func (x *CreateOrUpdateAdminRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_admin_proto_msgTypes[12]
|
||
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 CreateOrUpdateAdminRequest.ProtoReflect.Descriptor instead.
|
||
func (*CreateOrUpdateAdminRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_admin_proto_rawDescGZIP(), []int{12}
|
||
}
|
||
|
||
func (x *CreateOrUpdateAdminRequest) GetUsername() string {
|
||
if x != nil {
|
||
return x.Username
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *CreateOrUpdateAdminRequest) GetPassword() string {
|
||
if x != nil {
|
||
return x.Password
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type CreateOrUpdateAdminResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
AdminId int64 `protobuf:"varint,1,opt,name=adminId,proto3" json:"adminId,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CreateOrUpdateAdminResponse) Reset() {
|
||
*x = CreateOrUpdateAdminResponse{}
|
||
mi := &file_service_admin_proto_msgTypes[13]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CreateOrUpdateAdminResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CreateOrUpdateAdminResponse) ProtoMessage() {}
|
||
|
||
func (x *CreateOrUpdateAdminResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_admin_proto_msgTypes[13]
|
||
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 CreateOrUpdateAdminResponse.ProtoReflect.Descriptor instead.
|
||
func (*CreateOrUpdateAdminResponse) Descriptor() ([]byte, []int) {
|
||
return file_service_admin_proto_rawDescGZIP(), []int{13}
|
||
}
|
||
|
||
func (x *CreateOrUpdateAdminResponse) GetAdminId() int64 {
|
||
if x != nil {
|
||
return x.AdminId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// 修改管理员信息
|
||
type UpdateAdminInfoRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
AdminId int64 `protobuf:"varint,1,opt,name=adminId,proto3" json:"adminId,omitempty"`
|
||
Fullname string `protobuf:"bytes,2,opt,name=fullname,proto3" json:"fullname,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *UpdateAdminInfoRequest) Reset() {
|
||
*x = UpdateAdminInfoRequest{}
|
||
mi := &file_service_admin_proto_msgTypes[14]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *UpdateAdminInfoRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*UpdateAdminInfoRequest) ProtoMessage() {}
|
||
|
||
func (x *UpdateAdminInfoRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_admin_proto_msgTypes[14]
|
||
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 UpdateAdminInfoRequest.ProtoReflect.Descriptor instead.
|
||
func (*UpdateAdminInfoRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_admin_proto_rawDescGZIP(), []int{14}
|
||
}
|
||
|
||
func (x *UpdateAdminInfoRequest) GetAdminId() int64 {
|
||
if x != nil {
|
||
return x.AdminId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *UpdateAdminInfoRequest) GetFullname() string {
|
||
if x != nil {
|
||
return x.Fullname
|
||
}
|
||
return ""
|
||
}
|
||
|
||
// 修改管理员登录信息
|
||
type UpdateAdminLoginRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
AdminId int64 `protobuf:"varint,1,opt,name=adminId,proto3" json:"adminId,omitempty"`
|
||
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
|
||
Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *UpdateAdminLoginRequest) Reset() {
|
||
*x = UpdateAdminLoginRequest{}
|
||
mi := &file_service_admin_proto_msgTypes[15]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *UpdateAdminLoginRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*UpdateAdminLoginRequest) ProtoMessage() {}
|
||
|
||
func (x *UpdateAdminLoginRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_admin_proto_msgTypes[15]
|
||
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 UpdateAdminLoginRequest.ProtoReflect.Descriptor instead.
|
||
func (*UpdateAdminLoginRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_admin_proto_rawDescGZIP(), []int{15}
|
||
}
|
||
|
||
func (x *UpdateAdminLoginRequest) GetAdminId() int64 {
|
||
if x != nil {
|
||
return x.AdminId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *UpdateAdminLoginRequest) GetUsername() string {
|
||
if x != nil {
|
||
return x.Username
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *UpdateAdminLoginRequest) GetPassword() string {
|
||
if x != nil {
|
||
return x.Password
|
||
}
|
||
return ""
|
||
}
|
||
|
||
// 获取管理所有权限列表
|
||
type FindAllAdminModulesRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *FindAllAdminModulesRequest) Reset() {
|
||
*x = FindAllAdminModulesRequest{}
|
||
mi := &file_service_admin_proto_msgTypes[16]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *FindAllAdminModulesRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*FindAllAdminModulesRequest) ProtoMessage() {}
|
||
|
||
func (x *FindAllAdminModulesRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_admin_proto_msgTypes[16]
|
||
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 FindAllAdminModulesRequest.ProtoReflect.Descriptor instead.
|
||
func (*FindAllAdminModulesRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_admin_proto_rawDescGZIP(), []int{16}
|
||
}
|
||
|
||
type FindAllAdminModulesResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
AdminModules []*AdminModuleList `protobuf:"bytes,1,rep,name=adminModules,proto3" json:"adminModules,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *FindAllAdminModulesResponse) Reset() {
|
||
*x = FindAllAdminModulesResponse{}
|
||
mi := &file_service_admin_proto_msgTypes[17]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *FindAllAdminModulesResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*FindAllAdminModulesResponse) ProtoMessage() {}
|
||
|
||
func (x *FindAllAdminModulesResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_admin_proto_msgTypes[17]
|
||
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 FindAllAdminModulesResponse.ProtoReflect.Descriptor instead.
|
||
func (*FindAllAdminModulesResponse) Descriptor() ([]byte, []int) {
|
||
return file_service_admin_proto_rawDescGZIP(), []int{17}
|
||
}
|
||
|
||
func (x *FindAllAdminModulesResponse) GetAdminModules() []*AdminModuleList {
|
||
if x != nil {
|
||
return x.AdminModules
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// 创建管理员
|
||
type CreateAdminRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
|
||
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
|
||
Fullname string `protobuf:"bytes,3,opt,name=fullname,proto3" json:"fullname,omitempty"`
|
||
ModulesJSON []byte `protobuf:"bytes,4,opt,name=modulesJSON,proto3" json:"modulesJSON,omitempty"`
|
||
IsSuper bool `protobuf:"varint,5,opt,name=isSuper,proto3" json:"isSuper,omitempty"`
|
||
CanLogin bool `protobuf:"varint,6,opt,name=canLogin,proto3" json:"canLogin,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CreateAdminRequest) Reset() {
|
||
*x = CreateAdminRequest{}
|
||
mi := &file_service_admin_proto_msgTypes[18]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CreateAdminRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CreateAdminRequest) ProtoMessage() {}
|
||
|
||
func (x *CreateAdminRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_admin_proto_msgTypes[18]
|
||
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 CreateAdminRequest.ProtoReflect.Descriptor instead.
|
||
func (*CreateAdminRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_admin_proto_rawDescGZIP(), []int{18}
|
||
}
|
||
|
||
func (x *CreateAdminRequest) GetUsername() string {
|
||
if x != nil {
|
||
return x.Username
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *CreateAdminRequest) GetPassword() string {
|
||
if x != nil {
|
||
return x.Password
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *CreateAdminRequest) GetFullname() string {
|
||
if x != nil {
|
||
return x.Fullname
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *CreateAdminRequest) GetModulesJSON() []byte {
|
||
if x != nil {
|
||
return x.ModulesJSON
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *CreateAdminRequest) GetIsSuper() bool {
|
||
if x != nil {
|
||
return x.IsSuper
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *CreateAdminRequest) GetCanLogin() bool {
|
||
if x != nil {
|
||
return x.CanLogin
|
||
}
|
||
return false
|
||
}
|
||
|
||
type CreateAdminResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
AdminId int64 `protobuf:"varint,1,opt,name=adminId,proto3" json:"adminId,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CreateAdminResponse) Reset() {
|
||
*x = CreateAdminResponse{}
|
||
mi := &file_service_admin_proto_msgTypes[19]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CreateAdminResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CreateAdminResponse) ProtoMessage() {}
|
||
|
||
func (x *CreateAdminResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_admin_proto_msgTypes[19]
|
||
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 CreateAdminResponse.ProtoReflect.Descriptor instead.
|
||
func (*CreateAdminResponse) Descriptor() ([]byte, []int) {
|
||
return file_service_admin_proto_rawDescGZIP(), []int{19}
|
||
}
|
||
|
||
func (x *CreateAdminResponse) GetAdminId() int64 {
|
||
if x != nil {
|
||
return x.AdminId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// 修改管理员
|
||
type UpdateAdminRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
AdminId int64 `protobuf:"varint,1,opt,name=adminId,proto3" json:"adminId,omitempty"`
|
||
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
|
||
Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"`
|
||
Fullname string `protobuf:"bytes,4,opt,name=fullname,proto3" json:"fullname,omitempty"`
|
||
ModulesJSON []byte `protobuf:"bytes,5,opt,name=modulesJSON,proto3" json:"modulesJSON,omitempty"`
|
||
IsSuper bool `protobuf:"varint,6,opt,name=isSuper,proto3" json:"isSuper,omitempty"`
|
||
IsOn bool `protobuf:"varint,7,opt,name=isOn,proto3" json:"isOn,omitempty"`
|
||
CanLogin bool `protobuf:"varint,8,opt,name=canLogin,proto3" json:"canLogin,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *UpdateAdminRequest) Reset() {
|
||
*x = UpdateAdminRequest{}
|
||
mi := &file_service_admin_proto_msgTypes[20]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *UpdateAdminRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*UpdateAdminRequest) ProtoMessage() {}
|
||
|
||
func (x *UpdateAdminRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_admin_proto_msgTypes[20]
|
||
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 UpdateAdminRequest.ProtoReflect.Descriptor instead.
|
||
func (*UpdateAdminRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_admin_proto_rawDescGZIP(), []int{20}
|
||
}
|
||
|
||
func (x *UpdateAdminRequest) GetAdminId() int64 {
|
||
if x != nil {
|
||
return x.AdminId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *UpdateAdminRequest) GetUsername() string {
|
||
if x != nil {
|
||
return x.Username
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *UpdateAdminRequest) GetPassword() string {
|
||
if x != nil {
|
||
return x.Password
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *UpdateAdminRequest) GetFullname() string {
|
||
if x != nil {
|
||
return x.Fullname
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *UpdateAdminRequest) GetModulesJSON() []byte {
|
||
if x != nil {
|
||
return x.ModulesJSON
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *UpdateAdminRequest) GetIsSuper() bool {
|
||
if x != nil {
|
||
return x.IsSuper
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *UpdateAdminRequest) GetIsOn() bool {
|
||
if x != nil {
|
||
return x.IsOn
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *UpdateAdminRequest) GetCanLogin() bool {
|
||
if x != nil {
|
||
return x.CanLogin
|
||
}
|
||
return false
|
||
}
|
||
|
||
// 计算管理员数量
|
||
type CountAllEnabledAdminsRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Keyword string `protobuf:"bytes,1,opt,name=keyword,proto3" json:"keyword,omitempty"` // 可选项,查询关键词
|
||
HasWeakPassword bool `protobuf:"varint,2,opt,name=hasWeakPassword,proto3" json:"hasWeakPassword,omitempty"` // 可选项,筛选有弱密码的管理员,只有超级管理员才能查询
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CountAllEnabledAdminsRequest) Reset() {
|
||
*x = CountAllEnabledAdminsRequest{}
|
||
mi := &file_service_admin_proto_msgTypes[21]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CountAllEnabledAdminsRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CountAllEnabledAdminsRequest) ProtoMessage() {}
|
||
|
||
func (x *CountAllEnabledAdminsRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_admin_proto_msgTypes[21]
|
||
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 CountAllEnabledAdminsRequest.ProtoReflect.Descriptor instead.
|
||
func (*CountAllEnabledAdminsRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_admin_proto_rawDescGZIP(), []int{21}
|
||
}
|
||
|
||
func (x *CountAllEnabledAdminsRequest) GetKeyword() string {
|
||
if x != nil {
|
||
return x.Keyword
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *CountAllEnabledAdminsRequest) GetHasWeakPassword() bool {
|
||
if x != nil {
|
||
return x.HasWeakPassword
|
||
}
|
||
return false
|
||
}
|
||
|
||
// 列出单页的管理员
|
||
type ListEnabledAdminsRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Keyword string `protobuf:"bytes,3,opt,name=keyword,proto3" json:"keyword,omitempty"` // 可选项,查询关键词
|
||
HasWeakPassword bool `protobuf:"varint,4,opt,name=hasWeakPassword,proto3" json:"hasWeakPassword,omitempty"` // 可选项,筛选有弱密码的管理员,只有超级管理员才能查询
|
||
Offset int64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"` // 读取位置,从0开始
|
||
Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"` // 读取数量
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ListEnabledAdminsRequest) Reset() {
|
||
*x = ListEnabledAdminsRequest{}
|
||
mi := &file_service_admin_proto_msgTypes[22]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ListEnabledAdminsRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ListEnabledAdminsRequest) ProtoMessage() {}
|
||
|
||
func (x *ListEnabledAdminsRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_admin_proto_msgTypes[22]
|
||
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 ListEnabledAdminsRequest.ProtoReflect.Descriptor instead.
|
||
func (*ListEnabledAdminsRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_admin_proto_rawDescGZIP(), []int{22}
|
||
}
|
||
|
||
func (x *ListEnabledAdminsRequest) GetKeyword() string {
|
||
if x != nil {
|
||
return x.Keyword
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *ListEnabledAdminsRequest) GetHasWeakPassword() bool {
|
||
if x != nil {
|
||
return x.HasWeakPassword
|
||
}
|
||
return false
|
||
}
|
||
|
||
func (x *ListEnabledAdminsRequest) GetOffset() int64 {
|
||
if x != nil {
|
||
return x.Offset
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ListEnabledAdminsRequest) GetSize() int64 {
|
||
if x != nil {
|
||
return x.Size
|
||
}
|
||
return 0
|
||
}
|
||
|
||
type ListEnabledAdminsResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Admins []*Admin `protobuf:"bytes,1,rep,name=admins,proto3" json:"admins,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ListEnabledAdminsResponse) Reset() {
|
||
*x = ListEnabledAdminsResponse{}
|
||
mi := &file_service_admin_proto_msgTypes[23]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ListEnabledAdminsResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ListEnabledAdminsResponse) ProtoMessage() {}
|
||
|
||
func (x *ListEnabledAdminsResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_admin_proto_msgTypes[23]
|
||
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 ListEnabledAdminsResponse.ProtoReflect.Descriptor instead.
|
||
func (*ListEnabledAdminsResponse) Descriptor() ([]byte, []int) {
|
||
return file_service_admin_proto_rawDescGZIP(), []int{23}
|
||
}
|
||
|
||
func (x *ListEnabledAdminsResponse) GetAdmins() []*Admin {
|
||
if x != nil {
|
||
return x.Admins
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// 删除管理员
|
||
type DeleteAdminRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
AdminId int64 `protobuf:"varint,1,opt,name=adminId,proto3" json:"adminId,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *DeleteAdminRequest) Reset() {
|
||
*x = DeleteAdminRequest{}
|
||
mi := &file_service_admin_proto_msgTypes[24]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *DeleteAdminRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*DeleteAdminRequest) ProtoMessage() {}
|
||
|
||
func (x *DeleteAdminRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_admin_proto_msgTypes[24]
|
||
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 DeleteAdminRequest.ProtoReflect.Descriptor instead.
|
||
func (*DeleteAdminRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_admin_proto_rawDescGZIP(), []int{24}
|
||
}
|
||
|
||
func (x *DeleteAdminRequest) GetAdminId() int64 {
|
||
if x != nil {
|
||
return x.AdminId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// 根据用户名检查是否需要输入OTP
|
||
type CheckAdminOTPWithUsernameRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CheckAdminOTPWithUsernameRequest) Reset() {
|
||
*x = CheckAdminOTPWithUsernameRequest{}
|
||
mi := &file_service_admin_proto_msgTypes[25]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CheckAdminOTPWithUsernameRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CheckAdminOTPWithUsernameRequest) ProtoMessage() {}
|
||
|
||
func (x *CheckAdminOTPWithUsernameRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_admin_proto_msgTypes[25]
|
||
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 CheckAdminOTPWithUsernameRequest.ProtoReflect.Descriptor instead.
|
||
func (*CheckAdminOTPWithUsernameRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_admin_proto_rawDescGZIP(), []int{25}
|
||
}
|
||
|
||
func (x *CheckAdminOTPWithUsernameRequest) GetUsername() string {
|
||
if x != nil {
|
||
return x.Username
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type CheckAdminOTPWithUsernameResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
RequireOTP bool `protobuf:"varint,1,opt,name=requireOTP,proto3" json:"requireOTP,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *CheckAdminOTPWithUsernameResponse) Reset() {
|
||
*x = CheckAdminOTPWithUsernameResponse{}
|
||
mi := &file_service_admin_proto_msgTypes[26]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *CheckAdminOTPWithUsernameResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*CheckAdminOTPWithUsernameResponse) ProtoMessage() {}
|
||
|
||
func (x *CheckAdminOTPWithUsernameResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_admin_proto_msgTypes[26]
|
||
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 CheckAdminOTPWithUsernameResponse.ProtoReflect.Descriptor instead.
|
||
func (*CheckAdminOTPWithUsernameResponse) Descriptor() ([]byte, []int) {
|
||
return file_service_admin_proto_rawDescGZIP(), []int{26}
|
||
}
|
||
|
||
func (x *CheckAdminOTPWithUsernameResponse) GetRequireOTP() bool {
|
||
if x != nil {
|
||
return x.RequireOTP
|
||
}
|
||
return false
|
||
}
|
||
|
||
// 取得管理员Dashboard数据
|
||
type ComposeAdminDashboardRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
ApiVersion string `protobuf:"bytes,1,opt,name=apiVersion,proto3" json:"apiVersion,omitempty"` // 当前API版本号
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardRequest) Reset() {
|
||
*x = ComposeAdminDashboardRequest{}
|
||
mi := &file_service_admin_proto_msgTypes[27]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ComposeAdminDashboardRequest) ProtoMessage() {}
|
||
|
||
func (x *ComposeAdminDashboardRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_admin_proto_msgTypes[27]
|
||
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 ComposeAdminDashboardRequest.ProtoReflect.Descriptor instead.
|
||
func (*ComposeAdminDashboardRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_admin_proto_rawDescGZIP(), []int{27}
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardRequest) GetApiVersion() string {
|
||
if x != nil {
|
||
return x.ApiVersion
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type ComposeAdminDashboardResponse struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
CountNodeClusters int64 `protobuf:"varint,1,opt,name=countNodeClusters,proto3" json:"countNodeClusters,omitempty"`
|
||
CountNodes int64 `protobuf:"varint,2,opt,name=countNodes,proto3" json:"countNodes,omitempty"`
|
||
CountOfflineNodes int64 `protobuf:"varint,9,opt,name=countOfflineNodes,proto3" json:"countOfflineNodes,omitempty"`
|
||
CountServers int64 `protobuf:"varint,3,opt,name=countServers,proto3" json:"countServers,omitempty"`
|
||
CountAuditingServers int64 `protobuf:"varint,13,opt,name=countAuditingServers,proto3" json:"countAuditingServers,omitempty"`
|
||
CountUsers int64 `protobuf:"varint,4,opt,name=countUsers,proto3" json:"countUsers,omitempty"`
|
||
CountAPINodes int64 `protobuf:"varint,5,opt,name=countAPINodes,proto3" json:"countAPINodes,omitempty"`
|
||
CountOfflineAPINodes int64 `protobuf:"varint,10,opt,name=countOfflineAPINodes,proto3" json:"countOfflineAPINodes,omitempty"`
|
||
CountDBNodes int64 `protobuf:"varint,6,opt,name=countDBNodes,proto3" json:"countDBNodes,omitempty"`
|
||
CountOfflineDBNodes int64 `protobuf:"varint,11,opt,name=countOfflineDBNodes,proto3" json:"countOfflineDBNodes,omitempty"`
|
||
CountUserNodes int64 `protobuf:"varint,7,opt,name=countUserNodes,proto3" json:"countUserNodes,omitempty"`
|
||
CountOfflineUserNodes int64 `protobuf:"varint,12,opt,name=countOfflineUserNodes,proto3" json:"countOfflineUserNodes,omitempty"`
|
||
DefaultNodeClusterId int64 `protobuf:"varint,8,opt,name=defaultNodeClusterId,proto3" json:"defaultNodeClusterId,omitempty"`
|
||
DailyTrafficStats []*ComposeAdminDashboardResponse_DailyTrafficStat `protobuf:"bytes,30,rep,name=dailyTrafficStats,proto3" json:"dailyTrafficStats,omitempty"`
|
||
HourlyTrafficStats []*ComposeAdminDashboardResponse_HourlyTrafficStat `protobuf:"bytes,31,rep,name=hourlyTrafficStats,proto3" json:"hourlyTrafficStats,omitempty"`
|
||
NodeUpgradeInfo *ComposeAdminDashboardResponse_UpgradeInfo `protobuf:"bytes,32,opt,name=nodeUpgradeInfo,proto3" json:"nodeUpgradeInfo,omitempty"`
|
||
ApiNodeUpgradeInfo *ComposeAdminDashboardResponse_UpgradeInfo `protobuf:"bytes,33,opt,name=apiNodeUpgradeInfo,proto3" json:"apiNodeUpgradeInfo,omitempty"`
|
||
UserNodeUpgradeInfo *ComposeAdminDashboardResponse_UpgradeInfo `protobuf:"bytes,35,opt,name=userNodeUpgradeInfo,proto3" json:"userNodeUpgradeInfo,omitempty"`
|
||
AuthorityNodeUpgradeInfo *ComposeAdminDashboardResponse_UpgradeInfo `protobuf:"bytes,36,opt,name=authorityNodeUpgradeInfo,proto3" json:"authorityNodeUpgradeInfo,omitempty"`
|
||
NsNodeUpgradeInfo *ComposeAdminDashboardResponse_UpgradeInfo `protobuf:"bytes,37,opt,name=nsNodeUpgradeInfo,proto3" json:"nsNodeUpgradeInfo,omitempty"`
|
||
ReportNodeUpgradeInfo *ComposeAdminDashboardResponse_UpgradeInfo `protobuf:"bytes,41,opt,name=reportNodeUpgradeInfo,proto3" json:"reportNodeUpgradeInfo,omitempty"`
|
||
TopNodeStats []*ComposeAdminDashboardResponse_NodeStat `protobuf:"bytes,38,rep,name=topNodeStats,proto3" json:"topNodeStats,omitempty"`
|
||
TopDomainStats []*ComposeAdminDashboardResponse_DomainStat `protobuf:"bytes,39,rep,name=topDomainStats,proto3" json:"topDomainStats,omitempty"`
|
||
TopCountryStats []*ComposeAdminDashboardResponse_CountryStat `protobuf:"bytes,42,rep,name=topCountryStats,proto3" json:"topCountryStats,omitempty"`
|
||
MetricDataCharts []*MetricDataChart `protobuf:"bytes,40,rep,name=metricDataCharts,proto3" json:"metricDataCharts,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse) Reset() {
|
||
*x = ComposeAdminDashboardResponse{}
|
||
mi := &file_service_admin_proto_msgTypes[28]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ComposeAdminDashboardResponse) ProtoMessage() {}
|
||
|
||
func (x *ComposeAdminDashboardResponse) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_admin_proto_msgTypes[28]
|
||
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 ComposeAdminDashboardResponse.ProtoReflect.Descriptor instead.
|
||
func (*ComposeAdminDashboardResponse) Descriptor() ([]byte, []int) {
|
||
return file_service_admin_proto_rawDescGZIP(), []int{28}
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse) GetCountNodeClusters() int64 {
|
||
if x != nil {
|
||
return x.CountNodeClusters
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse) GetCountNodes() int64 {
|
||
if x != nil {
|
||
return x.CountNodes
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse) GetCountOfflineNodes() int64 {
|
||
if x != nil {
|
||
return x.CountOfflineNodes
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse) GetCountServers() int64 {
|
||
if x != nil {
|
||
return x.CountServers
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse) GetCountAuditingServers() int64 {
|
||
if x != nil {
|
||
return x.CountAuditingServers
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse) GetCountUsers() int64 {
|
||
if x != nil {
|
||
return x.CountUsers
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse) GetCountAPINodes() int64 {
|
||
if x != nil {
|
||
return x.CountAPINodes
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse) GetCountOfflineAPINodes() int64 {
|
||
if x != nil {
|
||
return x.CountOfflineAPINodes
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse) GetCountDBNodes() int64 {
|
||
if x != nil {
|
||
return x.CountDBNodes
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse) GetCountOfflineDBNodes() int64 {
|
||
if x != nil {
|
||
return x.CountOfflineDBNodes
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse) GetCountUserNodes() int64 {
|
||
if x != nil {
|
||
return x.CountUserNodes
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse) GetCountOfflineUserNodes() int64 {
|
||
if x != nil {
|
||
return x.CountOfflineUserNodes
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse) GetDefaultNodeClusterId() int64 {
|
||
if x != nil {
|
||
return x.DefaultNodeClusterId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse) GetDailyTrafficStats() []*ComposeAdminDashboardResponse_DailyTrafficStat {
|
||
if x != nil {
|
||
return x.DailyTrafficStats
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse) GetHourlyTrafficStats() []*ComposeAdminDashboardResponse_HourlyTrafficStat {
|
||
if x != nil {
|
||
return x.HourlyTrafficStats
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse) GetNodeUpgradeInfo() *ComposeAdminDashboardResponse_UpgradeInfo {
|
||
if x != nil {
|
||
return x.NodeUpgradeInfo
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse) GetApiNodeUpgradeInfo() *ComposeAdminDashboardResponse_UpgradeInfo {
|
||
if x != nil {
|
||
return x.ApiNodeUpgradeInfo
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse) GetUserNodeUpgradeInfo() *ComposeAdminDashboardResponse_UpgradeInfo {
|
||
if x != nil {
|
||
return x.UserNodeUpgradeInfo
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse) GetAuthorityNodeUpgradeInfo() *ComposeAdminDashboardResponse_UpgradeInfo {
|
||
if x != nil {
|
||
return x.AuthorityNodeUpgradeInfo
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse) GetNsNodeUpgradeInfo() *ComposeAdminDashboardResponse_UpgradeInfo {
|
||
if x != nil {
|
||
return x.NsNodeUpgradeInfo
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse) GetReportNodeUpgradeInfo() *ComposeAdminDashboardResponse_UpgradeInfo {
|
||
if x != nil {
|
||
return x.ReportNodeUpgradeInfo
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse) GetTopNodeStats() []*ComposeAdminDashboardResponse_NodeStat {
|
||
if x != nil {
|
||
return x.TopNodeStats
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse) GetTopDomainStats() []*ComposeAdminDashboardResponse_DomainStat {
|
||
if x != nil {
|
||
return x.TopDomainStats
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse) GetTopCountryStats() []*ComposeAdminDashboardResponse_CountryStat {
|
||
if x != nil {
|
||
return x.TopCountryStats
|
||
}
|
||
return nil
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse) GetMetricDataCharts() []*MetricDataChart {
|
||
if x != nil {
|
||
return x.MetricDataCharts
|
||
}
|
||
return nil
|
||
}
|
||
|
||
// 修改管理员使用的界面风格
|
||
type UpdateAdminThemeRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
AdminId int64 `protobuf:"varint,1,opt,name=adminId,proto3" json:"adminId,omitempty"`
|
||
Theme string `protobuf:"bytes,2,opt,name=theme,proto3" json:"theme,omitempty"` // 风格代号
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *UpdateAdminThemeRequest) Reset() {
|
||
*x = UpdateAdminThemeRequest{}
|
||
mi := &file_service_admin_proto_msgTypes[29]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *UpdateAdminThemeRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*UpdateAdminThemeRequest) ProtoMessage() {}
|
||
|
||
func (x *UpdateAdminThemeRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_admin_proto_msgTypes[29]
|
||
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 UpdateAdminThemeRequest.ProtoReflect.Descriptor instead.
|
||
func (*UpdateAdminThemeRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_admin_proto_rawDescGZIP(), []int{29}
|
||
}
|
||
|
||
func (x *UpdateAdminThemeRequest) GetAdminId() int64 {
|
||
if x != nil {
|
||
return x.AdminId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *UpdateAdminThemeRequest) GetTheme() string {
|
||
if x != nil {
|
||
return x.Theme
|
||
}
|
||
return ""
|
||
}
|
||
|
||
// 修改管理员使用的语言
|
||
type UpdateAdminLangRequest struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
LangCode string `protobuf:"bytes,1,opt,name=langCode,proto3" json:"langCode,omitempty"` // 语言代号:en-us, zh-cn, ...,如果为空表示默认
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *UpdateAdminLangRequest) Reset() {
|
||
*x = UpdateAdminLangRequest{}
|
||
mi := &file_service_admin_proto_msgTypes[30]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *UpdateAdminLangRequest) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*UpdateAdminLangRequest) ProtoMessage() {}
|
||
|
||
func (x *UpdateAdminLangRequest) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_admin_proto_msgTypes[30]
|
||
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 UpdateAdminLangRequest.ProtoReflect.Descriptor instead.
|
||
func (*UpdateAdminLangRequest) Descriptor() ([]byte, []int) {
|
||
return file_service_admin_proto_rawDescGZIP(), []int{30}
|
||
}
|
||
|
||
func (x *UpdateAdminLangRequest) GetLangCode() string {
|
||
if x != nil {
|
||
return x.LangCode
|
||
}
|
||
return ""
|
||
}
|
||
|
||
type ComposeAdminDashboardResponse_DailyTrafficStat struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Day string `protobuf:"bytes,1,opt,name=day,proto3" json:"day,omitempty"` // 日期 YYYYMMDD
|
||
Bytes int64 `protobuf:"varint,2,opt,name=bytes,proto3" json:"bytes,omitempty"`
|
||
CachedBytes int64 `protobuf:"varint,3,opt,name=cachedBytes,proto3" json:"cachedBytes,omitempty"`
|
||
CountRequests int64 `protobuf:"varint,4,opt,name=countRequests,proto3" json:"countRequests,omitempty"`
|
||
CountCachedRequests int64 `protobuf:"varint,5,opt,name=countCachedRequests,proto3" json:"countCachedRequests,omitempty"`
|
||
CountAttackRequests int64 `protobuf:"varint,6,opt,name=countAttackRequests,proto3" json:"countAttackRequests,omitempty"`
|
||
AttackBytes int64 `protobuf:"varint,7,opt,name=attackBytes,proto3" json:"attackBytes,omitempty"` // 攻击流量(字节)
|
||
CountIPs int64 `protobuf:"varint,8,opt,name=countIPs,proto3" json:"countIPs,omitempty"` // 独立IP数量
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse_DailyTrafficStat) Reset() {
|
||
*x = ComposeAdminDashboardResponse_DailyTrafficStat{}
|
||
mi := &file_service_admin_proto_msgTypes[31]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse_DailyTrafficStat) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ComposeAdminDashboardResponse_DailyTrafficStat) ProtoMessage() {}
|
||
|
||
func (x *ComposeAdminDashboardResponse_DailyTrafficStat) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_admin_proto_msgTypes[31]
|
||
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 ComposeAdminDashboardResponse_DailyTrafficStat.ProtoReflect.Descriptor instead.
|
||
func (*ComposeAdminDashboardResponse_DailyTrafficStat) Descriptor() ([]byte, []int) {
|
||
return file_service_admin_proto_rawDescGZIP(), []int{28, 0}
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse_DailyTrafficStat) GetDay() string {
|
||
if x != nil {
|
||
return x.Day
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse_DailyTrafficStat) GetBytes() int64 {
|
||
if x != nil {
|
||
return x.Bytes
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse_DailyTrafficStat) GetCachedBytes() int64 {
|
||
if x != nil {
|
||
return x.CachedBytes
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse_DailyTrafficStat) GetCountRequests() int64 {
|
||
if x != nil {
|
||
return x.CountRequests
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse_DailyTrafficStat) GetCountCachedRequests() int64 {
|
||
if x != nil {
|
||
return x.CountCachedRequests
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse_DailyTrafficStat) GetCountAttackRequests() int64 {
|
||
if x != nil {
|
||
return x.CountAttackRequests
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse_DailyTrafficStat) GetAttackBytes() int64 {
|
||
if x != nil {
|
||
return x.AttackBytes
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse_DailyTrafficStat) GetCountIPs() int64 {
|
||
if x != nil {
|
||
return x.CountIPs
|
||
}
|
||
return 0
|
||
}
|
||
|
||
type ComposeAdminDashboardResponse_HourlyTrafficStat struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
Hour string `protobuf:"bytes,1,opt,name=hour,proto3" json:"hour,omitempty"`
|
||
Bytes int64 `protobuf:"varint,2,opt,name=bytes,proto3" json:"bytes,omitempty"`
|
||
CachedBytes int64 `protobuf:"varint,3,opt,name=cachedBytes,proto3" json:"cachedBytes,omitempty"`
|
||
CountRequests int64 `protobuf:"varint,4,opt,name=countRequests,proto3" json:"countRequests,omitempty"`
|
||
CountCachedRequests int64 `protobuf:"varint,5,opt,name=countCachedRequests,proto3" json:"countCachedRequests,omitempty"`
|
||
CountAttackRequests int64 `protobuf:"varint,6,opt,name=countAttackRequests,proto3" json:"countAttackRequests,omitempty"`
|
||
AttackBytes int64 `protobuf:"varint,7,opt,name=attackBytes,proto3" json:"attackBytes,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse_HourlyTrafficStat) Reset() {
|
||
*x = ComposeAdminDashboardResponse_HourlyTrafficStat{}
|
||
mi := &file_service_admin_proto_msgTypes[32]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse_HourlyTrafficStat) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ComposeAdminDashboardResponse_HourlyTrafficStat) ProtoMessage() {}
|
||
|
||
func (x *ComposeAdminDashboardResponse_HourlyTrafficStat) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_admin_proto_msgTypes[32]
|
||
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 ComposeAdminDashboardResponse_HourlyTrafficStat.ProtoReflect.Descriptor instead.
|
||
func (*ComposeAdminDashboardResponse_HourlyTrafficStat) Descriptor() ([]byte, []int) {
|
||
return file_service_admin_proto_rawDescGZIP(), []int{28, 1}
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse_HourlyTrafficStat) GetHour() string {
|
||
if x != nil {
|
||
return x.Hour
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse_HourlyTrafficStat) GetBytes() int64 {
|
||
if x != nil {
|
||
return x.Bytes
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse_HourlyTrafficStat) GetCachedBytes() int64 {
|
||
if x != nil {
|
||
return x.CachedBytes
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse_HourlyTrafficStat) GetCountRequests() int64 {
|
||
if x != nil {
|
||
return x.CountRequests
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse_HourlyTrafficStat) GetCountCachedRequests() int64 {
|
||
if x != nil {
|
||
return x.CountCachedRequests
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse_HourlyTrafficStat) GetCountAttackRequests() int64 {
|
||
if x != nil {
|
||
return x.CountAttackRequests
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse_HourlyTrafficStat) GetAttackBytes() int64 {
|
||
if x != nil {
|
||
return x.AttackBytes
|
||
}
|
||
return 0
|
||
}
|
||
|
||
type ComposeAdminDashboardResponse_NodeStat struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
NodeId int64 `protobuf:"varint,1,opt,name=nodeId,proto3" json:"nodeId,omitempty"`
|
||
NodeName string `protobuf:"bytes,2,opt,name=nodeName,proto3" json:"nodeName,omitempty"`
|
||
CountRequests int64 `protobuf:"varint,3,opt,name=countRequests,proto3" json:"countRequests,omitempty"`
|
||
Bytes int64 `protobuf:"varint,4,opt,name=bytes,proto3" json:"bytes,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse_NodeStat) Reset() {
|
||
*x = ComposeAdminDashboardResponse_NodeStat{}
|
||
mi := &file_service_admin_proto_msgTypes[33]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse_NodeStat) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ComposeAdminDashboardResponse_NodeStat) ProtoMessage() {}
|
||
|
||
func (x *ComposeAdminDashboardResponse_NodeStat) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_admin_proto_msgTypes[33]
|
||
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 ComposeAdminDashboardResponse_NodeStat.ProtoReflect.Descriptor instead.
|
||
func (*ComposeAdminDashboardResponse_NodeStat) Descriptor() ([]byte, []int) {
|
||
return file_service_admin_proto_rawDescGZIP(), []int{28, 2}
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse_NodeStat) GetNodeId() int64 {
|
||
if x != nil {
|
||
return x.NodeId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse_NodeStat) GetNodeName() string {
|
||
if x != nil {
|
||
return x.NodeName
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse_NodeStat) GetCountRequests() int64 {
|
||
if x != nil {
|
||
return x.CountRequests
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse_NodeStat) GetBytes() int64 {
|
||
if x != nil {
|
||
return x.Bytes
|
||
}
|
||
return 0
|
||
}
|
||
|
||
type ComposeAdminDashboardResponse_DomainStat struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
ServerId int64 `protobuf:"varint,1,opt,name=serverId,proto3" json:"serverId,omitempty"`
|
||
Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
|
||
CountRequests int64 `protobuf:"varint,3,opt,name=countRequests,proto3" json:"countRequests,omitempty"`
|
||
Bytes int64 `protobuf:"varint,4,opt,name=bytes,proto3" json:"bytes,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse_DomainStat) Reset() {
|
||
*x = ComposeAdminDashboardResponse_DomainStat{}
|
||
mi := &file_service_admin_proto_msgTypes[34]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse_DomainStat) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ComposeAdminDashboardResponse_DomainStat) ProtoMessage() {}
|
||
|
||
func (x *ComposeAdminDashboardResponse_DomainStat) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_admin_proto_msgTypes[34]
|
||
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 ComposeAdminDashboardResponse_DomainStat.ProtoReflect.Descriptor instead.
|
||
func (*ComposeAdminDashboardResponse_DomainStat) Descriptor() ([]byte, []int) {
|
||
return file_service_admin_proto_rawDescGZIP(), []int{28, 3}
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse_DomainStat) GetServerId() int64 {
|
||
if x != nil {
|
||
return x.ServerId
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse_DomainStat) GetDomain() string {
|
||
if x != nil {
|
||
return x.Domain
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse_DomainStat) GetCountRequests() int64 {
|
||
if x != nil {
|
||
return x.CountRequests
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse_DomainStat) GetBytes() int64 {
|
||
if x != nil {
|
||
return x.Bytes
|
||
}
|
||
return 0
|
||
}
|
||
|
||
type ComposeAdminDashboardResponse_CountryStat struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
CountryName string `protobuf:"bytes,1,opt,name=countryName,proto3" json:"countryName,omitempty"`
|
||
Bytes int64 `protobuf:"varint,2,opt,name=bytes,proto3" json:"bytes,omitempty"`
|
||
CountRequests int64 `protobuf:"varint,3,opt,name=countRequests,proto3" json:"countRequests,omitempty"`
|
||
Percent float32 `protobuf:"fixed32,4,opt,name=percent,proto3" json:"percent,omitempty"` // 流量占比
|
||
CountAttackRequests int64 `protobuf:"varint,6,opt,name=countAttackRequests,proto3" json:"countAttackRequests,omitempty"`
|
||
AttackBytes int64 `protobuf:"varint,7,opt,name=attackBytes,proto3" json:"attackBytes,omitempty"`
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse_CountryStat) Reset() {
|
||
*x = ComposeAdminDashboardResponse_CountryStat{}
|
||
mi := &file_service_admin_proto_msgTypes[35]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse_CountryStat) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ComposeAdminDashboardResponse_CountryStat) ProtoMessage() {}
|
||
|
||
func (x *ComposeAdminDashboardResponse_CountryStat) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_admin_proto_msgTypes[35]
|
||
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 ComposeAdminDashboardResponse_CountryStat.ProtoReflect.Descriptor instead.
|
||
func (*ComposeAdminDashboardResponse_CountryStat) Descriptor() ([]byte, []int) {
|
||
return file_service_admin_proto_rawDescGZIP(), []int{28, 4}
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse_CountryStat) GetCountryName() string {
|
||
if x != nil {
|
||
return x.CountryName
|
||
}
|
||
return ""
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse_CountryStat) GetBytes() int64 {
|
||
if x != nil {
|
||
return x.Bytes
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse_CountryStat) GetCountRequests() int64 {
|
||
if x != nil {
|
||
return x.CountRequests
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse_CountryStat) GetPercent() float32 {
|
||
if x != nil {
|
||
return x.Percent
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse_CountryStat) GetCountAttackRequests() int64 {
|
||
if x != nil {
|
||
return x.CountAttackRequests
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse_CountryStat) GetAttackBytes() int64 {
|
||
if x != nil {
|
||
return x.AttackBytes
|
||
}
|
||
return 0
|
||
}
|
||
|
||
// 节点升级信息
|
||
type ComposeAdminDashboardResponse_UpgradeInfo struct {
|
||
state protoimpl.MessageState `protogen:"open.v1"`
|
||
CountNodes int64 `protobuf:"varint,1,opt,name=countNodes,proto3" json:"countNodes,omitempty"` // 节点数
|
||
NewVersion string `protobuf:"bytes,2,opt,name=newVersion,proto3" json:"newVersion,omitempty"` // 新版本
|
||
unknownFields protoimpl.UnknownFields
|
||
sizeCache protoimpl.SizeCache
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse_UpgradeInfo) Reset() {
|
||
*x = ComposeAdminDashboardResponse_UpgradeInfo{}
|
||
mi := &file_service_admin_proto_msgTypes[36]
|
||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||
ms.StoreMessageInfo(mi)
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse_UpgradeInfo) String() string {
|
||
return protoimpl.X.MessageStringOf(x)
|
||
}
|
||
|
||
func (*ComposeAdminDashboardResponse_UpgradeInfo) ProtoMessage() {}
|
||
|
||
func (x *ComposeAdminDashboardResponse_UpgradeInfo) ProtoReflect() protoreflect.Message {
|
||
mi := &file_service_admin_proto_msgTypes[36]
|
||
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 ComposeAdminDashboardResponse_UpgradeInfo.ProtoReflect.Descriptor instead.
|
||
func (*ComposeAdminDashboardResponse_UpgradeInfo) Descriptor() ([]byte, []int) {
|
||
return file_service_admin_proto_rawDescGZIP(), []int{28, 5}
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse_UpgradeInfo) GetCountNodes() int64 {
|
||
if x != nil {
|
||
return x.CountNodes
|
||
}
|
||
return 0
|
||
}
|
||
|
||
func (x *ComposeAdminDashboardResponse_UpgradeInfo) GetNewVersion() string {
|
||
if x != nil {
|
||
return x.NewVersion
|
||
}
|
||
return ""
|
||
}
|
||
|
||
var File_service_admin_proto protoreflect.FileDescriptor
|
||
|
||
const file_service_admin_proto_rawDesc = "" +
|
||
"\n" +
|
||
"\x13service_admin.proto\x12\x02pb\x1a\x18models/model_admin.proto\x1a\x1dmodels/model_admin_list.proto\x1a\x19models/rpc_messages.proto\x1a\x1fservice_server_stat_board.proto\"K\n" +
|
||
"\x11LoginAdminRequest\x12\x1a\n" +
|
||
"\busername\x18\x01 \x01(\tR\busername\x12\x1a\n" +
|
||
"\bpassword\x18\x02 \x01(\tR\bpassword\"\\\n" +
|
||
"\x12LoginAdminResponse\x12\x18\n" +
|
||
"\aadminId\x18\x01 \x01(\x03R\aadminId\x12\x12\n" +
|
||
"\x04isOk\x18\x02 \x01(\bR\x04isOk\x12\x18\n" +
|
||
"\amessage\x18\x03 \x01(\tR\amessage\"3\n" +
|
||
"\x17CheckAdminExistsRequest\x12\x18\n" +
|
||
"\aadminId\x18\x01 \x01(\x03R\aadminId\"H\n" +
|
||
"\x18CheckAdminExistsResponse\x12\x12\n" +
|
||
"\x04isOk\x18\x01 \x01(\bR\x04isOk\x12\x18\n" +
|
||
"\amessage\x18\x02 \x01(\tR\amessage\"Q\n" +
|
||
"\x19CheckAdminUsernameRequest\x12\x18\n" +
|
||
"\aadminId\x18\x01 \x01(\x03R\aadminId\x12\x1a\n" +
|
||
"\busername\x18\x02 \x01(\tR\busername\"4\n" +
|
||
"\x1aCheckAdminUsernameResponse\x12\x16\n" +
|
||
"\x06exists\x18\x01 \x01(\bR\x06exists\":\n" +
|
||
"\x1cFindAdminWithUsernameRequest\x12\x1a\n" +
|
||
"\busername\x18\x01 \x01(\tR\busername\"@\n" +
|
||
"\x1dFindAdminWithUsernameResponse\x12\x1f\n" +
|
||
"\x05admin\x18\x01 \x01(\v2\t.pb.AdminR\x05admin\"4\n" +
|
||
"\x18FindAdminFullnameRequest\x12\x18\n" +
|
||
"\aadminId\x18\x01 \x01(\x03R\aadminId\"7\n" +
|
||
"\x19FindAdminFullnameResponse\x12\x1a\n" +
|
||
"\bfullname\x18\x01 \x01(\tR\bfullname\"3\n" +
|
||
"\x17FindEnabledAdminRequest\x12\x18\n" +
|
||
"\aadminId\x18\x01 \x01(\x03R\aadminId\";\n" +
|
||
"\x18FindEnabledAdminResponse\x12\x1f\n" +
|
||
"\x05admin\x18\x01 \x01(\v2\t.pb.AdminR\x05admin\"T\n" +
|
||
"\x1aCreateOrUpdateAdminRequest\x12\x1a\n" +
|
||
"\busername\x18\x01 \x01(\tR\busername\x12\x1a\n" +
|
||
"\bpassword\x18\x02 \x01(\tR\bpassword\"7\n" +
|
||
"\x1bCreateOrUpdateAdminResponse\x12\x18\n" +
|
||
"\aadminId\x18\x01 \x01(\x03R\aadminId\"N\n" +
|
||
"\x16UpdateAdminInfoRequest\x12\x18\n" +
|
||
"\aadminId\x18\x01 \x01(\x03R\aadminId\x12\x1a\n" +
|
||
"\bfullname\x18\x02 \x01(\tR\bfullname\"k\n" +
|
||
"\x17UpdateAdminLoginRequest\x12\x18\n" +
|
||
"\aadminId\x18\x01 \x01(\x03R\aadminId\x12\x1a\n" +
|
||
"\busername\x18\x02 \x01(\tR\busername\x12\x1a\n" +
|
||
"\bpassword\x18\x03 \x01(\tR\bpassword\"\x1c\n" +
|
||
"\x1aFindAllAdminModulesRequest\"V\n" +
|
||
"\x1bFindAllAdminModulesResponse\x127\n" +
|
||
"\fadminModules\x18\x01 \x03(\v2\x13.pb.AdminModuleListR\fadminModules\"\xc0\x01\n" +
|
||
"\x12CreateAdminRequest\x12\x1a\n" +
|
||
"\busername\x18\x01 \x01(\tR\busername\x12\x1a\n" +
|
||
"\bpassword\x18\x02 \x01(\tR\bpassword\x12\x1a\n" +
|
||
"\bfullname\x18\x03 \x01(\tR\bfullname\x12 \n" +
|
||
"\vmodulesJSON\x18\x04 \x01(\fR\vmodulesJSON\x12\x18\n" +
|
||
"\aisSuper\x18\x05 \x01(\bR\aisSuper\x12\x1a\n" +
|
||
"\bcanLogin\x18\x06 \x01(\bR\bcanLogin\"/\n" +
|
||
"\x13CreateAdminResponse\x12\x18\n" +
|
||
"\aadminId\x18\x01 \x01(\x03R\aadminId\"\xee\x01\n" +
|
||
"\x12UpdateAdminRequest\x12\x18\n" +
|
||
"\aadminId\x18\x01 \x01(\x03R\aadminId\x12\x1a\n" +
|
||
"\busername\x18\x02 \x01(\tR\busername\x12\x1a\n" +
|
||
"\bpassword\x18\x03 \x01(\tR\bpassword\x12\x1a\n" +
|
||
"\bfullname\x18\x04 \x01(\tR\bfullname\x12 \n" +
|
||
"\vmodulesJSON\x18\x05 \x01(\fR\vmodulesJSON\x12\x18\n" +
|
||
"\aisSuper\x18\x06 \x01(\bR\aisSuper\x12\x12\n" +
|
||
"\x04isOn\x18\a \x01(\bR\x04isOn\x12\x1a\n" +
|
||
"\bcanLogin\x18\b \x01(\bR\bcanLogin\"b\n" +
|
||
"\x1cCountAllEnabledAdminsRequest\x12\x18\n" +
|
||
"\akeyword\x18\x01 \x01(\tR\akeyword\x12(\n" +
|
||
"\x0fhasWeakPassword\x18\x02 \x01(\bR\x0fhasWeakPassword\"\x8a\x01\n" +
|
||
"\x18ListEnabledAdminsRequest\x12\x18\n" +
|
||
"\akeyword\x18\x03 \x01(\tR\akeyword\x12(\n" +
|
||
"\x0fhasWeakPassword\x18\x04 \x01(\bR\x0fhasWeakPassword\x12\x16\n" +
|
||
"\x06offset\x18\x01 \x01(\x03R\x06offset\x12\x12\n" +
|
||
"\x04size\x18\x02 \x01(\x03R\x04size\">\n" +
|
||
"\x19ListEnabledAdminsResponse\x12!\n" +
|
||
"\x06admins\x18\x01 \x03(\v2\t.pb.AdminR\x06admins\".\n" +
|
||
"\x12DeleteAdminRequest\x12\x18\n" +
|
||
"\aadminId\x18\x01 \x01(\x03R\aadminId\">\n" +
|
||
" CheckAdminOTPWithUsernameRequest\x12\x1a\n" +
|
||
"\busername\x18\x01 \x01(\tR\busername\"C\n" +
|
||
"!CheckAdminOTPWithUsernameResponse\x12\x1e\n" +
|
||
"\n" +
|
||
"requireOTP\x18\x01 \x01(\bR\n" +
|
||
"requireOTP\">\n" +
|
||
"\x1cComposeAdminDashboardRequest\x12\x1e\n" +
|
||
"\n" +
|
||
"apiVersion\x18\x01 \x01(\tR\n" +
|
||
"apiVersion\"\xfc\x15\n" +
|
||
"\x1dComposeAdminDashboardResponse\x12,\n" +
|
||
"\x11countNodeClusters\x18\x01 \x01(\x03R\x11countNodeClusters\x12\x1e\n" +
|
||
"\n" +
|
||
"countNodes\x18\x02 \x01(\x03R\n" +
|
||
"countNodes\x12,\n" +
|
||
"\x11countOfflineNodes\x18\t \x01(\x03R\x11countOfflineNodes\x12\"\n" +
|
||
"\fcountServers\x18\x03 \x01(\x03R\fcountServers\x122\n" +
|
||
"\x14countAuditingServers\x18\r \x01(\x03R\x14countAuditingServers\x12\x1e\n" +
|
||
"\n" +
|
||
"countUsers\x18\x04 \x01(\x03R\n" +
|
||
"countUsers\x12$\n" +
|
||
"\rcountAPINodes\x18\x05 \x01(\x03R\rcountAPINodes\x122\n" +
|
||
"\x14countOfflineAPINodes\x18\n" +
|
||
" \x01(\x03R\x14countOfflineAPINodes\x12\"\n" +
|
||
"\fcountDBNodes\x18\x06 \x01(\x03R\fcountDBNodes\x120\n" +
|
||
"\x13countOfflineDBNodes\x18\v \x01(\x03R\x13countOfflineDBNodes\x12&\n" +
|
||
"\x0ecountUserNodes\x18\a \x01(\x03R\x0ecountUserNodes\x124\n" +
|
||
"\x15countOfflineUserNodes\x18\f \x01(\x03R\x15countOfflineUserNodes\x122\n" +
|
||
"\x14defaultNodeClusterId\x18\b \x01(\x03R\x14defaultNodeClusterId\x12`\n" +
|
||
"\x11dailyTrafficStats\x18\x1e \x03(\v22.pb.ComposeAdminDashboardResponse.DailyTrafficStatR\x11dailyTrafficStats\x12c\n" +
|
||
"\x12hourlyTrafficStats\x18\x1f \x03(\v23.pb.ComposeAdminDashboardResponse.HourlyTrafficStatR\x12hourlyTrafficStats\x12W\n" +
|
||
"\x0fnodeUpgradeInfo\x18 \x01(\v2-.pb.ComposeAdminDashboardResponse.UpgradeInfoR\x0fnodeUpgradeInfo\x12]\n" +
|
||
"\x12apiNodeUpgradeInfo\x18! \x01(\v2-.pb.ComposeAdminDashboardResponse.UpgradeInfoR\x12apiNodeUpgradeInfo\x12_\n" +
|
||
"\x13userNodeUpgradeInfo\x18# \x01(\v2-.pb.ComposeAdminDashboardResponse.UpgradeInfoR\x13userNodeUpgradeInfo\x12i\n" +
|
||
"\x18authorityNodeUpgradeInfo\x18$ \x01(\v2-.pb.ComposeAdminDashboardResponse.UpgradeInfoR\x18authorityNodeUpgradeInfo\x12[\n" +
|
||
"\x11nsNodeUpgradeInfo\x18% \x01(\v2-.pb.ComposeAdminDashboardResponse.UpgradeInfoR\x11nsNodeUpgradeInfo\x12c\n" +
|
||
"\x15reportNodeUpgradeInfo\x18) \x01(\v2-.pb.ComposeAdminDashboardResponse.UpgradeInfoR\x15reportNodeUpgradeInfo\x12N\n" +
|
||
"\ftopNodeStats\x18& \x03(\v2*.pb.ComposeAdminDashboardResponse.NodeStatR\ftopNodeStats\x12T\n" +
|
||
"\x0etopDomainStats\x18' \x03(\v2,.pb.ComposeAdminDashboardResponse.DomainStatR\x0etopDomainStats\x12W\n" +
|
||
"\x0ftopCountryStats\x18* \x03(\v2-.pb.ComposeAdminDashboardResponse.CountryStatR\x0ftopCountryStats\x12?\n" +
|
||
"\x10metricDataCharts\x18( \x03(\v2\x13.pb.MetricDataChartR\x10metricDataCharts\x1a\xa4\x02\n" +
|
||
"\x10DailyTrafficStat\x12\x10\n" +
|
||
"\x03day\x18\x01 \x01(\tR\x03day\x12\x14\n" +
|
||
"\x05bytes\x18\x02 \x01(\x03R\x05bytes\x12 \n" +
|
||
"\vcachedBytes\x18\x03 \x01(\x03R\vcachedBytes\x12$\n" +
|
||
"\rcountRequests\x18\x04 \x01(\x03R\rcountRequests\x120\n" +
|
||
"\x13countCachedRequests\x18\x05 \x01(\x03R\x13countCachedRequests\x120\n" +
|
||
"\x13countAttackRequests\x18\x06 \x01(\x03R\x13countAttackRequests\x12 \n" +
|
||
"\vattackBytes\x18\a \x01(\x03R\vattackBytes\x12\x1a\n" +
|
||
"\bcountIPs\x18\b \x01(\x03R\bcountIPs\x1a\x8b\x02\n" +
|
||
"\x11HourlyTrafficStat\x12\x12\n" +
|
||
"\x04hour\x18\x01 \x01(\tR\x04hour\x12\x14\n" +
|
||
"\x05bytes\x18\x02 \x01(\x03R\x05bytes\x12 \n" +
|
||
"\vcachedBytes\x18\x03 \x01(\x03R\vcachedBytes\x12$\n" +
|
||
"\rcountRequests\x18\x04 \x01(\x03R\rcountRequests\x120\n" +
|
||
"\x13countCachedRequests\x18\x05 \x01(\x03R\x13countCachedRequests\x120\n" +
|
||
"\x13countAttackRequests\x18\x06 \x01(\x03R\x13countAttackRequests\x12 \n" +
|
||
"\vattackBytes\x18\a \x01(\x03R\vattackBytes\x1az\n" +
|
||
"\bNodeStat\x12\x16\n" +
|
||
"\x06nodeId\x18\x01 \x01(\x03R\x06nodeId\x12\x1a\n" +
|
||
"\bnodeName\x18\x02 \x01(\tR\bnodeName\x12$\n" +
|
||
"\rcountRequests\x18\x03 \x01(\x03R\rcountRequests\x12\x14\n" +
|
||
"\x05bytes\x18\x04 \x01(\x03R\x05bytes\x1a|\n" +
|
||
"\n" +
|
||
"DomainStat\x12\x1a\n" +
|
||
"\bserverId\x18\x01 \x01(\x03R\bserverId\x12\x16\n" +
|
||
"\x06domain\x18\x02 \x01(\tR\x06domain\x12$\n" +
|
||
"\rcountRequests\x18\x03 \x01(\x03R\rcountRequests\x12\x14\n" +
|
||
"\x05bytes\x18\x04 \x01(\x03R\x05bytes\x1a\xd9\x01\n" +
|
||
"\vCountryStat\x12 \n" +
|
||
"\vcountryName\x18\x01 \x01(\tR\vcountryName\x12\x14\n" +
|
||
"\x05bytes\x18\x02 \x01(\x03R\x05bytes\x12$\n" +
|
||
"\rcountRequests\x18\x03 \x01(\x03R\rcountRequests\x12\x18\n" +
|
||
"\apercent\x18\x04 \x01(\x02R\apercent\x120\n" +
|
||
"\x13countAttackRequests\x18\x06 \x01(\x03R\x13countAttackRequests\x12 \n" +
|
||
"\vattackBytes\x18\a \x01(\x03R\vattackBytes\x1aM\n" +
|
||
"\vUpgradeInfo\x12\x1e\n" +
|
||
"\n" +
|
||
"countNodes\x18\x01 \x01(\x03R\n" +
|
||
"countNodes\x12\x1e\n" +
|
||
"\n" +
|
||
"newVersion\x18\x02 \x01(\tR\n" +
|
||
"newVersion\"I\n" +
|
||
"\x17UpdateAdminThemeRequest\x12\x18\n" +
|
||
"\aadminId\x18\x01 \x01(\x03R\aadminId\x12\x14\n" +
|
||
"\x05theme\x18\x02 \x01(\tR\x05theme\"4\n" +
|
||
"\x16UpdateAdminLangRequest\x12\x1a\n" +
|
||
"\blangCode\x18\x01 \x01(\tR\blangCode2\xb7\v\n" +
|
||
"\fAdminService\x12;\n" +
|
||
"\n" +
|
||
"loginAdmin\x12\x15.pb.LoginAdminRequest\x1a\x16.pb.LoginAdminResponse\x12M\n" +
|
||
"\x10checkAdminExists\x12\x1b.pb.CheckAdminExistsRequest\x1a\x1c.pb.CheckAdminExistsResponse\x12S\n" +
|
||
"\x12checkAdminUsername\x12\x1d.pb.CheckAdminUsernameRequest\x1a\x1e.pb.CheckAdminUsernameResponse\x12\\\n" +
|
||
"\x15findAdminWithUsername\x12 .pb.FindAdminWithUsernameRequest\x1a!.pb.FindAdminWithUsernameResponse\x12P\n" +
|
||
"\x11findAdminFullname\x12\x1c.pb.FindAdminFullnameRequest\x1a\x1d.pb.FindAdminFullnameResponse\x12M\n" +
|
||
"\x10findEnabledAdmin\x12\x1b.pb.FindEnabledAdminRequest\x1a\x1c.pb.FindEnabledAdminResponse\x12V\n" +
|
||
"\x13createOrUpdateAdmin\x12\x1e.pb.CreateOrUpdateAdminRequest\x1a\x1f.pb.CreateOrUpdateAdminResponse\x12=\n" +
|
||
"\x0fupdateAdminInfo\x12\x1a.pb.UpdateAdminInfoRequest\x1a\x0e.pb.RPCSuccess\x12?\n" +
|
||
"\x10updateAdminLogin\x12\x1b.pb.UpdateAdminLoginRequest\x1a\x0e.pb.RPCSuccess\x12V\n" +
|
||
"\x13findAllAdminModules\x12\x1e.pb.FindAllAdminModulesRequest\x1a\x1f.pb.FindAllAdminModulesResponse\x12>\n" +
|
||
"\vcreateAdmin\x12\x16.pb.CreateAdminRequest\x1a\x17.pb.CreateAdminResponse\x125\n" +
|
||
"\vupdateAdmin\x12\x16.pb.UpdateAdminRequest\x1a\x0e.pb.RPCSuccess\x12O\n" +
|
||
"\x15countAllEnabledAdmins\x12 .pb.CountAllEnabledAdminsRequest\x1a\x14.pb.RPCCountResponse\x12P\n" +
|
||
"\x11listEnabledAdmins\x12\x1c.pb.ListEnabledAdminsRequest\x1a\x1d.pb.ListEnabledAdminsResponse\x125\n" +
|
||
"\vdeleteAdmin\x12\x16.pb.DeleteAdminRequest\x1a\x0e.pb.RPCSuccess\x12h\n" +
|
||
"\x19checkAdminOTPWithUsername\x12$.pb.CheckAdminOTPWithUsernameRequest\x1a%.pb.CheckAdminOTPWithUsernameResponse\x12\\\n" +
|
||
"\x15composeAdminDashboard\x12 .pb.ComposeAdminDashboardRequest\x1a!.pb.ComposeAdminDashboardResponse\x12?\n" +
|
||
"\x10updateAdminTheme\x12\x1b.pb.UpdateAdminThemeRequest\x1a\x0e.pb.RPCSuccess\x12=\n" +
|
||
"\x0fupdateAdminLang\x12\x1a.pb.UpdateAdminLangRequest\x1a\x0e.pb.RPCSuccessB\x06Z\x04./pbb\x06proto3"
|
||
|
||
var (
|
||
file_service_admin_proto_rawDescOnce sync.Once
|
||
file_service_admin_proto_rawDescData []byte
|
||
)
|
||
|
||
func file_service_admin_proto_rawDescGZIP() []byte {
|
||
file_service_admin_proto_rawDescOnce.Do(func() {
|
||
file_service_admin_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_service_admin_proto_rawDesc), len(file_service_admin_proto_rawDesc)))
|
||
})
|
||
return file_service_admin_proto_rawDescData
|
||
}
|
||
|
||
var file_service_admin_proto_msgTypes = make([]protoimpl.MessageInfo, 37)
|
||
var file_service_admin_proto_goTypes = []any{
|
||
(*LoginAdminRequest)(nil), // 0: pb.LoginAdminRequest
|
||
(*LoginAdminResponse)(nil), // 1: pb.LoginAdminResponse
|
||
(*CheckAdminExistsRequest)(nil), // 2: pb.CheckAdminExistsRequest
|
||
(*CheckAdminExistsResponse)(nil), // 3: pb.CheckAdminExistsResponse
|
||
(*CheckAdminUsernameRequest)(nil), // 4: pb.CheckAdminUsernameRequest
|
||
(*CheckAdminUsernameResponse)(nil), // 5: pb.CheckAdminUsernameResponse
|
||
(*FindAdminWithUsernameRequest)(nil), // 6: pb.FindAdminWithUsernameRequest
|
||
(*FindAdminWithUsernameResponse)(nil), // 7: pb.FindAdminWithUsernameResponse
|
||
(*FindAdminFullnameRequest)(nil), // 8: pb.FindAdminFullnameRequest
|
||
(*FindAdminFullnameResponse)(nil), // 9: pb.FindAdminFullnameResponse
|
||
(*FindEnabledAdminRequest)(nil), // 10: pb.FindEnabledAdminRequest
|
||
(*FindEnabledAdminResponse)(nil), // 11: pb.FindEnabledAdminResponse
|
||
(*CreateOrUpdateAdminRequest)(nil), // 12: pb.CreateOrUpdateAdminRequest
|
||
(*CreateOrUpdateAdminResponse)(nil), // 13: pb.CreateOrUpdateAdminResponse
|
||
(*UpdateAdminInfoRequest)(nil), // 14: pb.UpdateAdminInfoRequest
|
||
(*UpdateAdminLoginRequest)(nil), // 15: pb.UpdateAdminLoginRequest
|
||
(*FindAllAdminModulesRequest)(nil), // 16: pb.FindAllAdminModulesRequest
|
||
(*FindAllAdminModulesResponse)(nil), // 17: pb.FindAllAdminModulesResponse
|
||
(*CreateAdminRequest)(nil), // 18: pb.CreateAdminRequest
|
||
(*CreateAdminResponse)(nil), // 19: pb.CreateAdminResponse
|
||
(*UpdateAdminRequest)(nil), // 20: pb.UpdateAdminRequest
|
||
(*CountAllEnabledAdminsRequest)(nil), // 21: pb.CountAllEnabledAdminsRequest
|
||
(*ListEnabledAdminsRequest)(nil), // 22: pb.ListEnabledAdminsRequest
|
||
(*ListEnabledAdminsResponse)(nil), // 23: pb.ListEnabledAdminsResponse
|
||
(*DeleteAdminRequest)(nil), // 24: pb.DeleteAdminRequest
|
||
(*CheckAdminOTPWithUsernameRequest)(nil), // 25: pb.CheckAdminOTPWithUsernameRequest
|
||
(*CheckAdminOTPWithUsernameResponse)(nil), // 26: pb.CheckAdminOTPWithUsernameResponse
|
||
(*ComposeAdminDashboardRequest)(nil), // 27: pb.ComposeAdminDashboardRequest
|
||
(*ComposeAdminDashboardResponse)(nil), // 28: pb.ComposeAdminDashboardResponse
|
||
(*UpdateAdminThemeRequest)(nil), // 29: pb.UpdateAdminThemeRequest
|
||
(*UpdateAdminLangRequest)(nil), // 30: pb.UpdateAdminLangRequest
|
||
(*ComposeAdminDashboardResponse_DailyTrafficStat)(nil), // 31: pb.ComposeAdminDashboardResponse.DailyTrafficStat
|
||
(*ComposeAdminDashboardResponse_HourlyTrafficStat)(nil), // 32: pb.ComposeAdminDashboardResponse.HourlyTrafficStat
|
||
(*ComposeAdminDashboardResponse_NodeStat)(nil), // 33: pb.ComposeAdminDashboardResponse.NodeStat
|
||
(*ComposeAdminDashboardResponse_DomainStat)(nil), // 34: pb.ComposeAdminDashboardResponse.DomainStat
|
||
(*ComposeAdminDashboardResponse_CountryStat)(nil), // 35: pb.ComposeAdminDashboardResponse.CountryStat
|
||
(*ComposeAdminDashboardResponse_UpgradeInfo)(nil), // 36: pb.ComposeAdminDashboardResponse.UpgradeInfo
|
||
(*Admin)(nil), // 37: pb.Admin
|
||
(*AdminModuleList)(nil), // 38: pb.AdminModuleList
|
||
(*MetricDataChart)(nil), // 39: pb.MetricDataChart
|
||
(*RPCSuccess)(nil), // 40: pb.RPCSuccess
|
||
(*RPCCountResponse)(nil), // 41: pb.RPCCountResponse
|
||
}
|
||
var file_service_admin_proto_depIdxs = []int32{
|
||
37, // 0: pb.FindAdminWithUsernameResponse.admin:type_name -> pb.Admin
|
||
37, // 1: pb.FindEnabledAdminResponse.admin:type_name -> pb.Admin
|
||
38, // 2: pb.FindAllAdminModulesResponse.adminModules:type_name -> pb.AdminModuleList
|
||
37, // 3: pb.ListEnabledAdminsResponse.admins:type_name -> pb.Admin
|
||
31, // 4: pb.ComposeAdminDashboardResponse.dailyTrafficStats:type_name -> pb.ComposeAdminDashboardResponse.DailyTrafficStat
|
||
32, // 5: pb.ComposeAdminDashboardResponse.hourlyTrafficStats:type_name -> pb.ComposeAdminDashboardResponse.HourlyTrafficStat
|
||
36, // 6: pb.ComposeAdminDashboardResponse.nodeUpgradeInfo:type_name -> pb.ComposeAdminDashboardResponse.UpgradeInfo
|
||
36, // 7: pb.ComposeAdminDashboardResponse.apiNodeUpgradeInfo:type_name -> pb.ComposeAdminDashboardResponse.UpgradeInfo
|
||
36, // 8: pb.ComposeAdminDashboardResponse.userNodeUpgradeInfo:type_name -> pb.ComposeAdminDashboardResponse.UpgradeInfo
|
||
36, // 9: pb.ComposeAdminDashboardResponse.authorityNodeUpgradeInfo:type_name -> pb.ComposeAdminDashboardResponse.UpgradeInfo
|
||
36, // 10: pb.ComposeAdminDashboardResponse.nsNodeUpgradeInfo:type_name -> pb.ComposeAdminDashboardResponse.UpgradeInfo
|
||
36, // 11: pb.ComposeAdminDashboardResponse.reportNodeUpgradeInfo:type_name -> pb.ComposeAdminDashboardResponse.UpgradeInfo
|
||
33, // 12: pb.ComposeAdminDashboardResponse.topNodeStats:type_name -> pb.ComposeAdminDashboardResponse.NodeStat
|
||
34, // 13: pb.ComposeAdminDashboardResponse.topDomainStats:type_name -> pb.ComposeAdminDashboardResponse.DomainStat
|
||
35, // 14: pb.ComposeAdminDashboardResponse.topCountryStats:type_name -> pb.ComposeAdminDashboardResponse.CountryStat
|
||
39, // 15: pb.ComposeAdminDashboardResponse.metricDataCharts:type_name -> pb.MetricDataChart
|
||
0, // 16: pb.AdminService.loginAdmin:input_type -> pb.LoginAdminRequest
|
||
2, // 17: pb.AdminService.checkAdminExists:input_type -> pb.CheckAdminExistsRequest
|
||
4, // 18: pb.AdminService.checkAdminUsername:input_type -> pb.CheckAdminUsernameRequest
|
||
6, // 19: pb.AdminService.findAdminWithUsername:input_type -> pb.FindAdminWithUsernameRequest
|
||
8, // 20: pb.AdminService.findAdminFullname:input_type -> pb.FindAdminFullnameRequest
|
||
10, // 21: pb.AdminService.findEnabledAdmin:input_type -> pb.FindEnabledAdminRequest
|
||
12, // 22: pb.AdminService.createOrUpdateAdmin:input_type -> pb.CreateOrUpdateAdminRequest
|
||
14, // 23: pb.AdminService.updateAdminInfo:input_type -> pb.UpdateAdminInfoRequest
|
||
15, // 24: pb.AdminService.updateAdminLogin:input_type -> pb.UpdateAdminLoginRequest
|
||
16, // 25: pb.AdminService.findAllAdminModules:input_type -> pb.FindAllAdminModulesRequest
|
||
18, // 26: pb.AdminService.createAdmin:input_type -> pb.CreateAdminRequest
|
||
20, // 27: pb.AdminService.updateAdmin:input_type -> pb.UpdateAdminRequest
|
||
21, // 28: pb.AdminService.countAllEnabledAdmins:input_type -> pb.CountAllEnabledAdminsRequest
|
||
22, // 29: pb.AdminService.listEnabledAdmins:input_type -> pb.ListEnabledAdminsRequest
|
||
24, // 30: pb.AdminService.deleteAdmin:input_type -> pb.DeleteAdminRequest
|
||
25, // 31: pb.AdminService.checkAdminOTPWithUsername:input_type -> pb.CheckAdminOTPWithUsernameRequest
|
||
27, // 32: pb.AdminService.composeAdminDashboard:input_type -> pb.ComposeAdminDashboardRequest
|
||
29, // 33: pb.AdminService.updateAdminTheme:input_type -> pb.UpdateAdminThemeRequest
|
||
30, // 34: pb.AdminService.updateAdminLang:input_type -> pb.UpdateAdminLangRequest
|
||
1, // 35: pb.AdminService.loginAdmin:output_type -> pb.LoginAdminResponse
|
||
3, // 36: pb.AdminService.checkAdminExists:output_type -> pb.CheckAdminExistsResponse
|
||
5, // 37: pb.AdminService.checkAdminUsername:output_type -> pb.CheckAdminUsernameResponse
|
||
7, // 38: pb.AdminService.findAdminWithUsername:output_type -> pb.FindAdminWithUsernameResponse
|
||
9, // 39: pb.AdminService.findAdminFullname:output_type -> pb.FindAdminFullnameResponse
|
||
11, // 40: pb.AdminService.findEnabledAdmin:output_type -> pb.FindEnabledAdminResponse
|
||
13, // 41: pb.AdminService.createOrUpdateAdmin:output_type -> pb.CreateOrUpdateAdminResponse
|
||
40, // 42: pb.AdminService.updateAdminInfo:output_type -> pb.RPCSuccess
|
||
40, // 43: pb.AdminService.updateAdminLogin:output_type -> pb.RPCSuccess
|
||
17, // 44: pb.AdminService.findAllAdminModules:output_type -> pb.FindAllAdminModulesResponse
|
||
19, // 45: pb.AdminService.createAdmin:output_type -> pb.CreateAdminResponse
|
||
40, // 46: pb.AdminService.updateAdmin:output_type -> pb.RPCSuccess
|
||
41, // 47: pb.AdminService.countAllEnabledAdmins:output_type -> pb.RPCCountResponse
|
||
23, // 48: pb.AdminService.listEnabledAdmins:output_type -> pb.ListEnabledAdminsResponse
|
||
40, // 49: pb.AdminService.deleteAdmin:output_type -> pb.RPCSuccess
|
||
26, // 50: pb.AdminService.checkAdminOTPWithUsername:output_type -> pb.CheckAdminOTPWithUsernameResponse
|
||
28, // 51: pb.AdminService.composeAdminDashboard:output_type -> pb.ComposeAdminDashboardResponse
|
||
40, // 52: pb.AdminService.updateAdminTheme:output_type -> pb.RPCSuccess
|
||
40, // 53: pb.AdminService.updateAdminLang:output_type -> pb.RPCSuccess
|
||
35, // [35:54] is the sub-list for method output_type
|
||
16, // [16:35] is the sub-list for method input_type
|
||
16, // [16:16] is the sub-list for extension type_name
|
||
16, // [16:16] is the sub-list for extension extendee
|
||
0, // [0:16] is the sub-list for field type_name
|
||
}
|
||
|
||
func init() { file_service_admin_proto_init() }
|
||
func file_service_admin_proto_init() {
|
||
if File_service_admin_proto != nil {
|
||
return
|
||
}
|
||
file_models_model_admin_proto_init()
|
||
file_models_model_admin_list_proto_init()
|
||
file_models_rpc_messages_proto_init()
|
||
file_service_server_stat_board_proto_init()
|
||
type x struct{}
|
||
out := protoimpl.TypeBuilder{
|
||
File: protoimpl.DescBuilder{
|
||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_service_admin_proto_rawDesc), len(file_service_admin_proto_rawDesc)),
|
||
NumEnums: 0,
|
||
NumMessages: 37,
|
||
NumExtensions: 0,
|
||
NumServices: 1,
|
||
},
|
||
GoTypes: file_service_admin_proto_goTypes,
|
||
DependencyIndexes: file_service_admin_proto_depIdxs,
|
||
MessageInfos: file_service_admin_proto_msgTypes,
|
||
}.Build()
|
||
File_service_admin_proto = out.File
|
||
file_service_admin_proto_goTypes = nil
|
||
file_service_admin_proto_depIdxs = nil
|
||
}
|