wikeyun

package module
v1.0.37 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: MIT Imports: 15 Imported by: 0

README

Golang

📦 Golang 微客云

godoc goproxy.cn goreportcard.com deps.dev

安装

go get -v -u go.dtapp.net/wikeyun@v1.0.37

Documentation

Index

Constants

View Source
const (
	CodeSuccess = "0000"
)
View Source
const (
	LogTable = "wikeyun"
)

Variables

View Source
var (
	Version = "1.0.37"
)

Functions

This section is empty.

Types

type Client

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

Client 实例

func NewClient

func NewClient(config *ClientConfig) (*Client, error)

NewClient 创建实例化

func (*Client) ConfigApiGormFun added in v1.0.32

func (c *Client) ConfigApiGormFun(apiClientFun golog.ApiGormFun)

ConfigApiGormFun 接口日志配置

func (*Client) ConfigApp added in v1.0.19

func (c *Client) ConfigApp(storeId, appKey int64, appSecret string) *Client

ConfigApp 配置

func (*Client) RestMovieAllCity added in v1.0.35

func (c *Client) RestMovieAllCity(ctx context.Context, notMustParams ...gorequest.Params) (*RestMovieAllCityResult, error)

RestMovieAllCity 定位--获取全国所有城市(支持字母汉字搜索) keyword = 关键词搜索 https://open.wikeyun.cn/#/apiDocument/4/document/302

func (*Client) RestMovieHotCity added in v1.0.35

func (c *Client) RestMovieHotCity(ctx context.Context, notMustParams ...gorequest.Params) (*RestMovieHotCityResult, error)

RestMovieHotCity 定位--获取热门城市 https://open.wikeyun.cn/#/apiDocument/4/document/301

func (*Client) RestOilAddCard added in v1.0.34

func (c *Client) RestOilAddCard(ctx context.Context, notMustParams ...gorequest.Params) (*RestOilAddCardResult, error)

RestOilAddCard 添加油卡充值卡 card_id = 充值卡ID card_num = 卡号 name = 姓名 phone = 手机号 card_type = 类型 0中石化 1中石油 user_num = 身份证号 https://open.wikeyun.cn/#/apiDocument/9/document/370

func (*Client) RestOilCancel added in v1.0.34

func (c *Client) RestOilCancel(ctx context.Context, notMustParams ...gorequest.Params) (*RestOilCancelResult, error)

RestOilCancel 油卡订单取消 order_number = 取消的单号,多个用英文逗号隔开 https://open.wikeyun.cn/#/apiDocument/9/document/369

func (*Client) RestOilCardInfo

func (c *Client) RestOilCardInfo(ctx context.Context, notMustParams ...gorequest.Params) (*RestOilCardInfoResult, error)

RestOilCardInfo 油卡充值卡详情 card_id = 充值卡ID https://open.wikeyun.cn/#/apiDocument/9/document/373

func (*Client) RestOilDelCard added in v1.0.34

func (c *Client) RestOilDelCard(ctx context.Context, notMustParams ...gorequest.Params) (*RestOilDelCardResult, error)

RestOilDelCard 删除油卡充值卡 card_id = 充值卡ID https://open.wikeyun.cn/#/apiDocument/9/document/372

func (*Client) RestOilEditCard added in v1.0.34

func (c *Client) RestOilEditCard(ctx context.Context, notMustParams ...gorequest.Params) (*RestOilEditCardResult, error)

RestOilEditCard 编辑油卡充值卡 card_id = 充值卡ID card_num = 卡号 name = 姓名 phone = 手机号 card_type = 类型 0中石化 1中石油 user_num = 身份证号 https://open.wikeyun.cn/#/apiDocument/9/document/371

func (*Client) RestOilPushOrder added in v1.0.34

func (c *Client) RestOilPushOrder(ctx context.Context, notMustParams ...gorequest.Params) (*RestOilPushOrderResult, error)

RestOilPushOrder 油卡充值 order_no = 商户单号 amount = 充值金额 recharge_type = 充值类型 1快充 0慢充 notify_url = 回调通知地址,用于订单状态通知 cardId = 卡号ID,通过新增获取 https://open.wikeyun.cn/#/apiDocument/9/document/367

