user

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: GPL-3.0 Imports: 5 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

Types

type GetEncryptPinData

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

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

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

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

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

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

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

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:"pin,omitempty" codec:"pin,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