dingdanxia

package
v1.0.46-0...-d927801 Latest Latest
Warning

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

Go to latest
Published: May 27, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	ApiKey string
	Mongo  gomongo.App // 日志数据库
}

func (*App) JdJyOrderDetails

func (app *App) JdJyOrderDetails(notMustParams ...Params) *JdJyOrderDetailsResult

JdJyOrderDetails 【官方不维护】 京佣订单

func (*App) JdOrderDetails2

func (app *App) JdOrderDetails2(notMustParams ...Params) *JdJyOrderDetailsResult

JdOrderDetails2 【官方不维护】 京东联盟订单行查询 https://www.dingdanxia.com/doc/180/94

func (*App) NewParamsWith

func (app *App) NewParamsWith(params ...Params) Params

func (*App) WaimaiMeituanOrderid

func (app *App) WaimaiMeituanOrderid(orderid string) *WaimaiMeituanOrderidResult

WaimaiMeituanOrderid 美团联盟外卖/闪购/优选/酒店订单查询API(订单号版) https://www.dingdanxia.com/doc/179/173

func (*App) WaimaiMeituanOrders

func (app *App) WaimaiMeituanOrders(notMustParams ...Params) *WaimaiMeituanOrdersResult

WaimaiMeituanOrders 美团联盟外卖/闪购/优选/酒店订单查询API https://www.dingdanxia.com/doc/176/173

func (*App) WaimaiMeituanPrivilege

func (app *App) WaimaiMeituanPrivilege(sid string, generateWeApp, qrcode bool) *WaimaiMeituanPrivilegeResult

WaimaiMeituanPrivilege 美团外卖CPS推广API接口 https://www.dingdanxia.com/doc/174/173

func (*App) WaimaiMeituanSgPrivilege

func (app *App) WaimaiMeituanSgPrivilege(sid string, generateWeApp, qrcode bool) *WaimaiMeituanSgPrivilegeResult

WaimaiMeituanSgPrivilege 美团闪购CPS推广API接口 https://www.dingdanxia.com/doc/195/173

type JdJyOrderDetailsResponse

type JdJyOrderDetailsResponse struct {
	Code         int    `json:"code"`
	Msg          string `json:"msg"`           // 描述
	TotalResults int    `json:"total_results"` // 总条数
	Data         []struct {
		Orderid     string `json:"orderid"`      // 订单ID
		Paytime     string `json:"paytime"`      // 订单支付时间
		Payprice    string `json:"payprice"`     // 订单支付金额
		Profit      string `json:"profit"`       // 订单返佣金额
		Smstitle    string `json:"smstitle"`     // 订单标题
		Sid         string `json:"sid"`          // 渠道方用户唯一标识
		Quantity    string `json:"quantity"`     // 退款笔数
		Refundtime  string `json:"refundtime"`   // 退款时间
		Money       string `json:"money"`        // 退款金额
		RefundMoney string `json:"refund_money"` // 退佣金额
		CreateTime  string `json:"create_time"`  // 数据入库更新时间(订单状态改变,该时间会变)
		Status      int    `json:"status"`       // 订单状态(1-已提交(已付款)、8-已完成(确认收货)、9-已退款)
		Type        int    `json:"type"`         // 订单类型(活动名称)4-外卖 6-闪购 8-优选 2-酒店
	} `json:"data"`
}

type JdJyOrderDetailsResult

type JdJyOrderDetailsResult struct {
	Result JdJyOrderDetailsResponse // 结果
	Body   []byte                   // 内容
	Http   gohttp.Response          // 请求
	Err    error                    // 错误
}

func NewJdJyOrderDetailsResult

func NewJdJyOrderDetailsResult(result JdJyOrderDetailsResponse, body []byte, http gohttp.Response, err error) *JdJyOrderDetailsResult

type Params

type Params map[string]interface{}

Params 请求参数

func NewParams

func NewParams() Params

func (Params) Set

func (p Params) Set(key string, value interface{})

func (Params) SetParams

func (p Params) SetParams(params Params)

type WaimaiMeituanOrderidResponse

type WaimaiMeituanOrderidResponse struct {
	Code int    `json:"code"`
	Msg  string `json:"msg"`
	Data struct {
		Order struct {
			BusinessLine     int         `json:"businessLine"`
			SubBusinessLine  int         `json:"subBusinessLine"`
			ActId            int         `json:"actId"`
			Quantity         int         `json:"quantity"`
			OrderId          string      `json:"orderId"`
			Paytime          string      `json:"paytime"`
			ModTime          string      `json:"modTime"`
			Payprice         string      `json:"payprice"`
			Profit           string      `json:"profit"`
			CpaProfit        string      `json:"cpaProfit"`
			Sid              string      `json:"sid"`
			Appkey           string      `json:"appkey"`
			Smstitle         string      `json:"smstitle"`
			Status           int         `json:"status"`
			TradeTypeList    []int       `json:"tradeTypeList"`
			RiskOrder        interface{} `json:"riskOrder"`
			Refundprofit     interface{} `json:"refundprofit"`
			CpaRefundProfit  interface{} `json:"cpaRefundProfit"`
			RefundInfoList   interface{} `json:"refundInfoList"`
			RefundProfitList interface{} `json:"refundProfitList"`
			Extra            interface{} `json:"extra"`
		} `json:"order"`
	} `json:"data"`
}

