jm

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEncryptPinNew

func GetEncryptPinNew(req *GetEncryptPinNewRequest) (string, error)

func GetJmUserBaseInfoByEncryPin

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

用户信息查询

func GetUserBaseInfoByPin

func GetUserBaseInfoByPin(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"`
}

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 `` /* 144-byte string literal not displayed */
}

type GetEncryptPinNewReturnType

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

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 */
}

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"`
}

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"`
}

type GetOpenIdResponseData

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

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 GetOpenId

func GetOpenId(req GetOpenIdRequest) (GetOpenIdReturnType, error)

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"`
}

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"`
}

Jump to

Keyboard shortcuts

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