first commit

This commit is contained in:
zzw
2026-08-05 17:37:32 +08:00
commit 38be479cef
72 changed files with 15670 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
// 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)
}