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: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func New

func New(c *conf.Config) (s *Service)

func (*Service) CancelRepeatOrder

func (s *Service) CancelRepeatOrder(c context.Context, phone int) (msg string, err error)

CancelRepeatOrder

func (*Service) DesDecrypt

func (s *Service) DesDecrypt(src, key []byte) ([]byte, error)

DesDecrypt

func (*Service) InOrdersSync

func (s *Service) InOrdersSync(c context.Context, ip string, u *telecom.TelecomOrderJson) (err error)

InOrdersSync insert OrdersSync

func (*Service) InRechargeSync

func (s *Service) InRechargeSync(c context.Context, ip string, u *telecom.RechargeJSON) (err error)

InRechargeSync insert RechargeSync

func (*Service) OrderConsent

func (s *Service) OrderConsent(c context.Context, phone int, orderID int64, captcha string) (res *telecom.PhoneConsent, msg string, err error)

OrderConsent user orderConsent

func (*Service) OrderList

func (s *Service) OrderList(c context.Context, orderID int64, phone int) (res *telecom.SucOrder, msg string, err error)

OrderList user order list

func (*Service) OrderState

func (s *Service) OrderState(c context.Context, orderid int64) (t *telecom.OrderState, msg string, err error)

OrderState

func (*Service) PhoneCode

func (s *Service) PhoneCode(c context.Context, phone int, captcha string, now time.Time) (res *telecom.Pay, err error, msg string)

PhoneCode

func (*Service) PhoneFlow

func (s *Service) PhoneFlow(c context.Context, orderID int64, phone int) (res *telecom.OrderFlow, msg string, err error)

PhoneFlow user flow

func (*Service) PhoneSendSMS

func (s *Service) PhoneSendSMS(c context.Context, phone int) (err error)

PhoneSendSMS

func (*Service) TelecomMessageSync

func (s *Service) TelecomMessageSync(c context.Context, ip string, u *telecom.TelecomMessageJSON) (err error)

telecomMessageOrder

func (*Service) TelecomPay

func (s *Service) TelecomPay(c context.Context, phone, isRepeatOrder, payChannel, payAction int, orderID int64, ipStr string) (res *telecom.Pay, msg string, err error)

TelecomPay

Jump to

Keyboard shortcuts

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