updateorderlogic.go 830 B

123456789101112131415161718192021222324252627282930313233343536
  1. package logic
  2. import (
  3. "context"
  4. "app.yhyue.com/moapp/jyOrder/rpc/internal/svc"
  5. "app.yhyue.com/moapp/jyOrder/rpc/jyOrder"
  6. "github.com/zeromicro/go-zero/core/logx"
  7. )
  8. type UpdateOrderLogic struct {
  9. ctx context.Context
  10. svcCtx *svc.ServiceContext
  11. logx.Logger
  12. }
  13. func NewUpdateOrderLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateOrderLogic {
  14. return &UpdateOrderLogic{
  15. ctx: ctx,
  16. svcCtx: svcCtx,
  17. Logger: logx.WithContext(ctx),
  18. }
  19. }
  20. // 编辑订单
  21. func (l *UpdateOrderLogic) UpdateOrder(in *jyOrder.Request) (*jyOrder.Response, error) {
  22. // todo: add your logic here and delete this line
  23. // todo: add your logic here and delete this line
  24. result := &jyOrder.Response{}
  25. code, msg := orderService.UpdateOrder(in)
  26. result.Code = code
  27. result.Message = msg
  28. result.Data = code
  29. return result, nil
  30. }