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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OrderFlow

type OrderFlow struct {
	FlowBalance int `json:"flowBalance"`
}

type OrderInfo

type OrderInfo struct {
	PhoneID       int        `json:"phone"`
	OrderID       int64      `json:"orderid"`
	OrderState    int        `json:"order_status"`
	IsRepeatorder int        `json:"isrepeatorder"`
	SignNo        string     `json:"sign_no"`
	Begintime     xtime.Time `json:"begintime"`
	Endtime       xtime.Time `json:"endtime"`
}

func (*OrderInfo) OrderInfoJSONChange

func (t *OrderInfo) OrderInfoJSONChange(tjson *TelecomJSON)

func (*OrderInfo) TelecomChange

func (t *OrderInfo) TelecomChange()

TelecomChange

type OrderPhoneState

type OrderPhoneState struct {
	FlowPackageID int    `json:"flowPackageId"`
	FlowSize      int    `json:"flowPackageSize"`
	OrderState    int    `json:"orderStatus"`
	PhoneStr      string `json:"phoneId"`
}

type OrderState

type OrderState struct {
	FlowBalance   int        `json:"flowBalance,omitempty"`
	FlowSize      int        `json:"flow_size"`
	OrderState    int        `json:"order_state"`
	Endtime       xtime.Time `json:"endtime,omitempty"`
	IsRepeatorder int        `json:"is_repeatorder"`
}

type Pay

type Pay struct {
	OrderID   int64  `json:"orderid"`
	RequestNo int64  `json:"requestno,omitempty"`
	PayURL    string `json:"pay_url,omitempty"`
}

type PayResultJSON

type PayResultJSON struct {
	IsRepeatOrder int `json:"isRepeatOrder"`
	RefundStatus  int `json:"refundStatus"`
	PayStatus     int `json:"payStatus"`
	PayChannel    int `json:"payChannel"`
}

type PhoneConsent

type PhoneConsent struct {
	Consent int `json:"consent"`
}

type RechargeJSON

type RechargeJSON struct {
	RequestNo      string `json:"requestNo"`
	FcRechargeNo   string `json:"fcRechargeNo"`
	RechargeStatus int    `json:"rechargeStatus"`
	OrderTotalSize int    `json:"orderTotalSize"`
	FlowBalance    int    `json:"flowBalance"`
}

type SucOrder

type SucOrder struct {
	FlowPackageID        string `json:"flowPackageId,omitempty"`
	Domain               string `json:"domain"`
	Port                 string `json:"port,omitempty"`
	PortInt              int    `json:"portInt"`
	KeyEffectiveDuration int    `json:"keyEffectiveDuration"`
	OrderKey             string `json:"orderKey"`
	FlowBalance          int    `json:"flowBalance"`
	FlowPackageSize      int    `json:"flowPackageSize"`
	AccessToken          string `json:"accessToken"`
	OrderIDStr           string `json:"orderId,omitempty"`
	OrderID              int64  `json:"orderid"`
}

type TelecomJSON

type TelecomJSON struct {
	FlowpackageID      int            `json:"flowPackageId"`
	FlowPackageSize    int            `json:"flowPackageSize"`
	FlowPackageType    int            `json:"flowPackageType"`
	TrafficAttribution int            `json:"trafficAttribution"`
	BeginTime          string         `json:"beginTime"`
	EndTime            string         `json:"endTime"`
	IsMultiplyOrder    int            `json:"isMultiplyOrder"`
	SettlementType     int            `json:"settlementType"`
	Operator           int            `json:"operator"`
	OrderStatus        int            `json:"orderStatus"`
	RemainedRebindNum  int            `json:"remainedRebindNum"`
	MaxbindNum         int            `json:"maxBindNum"`
	OrderID            string         `json:"orderId"`
	SignNo             string         `json:"signNo"`
	AccessToken        string         `json:"accessToken"`
	PhoneID            string         `json:"phoneId"`
	IsRepeatOrder      int            `json:"isRepeatOrder"`
	PayStatus          int            `json:"payStatus"`
	PayTime            string         `json:"payTime"`
	PayChannel         int            `json:"payChannel"`
	SignStatus         string         `json:"signStatus "`
	RefundStatus       int            `json:"refundStatus"`
	PayResult          *PayResultJSON `json:"payResult,omitempty"`
}

func (*TelecomJSON) TelecomJSONChange

func (s *TelecomJSON) TelecomJSONChange()

type TelecomMessageJSON

type TelecomMessageJSON struct {
	PhoneID       string `json:"phoneId"`
	ResultType    int    `json:"resultType"`
	ResultMessage string `json:"resultMsg"`
}

type TelecomOrderJson

type TelecomOrderJson struct {
	RequestNo  string       `json:"requestNo"`
	ResultType int          `json:"resultType"`
	Detail     *TelecomJSON `json:"detail"`
}

type TelecomRechargeJson

type TelecomRechargeJson struct {
	RequestNo  string        `json:"requestNo"`
	ResultType int           `json:"resultType"`
	Detail     *RechargeJSON `json:"detail"`
}

Jump to

Keyboard shortcuts

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