func (*Client) RestOilQuery added in v1.0.34

func (c *Client) RestOilQuery(ctx context.Context, notMustParams ...gorequest.Params) (*RestOilQueryResult, error)

RestOilQuery 油卡订单查询 order_number = 平台单号,与商户单号二选一 order_no = 商户单号 https://open.wikeyun.cn/#/apiDocument/9/document/368

func (*Client) RestOrderOrderList added in v1.0.34

func (c *Client) RestOrderOrderList(ctx context.Context, notMustParams ...gorequest.Params) (*RestOrderOrderListResult, error)

RestOrderOrderList 导购订单列表【系统内】 order_type = 订单类型,0=淘宝,1=天猫,2=拼多多,3=京东,4=ele,5=美团,6=电影票 7话费 8油卡 9=肯德基 10=美团生活,11=会员卡 12=滴滴 13=电费,14=生活团购 15=唯品会 status = 订单状态 0=订单付款,1=订单结算,2=订单失效 query_type = 查询时间类型 1创建时间 2更新时间 3结算时间 page_size = 每页大小,默认20 ,最大500 p = 页数,1 start_time = 开始时间,linux时间戳10位 end_time = 结束时间,linux时间戳10位,跟开始时间相差不能超过2小时 https://open.wikeyun.cn/#/apiDocument/13/document/364

func (*Client) RestPowerAddCard

func (c *Client) RestPowerAddCard(ctx context.Context, cardNum string, province string, city string, Type int64, notMustParams ...gorequest.Params) (*RestPowerAddCardResult, error)

RestPowerAddCard 添加电费充值卡 card_num = 用户电费户号 province = 省份,带省 city = 城市,带市 type = 0国家电网 1南方电网 remark = 备注 user_ext = 南网必填,请输入用户信息,身份证后六位 / 营业执照后六位 / 银行卡后六位 ,三者选任意一个即可 https://open.wikeyun.cn/#/apiDocument/9/document/326

func (*Client) RestPowerCancel

func (c *Client) RestPowerCancel(ctx context.Context, orderNumber string, notMustParams ...gorequest.Params) (*RestPowerCancelResult, error)

RestPowerCancel 电费订单取消 order_number = 取消的单号,多个用英文逗号隔开 https://open.wikeyun.cn/#/apiDocument/9/document/323

func (*Client) RestPowerCardInfo added in v1.0.32

func (c *Client) RestPowerCardInfo(ctx context.Context, cardID int64, notMustParams ...gorequest.Params) (*RestPowerCardInfoResult, error)

RestPowerCardInfo 电费充值卡详情 card_id = 充值卡ID https://open.wikeyun.cn/#/apiDocument/9/document/333

func (*Client) RestPowerDelCard

func (c *Client) RestPowerDelCard(ctx context.Context, cardID int64, notMustParams ...gorequest.Params) (*RestPowerDelCardResult, error)

RestPowerDelCard 删除电费充值卡 card_id = 充值卡ID https://open.wikeyun.cn/#/apiDocument/9/document/330

func (*Client) RestPowerEditCard

func (c *Client) RestPowerEditCard(ctx context.Context, cardID int64, cardNum string, province string, city string, Type int64, notMustParams ...gorequest.Params) (*RestPowerEditCardResult, error)

RestPowerEditCard 编辑电费充值卡 card_id = 充值卡ID card_num = 卡号 province = 省份 city = 城市 type = 0国家电网 1南方电网 remark = 备注 user_ext = 南网必填,请输入用户信息,身份证后六位 / 营业执照后六位 / 银行卡后六位 ,三者选任意一个即可 https://open.wikeyun.cn/#/apiDocument/9/document/329

func (*Client) RestPowerForbid added in v1.0.34

func (c *Client) RestPowerForbid(ctx context.Context, status int64, notMustParams ...gorequest.Params) (*RestPowerForbidResult, error)

RestPowerForbid 禁启用非API渠道电费充值 status = 1 禁用 0启用 https://open.wikeyun.cn/#/apiDocument/9/document/446

func (*Client) RestPowerPushOrder

func (c *Client) RestPowerPushOrder(ctx context.Context, cardID int64, orderNo string, amount int64, rechargeType int64, notMustParams ...gorequest.Params) (*RestPowerPushOrderResult, error)

