125 lines
4.1 KiB
Go
125 lines
4.1 KiB
Go
// Code generated by goctl. DO NOT EDIT.
|
|
// goctl 1.10.2
|
|
// Source: factory.proto
|
|
|
|
package server
|
|
|
|
import (
|
|
"context"
|
|
|
|
"lone-services/rpc/factory/pb"
|
|
"lone-services/services/factory/internal/logic"
|
|
"lone-services/services/factory/internal/svc"
|
|
)
|
|
|
|
type FactoryServer struct {
|
|
svcCtx *svc.ServiceContext
|
|
factory.UnimplementedFactoryServer
|
|
}
|
|
|
|
func NewFactoryServer(svcCtx *svc.ServiceContext) *FactoryServer {
|
|
return &FactoryServer{
|
|
svcCtx: svcCtx,
|
|
}
|
|
}
|
|
|
|
func (s *FactoryServer) GroupItems(ctx context.Context, in *factory.GroupItemsRequest) (*factory.Response, error) {
|
|
l := logic.NewGroupItemsLogic(ctx, s.svcCtx)
|
|
return l.GroupItems(in)
|
|
}
|
|
|
|
func (s *FactoryServer) GroupInfo(ctx context.Context, in *factory.IdRequest) (*factory.Response, error) {
|
|
l := logic.NewGroupInfoLogic(ctx, s.svcCtx)
|
|
return l.GroupInfo(in)
|
|
}
|
|
|
|
func (s *FactoryServer) GroupCreate(ctx context.Context, in *factory.GroupCreateRequest) (*factory.Response, error) {
|
|
l := logic.NewGroupCreateLogic(ctx, s.svcCtx)
|
|
return l.GroupCreate(in)
|
|
}
|
|
|
|
func (s *FactoryServer) GroupEdit(ctx context.Context, in *factory.GroupEditRequest) (*factory.Response, error) {
|
|
l := logic.NewGroupEditLogic(ctx, s.svcCtx)
|
|
return l.GroupEdit(in)
|
|
}
|
|
|
|
func (s *FactoryServer) GroupStatus(ctx context.Context, in *factory.StatusRequest) (*factory.Response, error) {
|
|
l := logic.NewGroupStatusLogic(ctx, s.svcCtx)
|
|
return l.GroupStatus(in)
|
|
}
|
|
|
|
func (s *FactoryServer) GroupNames(ctx context.Context, in *factory.EmptyRequest) (*factory.Response, error) {
|
|
l := logic.NewGroupNamesLogic(ctx, s.svcCtx)
|
|
return l.GroupNames(in)
|
|
}
|
|
|
|
func (s *FactoryServer) GroupPassword(ctx context.Context, in *factory.GroupPasswordRequest) (*factory.Response, error) {
|
|
l := logic.NewGroupPasswordLogic(ctx, s.svcCtx)
|
|
return l.GroupPassword(in)
|
|
}
|
|
|
|
func (s *FactoryServer) PostItems(ctx context.Context, in *factory.EmptyRequest) (*factory.Response, error) {
|
|
l := logic.NewPostItemsLogic(ctx, s.svcCtx)
|
|
return l.PostItems(in)
|
|
}
|
|
|
|
func (s *FactoryServer) PostInfo(ctx context.Context, in *factory.IdRequest) (*factory.Response, error) {
|
|
l := logic.NewPostInfoLogic(ctx, s.svcCtx)
|
|
return l.PostInfo(in)
|
|
}
|
|
|
|
func (s *FactoryServer) PostCreate(ctx context.Context, in *factory.PostCreateRequest) (*factory.Response, error) {
|
|
l := logic.NewPostCreateLogic(ctx, s.svcCtx)
|
|
return l.PostCreate(in)
|
|
}
|
|
|
|
func (s *FactoryServer) PostEdit(ctx context.Context, in *factory.PostEditRequest) (*factory.Response, error) {
|
|
l := logic.NewPostEditLogic(ctx, s.svcCtx)
|
|
return l.PostEdit(in)
|
|
}
|
|
|
|
func (s *FactoryServer) PostStatus(ctx context.Context, in *factory.StatusRequest) (*factory.Response, error) {
|
|
l := logic.NewPostStatusLogic(ctx, s.svcCtx)
|
|
return l.PostStatus(in)
|
|
}
|
|
|
|
func (s *FactoryServer) PostNames(ctx context.Context, in *factory.EmptyRequest) (*factory.Response, error) {
|
|
l := logic.NewPostNamesLogic(ctx, s.svcCtx)
|
|
return l.PostNames(in)
|
|
}
|
|
|
|
func (s *FactoryServer) LogItems(ctx context.Context, in *factory.LogItemsRequest) (*factory.Response, error) {
|
|
l := logic.NewLogItemsLogic(ctx, s.svcCtx)
|
|
return l.LogItems(in)
|
|
}
|
|
|
|
func (s *FactoryServer) WorkerCreate(ctx context.Context, in *factory.WorkerCreateRequest) (*factory.Response, error) {
|
|
l := logic.NewWorkerCreateLogic(ctx, s.svcCtx)
|
|
return l.WorkerCreate(in)
|
|
}
|
|
|
|
func (s *FactoryServer) WorkerEdit(ctx context.Context, in *factory.WorkerEditRequest) (*factory.Response, error) {
|
|
l := logic.NewWorkerEditLogic(ctx, s.svcCtx)
|
|
return l.WorkerEdit(in)
|
|
}
|
|
|
|
func (s *FactoryServer) WorkerStatus(ctx context.Context, in *factory.StatusRequest) (*factory.Response, error) {
|
|
l := logic.NewWorkerStatusLogic(ctx, s.svcCtx)
|
|
return l.WorkerStatus(in)
|
|
}
|
|
|
|
func (s *FactoryServer) WorkerNames(ctx context.Context, in *factory.EmptyRequest) (*factory.Response, error) {
|
|
l := logic.NewWorkerNamesLogic(ctx, s.svcCtx)
|
|
return l.WorkerNames(in)
|
|
}
|
|
|
|
func (s *FactoryServer) WorkerItems(ctx context.Context, in *factory.WorkerItemsRequest) (*factory.Response, error) {
|
|
l := logic.NewWorkerItemsLogic(ctx, s.svcCtx)
|
|
return l.WorkerItems(in)
|
|
}
|
|
|
|
func (s *FactoryServer) WorkerInfo(ctx context.Context, in *factory.IdRequest) (*factory.Response, error) {
|
|
l := logic.NewWorkerInfoLogic(ctx, s.svcCtx)
|
|
return l.WorkerInfo(in)
|
|
}
|