user

package
v1.1.11 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEncryptPin

func GetEncryptPin(req *GetEncryptPinRequest) (string, error)

明文PIN转加密PIN

func MixPinToXid added in v1.1.11

func MixPinToXid(req *MixPinToXidRequest) (string, error)

加密pin转为xid

Types

type GetEncryptPinData

type GetEncryptPinData struct {
	Code   string               `json:"code,omitempty" codec:"code,omitempty"`
	Result *GetEncryptPinResult `json:"result,omitempty" codec:"result,omitempty"`
}

func (GetEncryptPinData) Error added in v1.1.1

func (r GetEncryptPinData) Error() string

func (GetEncryptPinData) IsError added in v1.1.1

func (r GetEncryptPinData) IsError() bool

type GetEncryptPinRequest

type GetEncryptPinRequest struct {
	api.BaseRequest
	Pin string `json:"pin,omitempty" codec:"pin,omitempty"` // 明文PIN
}

type GetEncryptPinResponse

type GetEncryptPinResponse struct {
	ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"`
	Data      *GetEncryptPinData  `json:"jingdong_jos_getEncryptPin_responce,omitempty" codec:"jingdong_jos_getEncryptPin_responce,omitempty"`
}

func (GetEncryptPinResponse) Error added in v1.1.1

func (r GetEncryptPinResponse) Error() string

func (GetEncryptPinResponse) IsError added in v1.1.1

func (r GetEncryptPinResponse) IsError() bool

type GetEncryptPinResult

type GetEncryptPinResult struct {
	Code      int    `json:"code,omitempty" codec:"code,omitempty"`
	Data      string `json:"data,omitempty" codec:"data,omitempty"`
	RequestId string `json:"requestId,omitempty" codec:"requestId,omitempty"`
}

func (GetEncryptPinResult) Error added in v1.1.1

func (r GetEncryptPinResult) Error() string

func (GetEncryptPinResult) IsError added in v1.1.1

func (r GetEncryptPinResult) IsError() bool

type GetSocialInfoData

type GetSocialInfoData struct {
	Code      string      `json:"code,omitempty" codec:"code,omitempty"`
	ErrorDesc string      `json:"error_description,omitempty" codec:"error_description,omitempty"`
	Info      *SocialInfo `json:"returnType,omitempty" codec:"returnType,omitempty"`
}

func (GetSocialInfoData) Error added in v1.1.1

func (r GetSocialInfoData) Error() string

func (GetSocialInfoData) IsError added in v1.1.1

func (r GetSocialInfoData) IsError() bool

type GetSocialInfoRequest

type GetSocialInfoRequest struct {
	api.BaseRequest
	Pin string `json:"pin,omitempty" codec:"pin,omitempty"` // 用户标识
}

type GetSocialInfoResponse

type GetSocialInfoResponse struct {
	ErrorResp *api.ErrorResponnse `json:"error_response,omitempty" codec:"error_response,omitempty"`
	Data      *GetSocialInfoData  `json:"jingdong_user_getUserSocialInfo_responce,omitempty" codec:"jingdong_user_getUserSocialInfo_responce,omitempty"`
}

func (*GetSocialInfoResponse) Error added in v1.1.1

func (r *GetSocialInfoResponse) Error() string

func (*GetSocialInfoResponse) IsError added in v1.1.1

func (r *GetSocialInfoResponse) IsError() bool

type GetUserBaseInfoByEncryPinRequest

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

type GetUserBaseInfoByEncryPinResponse

type GetUserBaseInfoByEncryPinResponse struct {
	ErrorResp *api.ErrorResponnse                   `json:"error_response,omitempty" codec:"error_response,omitempty"`
	Data      *GetUserBaseInfoByEncryPinSubResponse `json:"jingdong_jos_get_user_base_info_responce,omitempty" codec:"jingdong_jos_get_user_base_info_responce,omitempty"`
}

func (GetUserBaseInfoByEncryPinResponse) Error added in v1.1.1

func (GetUserBaseInfoByEncryPinResponse) IsError added in v1.1.1

type GetUserBaseInfoByEncryPinSubResponse

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

func (GetUserBaseInfoByEncryPinSubResponse) Error added in v1.1.1

func (GetUserBaseInfoByEncryPinSubResponse) IsError added in v1.1.1

type MixPinToXidData added in v1.1.11

type MixPinToXidData struct {
	Code   string             `json:"code,omitempty" codec:"code,omitempty"`
	Result *MixPinToXidResult `json:"result,omitempty" codec:"result,omitempty"`
}

func (MixPinToXidData) Error added in v1.1.11

