// Code generated by goctl. DO NOT EDIT. // goctl 1.10.1 // Source: product.proto package server import ( "context" "product/internal/logic" "product/internal/svc" "product/product" ) type ProductServer struct { svcCtx *svc.ServiceContext product.UnimplementedProductServer } func NewProductServer(svcCtx *svc.ServiceContext) *ProductServer { return &ProductServer{ svcCtx: svcCtx, } } func (s *ProductServer) Add(ctx context.Context, in *product.AddReq) (*product.AddResp, error) { l := logic.NewAddLogic(ctx, s.svcCtx) return l.Add(in) } func (s *ProductServer) Edit(ctx context.Context, in *product.EditReq) (*product.EditResp, error) { l := logic.NewEditLogic(ctx, s.svcCtx) return l.Edit(in) }