50 lines
1.2 KiB
Go
50 lines
1.2 KiB
Go
// Code generated by goctl. DO NOT EDIT.
|
|
// goctl 1.10.2
|
|
// Source: task.proto
|
|
|
|
package server
|
|
|
|
import (
|
|
"context"
|
|
|
|
"lone-services/rpc/task/pb"
|
|
"lone-services/services/task/internal/logic"
|
|
"lone-services/services/task/internal/svc"
|
|
)
|
|
|
|
type TaskServer struct {
|
|
svcCtx *svc.ServiceContext
|
|
task.UnimplementedTaskServer
|
|
}
|
|
|
|
func NewTaskServer(svcCtx *svc.ServiceContext) *TaskServer {
|
|
return &TaskServer{
|
|
svcCtx: svcCtx,
|
|
}
|
|
}
|
|
|
|
func (s *TaskServer) Items(ctx context.Context, in *task.EmtpyRequest) (*task.Response, error) {
|
|
l := logic.NewItemsLogic(ctx, s.svcCtx)
|
|
return l.Items(in)
|
|
}
|
|
|
|
func (s *TaskServer) Info(ctx context.Context, in *task.IdRequest) (*task.Response, error) {
|
|
l := logic.NewInfoLogic(ctx, s.svcCtx)
|
|
return l.Info(in)
|
|
}
|
|
|
|
func (s *TaskServer) Create(ctx context.Context, in *task.CreateRequest) (*task.Response, error) {
|
|
l := logic.NewCreateLogic(ctx, s.svcCtx)
|
|
return l.Create(in)
|
|
}
|
|
|
|
func (s *TaskServer) Edit(ctx context.Context, in *task.EditRequest) (*task.Response, error) {
|
|
l := logic.NewEditLogic(ctx, s.svcCtx)
|
|
return l.Edit(in)
|
|
}
|
|
|
|
func (s *TaskServer) Status(ctx context.Context, in *task.StatusRequest) (*task.Response, error) {
|
|
l := logic.NewStatusLogic(ctx, s.svcCtx)
|
|
return l.Status(in)
|
|
}
|