2020-09-13 19:27:47 +08:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
|
// versions:
|
|
|
|
|
// protoc-gen-go v1.25.0
|
|
|
|
|
// protoc v3.12.3
|
|
|
|
|
// source: service_admin.proto
|
|
|
|
|
|
|
|
|
|
package pb
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
context "context"
|
|
|
|
|
proto "github.com/golang/protobuf/proto"
|
|
|
|
|
grpc "google.golang.org/grpc"
|
|
|
|
|
codes "google.golang.org/grpc/codes"
|
|
|
|
|
status "google.golang.org/grpc/status"
|
|
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
|
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
|
|
|
reflect "reflect"
|
|
|
|
|
sync "sync"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
const (
|
|
|
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
|
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
|
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
|
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// This is a compile-time assertion that a sufficiently up-to-date version
|
|
|
|
|
// of the legacy proto package is being used.
|
|
|
|
|
const _ = proto.ProtoPackageIsVersion4
|
|
|
|
|
|
2020-10-13 20:05:18 +08:00
|
|
|
// 登录
|
2020-09-13 19:27:47 +08:00
|
|
|
type LoginAdminRequest struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
|
|
|
|
|
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *LoginAdminRequest) Reset() {
|
|
|
|
|
*x = LoginAdminRequest{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
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 protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
return ms
|
|
|
|
|
}
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use 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
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
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"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *LoginAdminResponse) Reset() {
|
|
|
|
|
*x = LoginAdminResponse{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
|
|
|
|
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 protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
return ms
|
|
|
|
|
}
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use 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 ""
|
|
|
|
|
}
|
|
|
|
|
|
2020-10-13 20:05:18 +08:00
|
|
|
// 检查管理员是否存在
|
2020-09-13 19:27:47 +08:00
|
|
|
type CheckAdminExistsRequest struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
AdminId int64 `protobuf:"varint,1,opt,name=adminId,proto3" json:"adminId,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CheckAdminExistsRequest) Reset() {
|
|
|
|
|
*x = CheckAdminExistsRequest{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2020-11-10 20:31:08 +08:00
|
|
|
mi := &file_service_admin_proto_msgTypes[2]
|
2020-09-13 19:27:47 +08:00
|
|
|
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 {
|
2020-11-10 20:31:08 +08:00
|
|
|
mi := &file_service_admin_proto_msgTypes[2]
|
2020-09-13 19:27:47 +08:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
return ms
|
|
|
|
|
}
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use CheckAdminExistsRequest.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*CheckAdminExistsRequest) Descriptor() ([]byte, []int) {
|
2020-11-10 20:31:08 +08:00
|
|
|
return file_service_admin_proto_rawDescGZIP(), []int{2}
|
2020-09-13 19:27:47 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CheckAdminExistsRequest) GetAdminId() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.AdminId
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type CheckAdminExistsResponse struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
IsOk bool `protobuf:"varint,1,opt,name=isOk,proto3" json:"isOk,omitempty"`
|
|
|
|
|
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CheckAdminExistsResponse) Reset() {
|
|
|
|
|
*x = CheckAdminExistsResponse{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2020-11-10 20:31:08 +08:00
|
|
|
mi := &file_service_admin_proto_msgTypes[3]
|
2020-09-13 19:27:47 +08:00
|
|
|
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 {
|
2020-11-10 20:31:08 +08:00
|
|
|
mi := &file_service_admin_proto_msgTypes[3]
|
2020-09-13 19:27:47 +08:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
return ms
|
|
|
|
|
}
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use CheckAdminExistsResponse.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*CheckAdminExistsResponse) Descriptor() ([]byte, []int) {
|
2020-11-10 20:31:08 +08:00
|
|
|
return file_service_admin_proto_rawDescGZIP(), []int{3}
|
2020-09-13 19:27:47 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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 ""
|
|
|
|
|
}
|
|
|
|
|
|
2020-10-14 19:42:28 +08:00
|
|
|
// 检查用户名是否存在
|
|
|
|
|
type CheckAdminUsernameRequest struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
AdminId int64 `protobuf:"varint,1,opt,name=adminId,proto3" json:"adminId,omitempty"`
|
|
|
|
|
Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CheckAdminUsernameRequest) Reset() {
|
|
|
|
|
*x = CheckAdminUsernameRequest{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2020-11-10 20:31:08 +08:00
|
|
|
mi := &file_service_admin_proto_msgTypes[4]
|
2020-10-14 19:42:28 +08:00
|
|
|
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 {
|
2020-11-10 20:31:08 +08:00
|
|
|
mi := &file_service_admin_proto_msgTypes[4]
|
2020-10-14 19:42:28 +08:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
return ms
|
|
|
|
|
}
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use CheckAdminUsernameRequest.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*CheckAdminUsernameRequest) Descriptor() ([]byte, []int) {
|
2020-11-10 20:31:08 +08:00
|
|
|
return file_service_admin_proto_rawDescGZIP(), []int{4}
|
2020-10-14 19:42:28 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
Exists bool `protobuf:"varint,1,opt,name=exists,proto3" json:"exists,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CheckAdminUsernameResponse) Reset() {
|
|
|
|
|
*x = CheckAdminUsernameResponse{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2020-11-10 20:31:08 +08:00
|
|
|
mi := &file_service_admin_proto_msgTypes[5]
|
2020-10-14 19:42:28 +08:00
|
|
|
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 {
|
2020-11-10 20:31:08 +08:00
|
|
|
mi := &file_service_admin_proto_msgTypes[5]
|
2020-10-14 19:42:28 +08:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
return ms
|
|
|
|
|
}
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use CheckAdminUsernameResponse.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*CheckAdminUsernameResponse) Descriptor() ([]byte, []int) {
|
2020-11-10 20:31:08 +08:00
|
|
|
return file_service_admin_proto_rawDescGZIP(), []int{5}
|
2020-10-14 19:42:28 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CheckAdminUsernameResponse) GetExists() bool {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Exists
|
|
|
|
|
}
|
|
|
|
|
return false
|
|
|
|
|
}
|
|
|
|
|
|
2020-10-13 20:05:18 +08:00
|
|
|
// 获取管理员名称
|
2020-09-13 19:27:47 +08:00
|
|
|
type FindAdminFullnameRequest struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
AdminId int64 `protobuf:"varint,1,opt,name=adminId,proto3" json:"adminId,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *FindAdminFullnameRequest) Reset() {
|
|
|
|
|
*x = FindAdminFullnameRequest{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2020-11-10 20:31:08 +08:00
|
|
|
mi := &file_service_admin_proto_msgTypes[6]
|
2020-09-13 19:27:47 +08:00
|
|
|
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 {
|
2020-11-10 20:31:08 +08:00
|
|
|
mi := &file_service_admin_proto_msgTypes[6]
|
2020-09-13 19:27:47 +08:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
return ms
|
|
|
|
|
}
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use FindAdminFullnameRequest.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*FindAdminFullnameRequest) Descriptor() ([]byte, []int) {
|
2020-11-10 20:31:08 +08:00
|
|
|
return file_service_admin_proto_rawDescGZIP(), []int{6}
|
2020-09-13 19:27:47 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *FindAdminFullnameRequest) GetAdminId() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.AdminId
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type FindAdminFullnameResponse struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
Fullname string `protobuf:"bytes,1,opt,name=fullname,proto3" json:"fullname,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *FindAdminFullnameResponse) Reset() {
|
|
|
|
|
*x = FindAdminFullnameResponse{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2020-11-10 20:31:08 +08:00
|
|
|
mi := &file_service_admin_proto_msgTypes[7]
|
2020-09-13 19:27:47 +08:00
|
|
|
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 {
|
2020-11-10 20:31:08 +08:00
|
|
|
mi := &file_service_admin_proto_msgTypes[7]
|
2020-09-13 19:27:47 +08:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
return ms
|
|
|
|
|
}
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use FindAdminFullnameResponse.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*FindAdminFullnameResponse) Descriptor() ([]byte, []int) {
|
2020-11-10 20:31:08 +08:00
|
|
|
return file_service_admin_proto_rawDescGZIP(), []int{7}
|
2020-09-13 19:27:47 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *FindAdminFullnameResponse) GetFullname() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Fullname
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
2020-10-14 19:42:28 +08:00
|
|
|
// 获取管理员信息
|
|
|
|
|
type FindEnabledAdminRequest struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
AdminId int64 `protobuf:"varint,1,opt,name=adminId,proto3" json:"adminId,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *FindEnabledAdminRequest) Reset() {
|
|
|
|
|
*x = FindEnabledAdminRequest{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2020-11-10 20:31:08 +08:00
|
|
|
mi := &file_service_admin_proto_msgTypes[8]
|
2020-10-14 19:42:28 +08:00
|
|
|
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 {
|
2020-11-10 20:31:08 +08:00
|
|
|
mi := &file_service_admin_proto_msgTypes[8]
|
2020-10-14 19:42:28 +08:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
return ms
|
|
|
|
|
}
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use FindEnabledAdminRequest.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*FindEnabledAdminRequest) Descriptor() ([]byte, []int) {
|
2020-11-10 20:31:08 +08:00
|
|
|
return file_service_admin_proto_rawDescGZIP(), []int{8}
|
2020-10-14 19:42:28 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *FindEnabledAdminRequest) GetAdminId() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.AdminId
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type FindEnabledAdminResponse struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
Admin *Admin `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *FindEnabledAdminResponse) Reset() {
|
|
|
|
|
*x = FindEnabledAdminResponse{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2020-11-10 20:31:08 +08:00
|
|
|
mi := &file_service_admin_proto_msgTypes[9]
|
2020-10-14 19:42:28 +08:00
|
|
|
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 {
|
2020-11-10 20:31:08 +08:00
|
|
|
mi := &file_service_admin_proto_msgTypes[9]
|
2020-10-14 19:42:28 +08:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
return ms
|
|
|
|
|
}
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use FindEnabledAdminResponse.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*FindEnabledAdminResponse) Descriptor() ([]byte, []int) {
|
2020-11-10 20:31:08 +08:00
|
|
|
return file_service_admin_proto_rawDescGZIP(), []int{9}
|
2020-10-14 19:42:28 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *FindEnabledAdminResponse) GetAdmin() *Admin {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Admin
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
2020-10-13 20:05:18 +08:00
|
|
|
// 创建或修改管理员
|
|
|
|
|
type CreateOrUpdateAdminRequest struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"`
|
|
|
|
|
Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CreateOrUpdateAdminRequest) Reset() {
|
|
|
|
|
*x = CreateOrUpdateAdminRequest{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2020-11-10 20:31:08 +08:00
|
|
|
mi := &file_service_admin_proto_msgTypes[10]
|
2020-10-13 20:05:18 +08:00
|
|
|
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 {
|
2020-11-10 20:31:08 +08:00
|
|
|
mi := &file_service_admin_proto_msgTypes[10]
|
2020-10-13 20:05:18 +08:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
return ms
|
|
|
|
|
}
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use CreateOrUpdateAdminRequest.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*CreateOrUpdateAdminRequest) Descriptor() ([]byte, []int) {
|
2020-11-10 20:31:08 +08:00
|
|
|
return file_service_admin_proto_rawDescGZIP(), []int{10}
|
2020-10-13 20:05:18 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
AdminId int64 `protobuf:"varint,1,opt,name=adminId,proto3" json:"adminId,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CreateOrUpdateAdminResponse) Reset() {
|
|
|
|
|
*x = CreateOrUpdateAdminResponse{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2020-11-10 20:31:08 +08:00
|
|
|
mi := &file_service_admin_proto_msgTypes[11]
|
2020-10-13 20:05:18 +08:00
|
|
|
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 {
|
2020-11-10 20:31:08 +08:00
|
|
|
mi := &file_service_admin_proto_msgTypes[11]
|
2020-10-13 20:05:18 +08:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
return ms
|
|
|
|
|
}
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use CreateOrUpdateAdminResponse.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*CreateOrUpdateAdminResponse) Descriptor() ([]byte, []int) {
|
2020-11-10 20:31:08 +08:00
|
|
|
return file_service_admin_proto_rawDescGZIP(), []int{11}
|
2020-10-13 20:05:18 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *CreateOrUpdateAdminResponse) GetAdminId() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.AdminId
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
2020-10-14 19:42:28 +08:00
|
|
|
// 修改管理员信息
|
|
|
|
|
type UpdateAdminRequest struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
AdminId int64 `protobuf:"varint,1,opt,name=adminId,proto3" json:"adminId,omitempty"`
|
|
|
|
|
Fullname string `protobuf:"bytes,2,opt,name=fullname,proto3" json:"fullname,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *UpdateAdminRequest) Reset() {
|
|
|
|
|
*x = UpdateAdminRequest{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2020-11-10 20:31:08 +08:00
|
|
|
mi := &file_service_admin_proto_msgTypes[12]
|
2020-10-14 19:42:28 +08:00
|
|
|
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 {
|
2020-11-10 20:31:08 +08:00
|
|
|
mi := &file_service_admin_proto_msgTypes[12]
|
2020-10-14 19:42:28 +08:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
return ms
|
|
|
|
|
}
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use UpdateAdminRequest.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*UpdateAdminRequest) Descriptor() ([]byte, []int) {
|
2020-11-10 20:31:08 +08:00
|
|
|
return file_service_admin_proto_rawDescGZIP(), []int{12}
|
2020-10-14 19:42:28 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *UpdateAdminRequest) GetAdminId() int64 {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.AdminId
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *UpdateAdminRequest) GetFullname() string {
|
|
|
|
|
if x != nil {
|
|
|
|
|
return x.Fullname
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 修改管理员登录信息
|
|
|
|
|
type UpdateAdminLoginRequest struct {
|
|
|
|
|
state protoimpl.MessageState
|
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
|
|
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"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (x *UpdateAdminLoginRequest) Reset() {
|
|
|
|
|
*x = UpdateAdminLoginRequest{}
|
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2020-11-10 20:31:08 +08:00
|
|
|
mi := &file_service_admin_proto_msgTypes[13]
|
2020-10-14 19:42:28 +08:00
|
|
|
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 {
|
2020-11-10 20:31:08 +08:00
|
|
|
mi := &file_service_admin_proto_msgTypes[13]
|
2020-10-14 19:42:28 +08:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
|
}
|
|
|
|
|
return ms
|
|
|
|
|
}
|
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Deprecated: Use UpdateAdminLoginRequest.ProtoReflect.Descriptor instead.
|
|
|
|
|
func (*UpdateAdminLoginRequest) Descriptor() ([]byte, []int) {
|
2020-11-10 20:31:08 +08:00
|
|
|
return file_service_admin_proto_rawDescGZIP(), []int{13}
|
2020-10-14 19:42:28 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
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 ""
|
|
|
|
|
}
|
|
|
|
|
|
2020-09-13 19:27:47 +08:00
|
|
|
var File_service_admin_proto protoreflect.FileDescriptor
|
|
|
|
|
|
|
|
|
|
var file_service_admin_proto_rawDesc = []byte{
|
|
|
|
|
0x0a, 0x13, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e,
|
2020-10-14 19:42:28 +08:00
|
|
|
0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x02, 0x70, 0x62, 0x1a, 0x11, 0x6d, 0x6f, 0x64, 0x65, 0x6c,
|
|
|
|
|
0x5f, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x12, 0x72, 0x70,
|
|
|
|
|
0x63, 0x5f, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
|
|
|
|
0x22, 0x4b, 0x0a, 0x11, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65,
|
|
|
|
|
0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d,
|
|
|
|
|
0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d,
|
|
|
|
|
0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20,
|
|
|
|
|
0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x5c, 0x0a,
|
|
|
|
|
0x12, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
|
|
|
|
0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x49, 0x64, 0x18, 0x01,
|
|
|
|
|
0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x49, 0x64, 0x12, 0x12, 0x0a,
|
|
|
|
|
0x04, 0x69, 0x73, 0x4f, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f,
|
|
|
|
|
0x6b, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01,
|
2020-11-10 20:31:08 +08:00
|
|
|
0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x33, 0x0a, 0x17, 0x43,
|
|
|
|
|
0x68, 0x65, 0x63, 0x6b, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x52,
|
|
|
|
|
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x49,
|
|
|
|
|
0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x49, 0x64,
|
|
|
|
|
0x22, 0x48, 0x0a, 0x18, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x45, 0x78,
|
|
|
|
|
0x69, 0x73, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04,
|
|
|
|
|
0x69, 0x73, 0x4f, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x69, 0x73, 0x4f, 0x6b,
|
|
|
|
|
0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
|
|
|
|
|
0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x22, 0x51, 0x0a, 0x19, 0x43, 0x68,
|
|
|
|
|
0x65, 0x63, 0x6b, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65,
|
|
|
|
|
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x6d, 0x69, 0x6e,
|
|
|
|
|
0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x49,
|
|
|
|
|
0x64, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20,
|
|
|
|
|
0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x34, 0x0a,
|
|
|
|
|
0x1a, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x6e,
|
|
|
|
|
0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x65,
|
|
|
|
|
0x78, 0x69, 0x73, 0x74, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x65, 0x78, 0x69,
|
|
|
|
|
0x73, 0x74, 0x73, 0x22, 0x34, 0x0a, 0x18, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x64, 0x6d, 0x69, 0x6e,
|
|
|
|
|
0x46, 0x75, 0x6c, 0x6c, 0x6e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
|
|
|
|
|
0x18, 0x0a, 0x07, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
|
|
|
|
|
0x52, 0x07, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x49, 0x64, 0x22, 0x37, 0x0a, 0x19, 0x46, 0x69, 0x6e,
|
|
|
|
|
0x64, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x46, 0x75, 0x6c, 0x6c, 0x6e, 0x61, 0x6d, 0x65, 0x52, 0x65,
|
|
|
|
|
0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x75, 0x6c, 0x6c, 0x6e, 0x61,
|
|
|
|
|
0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x75, 0x6c, 0x6c, 0x6e, 0x61,
|
|
|
|
|
0x6d, 0x65, 0x22, 0x33, 0x0a, 0x17, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65,
|
|
|
|
|
0x64, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a,
|
|
|
|
|
0x07, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07,
|
|
|
|
|
0x61, 0x64, 0x6d, 0x69, 0x6e, 0x49, 0x64, 0x22, 0x3b, 0x0a, 0x18, 0x46, 0x69, 0x6e, 0x64, 0x45,
|
|
|
|
|
0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f,
|
|
|
|
|
0x6e, 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x05, 0x61, 0x64, 0x6d, 0x69, 0x6e, 0x18, 0x01, 0x20, 0x01,
|
|
|
|
|
0x28, 0x0b, 0x32, 0x09, 0x2e, 0x70, 0x62, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x05, 0x61,
|
|
|
|
|
0x64, 0x6d, 0x69, 0x6e, 0x22, 0x54, 0x0a, 0x1a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x72,
|
|
|
|
|
0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65,
|
|
|
|
|
0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
|
|
|
|
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a,
|
|
|
|
|
0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
|
|
|
|
|
0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x37, 0x0a, 0x1b, 0x43, 0x72,
|
|
|
|
|
0x65, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x64, 0x6d, 0x69,
|
|
|
|
|
0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x6d,
|
2020-10-14 19:42:28 +08:00
|
|
|
0x69, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x61, 0x64, 0x6d, 0x69,
|
2020-11-10 20:31:08 +08:00
|
|
|
0x6e, 0x49, 0x64, 0x22, 0x4a, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x64, 0x6d,
|
|
|
|
|
0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x6d,
|
|
|
|
|
0x69, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x61, 0x64, 0x6d, 0x69,
|
|
|
|
|
0x6e, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x75, 0x6c, 0x6c, 0x6e, 0x61, 0x6d, 0x65, 0x18,
|
|
|
|
|
0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x66, 0x75, 0x6c, 0x6c, 0x6e, 0x61, 0x6d, 0x65, 0x22,
|
|
|
|
|
0x6b, 0x0a, 0x17, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x6f,
|
|
|
|
|
0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64,
|
2020-10-14 19:42:28 +08:00
|
|
|
0x6d, 0x69, 0x6e, 0x49, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x07, 0x61, 0x64, 0x6d,
|
|
|
|
|
0x69, 0x6e, 0x49, 0x64, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65,
|
|
|
|
|
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65,
|
2020-11-10 20:31:08 +08:00
|
|
|
0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x03, 0x20, 0x01,
|
2020-11-13 18:23:06 +08:00
|
|
|
0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x32, 0xe0, 0x04, 0x0a,
|
2020-11-10 20:31:08 +08:00
|
|
|
0x0c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x3b, 0x0a,
|
|
|
|
|
0x0a, 0x6c, 0x6f, 0x67, 0x69, 0x6e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x15, 0x2e, 0x70, 0x62,
|
|
|
|
|
0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65,
|
|
|
|
|
0x73, 0x74, 0x1a, 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x41, 0x64, 0x6d,
|
|
|
|
|
0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x10, 0x63, 0x68,
|
|
|
|
|
0x65, 0x63, 0x6b, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x45, 0x78, 0x69, 0x73, 0x74, 0x73, 0x12, 0x1b,
|
|
|
|
|
0x2e, 0x70, 0x62, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x45, 0x78,
|
|
|
|
|
0x69, 0x73, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x70, 0x62,
|
|
|
|
|
0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x45, 0x78, 0x69, 0x73, 0x74,
|
|
|
|
|
0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x12, 0x63, 0x68, 0x65,
|
|
|
|
|
0x63, 0x6b, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12,
|
|
|
|
|
0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55,
|
|
|
|
|
0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e,
|
|
|
|
|
0x2e, 0x70, 0x62, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73,
|
|
|
|
|
0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x50,
|
|
|
|
|
0x0a, 0x11, 0x66, 0x69, 0x6e, 0x64, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x46, 0x75, 0x6c, 0x6c, 0x6e,
|
|
|
|
|
0x61, 0x6d, 0x65, 0x12, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x64, 0x6d,
|
|
|
|
|
0x69, 0x6e, 0x46, 0x75, 0x6c, 0x6c, 0x6e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
|
|
|
|
0x74, 0x1a, 0x1d, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x41, 0x64, 0x6d, 0x69, 0x6e,
|
|
|
|
|
0x46, 0x75, 0x6c, 0x6c, 0x6e, 0x61, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
|
|
|
|
0x12, 0x4d, 0x0a, 0x10, 0x66, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x41,
|
|
|
|
|
0x64, 0x6d, 0x69, 0x6e, 0x12, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e,
|
|
|
|
|
0x61, 0x62, 0x6c, 0x65, 0x64, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
|
|
|
|
|
0x74, 0x1a, 0x1c, 0x2e, 0x70, 0x62, 0x2e, 0x46, 0x69, 0x6e, 0x64, 0x45, 0x6e, 0x61, 0x62, 0x6c,
|
|
|
|
|
0x65, 0x64, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
|
|
|
|
|
0x56, 0x0a, 0x13, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x4f, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74,
|
|
|
|
|
0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x1e, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61,
|
|
|
|
|
0x74, 0x65, 0x4f, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52,
|
|
|
|
|
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x70, 0x62, 0x2e, 0x43, 0x72, 0x65, 0x61,
|
|
|
|
|
0x74, 0x65, 0x4f, 0x72, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52,
|
2020-11-13 18:23:06 +08:00
|
|
|
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61, 0x74,
|
2020-11-10 20:31:08 +08:00
|
|
|
0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x12, 0x16, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61,
|
2020-11-13 18:23:06 +08:00
|
|
|
0x74, 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0e,
|
|
|
|
|
0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x3f,
|
|
|
|
|
0x0a, 0x10, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x6f, 0x67,
|
|
|
|
|
0x69, 0x6e, 0x12, 0x1b, 0x2e, 0x70, 0x62, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x41, 0x64,
|
|
|
|
|
0x6d, 0x69, 0x6e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
|
|
|
|
|
0x0e, 0x2e, 0x70, 0x62, 0x2e, 0x52, 0x50, 0x43, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x42,
|
|
|
|
|
0x06, 0x5a, 0x04, 0x2e, 0x2f, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
|
2020-09-13 19:27:47 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
var (
|
|
|
|
|
file_service_admin_proto_rawDescOnce sync.Once
|
|
|
|
|
file_service_admin_proto_rawDescData = file_service_admin_proto_rawDesc
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
func file_service_admin_proto_rawDescGZIP() []byte {
|
|
|
|
|
file_service_admin_proto_rawDescOnce.Do(func() {
|
|
|
|
|
file_service_admin_proto_rawDescData = protoimpl.X.CompressGZIP(file_service_admin_proto_rawDescData)
|
|
|
|
|
})
|
|
|
|
|
return file_service_admin_proto_rawDescData
|
|
|
|
|
}
|
|
|
|
|
|
2020-11-10 20:31:08 +08:00
|
|
|
var file_service_admin_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
|
2020-09-13 19:27:47 +08:00
|
|
|
var file_service_admin_proto_goTypes = []interface{}{
|
2020-10-13 20:05:18 +08:00
|
|
|
(*LoginAdminRequest)(nil), // 0: pb.LoginAdminRequest
|
|
|
|
|
(*LoginAdminResponse)(nil), // 1: pb.LoginAdminResponse
|
2020-11-10 20:31:08 +08:00
|
|
|
(*CheckAdminExistsRequest)(nil), // 2: pb.CheckAdminExistsRequest
|
|
|
|
|
(*CheckAdminExistsResponse)(nil), // 3: pb.CheckAdminExistsResponse
|
|
|
|
|
(*CheckAdminUsernameRequest)(nil), // 4: pb.CheckAdminUsernameRequest
|
|
|
|
|
(*CheckAdminUsernameResponse)(nil), // 5: pb.CheckAdminUsernameResponse
|
|
|
|
|
(*FindAdminFullnameRequest)(nil), // 6: pb.FindAdminFullnameRequest
|
|
|
|
|
(*FindAdminFullnameResponse)(nil), // 7: pb.FindAdminFullnameResponse
|
|
|
|
|
(*FindEnabledAdminRequest)(nil), // 8: pb.FindEnabledAdminRequest
|
|
|
|
|
(*FindEnabledAdminResponse)(nil), // 9: pb.FindEnabledAdminResponse
|
|
|
|
|
(*CreateOrUpdateAdminRequest)(nil), // 10: pb.CreateOrUpdateAdminRequest
|
|
|
|
|
(*CreateOrUpdateAdminResponse)(nil), // 11: pb.CreateOrUpdateAdminResponse
|
|
|
|
|
(*UpdateAdminRequest)(nil), // 12: pb.UpdateAdminRequest
|
|
|
|
|
(*UpdateAdminLoginRequest)(nil), // 13: pb.UpdateAdminLoginRequest
|
|
|
|
|
(*Admin)(nil), // 14: pb.Admin
|
2020-11-13 18:23:06 +08:00
|
|
|
(*RPCSuccess)(nil), // 15: pb.RPCSuccess
|
2020-09-13 19:27:47 +08:00
|
|
|
}
|
|
|
|
|
var file_service_admin_proto_depIdxs = []int32{
|
2020-11-10 20:31:08 +08:00
|
|
|
14, // 0: pb.FindEnabledAdminResponse.admin:type_name -> pb.Admin
|
2020-10-14 19:42:28 +08:00
|
|
|
0, // 1: pb.AdminService.loginAdmin:input_type -> pb.LoginAdminRequest
|
2020-11-10 20:31:08 +08:00
|
|
|
2, // 2: pb.AdminService.checkAdminExists:input_type -> pb.CheckAdminExistsRequest
|
|
|
|
|
4, // 3: pb.AdminService.checkAdminUsername:input_type -> pb.CheckAdminUsernameRequest
|
|
|
|
|
6, // 4: pb.AdminService.findAdminFullname:input_type -> pb.FindAdminFullnameRequest
|
|
|
|
|
8, // 5: pb.AdminService.findEnabledAdmin:input_type -> pb.FindEnabledAdminRequest
|
|
|
|
|
10, // 6: pb.AdminService.createOrUpdateAdmin:input_type -> pb.CreateOrUpdateAdminRequest
|
|
|
|
|
12, // 7: pb.AdminService.updateAdmin:input_type -> pb.UpdateAdminRequest
|
|
|
|
|
13, // 8: pb.AdminService.updateAdminLogin:input_type -> pb.UpdateAdminLoginRequest
|
|
|
|
|
1, // 9: pb.AdminService.loginAdmin:output_type -> pb.LoginAdminResponse
|
|
|
|
|
3, // 10: pb.AdminService.checkAdminExists:output_type -> pb.CheckAdminExistsResponse
|
|
|
|
|
5, // 11: pb.AdminService.checkAdminUsername:output_type -> pb.CheckAdminUsernameResponse
|
|
|
|
|
7, // 12: pb.AdminService.findAdminFullname:output_type -> pb.FindAdminFullnameResponse
|
|
|
|
|
9, // 13: pb.AdminService.findEnabledAdmin:output_type -> pb.FindEnabledAdminResponse
|
|
|
|
|
11, // 14: pb.AdminService.createOrUpdateAdmin:output_type -> pb.CreateOrUpdateAdminResponse
|
2020-11-13 18:23:06 +08:00
|
|
|
15, // 15: pb.AdminService.updateAdmin:output_type -> pb.RPCSuccess
|
|
|
|
|
15, // 16: pb.AdminService.updateAdminLogin:output_type -> pb.RPCSuccess
|
2020-11-10 20:31:08 +08:00
|
|
|
9, // [9:17] is the sub-list for method output_type
|
|
|
|
|
1, // [1:9] is the sub-list for method input_type
|
2020-10-14 19:42:28 +08:00
|
|
|
1, // [1:1] is the sub-list for extension type_name
|
|
|
|
|
1, // [1:1] is the sub-list for extension extendee
|
|
|
|
|
0, // [0:1] is the sub-list for field type_name
|
2020-09-13 19:27:47 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func init() { file_service_admin_proto_init() }
|
|
|
|
|
func file_service_admin_proto_init() {
|
|
|
|
|
if File_service_admin_proto != nil {
|
|
|
|
|
return
|
|
|
|
|
}
|
2020-10-14 19:42:28 +08:00
|
|
|
file_model_admin_proto_init()
|
|
|
|
|
file_rpc_messages_proto_init()
|
2020-09-13 19:27:47 +08:00
|
|
|
if !protoimpl.UnsafeEnabled {
|
|
|
|
|
file_service_admin_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
switch v := v.(*LoginAdminRequest); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_service_admin_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
switch v := v.(*LoginAdminResponse); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
file_service_admin_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
|
switch v := v.(*CheckAdminExistsRequest); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-11-10 20:31:08 +08:00
|
|
|
file_service_admin_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
2020-09-13 19:27:47 +08:00
|
|
|
switch v := v.(*CheckAdminExistsResponse); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-11-10 20:31:08 +08:00
|
|
|
file_service_admin_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
2020-10-14 19:42:28 +08:00
|
|
|
switch v := v.(*CheckAdminUsernameRequest); i {
|
2020-09-13 19:27:47 +08:00
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-11-10 20:31:08 +08:00
|
|
|
file_service_admin_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
2020-10-14 19:42:28 +08:00
|
|
|
switch v := v.(*CheckAdminUsernameResponse); i {
|
2020-09-13 19:27:47 +08:00
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-11-10 20:31:08 +08:00
|
|
|
file_service_admin_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
2020-10-14 19:42:28 +08:00
|
|
|
switch v := v.(*FindAdminFullnameRequest); i {
|
2020-10-13 20:05:18 +08:00
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-11-10 20:31:08 +08:00
|
|
|
file_service_admin_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
2020-10-14 19:42:28 +08:00
|
|
|
switch v := v.(*FindAdminFullnameResponse); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-11-10 20:31:08 +08:00
|
|
|
file_service_admin_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
2020-10-14 19:42:28 +08:00
|
|
|
switch v := v.(*FindEnabledAdminRequest); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-11-10 20:31:08 +08:00
|
|
|
file_service_admin_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
2020-10-14 19:42:28 +08:00
|
|
|
switch v := v.(*FindEnabledAdminResponse); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-11-10 20:31:08 +08:00
|
|
|
file_service_admin_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
2020-10-14 19:42:28 +08:00
|
|
|
switch v := v.(*CreateOrUpdateAdminRequest); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-11-10 20:31:08 +08:00
|
|
|
file_service_admin_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
|
2020-10-13 20:05:18 +08:00
|
|
|
switch v := v.(*CreateOrUpdateAdminResponse); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-11-10 20:31:08 +08:00
|
|
|
file_service_admin_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
|
2020-10-14 19:42:28 +08:00
|
|
|
switch v := v.(*UpdateAdminRequest); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-11-10 20:31:08 +08:00
|
|
|
file_service_admin_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} {
|
2020-10-14 19:42:28 +08:00
|
|
|
switch v := v.(*UpdateAdminLoginRequest); i {
|
|
|
|
|
case 0:
|
|
|
|
|
return &v.state
|
|
|
|
|
case 1:
|
|
|
|
|
return &v.sizeCache
|
|
|
|
|
case 2:
|
|
|
|
|
return &v.unknownFields
|
|
|
|
|
default:
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
}
|
2020-09-13 19:27:47 +08:00
|
|
|
}
|
|
|
|
|
type x struct{}
|
|
|
|
|
out := protoimpl.TypeBuilder{
|
|
|
|
|
File: protoimpl.DescBuilder{
|
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
|
|
RawDescriptor: file_service_admin_proto_rawDesc,
|
|
|
|
|
NumEnums: 0,
|
2020-11-10 20:31:08 +08:00
|
|
|
NumMessages: 14,
|
2020-09-13 19:27:47 +08:00
|
|
|
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_rawDesc = nil
|
|
|
|
|
file_service_admin_proto_goTypes = nil
|
|
|
|
|
file_service_admin_proto_depIdxs = nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
|
var _ context.Context
|
|
|
|
|
var _ grpc.ClientConnInterface
|
|
|
|
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
|
// is compatible with the grpc package it is being compiled against.
|
|
|
|
|
const _ = grpc.SupportPackageIsVersion6
|
|
|
|
|
|
|
|
|
|
// AdminServiceClient is the client API for AdminService service.
|
|
|
|
|
//
|
|
|
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
|
|
|
type AdminServiceClient interface {
|
|
|
|
|
// 登录
|
|
|
|
|
LoginAdmin(ctx context.Context, in *LoginAdminRequest, opts ...grpc.CallOption) (*LoginAdminResponse, error)
|
|
|
|
|
// 检查管理员是否存在
|
|
|
|
|
CheckAdminExists(ctx context.Context, in *CheckAdminExistsRequest, opts ...grpc.CallOption) (*CheckAdminExistsResponse, error)
|
2020-10-14 19:42:28 +08:00
|
|
|
// 检查用户名是否存在
|
|
|
|
|
CheckAdminUsername(ctx context.Context, in *CheckAdminUsernameRequest, opts ...grpc.CallOption) (*CheckAdminUsernameResponse, error)
|
2020-09-13 19:27:47 +08:00
|
|
|
// 获取管理员名称
|
|
|
|
|
FindAdminFullname(ctx context.Context, in *FindAdminFullnameRequest, opts ...grpc.CallOption) (*FindAdminFullnameResponse, error)
|
2020-10-14 19:42:28 +08:00
|
|
|
// 获取管理员信息
|
|
|
|
|
FindEnabledAdmin(ctx context.Context, in *FindEnabledAdminRequest, opts ...grpc.CallOption) (*FindEnabledAdminResponse, error)
|
2020-10-13 20:05:18 +08:00
|
|
|
// 创建或修改管理员
|
|
|
|
|
CreateOrUpdateAdmin(ctx context.Context, in *CreateOrUpdateAdminRequest, opts ...grpc.CallOption) (*CreateOrUpdateAdminResponse, error)
|
2020-10-14 19:42:28 +08:00
|
|
|
// 修改管理员信息
|
2020-11-13 18:23:06 +08:00
|
|
|
UpdateAdmin(ctx context.Context, in *UpdateAdminRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
|
2020-10-14 19:42:28 +08:00
|
|
|
// 修改管理员登录信息
|
2020-11-13 18:23:06 +08:00
|
|
|
UpdateAdminLogin(ctx context.Context, in *UpdateAdminLoginRequest, opts ...grpc.CallOption) (*RPCSuccess, error)
|
2020-09-13 19:27:47 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type adminServiceClient struct {
|
|
|
|
|
cc grpc.ClientConnInterface
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func NewAdminServiceClient(cc grpc.ClientConnInterface) AdminServiceClient {
|
|
|
|
|
return &adminServiceClient{cc}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (c *adminServiceClient) LoginAdmin(ctx context.Context, in *LoginAdminRequest, opts ...grpc.CallOption) (*LoginAdminResponse, error) {
|
|
|
|
|
out := new(LoginAdminResponse)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/pb.AdminService/loginAdmin", in, out, opts...)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return out, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (c *adminServiceClient) CheckAdminExists(ctx context.Context, in *CheckAdminExistsRequest, opts ...grpc.CallOption) (*CheckAdminExistsResponse, error) {
|
|
|
|
|
out := new(CheckAdminExistsResponse)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/pb.AdminService/checkAdminExists", in, out, opts...)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return out, nil
|
|
|
|
|
}
|
|
|
|
|
|
2020-10-14 19:42:28 +08:00
|
|
|
func (c *adminServiceClient) CheckAdminUsername(ctx context.Context, in *CheckAdminUsernameRequest, opts ...grpc.CallOption) (*CheckAdminUsernameResponse, error) {
|
|
|
|
|
out := new(CheckAdminUsernameResponse)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/pb.AdminService/checkAdminUsername", in, out, opts...)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return out, nil
|
|
|
|
|
}
|
|
|
|
|
|
2020-09-13 19:27:47 +08:00
|
|
|
func (c *adminServiceClient) FindAdminFullname(ctx context.Context, in *FindAdminFullnameRequest, opts ...grpc.CallOption) (*FindAdminFullnameResponse, error) {
|
|
|
|
|
out := new(FindAdminFullnameResponse)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/pb.AdminService/findAdminFullname", in, out, opts...)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return out, nil
|
|
|
|
|
}
|
|
|
|
|
|
2020-10-14 19:42:28 +08:00
|
|
|
func (c *adminServiceClient) FindEnabledAdmin(ctx context.Context, in *FindEnabledAdminRequest, opts ...grpc.CallOption) (*FindEnabledAdminResponse, error) {
|
|
|
|
|
out := new(FindEnabledAdminResponse)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/pb.AdminService/findEnabledAdmin", in, out, opts...)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return out, nil
|
|
|
|
|
}
|
|
|
|
|
|
2020-10-13 20:05:18 +08:00
|
|
|
func (c *adminServiceClient) CreateOrUpdateAdmin(ctx context.Context, in *CreateOrUpdateAdminRequest, opts ...grpc.CallOption) (*CreateOrUpdateAdminResponse, error) {
|
|
|
|
|
out := new(CreateOrUpdateAdminResponse)
|
|
|
|
|
err := c.cc.Invoke(ctx, "/pb.AdminService/createOrUpdateAdmin", in, out, opts...)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return out, nil
|
|
|
|
|
}
|
|
|
|
|
|
2020-11-13 18:23:06 +08:00
|
|
|
func (c *adminServiceClient) UpdateAdmin(ctx context.Context, in *UpdateAdminRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
|
|
|
|
|
out := new(RPCSuccess)
|
2020-10-14 19:42:28 +08:00
|
|
|
err := c.cc.Invoke(ctx, "/pb.AdminService/updateAdmin", in, out, opts...)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return out, nil
|
|
|
|
|
}
|
|
|
|
|
|
2020-11-13 18:23:06 +08:00
|
|
|
func (c *adminServiceClient) UpdateAdminLogin(ctx context.Context, in *UpdateAdminLoginRequest, opts ...grpc.CallOption) (*RPCSuccess, error) {
|
|
|
|
|
out := new(RPCSuccess)
|
2020-10-14 19:42:28 +08:00
|
|
|
err := c.cc.Invoke(ctx, "/pb.AdminService/updateAdminLogin", in, out, opts...)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return out, nil
|
|
|
|
|
}
|
|
|
|
|
|
2020-09-13 19:27:47 +08:00
|
|
|
// AdminServiceServer is the server API for AdminService service.
|
|
|
|
|
type AdminServiceServer interface {
|
|
|
|
|
// 登录
|
|
|
|
|
LoginAdmin(context.Context, *LoginAdminRequest) (*LoginAdminResponse, error)
|
|
|
|
|
// 检查管理员是否存在
|
|
|
|
|
CheckAdminExists(context.Context, *CheckAdminExistsRequest) (*CheckAdminExistsResponse, error)
|
2020-10-14 19:42:28 +08:00
|
|
|
// 检查用户名是否存在
|
|
|
|
|
CheckAdminUsername(context.Context, *CheckAdminUsernameRequest) (*CheckAdminUsernameResponse, error)
|
2020-09-13 19:27:47 +08:00
|
|
|
// 获取管理员名称
|
|
|
|
|
FindAdminFullname(context.Context, *FindAdminFullnameRequest) (*FindAdminFullnameResponse, error)
|
2020-10-14 19:42:28 +08:00
|
|
|
// 获取管理员信息
|
|
|
|
|
FindEnabledAdmin(context.Context, *FindEnabledAdminRequest) (*FindEnabledAdminResponse, error)
|
2020-10-13 20:05:18 +08:00
|
|
|
// 创建或修改管理员
|
|
|
|
|
CreateOrUpdateAdmin(context.Context, *CreateOrUpdateAdminRequest) (*CreateOrUpdateAdminResponse, error)
|
2020-10-14 19:42:28 +08:00
|
|
|
// 修改管理员信息
|
2020-11-13 18:23:06 +08:00
|
|
|
UpdateAdmin(context.Context, *UpdateAdminRequest) (*RPCSuccess, error)
|
2020-10-14 19:42:28 +08:00
|
|
|
// 修改管理员登录信息
|
2020-11-13 18:23:06 +08:00
|
|
|
UpdateAdminLogin(context.Context, *UpdateAdminLoginRequest) (*RPCSuccess, error)
|
2020-09-13 19:27:47 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// UnimplementedAdminServiceServer can be embedded to have forward compatible implementations.
|
|
|
|
|
type UnimplementedAdminServiceServer struct {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (*UnimplementedAdminServiceServer) LoginAdmin(context.Context, *LoginAdminRequest) (*LoginAdminResponse, error) {
|
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method LoginAdmin not implemented")
|
|
|
|
|
}
|
|
|
|
|
func (*UnimplementedAdminServiceServer) CheckAdminExists(context.Context, *CheckAdminExistsRequest) (*CheckAdminExistsResponse, error) {
|
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method CheckAdminExists not implemented")
|
|
|
|
|
}
|
2020-10-14 19:42:28 +08:00
|
|
|
func (*UnimplementedAdminServiceServer) CheckAdminUsername(context.Context, *CheckAdminUsernameRequest) (*CheckAdminUsernameResponse, error) {
|
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method CheckAdminUsername not implemented")
|
|
|
|
|
}
|
2020-09-13 19:27:47 +08:00
|
|
|
func (*UnimplementedAdminServiceServer) FindAdminFullname(context.Context, *FindAdminFullnameRequest) (*FindAdminFullnameResponse, error) {
|
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method FindAdminFullname not implemented")
|
|
|
|
|
}
|
2020-10-14 19:42:28 +08:00
|
|
|
func (*UnimplementedAdminServiceServer) FindEnabledAdmin(context.Context, *FindEnabledAdminRequest) (*FindEnabledAdminResponse, error) {
|
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method FindEnabledAdmin not implemented")
|
|
|
|
|
}
|
2020-10-13 20:05:18 +08:00
|
|
|
func (*UnimplementedAdminServiceServer) CreateOrUpdateAdmin(context.Context, *CreateOrUpdateAdminRequest) (*CreateOrUpdateAdminResponse, error) {
|
|
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method CreateOrUpdateAdmin not implemented")
|
|
|
|
|
}
|
2020-11-13 18:23:06 +08:00
|
|
|
func (*UnimplementedAdminServiceServer) UpdateAdmin(context.Context, *UpdateAdminRequest) (*RPCSuccess, error) {
|
2020-10-14 19:42:28 +08:00
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method UpdateAdmin not implemented")
|
|
|
|
|
}
|
2020-11-13 18:23:06 +08:00
|
|
|
func (*UnimplementedAdminServiceServer) UpdateAdminLogin(context.Context, *UpdateAdminLoginRequest) (*RPCSuccess, error) {
|
2020-10-14 19:42:28 +08:00
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method UpdateAdminLogin not implemented")
|
|
|
|
|
}
|
2020-09-13 19:27:47 +08:00
|
|
|
|
|
|
|
|
func RegisterAdminServiceServer(s *grpc.Server, srv AdminServiceServer) {
|
|
|
|
|
s.RegisterService(&_AdminService_serviceDesc, srv)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func _AdminService_LoginAdmin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
in := new(LoginAdminRequest)
|
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
if interceptor == nil {
|
|
|
|
|
return srv.(AdminServiceServer).LoginAdmin(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
|
Server: srv,
|
|
|
|
|
FullMethod: "/pb.AdminService/LoginAdmin",
|
|
|
|
|
}
|
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
return srv.(AdminServiceServer).LoginAdmin(ctx, req.(*LoginAdminRequest))
|
|
|
|
|
}
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func _AdminService_CheckAdminExists_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
in := new(CheckAdminExistsRequest)
|
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
if interceptor == nil {
|
|
|
|
|
return srv.(AdminServiceServer).CheckAdminExists(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
|
Server: srv,
|
|
|
|
|
FullMethod: "/pb.AdminService/CheckAdminExists",
|
|
|
|
|
}
|
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
return srv.(AdminServiceServer).CheckAdminExists(ctx, req.(*CheckAdminExistsRequest))
|
|
|
|
|
}
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
}
|
|
|
|
|
|
2020-10-14 19:42:28 +08:00
|
|
|
func _AdminService_CheckAdminUsername_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
in := new(CheckAdminUsernameRequest)
|
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
if interceptor == nil {
|
|
|
|
|
return srv.(AdminServiceServer).CheckAdminUsername(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
|
Server: srv,
|
|
|
|
|
FullMethod: "/pb.AdminService/CheckAdminUsername",
|
|
|
|
|
}
|
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
return srv.(AdminServiceServer).CheckAdminUsername(ctx, req.(*CheckAdminUsernameRequest))
|
|
|
|
|
}
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
}
|
|
|
|
|
|
2020-09-13 19:27:47 +08:00
|
|
|
func _AdminService_FindAdminFullname_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
in := new(FindAdminFullnameRequest)
|
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
if interceptor == nil {
|
|
|
|
|
return srv.(AdminServiceServer).FindAdminFullname(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
|
Server: srv,
|
|
|
|
|
FullMethod: "/pb.AdminService/FindAdminFullname",
|
|
|
|
|
}
|
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
return srv.(AdminServiceServer).FindAdminFullname(ctx, req.(*FindAdminFullnameRequest))
|
|
|
|
|
}
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
}
|
|
|
|
|
|
2020-10-14 19:42:28 +08:00
|
|
|
func _AdminService_FindEnabledAdmin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
in := new(FindEnabledAdminRequest)
|
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
if interceptor == nil {
|
|
|
|
|
return srv.(AdminServiceServer).FindEnabledAdmin(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
|
Server: srv,
|
|
|
|
|
FullMethod: "/pb.AdminService/FindEnabledAdmin",
|
|
|
|
|
}
|
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
return srv.(AdminServiceServer).FindEnabledAdmin(ctx, req.(*FindEnabledAdminRequest))
|
|
|
|
|
}
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
}
|
|
|
|
|
|
2020-10-13 20:05:18 +08:00
|
|
|
func _AdminService_CreateOrUpdateAdmin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
in := new(CreateOrUpdateAdminRequest)
|
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
if interceptor == nil {
|
|
|
|
|
return srv.(AdminServiceServer).CreateOrUpdateAdmin(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
|
Server: srv,
|
|
|
|
|
FullMethod: "/pb.AdminService/CreateOrUpdateAdmin",
|
|
|
|
|
}
|
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
return srv.(AdminServiceServer).CreateOrUpdateAdmin(ctx, req.(*CreateOrUpdateAdminRequest))
|
|
|
|
|
}
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
}
|
|
|
|
|
|
2020-10-14 19:42:28 +08:00
|
|
|
func _AdminService_UpdateAdmin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
in := new(UpdateAdminRequest)
|
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
if interceptor == nil {
|
|
|
|
|
return srv.(AdminServiceServer).UpdateAdmin(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
|
Server: srv,
|
|
|
|
|
FullMethod: "/pb.AdminService/UpdateAdmin",
|
|
|
|
|
}
|
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
return srv.(AdminServiceServer).UpdateAdmin(ctx, req.(*UpdateAdminRequest))
|
|
|
|
|
}
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func _AdminService_UpdateAdminLogin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
|
|
in := new(UpdateAdminLoginRequest)
|
|
|
|
|
if err := dec(in); err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
if interceptor == nil {
|
|
|
|
|
return srv.(AdminServiceServer).UpdateAdminLogin(ctx, in)
|
|
|
|
|
}
|
|
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
|
|
Server: srv,
|
|
|
|
|
FullMethod: "/pb.AdminService/UpdateAdminLogin",
|
|
|
|
|
}
|
|
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
|
|
return srv.(AdminServiceServer).UpdateAdminLogin(ctx, req.(*UpdateAdminLoginRequest))
|
|
|
|
|
}
|
|
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
|
|
}
|
|
|
|
|
|
2020-09-13 19:27:47 +08:00
|
|
|
var _AdminService_serviceDesc = grpc.ServiceDesc{
|
|
|
|
|
ServiceName: "pb.AdminService",
|
|
|
|
|
HandlerType: (*AdminServiceServer)(nil),
|
|
|
|
|
Methods: []grpc.MethodDesc{
|
|
|
|
|
{
|
|
|
|
|
MethodName: "loginAdmin",
|
|
|
|
|
Handler: _AdminService_LoginAdmin_Handler,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
MethodName: "checkAdminExists",
|
|
|
|
|
Handler: _AdminService_CheckAdminExists_Handler,
|
|
|
|
|
},
|
2020-10-14 19:42:28 +08:00
|
|
|
{
|
|
|
|
|
MethodName: "checkAdminUsername",
|
|
|
|
|
Handler: _AdminService_CheckAdminUsername_Handler,
|
|
|
|
|
},
|
2020-09-13 19:27:47 +08:00
|
|
|
{
|
|
|
|
|
MethodName: "findAdminFullname",
|
|
|
|
|
Handler: _AdminService_FindAdminFullname_Handler,
|
|
|
|
|
},
|
2020-10-14 19:42:28 +08:00
|
|
|
{
|
|
|
|
|
MethodName: "findEnabledAdmin",
|
|
|
|
|
Handler: _AdminService_FindEnabledAdmin_Handler,
|
|
|
|
|
},
|
2020-10-13 20:05:18 +08:00
|
|
|
{
|
|
|
|
|
MethodName: "createOrUpdateAdmin",
|
|
|
|
|
Handler: _AdminService_CreateOrUpdateAdmin_Handler,
|
|
|
|
|
},
|
2020-10-14 19:42:28 +08:00
|
|
|
{
|
|
|
|
|
MethodName: "updateAdmin",
|
|
|
|
|
Handler: _AdminService_UpdateAdmin_Handler,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
MethodName: "updateAdminLogin",
|
|
|
|
|
Handler: _AdminService_UpdateAdminLogin_Handler,
|
|
|
|
|
},
|
2020-09-13 19:27:47 +08:00
|
|
|
},
|
|
|
|
|
Streams: []grpc.StreamDesc{},
|
|
|
|
|
Metadata: "service_admin.proto",
|
|
|
|
|
}
|