query

package
v0.0.0-...-8d4382c Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2020 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

**************************************************

** @Desc : This file for ...
** @Time : 2019/11/22 23:02
** @Author : yuebin
** @File : order_query
** @Last Modified by : yuebin
** @Last Modified time: 2019/11/22 23:02
** @Software: GoLand

***************************************************

**************************************************

** @Desc : 处理代付查询功能
** @Time : 2019/12/3 15:07
** @Author : yuebin
** @File : pay_for_query
** @Last Modified by : yuebin
** @Last Modified time: 2019/12/3 15:07
** @Software: GoLand

***************************************************

Index

Constants

View Source
const (
	DelayTime  = 5 //延时时间为5分钟查询一次
	LimitTimes = 5 //最多查询5次
)
View Source
const (
	PayForLimitTimes    = 12 //最多查询次数
	PayForQueryInterval = 5  //时间间隔为5分钟
)

Variables

This section is empty.

Functions

func CreatePayForQueryConsumer

func CreatePayForQueryConsumer()

* 创建代付查询的消费者

func CreateSupplierOrderQueryCuConsumer

func CreateSupplierOrderQueryCuConsumer()

** 启动消息订单查询的消息队列消费者

func DelayOrderQueryQueue

func DelayOrderQueryQueue(task OrderQueryTask)

* 延时队列

func PayForQueryTimer

func PayForQueryTimer(task PayForQueryTask)

func PayForSupplier

func PayForSupplier(task PayForQueryTask)

Types

type OrderQueryTask

type OrderQueryTask struct {
	BankOrderId     string
	OrderQueryTimer *time.Timer
	Times           int
}

type PayForQueryTask

type PayForQueryTask struct {
	Delay           *time.Timer
	MerchantOrderId string
	BankOrderId     string
	FirstNotifyTime string
	QueryTimes      int
	LimitTimes      int
	Status          string
}

Jump to

Keyboard shortcuts

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