RestPowerPushOrder 电费充值API cardId = 充值卡ID,通过创建充值卡接口获取 order_no = 第三方单号 amount = 充值金额,支持100,200,300,400,500,600,800,1000 recharge_type = 类型 1快充 0慢充 notify_url = 回调通知地址,用于订单状态通知 change = 是否开启更换渠道补单,1开启0关闭 https://open.wikeyun.cn/#/apiDocument/9/document/311

func (*Client) RestPowerPushOrderNotifyHttp added in v1.0.35

func (c *Client) RestPowerPushOrderNotifyHttp(w http.ResponseWriter, r *http.Request) (validateJson ResponseRestPowerPushOrderNotifyHttp, err error)

RestPowerPushOrderNotifyHttp 电费充值API - 回调通知 https://open.wikeyun.cn/#/document/1/article/303

func (*Client) RestPowerQuery

func (c *Client) RestPowerQuery(ctx context.Context, notMustParams ...gorequest.Params) (*RestPowerQueryResult, error)

RestPowerQuery 电费订单查询 order_number = 平台单号,平台商户单号二选一 order_no = 商户单号 https://open.wikeyun.cn/#/apiDocument/9/document/313

func (*Client) RestRechargeCancel

func (c *Client) RestRechargeCancel(ctx context.Context, orderNumber string, notMustParams ...gorequest.Params) (*RestRechargeCancelResult, error)

RestRechargeCancel 话费订单取消 order_number = 取消的单号,多个用英文逗号隔开 https://open.wikeyun.cn/#/apiDocument/9/document/300

func (*Client) RestRechargeForbid added in v1.0.34

func (c *Client) RestRechargeForbid(ctx context.Context, status int64, notMustParams ...gorequest.Params) (*RestRechargeForbidResult, error)

RestRechargeForbid 禁启用非API渠道下单 status = 1 禁用 0启用 https://open.wikeyun.cn/#/apiDocument/9/document/445

func (*Client) RestRechargeMobileInfo

func (c *Client) RestRechargeMobileInfo(ctx context.Context, mobile string, notMustParams ...gorequest.Params) (*RestRechargeMobileInfoResult, error)

RestRechargeMobileInfo 查询手机归属地信息以及是否携号转网 mobile = 手机号 https://open.wikeyun.cn/#/apiDocument/9/document/374

func (*Client) RestRechargePushOrder

func (c *Client) RestRechargePushOrder(ctx context.Context, mobile string, orderNo string, money int64, rechargeType int64, notifyUrl string, notMustParams ...gorequest.Params) (*RestRechargePushOrderResult, error)

RestRechargePushOrder 话费充值推送 mobile = 充值手机号,虚拟号,协号转网不支持充值 order_no = 第三方单号 money = 充值金额,目前有50,100,200三种,具体联系客服咨询 recharge_type = 类型 1快充 0慢充 notify_url = 回调通知地址,用于订单状态通知 change = 失败更换渠道充值 0 否 1是 不传系统根据设置判断 source = 是否强制渠道,因为每个渠道价格不同,不同用户提交的业务不同,默认不强制,具体渠道价格联系客服 https://open.wikeyun.cn/#/apiDocument/9/document/298

func (*Client) RestRechargePushOrderNotifyHttp added in v1.0.35

func (c *Client) RestRechargePushOrderNotifyHttp(w http.ResponseWriter, r *http.Request) (validateJson ResponseRestRechargePushOrderNotifyHttp, err error)

RestRechargePushOrderNotifyHttp 话费充值推送 - 回调通知 https://open.wikeyun.cn/#/document/1/article/302

func (*Client) RestRechargeQuery

func (c *Client) RestRechargeQuery(ctx context.Context, notMustParams ...gorequest.Params) (*RestRechargeQueryResult, error)

RestRechargeQuery 话费订单查询 order_number = 平台单号,平台商户单号二选一 order_no = 商户单号 https://open.wikeyun.cn/#/apiDocument/9/document/299

func (*Client) RestRechargeVerify added in v1.0.3

func (c *Client) RestRechargeVerify(ctx context.Context, mobile string, amount int64, rechargeType int64, notMustParams ...gorequest.Params) (*RestRechargeVerifyResult, error)

