2 Star 2 Fork 0

jmash / jmash

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
file_rpc_grpc.pb.go 12.19 KB
一键复制 编辑 原始数据 按行查看 历史
百圆汽车保养 提交于 2024-01-02 18:16 . 文件管理,网关和k8s
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.2.0
// - protoc v4.25.1
// source: jmash/file/file_rpc.proto
package file
import (
context "context"
basic "gitee.com/jmash/jmash/trunk/jmash-core-gateway/src/jmash/basic"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
wrapperspb "google.golang.org/protobuf/types/known/wrapperspb"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
// FileClient is the client API for File service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type FileClient interface {
// 枚举值列表
FindEnumList(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*basic.EnumValueList, error)
// 枚举值Map
FindEnumMap(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*basic.CustomEnumValueMap, error)
// 查询翻页信息
FindJmashFilePage(ctx context.Context, in *JmashFileReq, opts ...grpc.CallOption) (*JmashFilePage, error)
// 查询列表信息
FindJmashFileList(ctx context.Context, in *JmashFileReq, opts ...grpc.CallOption) (*JmashFileList, error)
// 查询
FindJmashFileById(ctx context.Context, in *JmashFileKey, opts ...grpc.CallOption) (*JmashFileModel, error)
// 删除
DeleteJmashFile(ctx context.Context, in *JmashFileKey, opts ...grpc.CallOption) (*JmashFileModel, error)
// 批量删除
BatchDeleteJmashFile(ctx context.Context, in *JmashFileKeyList, opts ...grpc.CallOption) (*wrapperspb.Int32Value, error)
}
type fileClient struct {
cc grpc.ClientConnInterface
}
func NewFileClient(cc grpc.ClientConnInterface) FileClient {
return &fileClient{cc}
}
func (c *fileClient) FindEnumList(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*basic.EnumValueList, error) {
out := new(basic.EnumValueList)
err := c.cc.Invoke(ctx, "/jmash.file.File/findEnumList", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fileClient) FindEnumMap(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*basic.CustomEnumValueMap, error) {
out := new(basic.CustomEnumValueMap)
err := c.cc.Invoke(ctx, "/jmash.file.File/findEnumMap", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fileClient) FindJmashFilePage(ctx context.Context, in *JmashFileReq, opts ...grpc.CallOption) (*JmashFilePage, error) {
out := new(JmashFilePage)
err := c.cc.Invoke(ctx, "/jmash.file.File/findJmashFilePage", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fileClient) FindJmashFileList(ctx context.Context, in *JmashFileReq, opts ...grpc.CallOption) (*JmashFileList, error) {
out := new(JmashFileList)
err := c.cc.Invoke(ctx, "/jmash.file.File/findJmashFileList", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fileClient) FindJmashFileById(ctx context.Context, in *JmashFileKey, opts ...grpc.CallOption) (*JmashFileModel, error) {
out := new(JmashFileModel)
err := c.cc.Invoke(ctx, "/jmash.file.File/findJmashFileById", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fileClient) DeleteJmashFile(ctx context.Context, in *JmashFileKey, opts ...grpc.CallOption) (*JmashFileModel, error) {
out := new(JmashFileModel)
err := c.cc.Invoke(ctx, "/jmash.file.File/deleteJmashFile", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *fileClient) BatchDeleteJmashFile(ctx context.Context, in *JmashFileKeyList, opts ...grpc.CallOption) (*wrapperspb.Int32Value, error) {
out := new(wrapperspb.Int32Value)
err := c.cc.Invoke(ctx, "/jmash.file.File/batchDeleteJmashFile", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// FileServer is the server API for File service.
// All implementations must embed UnimplementedFileServer
// for forward compatibility
type FileServer interface {
// 枚举值列表
FindEnumList(context.Context, *wrapperspb.StringValue) (*basic.EnumValueList, error)
// 枚举值Map
FindEnumMap(context.Context, *wrapperspb.StringValue) (*basic.CustomEnumValueMap, error)
// 查询翻页信息
FindJmashFilePage(context.Context, *JmashFileReq) (*JmashFilePage, error)
// 查询列表信息
FindJmashFileList(context.Context, *JmashFileReq) (*JmashFileList, error)
// 查询
FindJmashFileById(context.Context, *JmashFileKey) (*JmashFileModel, error)
// 删除
DeleteJmashFile(context.Context, *JmashFileKey) (*JmashFileModel, error)
// 批量删除
BatchDeleteJmashFile(context.Context, *JmashFileKeyList) (*wrapperspb.Int32Value, error)
mustEmbedUnimplementedFileServer()
}
// UnimplementedFileServer must be embedded to have forward compatible implementations.
type UnimplementedFileServer struct {
}
func (UnimplementedFileServer) FindEnumList(context.Context, *wrapperspb.StringValue) (*basic.EnumValueList, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindEnumList not implemented")
}
func (UnimplementedFileServer) FindEnumMap(context.Context, *wrapperspb.StringValue) (*basic.CustomEnumValueMap, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindEnumMap not implemented")
}
func (UnimplementedFileServer) FindJmashFilePage(context.Context, *JmashFileReq) (*JmashFilePage, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindJmashFilePage not implemented")
}
func (UnimplementedFileServer) FindJmashFileList(context.Context, *JmashFileReq) (*JmashFileList, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindJmashFileList not implemented")
}
func (UnimplementedFileServer) FindJmashFileById(context.Context, *JmashFileKey) (*JmashFileModel, error) {
return nil, status.Errorf(codes.Unimplemented, "method FindJmashFileById not implemented")
}
func (UnimplementedFileServer) DeleteJmashFile(context.Context, *JmashFileKey) (*JmashFileModel, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeleteJmashFile not implemented")
}
func (UnimplementedFileServer) BatchDeleteJmashFile(context.Context, *JmashFileKeyList) (*wrapperspb.Int32Value, error) {
return nil, status.Errorf(codes.Unimplemented, "method BatchDeleteJmashFile not implemented")
}
func (UnimplementedFileServer) mustEmbedUnimplementedFileServer() {}
// UnsafeFileServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to FileServer will
// result in compilation errors.
type UnsafeFileServer interface {
mustEmbedUnimplementedFileServer()
}
func RegisterFileServer(s grpc.ServiceRegistrar, srv FileServer) {
s.RegisterService(&File_ServiceDesc, srv)
}
func _File_FindEnumList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(wrapperspb.StringValue)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FileServer).FindEnumList(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/jmash.file.File/findEnumList",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FileServer).FindEnumList(ctx, req.(*wrapperspb.StringValue))
}
return interceptor(ctx, in, info, handler)
}
func _File_FindEnumMap_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(wrapperspb.StringValue)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FileServer).FindEnumMap(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/jmash.file.File/findEnumMap",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FileServer).FindEnumMap(ctx, req.(*wrapperspb.StringValue))
}
return interceptor(ctx, in, info, handler)
}
func _File_FindJmashFilePage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(JmashFileReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FileServer).FindJmashFilePage(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/jmash.file.File/findJmashFilePage",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FileServer).FindJmashFilePage(ctx, req.(*JmashFileReq))
}
return interceptor(ctx, in, info, handler)
}
func _File_FindJmashFileList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(JmashFileReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FileServer).FindJmashFileList(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/jmash.file.File/findJmashFileList",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FileServer).FindJmashFileList(ctx, req.(*JmashFileReq))
}
return interceptor(ctx, in, info, handler)
}
func _File_FindJmashFileById_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(JmashFileKey)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FileServer).FindJmashFileById(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/jmash.file.File/findJmashFileById",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FileServer).FindJmashFileById(ctx, req.(*JmashFileKey))
}
return interceptor(ctx, in, info, handler)
}
func _File_DeleteJmashFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(JmashFileKey)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FileServer).DeleteJmashFile(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/jmash.file.File/deleteJmashFile",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FileServer).DeleteJmashFile(ctx, req.(*JmashFileKey))
}
return interceptor(ctx, in, info, handler)
}
func _File_BatchDeleteJmashFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(JmashFileKeyList)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(FileServer).BatchDeleteJmashFile(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/jmash.file.File/batchDeleteJmashFile",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(FileServer).BatchDeleteJmashFile(ctx, req.(*JmashFileKeyList))
}
return interceptor(ctx, in, info, handler)
}
// File_ServiceDesc is the grpc.ServiceDesc for File service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var File_ServiceDesc = grpc.ServiceDesc{
ServiceName: "jmash.file.File",
HandlerType: (*FileServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "findEnumList",
Handler: _File_FindEnumList_Handler,
},
{
MethodName: "findEnumMap",
Handler: _File_FindEnumMap_Handler,
},
{
MethodName: "findJmashFilePage",
Handler: _File_FindJmashFilePage_Handler,
},
{
MethodName: "findJmashFileList",
Handler: _File_FindJmashFileList_Handler,
},
{
MethodName: "findJmashFileById",
Handler: _File_FindJmashFileById_Handler,
},
{
MethodName: "deleteJmashFile",
Handler: _File_DeleteJmashFile_Handler,
},
{
MethodName: "batchDeleteJmashFile",
Handler: _File_BatchDeleteJmashFile_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "jmash/file/file_rpc.proto",
}
Java
1
https://gitee.com/jmash/jmash.git
git@gitee.com:jmash/jmash.git
jmash
jmash
jmash
469a15fb8504

搜索帮助