98 lines
3.0 KiB
Go
98 lines
3.0 KiB
Go
// Code generated by goctl. DO NOT EDIT.
|
|
// Source: product.proto
|
|
|
|
package server
|
|
|
|
import (
|
|
"context"
|
|
product "lone-services/rpc/product/pb"
|
|
"lone-services/services/product/internal/logic"
|
|
"lone-services/services/product/internal/svc"
|
|
)
|
|
|
|
type ProductServer struct {
|
|
svcCtx *svc.ServiceContext
|
|
product.UnimplementedProductServer
|
|
}
|
|
|
|
func NewProductServer(svcCtx *svc.ServiceContext) *ProductServer {
|
|
return &ProductServer{
|
|
svcCtx: svcCtx,
|
|
}
|
|
}
|
|
|
|
func (s *ProductServer) Create(ctx context.Context, in *product.CreateReq) (*product.Response, error) {
|
|
l := logic.NewCreateLogic(ctx, s.svcCtx)
|
|
return l.Create(in)
|
|
}
|
|
|
|
func (s *ProductServer) Info(ctx context.Context, in *product.InfoReq) (*product.Response, error) {
|
|
l := logic.NewInfoLogic(ctx, s.svcCtx)
|
|
return l.Info(in)
|
|
}
|
|
|
|
func (s *ProductServer) Items(ctx context.Context, in *product.ItemsReq) (*product.Response, error) {
|
|
l := logic.NewItemsLogic(ctx, s.svcCtx)
|
|
return l.Items(in)
|
|
}
|
|
|
|
func (s *ProductServer) Names(ctx context.Context, in *product.NamesReq) (*product.Response, error) {
|
|
l := logic.NewNamesLogic(ctx, s.svcCtx)
|
|
return l.Names(in)
|
|
}
|
|
|
|
func (s *ProductServer) Status(ctx context.Context, in *product.StatusReq) (*product.Response, error) {
|
|
l := logic.NewStatusLogic(ctx, s.svcCtx)
|
|
return l.Status(in)
|
|
}
|
|
|
|
func (s *ProductServer) Sort(ctx context.Context, in *product.SortReq) (*product.Response, error) {
|
|
l := logic.NewSortLogic(ctx, s.svcCtx)
|
|
return l.Sort(in)
|
|
}
|
|
|
|
func (s *ProductServer) Verify(ctx context.Context, in *product.VerifyReq) (*product.Response, error) {
|
|
l := logic.NewVerifyLogic(ctx, s.svcCtx)
|
|
return l.Verify(in)
|
|
}
|
|
|
|
func (s *ProductServer) VerifyFirst(ctx context.Context, in *product.VerifyStatusReq) (*product.Response, error) {
|
|
l := logic.NewVerifyStatusLogic(ctx, s.svcCtx)
|
|
return l.VerifyFirst(in)
|
|
}
|
|
|
|
func (s *ProductServer) VerifySecond(ctx context.Context, in *product.VerifyStatusReq) (*product.Response, error) {
|
|
l := logic.NewVerifyStatusLogic(ctx, s.svcCtx)
|
|
return l.VerifySecond(in)
|
|
}
|
|
|
|
func (s *ProductServer) EditApply(ctx context.Context, in *product.EditApplyReq) (*product.Response, error) {
|
|
l := logic.NewEditApplyLogic(ctx, s.svcCtx)
|
|
return l.EditApply(in)
|
|
}
|
|
|
|
func (s *ProductServer) EditApplyPass(ctx context.Context, in *product.EditApplyPassReq) (*product.Response, error) {
|
|
l := logic.NewEditApplyLogic(ctx, s.svcCtx)
|
|
return l.EditApplyPass(in)
|
|
}
|
|
|
|
func (s *ProductServer) EditBase(ctx context.Context, in *product.EditBaseReq) (*product.Response, error) {
|
|
l := logic.NewEditBaseLogic(ctx, s.svcCtx)
|
|
return l.EditBase(in)
|
|
}
|
|
|
|
func (s *ProductServer) EditSusceptible(ctx context.Context, in *product.EditSusceptibleReq) (*product.Response, error) {
|
|
l := logic.NewEditSusceptibleLogic(ctx, s.svcCtx)
|
|
return l.EditSusceptible(in)
|
|
}
|
|
|
|
func (s *ProductServer) Number(ctx context.Context, in *product.NumberReq) (*product.Response, error) {
|
|
l := logic.NewNumberLogic(ctx, s.svcCtx)
|
|
return l.Number(in)
|
|
}
|
|
|
|
func (s *ProductServer) NumberAdd(ctx context.Context, in *product.NumberAddReq) (*product.Response, error) {
|
|
l := logic.NewNumberAddLogic(ctx, s.svcCtx)
|
|
return l.NumberAdd(in)
|
|
}
|