RestRechargeVerify 话费充值验证 mobile = 需要充值的手机号 amount = 需要充值的金额 recharge_type = 充值类型 https://open.wikeyun.cn/#/apiDocument/9/document/405

func (*Client) RestUserQuery

func (c *Client) RestUserQuery(ctx context.Context, notMustParams ...gorequest.Params) (*RestUserQueryResult, error)

RestUserQuery 用户信息 https://open.wikeyun.cn/#/apiDocument/10/document/336

func (*Client) RestV2MovieGetAllCity added in v1.0.35

func (c *Client) RestV2MovieGetAllCity(ctx context.Context, notMustParams ...gorequest.Params) (*RestV2MovieGetAllCityResult, error)

RestV2MovieGetAllCity 定位--获取全国所有城市(支持字母汉字搜索) keyword = 关键词搜索 https://open.wikeyun.cn/#/apiDocument/4/document/510

type ClientConfig added in v1.0.17

type ClientConfig struct {
	ApiUrl    string // 接口地址
	StoreId   int64  // 店铺ID
	AppKey    int64  // key
	AppSecret string // secret
	CurrentIp string // 当前ip
}

type ResponseRestPowerPushOrderNotifyHttp added in v1.0.35

type ResponseRestPowerPushOrderNotifyHttp struct {
	Status        int64   `json:"status,omitempty"`         // 状态 订单状态 0 待支付 1 已付 充值中 2充值成功 3充值失败 需要退款 4退款成功 5已超时 6待充值 7 已匹配 8 已存单 9 已取消 10返销 11部分到账
	ArrivedAmount string  `json:"arrived_amount,omitempty"` // 到账金额
	OrderNo       string  `json:"order_no,omitempty"`       // 第三方单号
	OrderNumber   string  `json:"order_number,omitempty"`   // 微客云平台单号
	Amount        string  `json:"amount,omitempty"`         // 充值金额,如50,100,200可选
	Fanli         float64 `json:"fanli,omitempty"`          // 返利金额
	CostPrice     float64 `json:"cost_price,omitempty"`     // 成本价格
	Sign          string  `json:"sign,omitempty"`           // 加密内容
	FailReason    string  `json:"failReason,omitempty"`     // 失败原因,有些渠道没有返回,不是很准确,但电费失败大部分原因都是户号不对或者地区不对或者缴费金额小于欠费金额
}

type ResponseRestRechargePushOrderNotifyHttp added in v1.0.35

type ResponseRestRechargePushOrderNotifyHttp struct {
	Status      int64   `json:"status,omitempty"`       // 状态 订单状态 0 待支付 1 已付 充值中 2充值成功 3充值失败 需要退款 4退款成功 5已超时 6待充值 7 已匹配 8 已存单 9 已取消 10返销 11部分到账
	Mobile      string  `json:"mobile,omitempty"`       // 充值手机号
	OrderNo     string  `json:"order_no,omitempty"`     // 第三方单号
	OrderNumber string  `json:"order_number,omitempty"` // 微客云平台单号
	Amount      string  `json:"amount,omitempty"`       // 充值金额,如50,100,200可选
	Fanli       float64 `json:"fanli,omitempty"`        // 返利金额
	CostPrice   float64 `json:"cost_price,omitempty"`   // 成本价格
	Sign        string  `json:"sign,omitempty"`         // 加密内容
}

ResponseRestRechargePushOrderNotifyHttp 声明接收的变量

type RestMovieAllCityResponse added in v1.0.35

type RestMovieAllCityResponse struct {
	Code string `json:"code"`
	Msg  string `json:"msg"`
	Data struct {
		CityId      int64  `json:"cityId"`      // 城市ID
		CityName    string `json:"cityName"`    // 城市名称
		Firstletter string `json:"firstletter"` // 城市名称首字母
		Ishot       int64  `json:"ishot"`       // 是否热门 1是 0否
	} `json:"data"` // 城市列表
}

type RestMovieAllCityResult added in v1.0.35

type RestMovieAllCityResult struct {
	Result RestMovieAllCityResponse // 结果
	Body   []byte                   // 内容
	Http   gorequest.Response       // 请求
}

