Documentation
¶
Index ¶
- type App
- func (app *App) ChOngZhiJkOrders(orderID string, face int, account string) *ChOngZhiJkOrdersResult
- func (app *App) CheckCost(orderID string) *CheckCostResult
- func (app *App) GprsChOngZhiAdvance(param GprsChOngZhiAdvanceParams) *GprsChOngZhiAdvanceResult
- func (app *App) MoneyJkUser() *MoneyJkUserResult
- func (app *App) NewParamsWith(params ...Params) Params
- func (app *App) QueryJkOrders(orderID string) *QueryJkOrdersResult
- func (app *App) QueryTxProduct() *QueryTxProductResult
- func (app *App) TxChOngZhi(param TxChOngZhiParams) *TxChOngZhiResult
- type ChOngZhiJkOrdersResponse
- type ChOngZhiJkOrdersResult
- type CheckCostResponse
- type CheckCostResult
- type GprsChOngZhiAdvanceParams
- type GprsChOngZhiAdvanceResponse
- type GprsChOngZhiAdvanceResult
- type MoneyJkUserResponse
- type MoneyJkUserResult
- type Params
- type QueryJkOrdersResponse
- type QueryJkOrdersResult
- type QueryTxProductResponse
- type QueryTxProductResult
- type TxChOngZhiParams
- type TxChOngZhiResponse
- type TxChOngZhiResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
UserID string
Pwd string
Key string
ZapLog *zap.Logger // 日志服务
Db *gorm.DB // 关系数据库服务
RDb *redis.Client // 缓存数据库服务
MDb *mongo.Client // 非关系数据库服务
// contains filtered or unexported fields
}
func (*App) ChOngZhiJkOrders ¶
func (app *App) ChOngZhiJkOrders(orderID string, face int, account string) *ChOngZhiJkOrdersResult
ChOngZhiJkOrders 话费充值接口 orderid 用户提交的订单号 用户提交的订单号,最长32位(用户保证其唯一性) face 充值面值 以元为单位,包含10、20、30、50、100、200、300、500 移动联通电信 account 手机号码 需要充值的手机号码
func (*App) CheckCost ¶
func (app *App) CheckCost(orderID string) *CheckCostResult
CheckCost 会员订单成本价查询接口
func (*App) GprsChOngZhiAdvance ¶
func (app *App) GprsChOngZhiAdvance(param GprsChOngZhiAdvanceParams) *GprsChOngZhiAdvanceResult
GprsChOngZhiAdvance 流量充值接口
func (*App) NewParamsWith ¶
func (*App) QueryJkOrders ¶
func (app *App) QueryJkOrders(orderID string) *QueryJkOrdersResult
QueryJkOrders 通用查询接口 orderid 用户提交的订单号 用户提交的订单号,最长32位(用户保证其唯一性)
func (*App) QueryTxProduct ¶
func (app *App) QueryTxProduct() *QueryTxProductResult
QueryTxProduct 可充值腾讯产品查询
func (*App) TxChOngZhi ¶
func (app *App) TxChOngZhi(param TxChOngZhiParams) *TxChOngZhiResult
TxChOngZhi 流量充值接口
type ChOngZhiJkOrdersResponse ¶
type ChOngZhiJkOrdersResponse struct {
XMLName xml.Name `xml:"response"`
UserID string `xml:"userid"` // 会员账号
PorderID string `xml:"Porderid"` // 鼎信平台订单号
OrderID string `xml:"orderid"` // 用户订单号
Account string `xml:"account"` // 需要充值的手机号码
Face string `xml:"face"` // 充值面值
Amount string `xml:"amount"` // 购买数量
StartTime string `xml:"starttime"` // 开始时间
State string `xml:"state"` // 订单状态
EndTime string `xml:"endtime"` // 结束时间
Error string `xml:"error"` // 错误提示
}
type ChOngZhiJkOrdersResult ¶
type ChOngZhiJkOrdersResult struct {
Result ChOngZhiJkOrdersResponse // 结果
Body []byte // 内容
Err error // 错误
}
func NewChOngZhiJkOrdersResult ¶
func NewChOngZhiJkOrdersResult(result ChOngZhiJkOrdersResponse, body []byte, err error) *ChOngZhiJkOrdersResult
type CheckCostResponse ¶
type CheckCostResult ¶
type CheckCostResult struct {
Result CheckCostResponse // 结果
Body []byte // 内容
Err error // 错误
}
func NewCheckCostResult ¶
func NewCheckCostResult(result CheckCostResponse, body []byte, err error) *CheckCostResult
type GprsChOngZhiAdvanceParams ¶
type GprsChOngZhiAdvanceParams struct {
OrderID string `json:"orderid"` // 用户提交的订单号 用户提交的订单号,最长32位(用户保证其唯一性)
Account string `json:"account"` // 充值手机号 需要充值的手机号
Gprs int `json:"gprs"` // 充值流量值 单位:MB(具体流量值请咨询商务)
Area int `json:"area"` // 充值流量范围 0 全国流量,1 省内流量
EffectTime int `json:"effecttime"` // 生效日期 0 即时生效,1次日生效,2 次月生效
Validity int `json:"validity"` // 流量有效期 传入月数,0为当月有效
Times string `json:"times"` // 时间戳 格式:yyyyMMddhhmmss
}
type GprsChOngZhiAdvanceResponse ¶
type GprsChOngZhiAdvanceResponse struct {
XMLName xml.Name `xml:"response"`
UserID string `xml:"userid"` // 会员账号
OrderID string `xml:"orderid"` // 会员提交订单号
PorderID string `xml:"Porderid"` // 平台订单号
Account string `xml:"account"` // 充值手机号
State int `xml:"state"` // 订单状态
StartTime string `xml:"starttime"` // 开始时间
EndTime string `xml:"endtime"` // 结束时间
Error string `xml:"error"` // 错误提示
UserPrice float64 `xml:"userprice"` // 会员购买价格
Gprs string `xml:"gprs"` // 充值流量值(单位MB)
Area string `xml:"area"` // 流量范围(0 全国流量,1省内流量)
EffectTime string `xml:"effecttime"` // 生效日期(0即时,1次日,2次月)
Validity string `xml:"validity"` // 流量有效期(显示月数,0为当月)
}
type GprsChOngZhiAdvanceResult ¶
type GprsChOngZhiAdvanceResult struct {
Result GprsChOngZhiAdvanceResponse // 结果
Body []byte // 内容
Err error // 错误
}
func NewGprsChOngZhiAdvanceResult ¶
func NewGprsChOngZhiAdvanceResult(result GprsChOngZhiAdvanceResponse, body []byte, err error) *GprsChOngZhiAdvanceResult
type MoneyJkUserResponse ¶
type MoneyJkUserResult ¶
type MoneyJkUserResult struct {
Result MoneyJkUserResponse // 结果
Body []byte // 内容
Err error // 错误
}
func NewMoneyJkUserResult ¶
func NewMoneyJkUserResult(result MoneyJkUserResponse, body []byte, err error) *MoneyJkUserResult
type QueryJkOrdersResponse ¶
type QueryJkOrdersResponse struct {
XMLName xml.Name `xml:"response"`
UserID string `xml:"userid"` // 会员账号
POrderID string `xml:"Porderid"` // 鼎信平台订单号
OrderID string `xml:"orderid"` // 用户订单号
Account string `xml:"account"` // 需要充值的手机号码
Face string `xml:"face"` // 充值面值
Amount string `xml:"amount"` // 购买数量
StartTime string `xml:"starttime"` // 开始时间
State string `xml:"state"` // 订单状态
EndTime string `xml:"endtime"` // 结束时间
Error string `xml:"error"` // 错误提示
}
type QueryJkOrdersResult ¶
type QueryJkOrdersResult struct {
Result QueryJkOrdersResponse // 结果
Body []byte // 内容
Err error // 错误
}
func NewQueryJkOrdersResult ¶
func NewQueryJkOrdersResult(result QueryJkOrdersResponse, body []byte, err error) *QueryJkOrdersResult
type QueryTxProductResponse ¶
type QueryTxProductResult ¶
type QueryTxProductResult struct {
Result QueryTxProductResponse // 结果
Body []byte // 内容
Err error // 错误
}
func NewQueryTxProductResult ¶
func NewQueryTxProductResult(result QueryTxProductResponse, body []byte, err error) *QueryTxProductResult
type TxChOngZhiParams ¶
type TxChOngZhiParams struct {
OrderID string `json:"orderid"` // 用户提交的订单号 用户提交的订单号,最长32位(用户保证其唯一性)
Account string `json:"account"` // QQ号 需要充值的QQ号
ProductID int `json:"productid"` // 产品id
Amount int `json:"amount"` // 购买数量
Ip string `json:"ip"` // 充值QQ号ip
Times string `json:"times"` // 时间戳 格式:yyyyMMddhhmmss
}
type TxChOngZhiResponse ¶
type TxChOngZhiResponse struct {
XMLName xml.Name `xml:"response"`
UserID string `xml:"userid"` // 用户编号
PorderID string `xml:"Porderid"` // 鼎信平台订单号
OrderID string `xml:"orderid"` // 用户订单号
Account string `xml:"account"` // 需要充值的QQ号
ProductID int `xml:"productid"` // 充值产品id
Amount int `xml:"amount"` // 购买数量
State int `xml:"state"` // 订单状态
StartTime string `xml:"starttime"` // 开始时间
EndTime string `xml:"endtime"` // 结束时间
Error string `xml:"error"` // 错误提示
}
type TxChOngZhiResult ¶
type TxChOngZhiResult struct {
Result TxChOngZhiResponse // 结果
Body []byte // 内容
Err error // 错误
}
func NewTxChOngZhiResult ¶
func NewTxChOngZhiResult(result TxChOngZhiResponse, body []byte, err error) *TxChOngZhiResult
Click to show internal directories.
Click to hide internal directories.