package logic import ( "context" "app.yhyue.com/moapp/jyOrder/rpc/internal/svc" "app.yhyue.com/moapp/jyOrder/rpc/jyOrder" "github.com/zeromicro/go-zero/core/logx" ) type UpdateOrderLogic struct { ctx context.Context svcCtx *svc.ServiceContext logx.Logger } func NewUpdateOrderLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateOrderLogic { return &UpdateOrderLogic{ ctx: ctx, svcCtx: svcCtx, Logger: logx.WithContext(ctx), } } // 编辑订单 func (l *UpdateOrderLogic) UpdateOrder(in *jyOrder.Request) (*jyOrder.Response, error) { // todo: add your logic here and delete this line // todo: add your logic here and delete this line result := &jyOrder.Response{} code, msg := orderService.UpdateOrder(in) result.Code = code result.Message = msg result.Data = code return result, nil }