type RestMovieHotCityResponse added in v1.0.35

type RestMovieHotCityResponse struct {
	Code string `json:"code"`
	Msg  string `json:"msg"`
	Data struct {
		CityId      int64  `json:"cityId"`      // 城市ID
		CityName    string `json:"cityName"`    // 城市名称
		Firstletter string `json:"firstletter"` // 城市名称首字母
		Ishot       int64  `json:"ishot"`       // 是否热门 1是 0否
	} `json:"data"` // 城市列表
}

type RestMovieHotCityResult added in v1.0.35

type RestMovieHotCityResult struct {
	Result RestMovieHotCityResponse // 结果
	Body   []byte                   // 内容
	Http   gorequest.Response       // 请求
}

type RestOilAddCardResponse added in v1.0.34

type RestOilAddCardResponse struct {
	Code string   `json:"code"`
	Msg  string   `json:"msg"`
	Data struct{} `json:"data"`
}

type RestOilAddCardResult added in v1.0.34

type RestOilAddCardResult struct {
	Result RestOilAddCardResponse // 结果
	Body   []byte                 // 内容
	Http   gorequest.Response     // 请求
}

type RestOilCancelResponse added in v1.0.34

type RestOilCancelResponse struct {
	Code string   `json:"code"`
	Msg  string   `json:"msg"`
	Data struct{} `json:"data"`
}

type RestOilCancelResult added in v1.0.34

type RestOilCancelResult struct {
	Result RestOilCancelResponse // 结果
	Body   []byte                // 内容
	Http   gorequest.Response    // 请求
}

type RestOilCardInfoResponse added in v1.0.34

type RestOilCardInfoResponse struct {
	Code string `json:"code"`
	Msg  string `json:"msg"`
	Data struct {
		Id       string `json:"id"`        // 充值卡ID,用于电费推单
		CardNum  string `json:"card_num"`  // 用户电费户号
		Name     string `json:"name"`      // 姓名
		Phone    string `json:"phone"`     // 手机号
		UserNum  string `json:"user_num"`  // 身份证
		CardType string `json:"card_type"` // 0中石化 1中石油
	} `json:"data"`
}

type RestOilCardInfoResult added in v1.0.34

type RestOilCardInfoResult struct {
	Result RestOilCardInfoResponse // 结果
	Body   []byte                  // 内容
	Http   gorequest.Response      // 请求
}

type RestOilDelCardResponse added in v1.0.34

type RestOilDelCardResponse struct {
	Code string   `json:"code"`
	Msg  string   `json:"msg"`
	Data struct{} `json:"data"`
}

type RestOilDelCardResult added in v1.0.34

type RestOilDelCardResult struct {
	Result RestOilDelCardResponse // 结果
	Body   []byte                 // 内容
	Http   gorequest.Response     // 请求
}

type RestOilEditCardResponse added in v1.0.34

type RestOilEditCardResponse struct {
	Code string   `json:"code"`
	Msg  string   `json:"msg"`
	Data struct{} `json:"data"`
}

type RestOilEditCardResult added in v1.0.34

type RestOilEditCardResult struct {
	Result RestOilEditCardResponse // 结果
	Body   []byte                  // 内容
	Http   gorequest.Response      // 请求
}

type RestOilPushOrderResponse added in v1.0.34

type RestOilPushOrderResponse struct {
	Code string `json:"code"`
	Msg  string `json:"msg"`
	Data struct {
		OrderNumber string  `json:"order_number"`
		Amount      int64   `json:"amount"`
		Fanli       float64 `json:"fanli"`
		CostPrice   float64 `json:"cost_price"`
	} `json:"data"`
}

type RestOilPushOrderResult added in v1.0.34

type RestOilPushOrderResult struct {
	Result RestOilPushOrderResponse // 结果
	Body   []byte                   // 内容
	Http   gorequest.Response       // 请求
}

type RestOilQueryResponse added in v1.0.34

type RestOilQueryResponse struct {
	Code string `json:"code"`
	Msg  string `json:"msg"`
	Data struct {
		OrderNumber string  `json:"order_number"`
		OrderNo     string  `json:"order_no"`
		CardId      int64   `json:"card_id"`
		Amount      int64   `json:"amount"`
		CostPrice   float64 `json:"cost_price"`
		Fanli       float64 `json:"fanli"`
		Status      int64   `json:"status"`
	} `json:"data"`
}

