package data

import (
	pb "bsm/full/module/ec/market/pb"
	"context"

	"git.apinb.com/bsm-sdk/core/service"
)

// 订单列表
func OrderFetch(ctx context.Context, in *pb.MarketFetchRequest) (reply *pb.DataReply, err error) {
	// parse authorization meta.
	_, err = service.ParseMetaCtx(ctx, nil)
	if err != nil {
		return nil, err
	}

	// valildate request page_no,page_size.
	if in.GetPageNo() < 1 {
		in.PageNo = 1
	}
	if in.GetPageSize() < 10 {
		in.PageSize = 50
	}

	// TODO: add your logic code & delete this line.

	return
}
