fix admin login log
CI / changes (push) Successful in 4s
CI / docker-bff (push) Successful in 3m21s
CI / docker-product (push) Successful in 3m39s
CI / docker-admin (push) Successful in 3m34s
CI / docker-user (push) Successful in 3m29s
CI / docker-ad (push) Successful in 3m29s
CI / changes (push) Successful in 4s
CI / docker-bff (push) Successful in 3m21s
CI / docker-product (push) Successful in 3m39s
CI / docker-admin (push) Successful in 3m34s
CI / docker-user (push) Successful in 3m29s
CI / docker-ad (push) Successful in 3m29s
This commit is contained in:
@@ -19,9 +19,10 @@ import (
|
||||
const _ = grpc.SupportPackageIsVersion9
|
||||
|
||||
const (
|
||||
Lonelog_Items_FullMethodName = "/lonelog.Lonelog/Items"
|
||||
Lonelog_ActionAdd_FullMethodName = "/lonelog.Lonelog/ActionAdd"
|
||||
Lonelog_LoginAdd_FullMethodName = "/lonelog.Lonelog/LoginAdd"
|
||||
Lonelog_Items_FullMethodName = "/lonelog.Lonelog/Items"
|
||||
Lonelog_LoginItems_FullMethodName = "/lonelog.Lonelog/LoginItems"
|
||||
Lonelog_ActionAdd_FullMethodName = "/lonelog.Lonelog/ActionAdd"
|
||||
Lonelog_LoginAdd_FullMethodName = "/lonelog.Lonelog/LoginAdd"
|
||||
)
|
||||
|
||||
// LonelogClient is the client API for Lonelog service.
|
||||
@@ -29,6 +30,7 @@ const (
|
||||
// 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 LonelogClient 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)
|
||||
}
|
||||
@@ -51,6 +53,16 @@ func (c *lonelogClient) Items(ctx context.Context, in *ItemsRequest, opts ...grp
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *lonelogClient) 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, Lonelog_LoginItems_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *lonelogClient) ActionAdd(ctx context.Context, in *ActionLog, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
@@ -76,6 +88,7 @@ func (c *lonelogClient) LoginAdd(ctx context.Context, in *LoginLog, opts ...grpc
|
||||
// for forward compatibility.
|
||||
type LonelogServer 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)
|
||||
mustEmbedUnimplementedLonelogServer()
|
||||
@@ -91,6 +104,9 @@ type UnimplementedLonelogServer struct{}
|
||||
func (UnimplementedLonelogServer) Items(context.Context, *ItemsRequest) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Items not implemented")
|
||||
}
|
||||
func (UnimplementedLonelogServer) LoginItems(context.Context, *ItemsRequest) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method LoginItems not implemented")
|
||||
}
|
||||
func (UnimplementedLonelogServer) ActionAdd(context.Context, *ActionLog) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method ActionAdd not implemented")
|
||||
}
|
||||
@@ -136,6 +152,24 @@ func _Lonelog_Items_Handler(srv interface{}, ctx context.Context, dec func(inter
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Lonelog_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.(LonelogServer).LoginItems(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: Lonelog_LoginItems_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(LonelogServer).LoginItems(ctx, req.(*ItemsRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _Lonelog_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 {
|
||||
@@ -183,6 +217,10 @@ var Lonelog_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "Items",
|
||||
Handler: _Lonelog_Items_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "LoginItems",
|
||||
Handler: _Lonelog_LoginItems_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ActionAdd",
|
||||
Handler: _Lonelog_ActionAdd_Handler,
|
||||
|
||||
Reference in New Issue
Block a user