type RestOilQueryResult added in v1.0.34

type RestOilQueryResult struct {
	Result RestOilQueryResponse // 结果
	Body   []byte               // 内容
	Http   gorequest.Response   // 请求
}

type RestOrderOrderListResponse added in v1.0.34

type RestOrderOrderListResponse struct {
	Code string `json:"code"`
	Msg  string `json:"msg"`
	Data struct {
		Id     string `json:"id"`
		Avatar string `json:"avatar"`
		Money  string `json:"money"`
		Mobile string `json:"mobile"`
	} `json:"data"`
}

type RestOrderOrderListResult added in v1.0.34

type RestOrderOrderListResult struct {
	Result RestOrderOrderListResponse // 结果
	Body   []byte                     // 内容
	Http   gorequest.Response         // 请求
}

type RestPowerAddCardResponse

type RestPowerAddCardResponse struct {
	Code string `json:"code"`
	Msg  string `json:"msg"`
	Time string `json:"time"`
	Data struct {
		CardNum    string `json:"card_num"`    // 用户电费户号
		StoreId    string `json:"store_id"`    // 店铺ID
		CreateTime int    `json:"create_time"` // 创建时间
		Type       int    `json:"type"`        // 0国家电网 1南方电网
		CmsUid     int    `json:"cms_uid"`
		Province   string `json:"province"` // 省份,带省。
		City       string `json:"city"`     // 城市,带市
		Id         string `json:"id"`       // 充值卡ID,用于电费推单
		Remark     string `json:"remark"`   // 备注
	} `json:"data"`
}

type RestPowerAddCardResult

type RestPowerAddCardResult struct {
	Result RestPowerAddCardResponse // 结果
	Body   []byte                   // 内容
	Http   gorequest.Response       // 请求
}

type RestPowerCancelResponse

type RestPowerCancelResponse struct {
	Code string `json:"code"`
	Msg  string `json:"msg"`
	Data string `json:"data"`
}

type RestPowerCancelResult

type RestPowerCancelResult struct {
	Result RestPowerCancelResponse // 结果
	Body   []byte                  // 内容
	Http   gorequest.Response      // 请求
}

type RestPowerCardInfoResponse added in v1.0.32

type RestPowerCardInfoResponse struct {
	Code string `json:"code"`
	Msg  string `json:"msg"`
	Time string `json:"time"`
	Data struct {
		Id       string `json:"id"`       // 充值卡ID,用于电费推单
		CardNum  string `json:"card_num"` // 用户电费户号
		Province string `json:"province"` // 省份,带省。
		City     string `json:"city"`     // 城市,带市
		StoreId  string `json:"store_id"` // 店铺ID
		Type     int    `json:"type"`     // 0国家电网 1南方电网
		Remark   string `json:"remark"`
	} `json:"data"`
}

type RestPowerCardInfoResult added in v1.0.32

type RestPowerCardInfoResult struct {
	Result RestPowerCardInfoResponse // 结果
	Body   []byte                    // 内容
	Http   gorequest.Response        // 请求
}

type RestPowerDelCardResponse

type RestPowerDelCardResponse struct {
	Data string `json:"data"`
	Code string `json:"code"`
	Msg  string `json:"msg"`
	Time string `json:"time"`
}

type RestPowerDelCardResult

type RestPowerDelCardResult struct {
	Result RestPowerDelCardResponse // 结果
	Body   []byte                   // 内容
	Http   gorequest.Response       // 请求
}

type RestPowerEditCardResponse added in v1.0.32

type RestPowerEditCardResponse struct {
	Code string `json:"code"`
	Msg  string `json:"msg"`
	Data string `json:"data"`
}

type RestPowerEditCardResult added in v1.0.32

type RestPowerEditCardResult struct {
	Result RestPowerEditCardResponse // 结果
	Body   []byte                    // 内容
	Http   gorequest.Response        // 请求
}

type RestPowerForbidResponse added in v1.0.34

