Files
lone-services/product/internal/logic/editlogic.go
T
zzw 39fb09e7df
CI / changes (push) Successful in 1s
CI / docker-bff (push) Successful in 1s
CI / docker-product (push) Failing after 1s
feat: bff resp string to json
2026-08-07 11:57:43 +08:00

33 lines
588 B
Go

package logic
import (
"context"
"product/internal/svc"
"product/product"
"pkg.local/utils"
"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.Response, error) {
// todo: add your logic here and delete this line
_ = in
return okResponse(utils.StringEmpty), nil
}