service apis edit, info, items, status, names
This commit is contained in:
+266
-36
@@ -546,6 +546,206 @@ func (*AdminEmptyRequest) Descriptor() ([]byte, []int) {
|
||||
return file_proto_admin_proto_rawDescGZIP(), []int{8}
|
||||
}
|
||||
|
||||
type InfoRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *InfoRequest) Reset() {
|
||||
*x = InfoRequest{}
|
||||
mi := &file_proto_admin_proto_msgTypes[9]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *InfoRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*InfoRequest) ProtoMessage() {}
|
||||
|
||||
func (x *InfoRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_proto_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 InfoRequest.ProtoReflect.Descriptor instead.
|
||||
func (*InfoRequest) Descriptor() ([]byte, []int) {
|
||||
return file_proto_admin_proto_rawDescGZIP(), []int{9}
|
||||
}
|
||||
|
||||
func (x *InfoRequest) GetId() int64 {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type ServiceEditRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
||||
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ServiceEditRequest) Reset() {
|
||||
*x = ServiceEditRequest{}
|
||||
mi := &file_proto_admin_proto_msgTypes[10]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ServiceEditRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ServiceEditRequest) ProtoMessage() {}
|
||||
|
||||
func (x *ServiceEditRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_proto_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 ServiceEditRequest.ProtoReflect.Descriptor instead.
|
||||
func (*ServiceEditRequest) Descriptor() ([]byte, []int) {
|
||||
return file_proto_admin_proto_rawDescGZIP(), []int{10}
|
||||
}
|
||||
|
||||
func (x *ServiceEditRequest) GetId() int64 {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (x *ServiceEditRequest) GetName() string {
|
||||
if x != nil {
|
||||
return x.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *ServiceEditRequest) GetDescription() string {
|
||||
if x != nil {
|
||||
return x.Description
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type ServiceItemsRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
Status int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ServiceItemsRequest) Reset() {
|
||||
*x = ServiceItemsRequest{}
|
||||
mi := &file_proto_admin_proto_msgTypes[11]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ServiceItemsRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ServiceItemsRequest) ProtoMessage() {}
|
||||
|
||||
func (x *ServiceItemsRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_proto_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 ServiceItemsRequest.ProtoReflect.Descriptor instead.
|
||||
func (*ServiceItemsRequest) Descriptor() ([]byte, []int) {
|
||||
return file_proto_admin_proto_rawDescGZIP(), []int{11}
|
||||
}
|
||||
|
||||
func (x *ServiceItemsRequest) GetName() string {
|
||||
if x != nil {
|
||||
return x.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *ServiceItemsRequest) GetStatus() int32 {
|
||||
if x != nil {
|
||||
return x.Status
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
type ServiceNameRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ServiceNameRequest) Reset() {
|
||||
*x = ServiceNameRequest{}
|
||||
mi := &file_proto_admin_proto_msgTypes[12]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ServiceNameRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ServiceNameRequest) ProtoMessage() {}
|
||||
|
||||
func (x *ServiceNameRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_proto_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 ServiceNameRequest.ProtoReflect.Descriptor instead.
|
||||
func (*ServiceNameRequest) Descriptor() ([]byte, []int) {
|
||||
return file_proto_admin_proto_rawDescGZIP(), []int{12}
|
||||
}
|
||||
|
||||
func (x *ServiceNameRequest) GetName() string {
|
||||
if x != nil {
|
||||
return x.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
var File_proto_admin_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_proto_admin_proto_rawDesc = "" +
|
||||
@@ -584,7 +784,18 @@ const file_proto_admin_proto_rawDesc = "" +
|
||||
"\x11AdminLoginRequest\x12\x1a\n" +
|
||||
"\busername\x18\x01 \x01(\tR\busername\x12\x1a\n" +
|
||||
"\bpassword\x18\x02 \x01(\tR\bpassword\"\x13\n" +
|
||||
"\x11AdminEmptyRequest2\xaa\x06\n" +
|
||||
"\x11AdminEmptyRequest\"\x1d\n" +
|
||||
"\vInfoRequest\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\"Z\n" +
|
||||
"\x12ServiceEditRequest\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x12\n" +
|
||||
"\x04name\x18\x02 \x01(\tR\x04name\x12 \n" +
|
||||
"\vdescription\x18\x03 \x01(\tR\vdescription\"A\n" +
|
||||
"\x13ServiceItemsRequest\x12\x12\n" +
|
||||
"\x04name\x18\x01 \x01(\tR\x04name\x12\x16\n" +
|
||||
"\x06status\x18\x02 \x01(\x05R\x06status\"(\n" +
|
||||
"\x12ServiceNameRequest\x12\x12\n" +
|
||||
"\x04name\x18\x01 \x01(\tR\x04name2\xfd\t\n" +
|
||||
"\x05Admin\x12V\n" +
|
||||
"\tAdminEdit\x12\x17.admin.AdminEditRequest\x1a\x0f.admin.Response\"\x1f\x82\xd3\xe4\x93\x02\x19:\x01*\"\x14/admin/v3/admin/edit\x12W\n" +
|
||||
"\vAdminStatus\x12\x14.admin.StatusRequest\x1a\x0f.admin.Response\"!\x82\xd3\xe4\x93\x02\x1b:\x01*\"\x16/admin/v3/admin/status\x12X\n" +
|
||||
@@ -596,7 +807,12 @@ const file_proto_admin_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"AdminLogin\x12\x18.admin.AdminLoginRequest\x1a\x0f.admin.Response\"\x1a\x82\xd3\xe4\x93\x02\x14:\x01*\"\x0f/admin/v3/login\x12W\n" +
|
||||
"\fAdminRefresh\x12\x18.admin.AdminEmptyRequest\x1a\x0f.admin.Response\"\x1c\x82\xd3\xe4\x93\x02\x16:\x01*\"\x11/admin/v3/refresh\x12Q\n" +
|
||||
"\tLoginInfo\x12\x18.admin.AdminEmptyRequest\x1a\x0f.admin.Response\"\x19\x82\xd3\xe4\x93\x02\x13:\x01*\"\x0e/admin/v3/infoB\tZ\a./adminb\x06proto3"
|
||||
"\tLoginInfo\x12\x18.admin.AdminEmptyRequest\x1a\x0f.admin.Response\"\x19\x82\xd3\xe4\x93\x02\x13:\x01*\"\x0e/admin/v3/info\x12U\n" +
|
||||
"\vServiceInfo\x12\x12.admin.InfoRequest\x1a\x0f.admin.Response\"!\x82\xd3\xe4\x93\x02\x1b:\x01*\"\x16/admin/v3/service/info\x12\\\n" +
|
||||
"\vServiceEdit\x12\x19.admin.ServiceEditRequest\x1a\x0f.admin.Response\"!\x82\xd3\xe4\x93\x02\x1b:\x01*\"\x16/admin/v3/service/edit\x12_\n" +
|
||||
"\fServiceItems\x12\x1a.admin.ServiceItemsRequest\x1a\x0f.admin.Response\"\"\x82\xd3\xe4\x93\x02\x1c:\x01*\"\x17/admin/v3/service/items\x12[\n" +
|
||||
"\rServiceStatus\x12\x14.admin.StatusRequest\x1a\x0f.admin.Response\"#\x82\xd3\xe4\x93\x02\x1d:\x01*\"\x18/admin/v3/service/status\x12^\n" +
|
||||
"\fServiceNames\x12\x19.admin.ServiceNameRequest\x1a\x0f.admin.Response\"\"\x82\xd3\xe4\x93\x02\x1c:\x01*\"\x17/admin/v3/service/namesB\tZ\a./adminb\x06proto3"
|
||||
|
||||
var (
|
||||
file_proto_admin_proto_rawDescOnce sync.Once
|
||||
@@ -610,42 +826,56 @@ func file_proto_admin_proto_rawDescGZIP() []byte {
|
||||
return file_proto_admin_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_proto_admin_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
|
||||
var file_proto_admin_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
|
||||
var file_proto_admin_proto_goTypes = []any{
|
||||
(*AdminEditRequest)(nil), // 0: admin.AdminEditRequest
|
||||
(*StatusRequest)(nil), // 1: admin.StatusRequest
|
||||
(*Response)(nil), // 2: admin.Response
|
||||
(*PasswordRequest)(nil), // 3: admin.PasswordRequest
|
||||
(*OwnPasswordRequest)(nil), // 4: admin.OwnPasswordRequest
|
||||
(*AdminInfoRequest)(nil), // 5: admin.AdminInfoRequest
|
||||
(*AdminItemsRequest)(nil), // 6: admin.AdminItemsRequest
|
||||
(*AdminLoginRequest)(nil), // 7: admin.AdminLoginRequest
|
||||
(*AdminEmptyRequest)(nil), // 8: admin.AdminEmptyRequest
|
||||
(*AdminEditRequest)(nil), // 0: admin.AdminEditRequest
|
||||
(*StatusRequest)(nil), // 1: admin.StatusRequest
|
||||
(*Response)(nil), // 2: admin.Response
|
||||
(*PasswordRequest)(nil), // 3: admin.PasswordRequest
|
||||
(*OwnPasswordRequest)(nil), // 4: admin.OwnPasswordRequest
|
||||
(*AdminInfoRequest)(nil), // 5: admin.AdminInfoRequest
|
||||
(*AdminItemsRequest)(nil), // 6: admin.AdminItemsRequest
|
||||
(*AdminLoginRequest)(nil), // 7: admin.AdminLoginRequest
|
||||
(*AdminEmptyRequest)(nil), // 8: admin.AdminEmptyRequest
|
||||
(*InfoRequest)(nil), // 9: admin.InfoRequest
|
||||
(*ServiceEditRequest)(nil), // 10: admin.ServiceEditRequest
|
||||
(*ServiceItemsRequest)(nil), // 11: admin.ServiceItemsRequest
|
||||
(*ServiceNameRequest)(nil), // 12: admin.ServiceNameRequest
|
||||
}
|
||||
var file_proto_admin_proto_depIdxs = []int32{
|
||||
0, // 0: admin.Admin.AdminEdit:input_type -> admin.AdminEditRequest
|
||||
1, // 1: admin.Admin.AdminStatus:input_type -> admin.StatusRequest
|
||||
3, // 2: admin.Admin.Password:input_type -> admin.PasswordRequest
|
||||
4, // 3: admin.Admin.OwnPassword:input_type -> admin.OwnPasswordRequest
|
||||
5, // 4: admin.Admin.AdminInfo:input_type -> admin.AdminInfoRequest
|
||||
6, // 5: admin.Admin.AdminItems:input_type -> admin.AdminItemsRequest
|
||||
7, // 6: admin.Admin.AdminLogin:input_type -> admin.AdminLoginRequest
|
||||
8, // 7: admin.Admin.AdminRefresh:input_type -> admin.AdminEmptyRequest
|
||||
8, // 8: admin.Admin.LoginInfo:input_type -> admin.AdminEmptyRequest
|
||||
2, // 9: admin.Admin.AdminEdit:output_type -> admin.Response
|
||||
2, // 10: admin.Admin.AdminStatus:output_type -> admin.Response
|
||||
2, // 11: admin.Admin.Password:output_type -> admin.Response
|
||||
2, // 12: admin.Admin.OwnPassword:output_type -> admin.Response
|
||||
2, // 13: admin.Admin.AdminInfo:output_type -> admin.Response
|
||||
2, // 14: admin.Admin.AdminItems:output_type -> admin.Response
|
||||
2, // 15: admin.Admin.AdminLogin:output_type -> admin.Response
|
||||
2, // 16: admin.Admin.AdminRefresh:output_type -> admin.Response
|
||||
2, // 17: admin.Admin.LoginInfo:output_type -> admin.Response
|
||||
9, // [9:18] is the sub-list for method output_type
|
||||
0, // [0:9] is the sub-list for method input_type
|
||||
0, // [0:0] is the sub-list for extension type_name
|
||||
0, // [0:0] is the sub-list for extension extendee
|
||||
0, // [0:0] is the sub-list for field type_name
|
||||
0, // 0: admin.Admin.AdminEdit:input_type -> admin.AdminEditRequest
|
||||
1, // 1: admin.Admin.AdminStatus:input_type -> admin.StatusRequest
|
||||
3, // 2: admin.Admin.Password:input_type -> admin.PasswordRequest
|
||||
4, // 3: admin.Admin.OwnPassword:input_type -> admin.OwnPasswordRequest
|
||||
5, // 4: admin.Admin.AdminInfo:input_type -> admin.AdminInfoRequest
|
||||
6, // 5: admin.Admin.AdminItems:input_type -> admin.AdminItemsRequest
|
||||
7, // 6: admin.Admin.AdminLogin:input_type -> admin.AdminLoginRequest
|
||||
8, // 7: admin.Admin.AdminRefresh:input_type -> admin.AdminEmptyRequest
|
||||
8, // 8: admin.Admin.LoginInfo:input_type -> admin.AdminEmptyRequest
|
||||
9, // 9: admin.Admin.ServiceInfo:input_type -> admin.InfoRequest
|
||||
10, // 10: admin.Admin.ServiceEdit:input_type -> admin.ServiceEditRequest
|
||||
11, // 11: admin.Admin.ServiceItems:input_type -> admin.ServiceItemsRequest
|
||||
1, // 12: admin.Admin.ServiceStatus:input_type -> admin.StatusRequest
|
||||
12, // 13: admin.Admin.ServiceNames:input_type -> admin.ServiceNameRequest
|
||||
2, // 14: admin.Admin.AdminEdit:output_type -> admin.Response
|
||||
2, // 15: admin.Admin.AdminStatus:output_type -> admin.Response
|
||||
2, // 16: admin.Admin.Password:output_type -> admin.Response
|
||||
2, // 17: admin.Admin.OwnPassword:output_type -> admin.Response
|
||||
2, // 18: admin.Admin.AdminInfo:output_type -> admin.Response
|
||||
2, // 19: admin.Admin.AdminItems:output_type -> admin.Response
|
||||
2, // 20: admin.Admin.AdminLogin:output_type -> admin.Response
|
||||
2, // 21: admin.Admin.AdminRefresh:output_type -> admin.Response
|
||||
2, // 22: admin.Admin.LoginInfo:output_type -> admin.Response
|
||||
2, // 23: admin.Admin.ServiceInfo:output_type -> admin.Response
|
||||
2, // 24: admin.Admin.ServiceEdit:output_type -> admin.Response
|
||||
2, // 25: admin.Admin.ServiceItems:output_type -> admin.Response
|
||||
2, // 26: admin.Admin.ServiceStatus:output_type -> admin.Response
|
||||
2, // 27: admin.Admin.ServiceNames:output_type -> admin.Response
|
||||
14, // [14:28] is the sub-list for method output_type
|
||||
0, // [0:14] is the sub-list for method input_type
|
||||
0, // [0:0] is the sub-list for extension type_name
|
||||
0, // [0:0] is the sub-list for extension extendee
|
||||
0, // [0:0] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_proto_admin_proto_init() }
|
||||
@@ -659,7 +889,7 @@ func file_proto_admin_proto_init() {
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_proto_admin_proto_rawDesc), len(file_proto_admin_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 9,
|
||||
NumMessages: 13,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
|
||||
@@ -19,15 +19,20 @@ import (
|
||||
const _ = grpc.SupportPackageIsVersion9
|
||||
|
||||
const (
|
||||
Admin_AdminEdit_FullMethodName = "/admin.Admin/AdminEdit"
|
||||
Admin_AdminStatus_FullMethodName = "/admin.Admin/AdminStatus"
|
||||
Admin_Password_FullMethodName = "/admin.Admin/Password"
|
||||
Admin_OwnPassword_FullMethodName = "/admin.Admin/OwnPassword"
|
||||
Admin_AdminInfo_FullMethodName = "/admin.Admin/AdminInfo"
|
||||
Admin_AdminItems_FullMethodName = "/admin.Admin/AdminItems"
|
||||
Admin_AdminLogin_FullMethodName = "/admin.Admin/AdminLogin"
|
||||
Admin_AdminRefresh_FullMethodName = "/admin.Admin/AdminRefresh"
|
||||
Admin_LoginInfo_FullMethodName = "/admin.Admin/LoginInfo"
|
||||
Admin_AdminEdit_FullMethodName = "/admin.Admin/AdminEdit"
|
||||
Admin_AdminStatus_FullMethodName = "/admin.Admin/AdminStatus"
|
||||
Admin_Password_FullMethodName = "/admin.Admin/Password"
|
||||
Admin_OwnPassword_FullMethodName = "/admin.Admin/OwnPassword"
|
||||
Admin_AdminInfo_FullMethodName = "/admin.Admin/AdminInfo"
|
||||
Admin_AdminItems_FullMethodName = "/admin.Admin/AdminItems"
|
||||
Admin_AdminLogin_FullMethodName = "/admin.Admin/AdminLogin"
|
||||
Admin_AdminRefresh_FullMethodName = "/admin.Admin/AdminRefresh"
|
||||
Admin_LoginInfo_FullMethodName = "/admin.Admin/LoginInfo"
|
||||
Admin_ServiceInfo_FullMethodName = "/admin.Admin/ServiceInfo"
|
||||
Admin_ServiceEdit_FullMethodName = "/admin.Admin/ServiceEdit"
|
||||
Admin_ServiceItems_FullMethodName = "/admin.Admin/ServiceItems"
|
||||
Admin_ServiceStatus_FullMethodName = "/admin.Admin/ServiceStatus"
|
||||
Admin_ServiceNames_FullMethodName = "/admin.Admin/ServiceNames"
|
||||
)
|
||||
|
||||
// AdminClient is the client API for Admin service.
|
||||
@@ -43,6 +48,11 @@ type AdminClient interface {
|
||||
AdminLogin(ctx context.Context, in *AdminLoginRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
AdminRefresh(ctx context.Context, in *AdminEmptyRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
LoginInfo(ctx context.Context, in *AdminEmptyRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
ServiceInfo(ctx context.Context, in *InfoRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
ServiceEdit(ctx context.Context, in *ServiceEditRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
ServiceItems(ctx context.Context, in *ServiceItemsRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
ServiceStatus(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
ServiceNames(ctx context.Context, in *ServiceNameRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
}
|
||||
|
||||
type adminClient struct {
|
||||
@@ -143,6 +153,56 @@ func (c *adminClient) LoginInfo(ctx context.Context, in *AdminEmptyRequest, opts
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *adminClient) ServiceInfo(ctx context.Context, in *InfoRequest, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
err := c.cc.Invoke(ctx, Admin_ServiceInfo_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *adminClient) ServiceEdit(ctx context.Context, in *ServiceEditRequest, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
err := c.cc.Invoke(ctx, Admin_ServiceEdit_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *adminClient) ServiceItems(ctx context.Context, in *ServiceItemsRequest, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
err := c.cc.Invoke(ctx, Admin_ServiceItems_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *adminClient) ServiceStatus(ctx context.Context, in *StatusRequest, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
err := c.cc.Invoke(ctx, Admin_ServiceStatus_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *adminClient) ServiceNames(ctx context.Context, in *ServiceNameRequest, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
err := c.cc.Invoke(ctx, Admin_ServiceNames_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// AdminServer is the server API for Admin service.
|
||||
// All implementations must embed UnimplementedAdminServer
|
||||
// for forward compatibility.
|
||||
@@ -156,6 +216,11 @@ type AdminServer interface {
|
||||
AdminLogin(context.Context, *AdminLoginRequest) (*Response, error)
|
||||
AdminRefresh(context.Context, *AdminEmptyRequest) (*Response, error)
|
||||
LoginInfo(context.Context, *AdminEmptyRequest) (*Response, error)
|
||||
ServiceInfo(context.Context, *InfoRequest) (*Response, error)
|
||||
ServiceEdit(context.Context, *ServiceEditRequest) (*Response, error)
|
||||
ServiceItems(context.Context, *ServiceItemsRequest) (*Response, error)
|
||||
ServiceStatus(context.Context, *StatusRequest) (*Response, error)
|
||||
ServiceNames(context.Context, *ServiceNameRequest) (*Response, error)
|
||||
mustEmbedUnimplementedAdminServer()
|
||||
}
|
||||
|
||||
@@ -193,6 +258,21 @@ func (UnimplementedAdminServer) AdminRefresh(context.Context, *AdminEmptyRequest
|
||||
func (UnimplementedAdminServer) LoginInfo(context.Context, *AdminEmptyRequest) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method LoginInfo not implemented")
|
||||
}
|
||||
func (UnimplementedAdminServer) ServiceInfo(context.Context, *InfoRequest) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method ServiceInfo not implemented")
|
||||
}
|
||||
func (UnimplementedAdminServer) ServiceEdit(context.Context, *ServiceEditRequest) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method ServiceEdit not implemented")
|
||||
}
|
||||
func (UnimplementedAdminServer) ServiceItems(context.Context, *ServiceItemsRequest) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method ServiceItems not implemented")
|
||||
}
|
||||
func (UnimplementedAdminServer) ServiceStatus(context.Context, *StatusRequest) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method ServiceStatus not implemented")
|
||||
}
|
||||
func (UnimplementedAdminServer) ServiceNames(context.Context, *ServiceNameRequest) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method ServiceNames not implemented")
|
||||
}
|
||||
func (UnimplementedAdminServer) mustEmbedUnimplementedAdminServer() {}
|
||||
func (UnimplementedAdminServer) testEmbeddedByValue() {}
|
||||
|
||||
@@ -376,6 +456,96 @@ func _Admin_LoginInfo_Handler(srv interface{}, ctx context.Context, dec func(int
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Admin_ServiceInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(InfoRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AdminServer).ServiceInfo(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Admin_ServiceInfo_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AdminServer).ServiceInfo(ctx, req.(*InfoRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Admin_ServiceEdit_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ServiceEditRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AdminServer).ServiceEdit(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Admin_ServiceEdit_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AdminServer).ServiceEdit(ctx, req.(*ServiceEditRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Admin_ServiceItems_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ServiceItemsRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AdminServer).ServiceItems(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Admin_ServiceItems_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AdminServer).ServiceItems(ctx, req.(*ServiceItemsRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Admin_ServiceStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(StatusRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AdminServer).ServiceStatus(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Admin_ServiceStatus_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AdminServer).ServiceStatus(ctx, req.(*StatusRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Admin_ServiceNames_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ServiceNameRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(AdminServer).ServiceNames(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Admin_ServiceNames_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(AdminServer).ServiceNames(ctx, req.(*ServiceNameRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// Admin_ServiceDesc is the grpc.ServiceDesc for Admin service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
@@ -419,6 +589,26 @@ var Admin_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "LoginInfo",
|
||||
Handler: _Admin_LoginInfo_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ServiceInfo",
|
||||
Handler: _Admin_ServiceInfo_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ServiceEdit",
|
||||
Handler: _Admin_ServiceEdit_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ServiceItems",
|
||||
Handler: _Admin_ServiceItems_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ServiceStatus",
|
||||
Handler: _Admin_ServiceStatus_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ServiceNames",
|
||||
Handler: _Admin_ServiceNames_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "proto/admin.proto",
|
||||
|
||||
Reference in New Issue
Block a user