type RestPowerForbidResponse struct {
	Code string   `json:"code"`
	Msg  string   `json:"msg"`
	Time string   `json:"time"`
	Data struct{} `json:"data"`
}

type RestPowerForbidResult added in v1.0.34

type RestPowerForbidResult struct {
	Result RestPowerForbidResponse // 结果
	Body   []byte                  // 内容
	Http   gorequest.Response      // 请求
}

type RestPowerPushOrderResponse

type RestPowerPushOrderResponse struct {
	Code string `json:"code"`
	Msg  string `json:"msg"`
	Time string `json:"time"`
	Data struct {
		OrderNumber string `json:"order_number"`
	} `json:"data"`
}

type RestPowerPushOrderResult

type RestPowerPushOrderResult struct {
	Result RestPowerPushOrderResponse // 结果
	Body   []byte                     // 内容
	Http   gorequest.Response         // 请求
}

type RestPowerQueryResponse

type RestPowerQueryResponse struct {
	Code string `json:"code"`
	Msg  string `json:"msg"`
	Time string `json:"time"`
	Data struct {
		Id             uint   `json:"id,omitempty"`
		Fanli          string `json:"fanli"`            // 平台返利金额
		Amount         int64  `json:"amount"`           // 充值金额
		CostPrice      string `json:"cost_price"`       // 成本价格
		Status         int    `json:"status"`           // 订单状态 0 待支付 1 已付 充值中 2充值成功 3充值失败 需要退款 4退款成功 5已超时 6待充值 7 已匹配 8已存单 9 已取消 10返销 11部分到账 12取消中
		OrderNumber    string `json:"order_number"`     // 平台单号
		OrderNo        string `json:"order_no"`         // 第三方单号
		OrgOrderNumber string `json:"org_order_number"` // 组织订单号
		CardId         string `json:"card_id"`          // 充值卡ID
		ArrivedAmount  int64  `json:"arrived_amount"`   // 到账金额
		Reason         string `json:"reason,omitempty"` // 失败原因
	} `json:"data"`
}

func (RestPowerQueryResponse) GetStatusDesc added in v1.0.32

func (resp RestPowerQueryResponse) GetStatusDesc(status int) string

type RestPowerQueryResult

type RestPowerQueryResult struct {
	Result RestPowerQueryResponse // 结果
	Body   []byte                 // 内容
	Http   gorequest.Response     // 请求
}

type RestRechargeCancelResponse

type RestRechargeCancelResponse struct {
	Code string `json:"code"`
	Msg  string `json:"msg"`
	Data string `json:"data"`
}

type RestRechargeCancelResult

type RestRechargeCancelResult struct {
	Result RestRechargeCancelResponse // 结果
	Body   []byte                     // 内容
	Http   gorequest.Response         // 请求
}

type RestRechargeForbidResponse added in v1.0.34

type RestRechargeForbidResponse struct {
	Code string   `json:"code"`
	Msg  string   `json:"msg"`
	Time string   `json:"time"`
	Data struct{} `json:"data"`
}

type RestRechargeForbidResult added in v1.0.34

type RestRechargeForbidResult struct {
	Result RestRechargeForbidResponse // 结果
	Body   []byte                     // 内容
	Http   gorequest.Response         // 请求
}

type RestRechargeMobileInfoResponse

type RestRechargeMobileInfoResponse struct {
	Code string `json:"code"`
	Msg  string `json:"msg"`
	Time string `json:"time"`
	Data struct {
		Status string `json:"status"`
		Oisp   string `json:"oisp"`
		Nisp   string `json:"nisp"`
		Number string `json:"number"`
		Extend struct {
			AreaNum       string `json:"area_num"`
			Isp           string `json:"isp"`
			Prov          string `json:"prov"`
			City          string `json:"city"`
			PostCode      string `json:"post_code"`
			AreaCode      string `json:"area_code"`
			CardProvCode  string `json:"card_prov_code"`
			CardCityCode  string `json:"card_city_code"`
			Lng           string `json:"lng"`
			Lat           string `json:"lat"`
			CityCode      string `json:"city_code"`
			CityShortCode string `json:"city_short_code"`
		} `json:"extend"`
	} `json:"data"`
}

type RestRechargeMobileInfoResult

