order

package
v1.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

订单相关

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(clt *core.Client, orderId uint64) (order *model.Order, err error)

Get 获取订单详情

func GetList

func GetList(clt *core.Client, req *GetListRequest) (total int, orders []model.Order, err error)

GetList 获取订单列表

func Search(clt *core.Client, req *SearchRequest) (total int, orders []model.Order, err error)

Search 搜索订单

Types

type GetListRequest

type GetListRequest struct {
	StartCreateTime string            `json:"start_create_time,omitempty"`
	EndCreateTime   string            `json:"end_create_time,omitempty"`
	StartUpdateTime string            `json:"start_update_time,omitempty"`
	EndUpdateTime   string            `json:"end_update_time,omitempty"`
	Status          model.OrderStatus `json:"status"`
	Page            int               `json:"page"`
	PageSize        int               `json:"page_size"`
}

type SearchRequest

type SearchRequest struct {
	StartPayTime          string            `json:"start_pay_time,omitempty"` // 订单支付时间的搜索开始时间
	EndPayTime            string            `json:"end_pay_time,omitempty"`   // 订单支付时间的搜索结束时间
	Title                 string            `json:"title,omitempty"`          // 商品标题关键词
	SkuCode               string            `json:"sku_code,omitempty"`       // 商品编码
	UserName              string            `json:"user_name,omitempty"`      // 收件人
	Mobile                string            `json:"tel_number,omitempty"`     // 收件人电话
	OnAftersaleOrderExist *int              `json:"on_aftersale_order_exist"` // 不填该参数:全部订单 0:没有正在售后的订单, 1:正在售后单数量大于等于1的订单
	Status                model.OrderStatus `json:"status,omitempty"`         // 订单状态
	Page                  int               `json:"page"`
	PageSize              int               `json:"page_size"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL