jm

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEncryptPinNew

func GetEncryptPinNew(ctx context.Context, req *GetEncryptPinNewRequest) (string, error)

func GetJmUserBaseInfoByEncryPin

func GetJmUserBaseInfoByEncryPin(ctx context.Context, req *GetJmUserBaseInfoByEncryPinRequest) (*user.UserInfo, error)

用户信息查询

func GetUserBaseInfoByPin

func GetUserBaseInfoByPin(ctx context.Context, req *GetUserBaseInfoByPinRequest) (*user.UserInfo, error)

店铺信息查询

Types

type GetEncryptPinNewData

type GetEncryptPinNewData struct {
	Code       string                      `json:"code,omitempty" codec:"code,omitempty"`
	ReturnType *GetEncryptPinNewReturnType `json:"returnType,omitempty" codec:"returnType,omitempty"`
}

func (GetEncryptPinNewData) Error added in v1.1.1

func (r GetEncryptPinNewData) Error() string

func (GetEncryptPinNewData) IsError added in v1.1.1

func (r GetEncryptPinNewData) IsError() bool

type GetEncryptPinNewRequest

type GetEncryptPinNewRequest struct {
	api.BaseRequest
	Token  string `json:"token,omitempty" codec:"token,omitempty"`   //	京东或者微信token
	Source string `json:"source,omitempty" codec:"source,omitempty"` // 	01:京东App,02:微信
}

type GetEncryptPinNewResponse

type GetEncryptPinNewResponse struct {
	ErrorResp *api.ErrorResponnse   `json:"error_response,omitempty" codec:"error_response,omitempty"`
	Data      *GetEncryptPinNewData `` /* 142-byte string literal not displayed */
}

func (GetEncryptPinNewResponse) Error added in v1.1.1

func (r GetEncryptPinNewResponse) Error() string

func (GetEncryptPinNewResponse) IsError added in v1.1.1

func (r GetEncryptPinNewResponse) IsError() bool

type GetEncryptPinNewReturnType

type GetEncryptPinNewReturnType struct {
	Message   string `json:"message,omitempty" codec:"message,omitempty"`     // 接口的执行信息
	Pin       string `json:"pin,omitempty" codec:"pin,omitempty"`             // 用户pin
	Code      int64  `json:"code,omitempty" codec:"code,omitempty"`           // 状态码
	RequestId string `json:"requestId,omitempty" codec:"requestId,omitempty"` // 请求id
}

func (GetEncryptPinNewReturnType) Error added in v1.1.1

func (GetEncryptPinNewReturnType) IsError added in v1.1.1

func (r GetEncryptPinNewReturnType) IsError() bool

type GetJmUserBaseInfoByEncryPinRequest

type GetJmUserBaseInfoByEncryPinRequest struct {
	api.BaseRequest
	Pin      string `json:"pin,omitempty" codec:"pin,omitempty"`           // 用户标识
	LoadType int    `json:"loadType,omitempty" codec:"loadType,omitempty"` // 加载类型
}

type GetJmUserBaseInfoByEncryPinResponse

type GetJmUserBaseInfoByEncryPinResponse struct {
	ErrorResp *api.ErrorResponnse                     `json:"error_response,omitempty" codec:"error_response,omitempty"`
	Data      *GetJmUserBaseInfoByEncryPinSubResponse `` /* 126-byte string literal not displayed */
}

func (GetJmUserBaseInfoByEncryPinResponse) Error added in v1.1.1

func (GetJmUserBaseInfoByEncryPinResponse) IsError added in v1.1.1

type GetJmUserBaseInfoByEncryPinSubResponse

type GetJmUserBaseInfoByEncryPinSubResponse struct {
	Code          string         `json:"code,omitempty" codec:"code,omitempty"`
	ErrorDesc     string         `json:"error_description,omitempty" codec:"error_description,omitempty"`
	UserJosResult *user.UserInfo `json:"getuserbaseinfobypin_result,omitempty" codec:"getuserbaseinfobypin_result,omitempty"`
}

func (GetJmUserBaseInfoByEncryPinSubResponse) Error added in v1.1.1

func (GetJmUserBaseInfoByEncryPinSubResponse) IsError added in v1.1.1

type GetOpenIdRequest

type GetOpenIdRequest struct {
	BaseRequest
	Source string `json:"source" codec:"source"` //  01:京东App,02:微信
	Token  string `json:"token" codec:"token"`
}

type GetOpenIdResponse

type GetOpenIdResponse struct {
	ErrorResp *ErrorResponnse       `json:"error_response,omitempty" codec:"error_response,omitempty"`
	Data      GetOpenIdResponseData `json:"jingdong_pop_jm_center_user_getOpenId_responce"`
}

func (GetOpenIdResponse) Error added in v1.1.1

func (r GetOpenIdResponse) Error() string

func (GetOpenIdResponse) IsError added in v1.1.1

func (r GetOpenIdResponse) IsError() bool

type GetOpenIdResponseData

type GetOpenIdResponseData struct {
	ReturnType GetOpenIdReturnType `json:"returnType"`
}

func (GetOpenIdResponseData) Error added in v1.1.1

func (r GetOpenIdResponseData) Error() string

func (GetOpenIdResponseData) IsError added in v1.1.1

func (r GetOpenIdResponseData) IsError() bool

type GetOpenIdReturnType

type GetOpenIdReturnType struct {
	Message   string `json:"message"`
	OpenID    string `json:"open_id"`
	Pin       string `json:"pin"`
	RequestID string `json:"requestId"`
	Code      int    `json:"code"`
}

func (GetOpenIdReturnType) Error added in v1.1.1

func (r GetOpenIdReturnType) Error() string

func (GetOpenIdReturnType) IsError added in v1.1.1

func (r GetOpenIdReturnType) IsError() bool

type GetPurchaseInfoRequest added in v1.1.11

type GetPurchaseInfoRequest struct {
	BaseRequest
}

type GetPurchaseInfoResponse added in v1.1.11

type GetPurchaseInfoResponse struct {
	ErrorResp *ErrorResponnse             `json:"error_response,omitempty" codec:"error_response,omitempty"`
	Data      GetPurchaseInfoResponseData `json:"jingdong_getPurchaseInfo_responce,omitempty" codec:"jingdong_getPurchaseInfo_responce,omitempty"`
}

func (GetPurchaseInfoResponse) Error added in v1.1.11

func (r GetPurchaseInfoResponse) Error() string

func (GetPurchaseInfoResponse) IsError added in v1.1.11

func (r GetPurchaseInfoResponse) IsError() bool

type GetPurchaseInfoResponseData added in v1.1.11

type GetPurchaseInfoResponseData struct {
	ReturnType GetPurchaseInfoReturnType `json:"returnType"`
}

func (GetPurchaseInfoResponseData) Error added in v1.1.11

func (GetPurchaseInfoResponseData) IsError added in v1.1.11

func (r GetPurchaseInfoResponseData) IsError() bool

type GetPurchaseInfoReturnType added in v1.1.11

type GetPurchaseInfoReturnType struct {
	Success          bool           `json:"success"`
	Message          string         `json:"message,omitempty"`
	Code             int            `json:"errorCode"`
	PurchaseInfoList []PurchaseInfo `json:"purchaseInfoList,omitempty"`
}

func (GetPurchaseInfoReturnType) Error added in v1.1.11

func (GetPurchaseInfoReturnType) IsError added in v1.1.11

func (r GetPurchaseInfoReturnType) IsError() bool

type GetUserBaseInfoByPinRequest

type GetUserBaseInfoByPinRequest struct {
	api.BaseRequest
	Pin      string `json:"pin,omitempty" codec:"pin,omitempty"`           // 用户标识
	LoadType int    `json:"loadType,omitempty" codec:"loadType,omitempty"` // 加载类型
}

type GetUserBaseInfoByPinResponse

type GetUserBaseInfoByPinResponse struct {
	ErrorResp *api.ErrorResponnse              `json:"error_response,omitempty" codec:"error_response,omitempty"`
	Data      *GetUserBaseInfoByPinSubResponse `json:"jingdong_vender_shop_query_responce,omitempty" codec:"jingdong_vender_shop_query_responce,omitempty"`
}

func (GetUserBaseInfoByPinResponse) Error added in v1.1.1

func (GetUserBaseInfoByPinResponse) IsError added in v1.1.1

func (r GetUserBaseInfoByPinResponse) IsError() bool

type GetUserBaseInfoByPinSubResponse

type GetUserBaseInfoByPinSubResponse struct {
	Code          string         `json:"code,omitempty" codec:"code,omitempty"`
	ErrorDesc     string         `json:"error_description,omitempty" codec:"error_description,omitempty"`
	UserJosResult *user.UserInfo `json:"shop_jos_result,omitempty" codec:"shop_jos_result,omitempty"`
}

func (GetUserBaseInfoByPinSubResponse) Error added in v1.1.1

func (GetUserBaseInfoByPinSubResponse) IsError added in v1.1.1

type PurchaseInfo added in v1.1.11

type PurchaseInfo struct {
	Pin         string `json:"pin"`           // 当前用户pin
	EndDate     int64  `json:"endDate"`       // 结束时间
	ItemCode    string `json:"itemCode"`      // 服务市场售卖服务的版本,itemCode可以通过服务市场后台获取
	VersionNo   int    `json:"versionNo"`     // 版本
	AppKey      string `json:"appKey"`        // appKey
	IsModule    int    `json:"isModule"`      // 1 按版本 2 按模块 ( 发布服务时计费方式为:按周期 计费中的 对应的 版本和模块计费 )
	OpenIdBuyer string `json:"open_id_buyer"` // 当前用户pin
}

func GetPurchaseInfo added in v1.1.11

func GetPurchaseInfo(ctx context.Context, req *GetPurchaseInfoRequest) ([]PurchaseInfo, error)

type RiskQueryServiceRequest added in v1.2.8

type RiskQueryServiceRequest struct {
	api.BaseRequest
	Param1 *jm.RiskQueryServiceRequestParam1 `json:"param1,omitempty" codec:"param1,omitempty"` // 业务参数
}

风险信息查询服务,需要授权才能使用。

type RiskQueryServiceResponce added in v1.2.8

type RiskQueryServiceResponce struct {
	ReturnType *RiskQueryServiceResponseReturnType `json:"returnType,omitempty" codec:"returnType,omitempty"`
}

func (RiskQueryServiceResponce) Error added in v1.2.8

func (r RiskQueryServiceResponce) Error() string

func (RiskQueryServiceResponce) IsError added in v1.2.8

func (r RiskQueryServiceResponce) IsError() bool

type RiskQueryServiceResponse added in v1.2.8

type RiskQueryServiceResponse struct {
	Responce  *RiskQueryServiceResponce `json:"jingdong_risk_RiskQueryService_responce,omitempty" codec:"jingdong_risk_RiskQueryService_responce,omitempty"`
	ErrorResp *api.ErrorResponnse       `json:"error_response,omitempty" codec:"error_response,omitempty"`
}

func (RiskQueryServiceResponse) Error added in v1.2.8

func (r RiskQueryServiceResponse) Error() string

func (RiskQueryServiceResponse) IsError added in v1.2.8

func (r RiskQueryServiceResponse) IsError() bool

type RiskQueryServiceResponseReturnType added in v1.2.8

type RiskQueryServiceResponseReturnType struct {
	Msg     string                                    `json:"msg,omitempty" codec:"msg,omitempty"`         // 状态码描述
	Code    string                                    `json:"code,omitempty" codec:"code,omitempty"`       // 状态码
	Success bool                                      `json:"success,omitempty" codec:"success,omitempty"` // 请求是否成功
	Result  *RiskQueryServiceResponseReturnTypeResult `json:"result,omitempty" codec:"result,omitempty"`   // 风控识别结果
	Output  *RiskQueryServiceResponseReturnTypeOutput `json:"output,omitempty" codec:"output,omitempty"`   // 扩展字段
}

type RiskQueryServiceResponseReturnTypeOutput added in v1.2.8

type RiskQueryServiceResponseReturnTypeOutput struct {
	Addition string `json:"addition"` // 扩展信息
}

type RiskQueryServiceResponseReturnTypeResult added in v1.2.8

type RiskQueryServiceResponseReturnTypeResult struct {
	Strategy string `json:"strategy"` // 风控识别结果命中标识 risk代表有风险,white代表白名单, none代表无风险
}

Jump to

Keyboard shortcuts

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