user

package
v0.0.0-...-a55b7e0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2019 License: MIT Imports: 1 Imported by: 1

Documentation

Overview

提供了用户基本信息查询功能 auto sdk from taobao ApiMetadata.xml version 20131207 auther: [email protected]

Index

Constants

View Source
const VersionNo = "20131207"

Variables

This section is empty.

Functions

This section is empty.

Types

type Location

type Location struct {
	Address  string `json:"address"`
	City     string `json:"city"`
	Country  string `json:"country"`
	District string `json:"district"`
	State    string `json:"state"`
	Zip      string `json:"zip"`
}

用户地址

type User

type User struct {
	AlipayBind             string      `json:"alipay_bind"`
	AutoRepost             string      `json:"auto_repost"`
	Avatar                 string      `json:"avatar"`
	Birthday               string      `json:"birthday"`
	BuyerCredit            *UserCredit `json:"buyer_credit"`
	ConsumerProtection     bool        `json:"consumer_protection"`
	Created                string      `json:"created"`
	Email                  string      `json:"email"`
	HasMorePic             bool        `json:"has_more_pic"`
	HasShop                bool        `json:"has_shop"`
	HasSubStock            bool        `json:"has_sub_stock"`
	IsGoldenSeller         bool        `json:"is_golden_seller"`
	IsLightningConsignment bool        `json:"is_lightning_consignment"`
	ItemImgNum             int         `json:"item_img_num"`
	ItemImgSize            int         `json:"item_img_size"`
	LastVisit              string      `json:"last_visit"`
	Liangpin               bool        `json:"liangpin"`
	Location               *Location   `json:"location"`
	MagazineSubscribe      bool        `json:"magazine_subscribe"`
	Nick                   string      `json:"nick"`
	OnlineGaming           bool        `json:"online_gaming"`
	PromotedType           string      `json:"promoted_type"`
	PropImgNum             int         `json:"prop_img_num"`
	PropImgSize            int         `json:"prop_img_size"`
	SellerCredit           *UserCredit `json:"seller_credit"`
	Sex                    string      `json:"sex"`
	SignFoodSellerPromise  bool        `json:"sign_food_seller_promise"`
	Status                 string      `json:"status"`
	Type                   string      `json:"type"`
	Uid                    string      `json:"uid"`
	UserId                 int         `json:"user_id"`
	VerticalMarket         string      `json:"vertical_market"`
	VipInfo                string      `json:"vip_info"`
}

用户

type UserBuyerGetRequest

type UserBuyerGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

查询买家信息API,只能买家类应用调用。

func (*UserBuyerGetRequest) GetResponse

func (r *UserBuyerGetRequest) GetResponse(accessToken string) (*UserBuyerGetResponse, []byte, error)

func (*UserBuyerGetRequest) SetFields

func (r *UserBuyerGetRequest) SetFields(value string)

只返回nick, avatar参数

type UserBuyerGetResponse

type UserBuyerGetResponse struct {
	User *User `json:"user"`
}

type UserBuyerGetResponseResult

type UserBuyerGetResponseResult struct {
	Response *UserBuyerGetResponse `json:"user_buyer_get_response"`
}

type UserCredit

type UserCredit struct {
	GoodNum  int `json:"good_num"`
	Level    int `json:"level"`
	Score    int `json:"score"`
	TotalNum int `json:"total_num"`
}

用户信用

type UserSellerGetRequest

type UserSellerGetRequest struct {
	open_taobao.TaobaoMethodRequest
}

查询卖家用户信息(只能查询有店铺的用户) 只能卖家类应用调用。

func (*UserSellerGetRequest) GetResponse

func (r *UserSellerGetRequest) GetResponse(accessToken string) (*UserSellerGetResponse, []byte, error)

func (*UserSellerGetRequest) SetFields

func (r *UserSellerGetRequest) SetFields(value string)

只返回user_id,nick,sex,seller_credit,type,has_more_pic,item_img_num,item_img_size,prop_img_num,prop_img_size,auto_repost,promoted_type,status,alipay_bind,consumer_protection,avatar,liangpin,sign_food_seller_promise,has_shop,is_lightning_consignment,has_sub_stock,is_golden_seller,vip_info,magazine_subscribe,vertical_market,online_gaming参数

type UserSellerGetResponse

type UserSellerGetResponse struct {
	User *User `json:"user"`
}

type UserSellerGetResponseResult

type UserSellerGetResponseResult struct {
	Response *UserSellerGetResponse `json:"user_seller_get_response"`
}

Jump to

Keyboard shortcuts

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