jm

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: GPL-3.0 Imports: 4 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"`
}

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 GetOpenId

func GetOpenId(req GetOpenIdRequest) (GetOpenIdReturnType, error)

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 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

Jump to

Keyboard shortcuts

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