type WaimaiMeituanOrderidResult

type WaimaiMeituanOrderidResult struct {
	Result WaimaiMeituanOrderidResponse // 结果
	Body   []byte                       // 内容
	Http   gohttp.Response              // 请求
	Err    error                        // 错误
}

func NewWaimaiMeituanOrderidResult

func NewWaimaiMeituanOrderidResult(result WaimaiMeituanOrderidResponse, body []byte, http gohttp.Response, err error) *WaimaiMeituanOrderidResult

type WaimaiMeituanOrdersResponse

type WaimaiMeituanOrdersResponse struct {
	Code         int    `json:"code"`
	Msg          string `json:"msg"`           // 描述
	TotalResults int    `json:"total_results"` // 总条数
	Data         []struct {
		Orderid     string `json:"orderid"`      // 订单ID
		Paytime     string `json:"paytime"`      // 订单支付时间
		Payprice    string `json:"payprice"`     // 订单支付金额
		Profit      string `json:"profit"`       // 订单返佣金额
		Smstitle    string `json:"smstitle"`     // 订单标题
		Sid         string `json:"sid"`          // 渠道方用户唯一标识
		Quantity    string `json:"quantity"`     // 退款笔数
		Refundtime  string `json:"refundtime"`   // 退款时间
		Money       string `json:"money"`        // 退款金额
		RefundMoney string `json:"refund_money"` // 退佣金额
		CreateTime  string `json:"create_time"`  // 数据入库更新时间(订单状态改变,该时间会变)
		Status      int    `json:"status"`       // 订单状态(1-已提交(已付款)、8-已完成(确认收货)、9-已退款)
		Type        int    `json:"type"`         // 订单类型(活动名称)4-外卖 6-闪购 8-优选 2-酒店
	} `json:"data"`
}

type WaimaiMeituanOrdersResult

type WaimaiMeituanOrdersResult struct {
	Result WaimaiMeituanOrdersResponse // 结果
	Body   []byte                      // 内容
	Http   gohttp.Response             // 请求
	Err    error                       // 错误
}

func NewWaimaiMeituanOrdersResult

func NewWaimaiMeituanOrdersResult(result WaimaiMeituanOrdersResponse, body []byte, http gohttp.Response, err error) *WaimaiMeituanOrdersResult

type WaimaiMeituanPrivilegeResponse

type WaimaiMeituanPrivilegeResponse struct {
	Code int    `json:"code"`
	Msg  string `json:"msg"`
	Data struct {
		H5        string `json:"h5"`
		ShortH5   string `json:"short_h5"`
		Deeplink  string `json:"deeplink"`
		H5Evoke   string `json:"h5_evoke"`
		Tkl       string `json:"tkl"`
		WeAppInfo struct {
			AppId    string `json:"app_id"`
			PagePath string `json:"page_path"`
			MiniCode string `json:"miniCode"`
		} `json:"we_app_info"`
		Qrcode string `json:"qrcode"`
	} `json:"data"`
}

type WaimaiMeituanPrivilegeResult

type WaimaiMeituanPrivilegeResult struct {
	Result WaimaiMeituanPrivilegeResponse // 结果
	Body   []byte                         // 内容
	Http   gohttp.Response                // 请求
	Err    error                          // 错误
}

func NewWaimaiMeituanPrivilegeResult

func NewWaimaiMeituanPrivilegeResult(result WaimaiMeituanPrivilegeResponse, body []byte, http gohttp.Response, err error) *WaimaiMeituanPrivilegeResult

type WaimaiMeituanSgPrivilegeResponse

type WaimaiMeituanSgPrivilegeResponse struct {
	Code int    `json:"code"`
	Msg  string `json:"msg"`
	Data struct {
		H5        string `json:"h5"`
		Deeplink  string `json:"deeplink"`
		H5Evoke   string `json:"h5_evoke"`
		ShortH5   string `json:"short_h5"`
		WeAppInfo struct {
			AppId    string `json:"app_id"`
			PagePath string `json:"page_path"`
			MiniCode string `json:"miniCode"`
		} `json:"we_app_info"`
		Qrcode string `json:"qrcode"`
	} `json:"data"`
}

type WaimaiMeituanSgPrivilegeResult

type WaimaiMeituanSgPrivilegeResult struct {
	Result WaimaiMeituanSgPrivilegeResponse // 结果
	Body   []byte                           // 内容
	Http   gohttp.Response                  // 请求
	Err    error                            // 错误
}

func NewWaimaiMeituanSgPrivilegeResult

func NewWaimaiMeituanSgPrivilegeResult(result WaimaiMeituanSgPrivilegeResponse, body []byte, http gohttp.Response, err error) *WaimaiMeituanSgPrivilegeResult

Jump to

Keyboard shortcuts

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