func (r MixPinToXidData) Error() string

func (MixPinToXidData) IsError added in v1.1.11

func (r MixPinToXidData) IsError() bool

type MixPinToXidRequest added in v1.1.11

type MixPinToXidRequest struct {
	api.BaseRequest
	AppKey string `json:"appKey,omitempty" codec:"appKey,omitempty"` // 应用appKey
	MixPin string `json:"mixPin,omitempty" codec:"mixPin,omitempty"` // 加密后的pin
}

type MixPinToXidResponse added in v1.1.11

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

func (MixPinToXidResponse) Error added in v1.1.11

func (r MixPinToXidResponse) Error() string

func (MixPinToXidResponse) IsError added in v1.1.11

func (r MixPinToXidResponse) IsError() bool

type MixPinToXidResult added in v1.1.11

type MixPinToXidResult struct {
	Code      int    `json:"code,omitempty" codec:"code,omitempty"`
	Data      string `json:"data,omitempty" codec:"data,omitempty"`
	RequestId string `json:"requestId,omitempty" codec:"requestId,omitempty"`
}

func (MixPinToXidResult) Error added in v1.1.11

func (r MixPinToXidResult) Error() string

func (MixPinToXidResult) IsError added in v1.1.11

func (r MixPinToXidResult) IsError() bool

type SocialInfo

type SocialInfo struct {
	Birthday       string `json:"birthday,omitempty"`
	Gender         int    `json:"gender,omitempty"`
	YunBigImageUrl string `json:"yunBigImageUrl,omitempty" codec:"yunBigImageUrl,omitempty"`
	Nickname       string `json:"nickname,omitempty" codec:"nickname,omitempty"`
	EncryPin       string `json:"encry_pin,omitempty" codec:"encry_pin,omitempty"`
}

func GetSocialInfo

func GetSocialInfo(req *GetSocialInfoRequest) (*SocialInfo, error)

店铺信息查询

type UserInfo

type UserInfo struct {
	UserId              int64  `json:"userId,omitempty" codec:"userId,omitempty"`
	Nickname            string `json:"nickname,omitempty" codec:"nickname,omitempty"`
	NicknameShow        string `json:"nicknameShow,omitempty" codec:"nicknameShow,omitempty"`
	UserLevel           int    `json:"userLevel,omitempty" codec:"userLevel,omitempty"`
	Gendar              uint8  `json:"gendar,omitempty" codec:"gendar,omitempty"`
	YunBigImageUrl      string `json:"yunBigImageUrl,omitempty" codec:"yunBigImageUrl,omitempty"`
	Pin                 string `json:"pin,omitempty" codec:"pin,omitempty"`           // 明文pin
	Birthday            string `json:"birthday,omitempty" codec:"birthday,omitempty"` // 生日
	OpenId              string `json:"open_id,omitempty"`                             // openId
	CountryCode         string `json:"countryCode,omitempty" codec:"countryCode,omitempty"`
	County              int64  `json:"county,omitempty" codec:"county,omitempty"`
	Province            int64  `json:"province,omitempty" codec:"province,omitempty"`
	City                int64  `json:"city,omitempty" codec:"city,omitempty"`
	Email               string `json:"email,omitempty" codec:"email,omitempty"`
	Mobile              string `json:"mobile,omitempty" codec:"mobile,omitempty"`
	IntactMobile        string `json:"intactMobile,omitempty" codec:"intactMobile,omitempty"`
	EncryptEmail        string `json:"encrypt_email,omitempty" codec:"encrypt_email,omitempty"`
	EncryptMobile       string `json:"encrypt_mobile,omitempty" codec:"encrypt_mobile,omitempty"`
	EncryptIntactMobile string `json:"encrypt_intactMobile,omitempty" codec:"encrypt_intactMobile,omitempty"`
	EncryptAccountId    uint64 `json:"encrypt_account_id,omitempty" codec:"encrypt_account_id" `
	Created             int64  `json:"created,omitempty" codec:"created,omitempty"`
	Modified            int64  `json:"modified,omitempty" codec:"modified,omitempty"`
	RegTime             int64  `json:"regTime,omitempty" codec:"regTime,omitempty"`
	UpgradeTime         int64  `json:"upgradeTime,omitempty" codec:"upgradeTime,omitempty"`
	EncryPin            string `json:"encry_pin,omitempty" codec:"encry_pin,omitempty"`
}

func GetUserBaseInfoByEncryPin

func GetUserBaseInfoByEncryPin(req *GetUserBaseInfoByEncryPinRequest) (*UserInfo, error)

店铺信息查询

Jump to

Keyboard shortcuts

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