40 lines
984 B
Go
40 lines
984 B
Go
// Code generated by goctl. DO NOT EDIT.
|
|
// goctl 1.10.2
|
|
// Source: lonelog.proto
|
|
|
|
package server
|
|
|
|
import (
|
|
"context"
|
|
|
|
"lone-services/rpc/lonelog/pb"
|
|
"lone-services/services/lonelog/internal/logic"
|
|
"lone-services/services/lonelog/internal/svc"
|
|
)
|
|
|
|
type LonelogServer struct {
|
|
svcCtx *svc.ServiceContext
|
|
lonelog.UnimplementedLonelogServer
|
|
}
|
|
|
|
func NewLonelogServer(svcCtx *svc.ServiceContext) *LonelogServer {
|
|
return &LonelogServer{
|
|
svcCtx: svcCtx,
|
|
}
|
|
}
|
|
|
|
func (s *LonelogServer) Items(ctx context.Context, in *lonelog.ItemsRequest) (*lonelog.Response, error) {
|
|
l := logic.NewItemsLogic(ctx, s.svcCtx)
|
|
return l.Items(in)
|
|
}
|
|
|
|
func (s *LonelogServer) ActionAdd(ctx context.Context, in *lonelog.ActionLog) (*lonelog.Response, error) {
|
|
l := logic.NewActionAddLogic(ctx, s.svcCtx)
|
|
return l.ActionAdd(in)
|
|
}
|
|
|
|
func (s *LonelogServer) LoginAdd(ctx context.Context, in *lonelog.LoginLog) (*lonelog.Response, error) {
|
|
l := logic.NewLoginAddLogic(ctx, s.svcCtx)
|
|
return l.LoginAdd(in)
|
|
}
|