order

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dao

type Dao struct {
	// contains filtered or unexported fields
}

Dao define

func New

func New(c *conf.Config) (d *Dao)

New init dao

func (*Dao) ExecuteOrders

func (d *Dao) ExecuteOrders(c context.Context, mid int64, ip string) (orders []*order.Order, err error)

ExecuteOrders orders.

func (*Dao) GrowAccountState

func (d *Dao) GrowAccountState(c context.Context, mid int64, ty int) (result *order.UpValidate, err error)

GrowAccountState 获取up主状态 type 类型 0 视频 2 专栏 3 素材.

func (*Dao) LaunchTime

func (d *Dao) LaunchTime(c context.Context, orderID int64, ip string) (beginDate xtime.Time, err error)

LaunchTime publish time from order id.

func (*Dao) Oasis

func (d *Dao) Oasis(c context.Context, mid int64, ip string) (oa *order.Oasis, err error)

Oasis for orders.

func (*Dao) OrderByAid

func (d *Dao) OrderByAid(c context.Context, aid int64) (orderID int64, orderName string, gameBaseID int64, err error)

OrderByAid order by aid.

func (*Dao) Unbind

func (d *Dao) Unbind(c context.Context, mid, aid int64, ip string) (err error)

Unbind unbind order id.

func (*Dao) UpValidate

func (d *Dao) UpValidate(c context.Context, mid int64, ip string) (uv *order.UpValidate, err error)

UpValidate fn

func (*Dao) Ups

func (d *Dao) Ups(c context.Context) (ups map[int64]int64, err error)

Ups ups

Jump to

Keyboard shortcuts

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