31 lines
551 B
Go
31 lines
551 B
Go
package logic
|
|
|
|
import (
|
|
"context"
|
|
|
|
"product/internal/svc"
|
|
"product/product"
|
|
|
|
"github.com/zeromicro/go-zero/core/logx"
|
|
)
|
|
|
|
type EditLogic struct {
|
|
ctx context.Context
|
|
svcCtx *svc.ServiceContext
|
|
logx.Logger
|
|
}
|
|
|
|
func NewEditLogic(ctx context.Context, svcCtx *svc.ServiceContext) *EditLogic {
|
|
return &EditLogic{
|
|
ctx: ctx,
|
|
svcCtx: svcCtx,
|
|
Logger: logx.WithContext(ctx),
|
|
}
|
|
}
|
|
|
|
func (l *EditLogic) Edit(in *product.EditReq) (*product.EditResp, error) {
|
|
// todo: add your logic here and delete this line
|
|
|
|
return &product.EditResp{}, nil
|
|
}
|