telecom

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: 19 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
}

func New

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

func (*Dao) AddPayPhone

func (d *Dao) AddPayPhone(c context.Context, requestNo int64, phone string) (res int, err error)

AddPayPhone add phone and requestNo

func (*Dao) AddPhoneCode

func (d *Dao) AddPhoneCode(c context.Context, phone int, captcha string) (res int, err error)

AddPhoneCode

func (*Dao) AddTelecomCache

func (d *Dao) AddTelecomCache(c context.Context, userphone int, u *telecom.OrderInfo) (err error)

AddTelecomCache

func (*Dao) AddTelecomOrderIDCache

func (d *Dao) AddTelecomOrderIDCache(c context.Context, orderID int64, u *telecom.OrderInfo) (err error)

AddTelecomOrderIDCache

func (*Dao) CancelRepeatOrder

func (d *Dao) CancelRepeatOrder(c context.Context, phone int, signNo string) (msg string, err error)

CancelRepeatOrder

func (*Dao) InOrderSync

func (d *Dao) InOrderSync(ctx context.Context, requestNo, resultType int, phone string, t *telecom.TelecomJSON) (row int64, err error)

InOrderSync

func (*Dao) InRechargeSync

func (d *Dao) InRechargeSync(ctx context.Context, r *telecom.RechargeJSON) (row int64, err error)

InRechargeSync

func (*Dao) OrderState

func (d *Dao) OrderState(c context.Context, orderid int64) (res *telecom.OrderPhoneState, err error)

OrderState

func (*Dao) OrdersUserByOrderID

func (d *Dao) OrdersUserByOrderID(ctx context.Context, orderID int64) (res map[int64]*telecom.OrderInfo, err error)

func (*Dao) OrdersUserFlow

func (d *Dao) OrdersUserFlow(ctx context.Context, phoneID int) (res map[int]*telecom.OrderInfo, err error)

func (*Dao) PayInfo

func (d *Dao) PayInfo(c context.Context, requestNo int64, phone, isRepeatOrder, payChannel, payAction int, orderID int64, ipStr string,
	beginTime, firstOrderEndtime time.Time) (data *telecom.Pay, err error, msg string)

PayInfo

func (*Dao) PayPhone

func (d *Dao) PayPhone(c context.Context, requestNo int64) (phone string, err error)

PayPhone requestNo by phone

func (*Dao) PhoneArea

func (d *Dao) PhoneArea(c context.Context, phone int) (area string, err error, msg string)

PhoneArea phone by area

func (*Dao) PhoneCode

func (d *Dao) PhoneCode(c context.Context, phone int) (captcha string, err error)

PhoneCode

func (*Dao) SendSMS

func (d *Dao) SendSMS(c context.Context, phone int, smsTemplate, dataJSON string) (err error)

SendSMS

func (*Dao) SendTelecomSMS

func (d *Dao) SendTelecomSMS(c context.Context, phone int, smsTemplate string) (err error)

SendTelecomSMS

func (*Dao) SucOrderList

func (d *Dao) SucOrderList(c context.Context, phone int) (res *telecom.SucOrder, err error, msg string)

SucOrderList user order list

func (*Dao) TelecomCache

func (d *Dao) TelecomCache(c context.Context, userphone int) (u *telecom.OrderInfo, err error)

TelecomCache

func (*Dao) TelecomOrderIDCache

func (d *Dao) TelecomOrderIDCache(c context.Context, orderID int64) (u *telecom.OrderInfo, err error)

TelecomOrderIDCache

Jump to

Keyboard shortcuts

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