lonelog to record
CI / changes (push) Successful in 36s
CI / ad (push) Successful in 0s
CI / admin (push) Successful in 0s
CI / bff (push) Successful in 18s
CI / chore (push) Successful in 0s
CI / equipment (push) Successful in 0s
CI / express (push) Successful in 0s
CI / product (push) Successful in 0s
CI / record (push) Successful in 20s
CI / sale (push) Successful in 0s
CI / task (push) Successful in 0s
CI / user (push) Successful in 0s
CI / wecom (push) Successful in 1s
CI / changes (push) Successful in 36s
CI / ad (push) Successful in 0s
CI / admin (push) Successful in 0s
CI / bff (push) Successful in 18s
CI / chore (push) Successful in 0s
CI / equipment (push) Successful in 0s
CI / express (push) Successful in 0s
CI / product (push) Successful in 0s
CI / record (push) Successful in 20s
CI / sale (push) Successful in 0s
CI / task (push) Successful in 0s
CI / user (push) Successful in 0s
CI / wecom (push) Successful in 1s
This commit is contained in:
@@ -0,0 +1,235 @@
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.6.2
|
||||
// - protoc v4.25.8
|
||||
// source: record/record.proto
|
||||
|
||||
package record
|
||||
|
||||
import (
|
||||
context "context"
|
||||
grpc "google.golang.org/grpc"
|
||||
codes "google.golang.org/grpc/codes"
|
||||
status "google.golang.org/grpc/status"
|
||||
)
|
||||
|
||||
// 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.64.0 or later.
|
||||
const _ = grpc.SupportPackageIsVersion9
|
||||
|
||||
const (
|
||||
Record_Items_FullMethodName = "/record.Record/Items"
|
||||
Record_LoginItems_FullMethodName = "/record.Record/LoginItems"
|
||||
Record_ActionAdd_FullMethodName = "/record.Record/ActionAdd"
|
||||
Record_LoginAdd_FullMethodName = "/record.Record/LoginAdd"
|
||||
)
|
||||
|
||||
// RecordClient is the client API for Record 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 RecordClient interface {
|
||||
Items(ctx context.Context, in *ItemsRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
LoginItems(ctx context.Context, in *ItemsRequest, opts ...grpc.CallOption) (*Response, error)
|
||||
ActionAdd(ctx context.Context, in *ActionLog, opts ...grpc.CallOption) (*Response, error)
|
||||
LoginAdd(ctx context.Context, in *LoginLog, opts ...grpc.CallOption) (*Response, error)
|
||||
}
|
||||
|
||||
type recordClient struct {
|
||||
cc grpc.ClientConnInterface
|
||||
}
|
||||
|
||||
func NewRecordClient(cc grpc.ClientConnInterface) RecordClient {
|
||||
return &recordClient{cc}
|
||||
}
|
||||
|
||||
func (c *recordClient) Items(ctx context.Context, in *ItemsRequest, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
err := c.cc.Invoke(ctx, Record_Items_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *recordClient) LoginItems(ctx context.Context, in *ItemsRequest, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
err := c.cc.Invoke(ctx, Record_LoginItems_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *recordClient) ActionAdd(ctx context.Context, in *ActionLog, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
err := c.cc.Invoke(ctx, Record_ActionAdd_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *recordClient) LoginAdd(ctx context.Context, in *LoginLog, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
err := c.cc.Invoke(ctx, Record_LoginAdd_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// RecordServer is the server API for Record service.
|
||||
// All implementations must embed UnimplementedRecordServer
|
||||
// for forward compatibility.
|
||||
type RecordServer interface {
|
||||
Items(context.Context, *ItemsRequest) (*Response, error)
|
||||
LoginItems(context.Context, *ItemsRequest) (*Response, error)
|
||||
ActionAdd(context.Context, *ActionLog) (*Response, error)
|
||||
LoginAdd(context.Context, *LoginLog) (*Response, error)
|
||||
mustEmbedUnimplementedRecordServer()
|
||||
}
|
||||
|
||||
// UnimplementedRecordServer must be embedded to have
|
||||
// forward compatible implementations.
|
||||
//
|
||||
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
||||
// pointer dereference when methods are called.
|
||||
type UnimplementedRecordServer struct{}
|
||||
|
||||
func (UnimplementedRecordServer) Items(context.Context, *ItemsRequest) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Items not implemented")
|
||||
}
|
||||
func (UnimplementedRecordServer) LoginItems(context.Context, *ItemsRequest) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method LoginItems not implemented")
|
||||
}
|
||||
func (UnimplementedRecordServer) ActionAdd(context.Context, *ActionLog) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method ActionAdd not implemented")
|
||||
}
|
||||
func (UnimplementedRecordServer) LoginAdd(context.Context, *LoginLog) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method LoginAdd not implemented")
|
||||
}
|
||||
func (UnimplementedRecordServer) mustEmbedUnimplementedRecordServer() {}
|
||||
func (UnimplementedRecordServer) testEmbeddedByValue() {}
|
||||
|
||||
// UnsafeRecordServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to RecordServer will
|
||||
// result in compilation errors.
|
||||
type UnsafeRecordServer interface {
|
||||
mustEmbedUnimplementedRecordServer()
|
||||
}
|
||||
|
||||
func RegisterRecordServer(s grpc.ServiceRegistrar, srv RecordServer) {
|
||||
// If the following call panics, it indicates UnimplementedRecordServer was
|
||||
// embedded by pointer and is nil. This will cause panics if an
|
||||
// unimplemented method is ever invoked, so we test this at initialization
|
||||
// time to prevent it from happening at runtime later due to I/O.
|
||||
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
|
||||
t.testEmbeddedByValue()
|
||||
}
|
||||
s.RegisterService(&Record_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
func _Record_Items_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ItemsRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(RecordServer).Items(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Record_Items_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(RecordServer).Items(ctx, req.(*ItemsRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Record_LoginItems_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ItemsRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(RecordServer).LoginItems(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Record_LoginItems_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(RecordServer).LoginItems(ctx, req.(*ItemsRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Record_ActionAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ActionLog)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(RecordServer).ActionAdd(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Record_ActionAdd_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(RecordServer).ActionAdd(ctx, req.(*ActionLog))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Record_LoginAdd_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(LoginLog)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(RecordServer).LoginAdd(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Record_LoginAdd_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(RecordServer).LoginAdd(ctx, req.(*LoginLog))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// Record_ServiceDesc is the grpc.ServiceDesc for Record service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
var Record_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "record.Record",
|
||||
HandlerType: (*RecordServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "Items",
|
||||
Handler: _Record_Items_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "LoginItems",
|
||||
Handler: _Record_LoginItems_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ActionAdd",
|
||||
Handler: _Record_ActionAdd_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "LoginAdd",
|
||||
Handler: _Record_LoginAdd_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "record/record.proto",
|
||||
}
|
||||
Reference in New Issue
Block a user