type RestRechargeMobileInfoResult struct {
	Result RestRechargeMobileInfoResponse // 结果
	Body   []byte                         // 内容
	Http   gorequest.Response             // 请求
}

type RestRechargePushOrderResponse

type RestRechargePushOrderResponse struct {
	Code string `json:"code"`
	Msg  string `json:"msg"`
	Data struct {
		OrderNumber string `json:"order_number"`
	} `json:"data"`
}

type RestRechargePushOrderResult

type RestRechargePushOrderResult struct {
	Result RestRechargePushOrderResponse // 结果
	Body   []byte                        // 内容
	Http   gorequest.Response            // 请求
}

type RestRechargeQueryResponse

type RestRechargeQueryResponse struct {
	Code string `json:"code"`
	Data struct {
		Id             int    `json:"id,omitempty"`
		Fanli          string `json:"fanli"`            // 平台返利金额
		Amount         int64  `json:"amount"`           // 充值金额
		CostPrice      string `json:"cost_price"`       // 充值成本价格
		Status         int    `json:"status"`           // 订单状态 0 待支付 1 已付 充值中 2充值成功 3充值失败 需要退款 4退款成功 5已超时 6待充值 7 已匹配 8已存单 9 已取消 10返销 11部分到账 12取消中
		OrderNumber    string `json:"order_number"`     // 平台订单号
		OrderNo        string `json:"order_no"`         // 第三方单号
		OrgOrderNumber string `json:"org_order_number"` // 组织订单号
		StoreId        int    `json:"store_id"`         // 店铺ID
		Mobile         string `json:"mobile"`           // 充值手机号
		ArrivedAmount  string `json:"arrived_amount"`   // 到账金额
		Reason         string `json:"reason,omitempty"` // 失败原因
	} `json:"data"`
	Msg  string `json:"msg"`
	Time string `json:"time"`
}

func (RestRechargeQueryResponse) GetStatusDesc added in v1.0.32

func (resp RestRechargeQueryResponse) GetStatusDesc(status int) string

type RestRechargeQueryResult

type RestRechargeQueryResult struct {
	Result RestRechargeQueryResponse // 结果
	Body   []byte                    // 内容
	Http   gorequest.Response        // 请求
}

type RestRechargeVerifyResponse added in v1.0.3

type RestRechargeVerifyResponse struct {
	Code string `json:"code"` // 0000代表正常,其他代表不可下单。
	Msg  string `json:"msg"`
	Time string `json:"time"`
}

type RestRechargeVerifyResult added in v1.0.3

type RestRechargeVerifyResult struct {
	Result RestRechargeVerifyResponse // 结果
	Body   []byte                     // 内容
	Http   gorequest.Response         // 请求
}

type RestUserQueryResponse

type RestUserQueryResponse struct {
	Code string `json:"code"`
	Msg  string `json:"msg"`
	Data struct {
		Id     string `json:"id"`
		Avatar string `json:"avatar"`
		Money  string `json:"money"`
		Mobile string `json:"mobile"`
	} `json:"data"`
}

type RestUserQueryResult

type RestUserQueryResult struct {
	Result RestUserQueryResponse // 结果
	Body   []byte                // 内容
	Http   gorequest.Response    // 请求
}

type RestV2MovieGetAllCityResponse added in v1.0.35

type RestV2MovieGetAllCityResponse struct {
	Code string `json:"code"`
	Msg  string `json:"msg"`
	Data struct {
		HotCity struct {
			CityId     int64  `json:"cityId"`     // 城市ID
			CityName   string `json:"cityName"`   // 城市名称
			CityPinyin string `json:"cityPinyin"` // 首字母
		} `json:"hotCity"`
		CityList struct {
			CityId     int64  `json:"cityId"`     // 城市ID
			CityName   string `json:"cityName"`   // 城市名称
			CityPinyin string `json:"cityPinyin"` // 首字母
		} `json:"cityList"`
	} `json:"data"` // 城市列表
}

type RestV2MovieGetAllCityResult added in v1.0.35

type RestV2MovieGetAllCityResult struct {
	Result RestV2MovieGetAllCityResponse // 结果
	Body   []byte                        // 内容
	Http   gorequest.Response            // 请求
}

Jump to

Keyboard shortcuts

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