domain

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Card

type Card struct {
	IsAtLeast          int           `json:"is_at_least"`
	WeixinTitle        string        `json:"weixin_title"`
	EndAt              string        `json:"end_at"`
	IsSyncWeixin       int           `json:"is_sync_weixin"`
	DateType           int           `json:"date_type"`
	PreferentialType   int           `json:"preferential_type"`
	IsRandom           int           `json:"is_random"`
	IsForbidPreference int           `json:"is_forbid_preference"`
	MarkTags           []MarkTag     `json:"mark_tags"`
	WeixinColor        string        `json:"weixin_color"`
	Description        string        `json:"description"`
	SpecifyItems       []SpecifyItem `json:"specify_items"`
	Discount           string        `json:"discount"`
	CanGiveFriend      int           `json:"can_give_friend"`
	Title              string        `json:"title"`
	StartAt            string        `json:"start_at"`
	Total              int64         `json:"total"`
	ExpireNotice       int           `json:"expire_notice"`
	Quota              int           `json:"quota"`
	FixedTerm          int           `json:"fixed_term"`
	Stock              int           `json:"stock"`
	Value              string        `json:"value"`
	StatFetchNum       int           `json:"stat_fetch_num"`
	ValueRandomTo      string        `json:"value_random_to"`
	WeixinSubTitle     string        `json:"weixin_sub_title"`
	IsShare            int           `json:"is_share"`
	StatUseNum         int           `json:"stat_use_num"`
	StatFetchUserNum   int           `json:"stat_fetch_user_num"`
	Created            string        `json:"created"`
	WeixinColorRgb     string        `json:"weixin_color_rgb"`
	RangeType          string        `json:"range_type"`
	FetchURL           string        `json:"fetch_url"`
	ServicePhone       string        `json:"service_phone"`
	UserLevelName      string        `json:"user_level_name"`
	IsExpired          int           `json:"is_expired"`
	IsOngoing          int           `json:"is_ongoing"`
	GroupID            int64         `json:"group_id"`
	NeedUserLevel      int           `json:"need_user_level"`
	AtLeast            string        `json:"at_least"`
	Status             int           `json:"status"`
	FixedBeginTerm     int           `json:"fixed_begin_term"`
}

Card ...

type ContactAddress

type ContactAddress struct {
	Address  string `json:"address"`
	AreaCode string `json:"areaCode"`
	Province string `jsoon:"province"`
	City     string `json:"city"`
	Country  string `json:"country"`
}

ContactAddress 联系地址

type CouponTake

type CouponTake struct {
	CouponType string    `json:"coupon_type"`
	Code       Promocode `json:"promocode"`
	Card       Promocard `json:"promocard"`
}

CouponTake ..

type CouponUnfinished

type CouponUnfinished struct {
	Coupons []Coupons `json:"coupons"`
}

type Coupons

type Coupons struct {
	IsAtLeast               int                     `json:"is_at_least"`
	IsWechatPaymchSync      bool                    `json:"is_wechat_paymch_sync"`
	IsSyncWeixin            int                     `json:"is_sync_weixin"`
	EndAt                   int64                   `json:"end_at"`
	IsRandom                int                     `json:"is_random"`
	IsForbidPreference      int                     `json:"is_forbid_preference"`
	Description             string                  `json:"description"`
	Title                   string                  `json:"title"`
	StartAt                 int64                   `json:"start_at"`
	Total                   int                     `json:"total"`
	ExpireNotice            int                     `json:"expire_notice"`
	Quota                   int                     `json:"quota"`
	Stock                   int                     `json:"stock"`
	Value                   string                  `json:"value"`
	StatFetchNum            int                     `json:"stat_fetch_num"`
	ValueRandomTo           string                  `json:"value_random_to"`
	IsShare                 int                     `json:"is_share"`
	StatUseNum              int                     `json:"stat_use_num"`
	StatFetchUserNum        int                     `json:"stat_fetch_user_num"`
	Created                 int64                   `json:"created"`
	RangeType               string                  `json:"range_type"`
	FetchURL                string                  `json:"fetch_url"`
	UserLevelName           string                  `json:"user_level_name"`
	GroupID                 int                     `json:"group_id"`
	WeixinCardID            string                  `json:"weixin_card_id"`
	CouponType              string                  `json:"coupon_type"`
	NeedUserLevel           int                     `json:"need_user_level"`
	AtLeast                 string                  `json:"at_least"`
	Status                  int                     `json:"status"`
	WechatPaymchPackSetting WechatPaymchPackSetting `json:"wechat_paymch_pack_setting,omitempty"`
}

type CustomerCreateInfo

type CustomerCreateInfo struct {
	AccountID   string `json:"account_id"`
	AccountType string `json:"account_type"`
}

CustomerCreateInfo ..

type CustomerGetInfo

type CustomerGetInfo struct {
	Name      string         `json:"name"`
	Gender    int            `json:"gender"`
	Birthday  string         `json:"birthday"`
	Mobile    string         `json:"mobile"`
	IsMember  bool           `json:"is_member"`
	Remark    string         `json:"remark"`
	OutUserID string         `json:"out_user_id"`
	Address   ContactAddress `json:"contact_address"`
}

CustomerGetInfo 客户信息

type DeliveryTemplateInfo

type DeliveryTemplateInfo struct {
	DeliveryTemplateID            int64  `json:"delivery_template_id"`
	DeliveryTemplateFee           string `json:"delivery_template_fee"`
	DeliveryTemplateName          string `json:"delivery_template_name"`
	DeliveryTemplateValuationType int    `json:"delivery_template_valuationType"`
}

DeliveryTemplateInfo 运费模板

type FenxiaoExtend

type FenxiaoExtend struct {
	SupplierKdtID   int64 `json:"supplier_kdt_id"`
	SupplierGoodsID int64 `json:"supplier_goods_id"`
}

type HotelExtend

type HotelExtend struct {
	ServiceTelCode string `json:"service_tel_code"`
	ServiceTel     string `json:"service_tel"`
}

type Item

type Item struct {
	ItemID           int64                `json:"item_id"`
	Alias            string               `json:"alias"`
	Title            string               `json:"title"`
	Price            int64                `json:"price"`
	ItemType         int64                `json:"item_type"`
	ItemNo           string               `json:"item_no"`
	Quantity         int                  `json:"quantity"`
	PostType         int                  `json:"post_type"`
	CreatedTime      string               `json:"created_time"`
	UpdateTime       string               `json:"update_time"`
	DetailURL        string               `json:"detail_url"`
	Num              int64                `json:"num"`
	Origin           string               `json:"origin"`
	ClassID          string               `json:"classId"`
	Image            string               `json:"image"`
	ShareIcon        string               `json:"shareIcon"`
	ShareTitle       string               `json:"shareTitle"`
	ShareDetail      int64                `json:"shareDetail"`
	PageURL          string               `json:"pageUrl"`
	ItemImgs         []ItemImg            `json:"item_imgs"`
	DeliveryTemplate DeliveryTemplateInfo `json:"delivery_template"`
}

Item 商品

type ItemImg

type ItemImg struct {
	Thumbnail string `json:"thumbnail"`
	Created   string `json:"created"`
	Medium    string `json:"medium"`
	ID        int64  `json:"id"`
	URL       string `json:"url"`
	Combine   string `json:"combine"`
}

ItemImg ...

type ItemTag

type ItemTag struct {
	ShareURL string `json:"share_url"`
	Created  string `json:"created"`
	Name     string `json:"name"`
	Alias    string `json:"alias"`
	ID       int64  `json:"id"`
	TagURL   string `json:"tag_url"`
	Type     int    `json:"type"`
	ItemNum  int    `json:"item_num"`
	Desc     string `json:"desc"`
}

ItemTag ..

type LatestInfo added in v0.0.5

type LatestInfo struct {
	NickName string `json:"nick_name"`
	Avatar   string `json:"avatar"`
}

type MarkTag

type MarkTag struct {
	Name string `json:"name"`
	ID   string `json:"id"`
}

MarkTag ..

type MobileInfo added in v0.0.5

type MobileInfo struct {
	Mobile string `json:"mobile"`
}

type OrderGoodItem added in v0.0.2

type OrderGoodItem struct {
	GoodsID     int64  `json:"goods_id"`
	SkuID       int64  `json:"sku_id"`
	Num         int    `json:"num"`
	Price       int    `json:"price"`
	ItemMessage string `json:"item_message"`
}

type PlatformInfo added in v0.0.5

type PlatformInfo struct {
	WeixinOpenID string `json:"weixin_open_id"`
}

type PresaleExtend

type PresaleExtend struct {
	PresaleEnd string `json:"presale_end"`
	EtdEnd     string `json:"etd_end"`
	EtdDays    int    `json:"etd_days"`
	EtdStart   string `json:"etd_start"`
	EtdType    int    `json:"etd_type"`
}

type PrimitiveInfo added in v0.0.5

type PrimitiveInfo struct {
	Country      string `json:"country"`
	UpdatedTime  string `json:"updated_time"`
	CreatedTime  string `json:"created_time"`
	Province     string `json:"province"`
	PlatformType int    `json:"platform_type"`
	Gender       int    `json:"gender"`
	City         string `json:"city"`
	NickName     string `json:"nick_name"`
	YzOpenID     string `json:"yz_open_id"`
	Avatar       string `json:"avatar"`
}

type Promocard

type Promocard struct {
	PromocardID     int64  `json:"promocard_id"`
	Title           string `json:"title"`
	Value           string `json:"value"`
	Condition       string `json:"condition"`
	StartAt         string `json:"start_at"`
	EndAt           string `json:"end_at"`
	IsUsed          int    `json:"is_used"`
	IsInvalid       int    `json:"is_invalid"`
	IsExpired       int    `json:"is_expired"`
	BackgroundColor string `json:"background_color"`
	DetailURL       string `json:"detail_url"`
	VerifyCode      string `json:"verify_code"`
}

Promocard 优惠券

type Promocode

type Promocode struct {
	PromocodeID     int64  `json:"promocode_id"`
	Title           string `json:"title"`
	Code            string `json:"code"`
	Value           string `json:"value"`
	Condition       string `json:"condition"`
	StartAt         string `json:"start_at"`
	EndAt           string `json:"end_at"`
	IsUsed          int    `json:"is_used"`
	IsInvalid       int    `json:"is_invalid"`
	IsExpired       int    `json:"is_expired"`
	BackgroundColor string `json:"background_color"`
	DetailURL       string `json:"detail_url"`
	VerifyCode      string `json:"verify_code"`
}

Promocode 优惠码

type PurchaseRight

type PurchaseRight struct {
	UmpTagsText  []string `json:"ump_tags_text"`
	UmpTags      []string `json:"ump_tags"`
	UmpLevels    []string `json:"ump_levels"`
	UmpLevelText []string `json:"ump_level_text"`
}

type ShopBasicInfo

type ShopBasicInfo struct {
	// ParentKdtID 上级店铺id,有赞平台生成,在有赞平台唯一,用于判断上一级店铺id
	ParentKdtID int64 `json:"parent_kdt_id"`
	// RootKdtID 有赞连锁总部店铺id,仅供有赞连锁场景下使用。有赞平台生成,在有赞平台唯一,用于判断信息属于哪一个总部
	RootKdtID int64 `json:"root_kdt_id"`
	// Sid KdtId 有赞店铺ID
	Sid int64 `json:"sid"`
	// LineOfBusiness 店铺业务线 10000 微商城,20000 教育, 50000 餐饮,60000 美业, 70000 零售, 140000 供货
	LineOfBusiness int32 `json:"line_of_business"`
	// Role 组织角色 0 单店, 1 总部, 2001 门店,2002 网店,3 独立仓,4 合伙人,6 分销供货店铺,7 前置仓
	Role int32 `json:"role"`
	// CertType 认证类型(0 未认证,2 企业认证,3 个人认证, 12 个体工商户认证, 10 其他组织、政府及事业单位)
	CertType int16 `json:"cert_type"`
	// Name 店铺名称
	Name string `json:"name"`
	Logo string `json:"logo"`
	// PhysicalUrl 门店地址
	PhysicalUrl string `json:"physical_url"`
	// Intro 门店简介
	Intro string `json:"intro"`
	// Url 店铺H5地址
	Url string `json:"url"`
}

type Sku

type Sku struct {
	SkuUniqueCode      string `json:"sku_unique_code"`
	OuterID            string `json:"outer_id"`
	SkuID              int64  `json:"sku_id"`
	OneItemMultiCode   string `json:"one_item_multi_code"`
	SoldNum            int64  `json:"sold_num"`
	ItemNo             string `json:"item_no"`
	Modified           string `json:"modified"`
	CostPrice          int64  `json:"cost_price"`
	PropertiesNameJson string `json:"properties_name_json"`
	Created            string `json:"created"`
	WithHoldQuantity   int64  `json:"with_hold_quantity"`
	Quantity           int64  `json:"quantity"`
	Price              int64  `json:"price"`
	ItemID             int64  `json:"item_id"`
}

type SkuGet added in v0.0.3

type SkuGet struct {
	PropertiesName     string `json:"properties_name"`
	SkuUniqueCode      string `json:"sku_unique_code"`
	OuterID            string `json:"outer_id"`
	SkuID              int64  `json:"sku_id"`
	OneItemMultiCode   string `json:"one_item_multi_code"`
	SoldNum            int64  `json:"sold_num"`
	ItemNo             string `json:"item_no"`
	Modified           string `json:"modified"`
	PropertiesNameJson string `json:"properties_name_json"`
	Created            string `json:"created"`
	WithHoldQuantity   int64  `json:"with_hold_quantity"`
	Quantity           int64  `json:"quantity"`
	Price              string `json:"price"` // 单位元
	ItemID             int64  `json:"item_id"`
	NumIID             int64  `json:"num_iid"` // 同商品ID
}

SkuGet youzan.item.sku.get 返回

{
   "trace_id":"bifrost-gateway-0a132d9f-3071632085-7176deac",
   "code":200,
   "data":{
       "properties_name":"",
       "sku_unique_code":"110055079137440714",
       "quantity":50,
       "item_id":1100550791,
       "created":"2021-08-19 10:06:34",
       "properties_name_json":"[]",
       "num_iid":1100550791,
       "sku_id":37440714,
       "outer_id":"",
       "item_no":"",
       "with_hold_quantity":0,
       "price":"69.00",
       "modified":"2021-08-19 10:06:34"
   },
   "success":true,
   "message":"successful"
}

type SkuImage

type SkuImage struct {
	KID    int64  `json:"k_id"`
	VID    int64  `json:"v_id"`
	ImgURL string `json:"img_url"`
}

type SpecifyItem

type SpecifyItem struct {
	PromotionCid                  int       `json:"promotion_cid"`
	ItemType                      int       `json:"item_type"`
	BuyQuota                      string    `json:"buy_quota"`
	Num                           int       `json:"num"`
	TemplateTitle                 string    `json:"template_title"`
	HasComponent                  bool      `json:"has_component"`
	ItemWeight                    string    `json:"item_weight"`
	Price                         string    `json:"price"`
	DeliveryTemplateName          string    `json:"delivery_template_name"`
	Order                         int       `json:"order"`
	TagIds                        string    `json:"tag_ids"`
	IsSupplierItem                bool      `json:"is_supplier_item"`
	ItemTags                      []ItemTag `json:"item_tags"`
	Created                       string    `json:"created"`
	ItemValidityStart             int       `json:"item_validity_start"`
	IsListing                     bool      `json:"is_listing"`
	IsUsed                        bool      `json:"is_used"`
	OuterBuyURL                   string    `json:"outer_buy_url"`
	StockLocked                   int       `json:"stock_locked"`
	EffectiveType                 int       `json:"effective_type"`
	ShareURL                      string    `json:"share_url"`
	PicThumbURL                   string    `json:"pic_thumb_url"`
	DeliveryTemplateID            int       `json:"delivery_template_id"`
	IsLock                        string    `json:"is_lock"`
	OriginPrice                   string    `json:"origin_price"`
	PicURL                        string    `json:"pic_url"`
	Cid                           int       `json:"cid"`
	Desc                          string    `json:"desc"`
	IsVirtual                     bool      `json:"is_virtual"`
	DetailURL                     string    `json:"detail_url"`
	AutoListingTime               int       `json:"auto_listing_time"`
	Skus                          []string  `json:"skus"`
	PostFee                       string    `json:"post_fee"`
	DeliveryTemplateValuationType int       `json:"delivery_template_valuation_type"`
	NumIid                        string    `json:"num_iid"`
	Title                         string    `json:"title"`
	JoinLevelDiscount             string    `json:"join_level_discount"`
	OuterID                       string    `json:"outer_id"`
	KdtID                         string    `json:"kdt_id"`
	HolidaysAvailable             int       `json:"holidays_available"`
	Alias                         string    `json:"alias"`
	ItemValidityEnd               int       `json:"item_validity_end"`
	ItemImgs                      []ItemImg `json:"item_imgs"`
	SoldNum                       int       `json:"sold_num"`
	ProductType                   string    `json:"product_type"`
	EffectiveDelayHours           int       `json:"effective_delay_hours"`
	TemplateID                    int       `json:"template_id"`
}

SpecifyItem ...

type SubscribeItem

type SubscribeItem struct {
	// kdt_id
	// java.lang.Long
	// 订购店铺id
	// 18163424
	KdtID int64  `json:"kdt_id"`
	Env   string `json:"env"`
	// effect_time
	// java.lang.Long
	// 生效时间, Unix时间戳,单位:毫秒
	// 1558949704000
	EffectTime int64 `json:"effect_time"`
	// expire_time
	// java.lang.Long
	// 过期时间 ,Unix时间戳,单位:毫秒
	// 1558949704000
	ExpireTime int64 `json:"expire_time"`
	// pay_time
	// java.lang.Long
	// 支付时间, Unix时间戳,单位:毫秒
	// 1558949704000
	PayTime int64 `json:"pay_time"`
	// buyer_id
	// java.lang.Long
	// 订购人id
	// 865115939
	BuyerID int64 `json:"buyer_id"`
	// app_id
	// java.lang.Long
	// 应用id
	// 42516
	AppID int64 `json:"app_id"`
	// price
	// java.lang.Long
	// 支付价格,单位:分
	// 99
	Price int32 `json:"price"`
	// status
	// java.lang.Integer
	// 支付状态:10-未支付,20-已支付
	// 20
	Status int8 `json:"status"`
	// buyer_phone
	// java.lang.String
	// 订购人手机号
	// 135xxxx1234
	BuyerPhone string `json:"buyer_phone"`
	// shop_dis_play_no
	// java.lang.String
	// 订购店铺编号
	// 48567648
	ShopDisPlayNo string `json:"shop_display_no"`
	// out_item_id
	// java.lang.String
	// 外部商品编码
	// yz666
	OutItemID string `json:"out_item_id"`
	// order_no
	// java.lang.String
	// 订单编号
	// E20190509181910080300061
	OrderNO string `json:"tid"`
	// SkuIntervalText sku_interval_text
	SkuIntervalText string `json:"sku_interval_text"`
	// SkuVersionText sku_version_text
	SkuVersionText string `json:"sku_version_text"`
	// 订购类型;APP_SUBSCRIBE-应用订购; INNER_SUBSCRIBE-内购项订购; APP_AUTH-应用授权; APP_PURCHASE-应用订购(新)
	Type string `json:"type"`
}

type Template

type Template struct {
	TemplateTitle string `json:"template_title"`
	TemplateID    int    `json:"template_id"`
}

type UserList added in v0.0.5

type UserList struct {
	PrimitiveInfo PrimitiveInfo `json:"primitive_info"`
	MobileInfo    MobileInfo    `json:"mobile_info,omitempty"`
	WechatInfo    WechatInfo    `json:"wechat_info,omitempty"`
	PlatformInfo  PlatformInfo  `json:"platform_info,omitempty"`
}

type VirtualExtend

type VirtualExtend struct {
	ItemValidityEnd     string `json:"item_validity_end"`
	OperateVersion      int    `json:"operate_version"`
	WeChatTplID         string `json:"we_chat_tpl_id"`
	HolidaysAvailable   bool   `json:"holidays_available"`
	UseAddress          string `json:"use_address"`
	CardServiceTel      string `json:"card_service_tel"`
	CardServiceTelCode  string `json:"card_service_tel_code"`
	EffectiveType       int    `json:"effective_type"`
	ValidityType        int    `json:"validity_type"`
	CardColor           string `json:"card_color"`
	EffectiveDelayHours int    `json:"effective_delay_hours"`
	ItemValidityDay     int    `json:"item_validity_day"`
	Instructions        string `json:"instructions"`
	UpdateWeChatBag     bool   `json:"update_we_chat_bag"`
	CardTitle           string `json:"card_title"`
	ItemValidityStart   string `json:"item_validity_start"`
}

type WechatInfo added in v0.0.5

type WechatInfo struct {
	FollowTime   int64  `json:"follow_time"`
	UnfollowTime int64  `json:"unfollow_time"`
	IsFans       int    `json:"is_fans"`
	LastTalkTime int64  `json:"last_talk_time"`
	UnionID      string `json:"union_id"`
	WechatType   int    `json:"wechat_type"`
}

type WechatPaymchPackSetting

type WechatPaymchPackSetting struct {
	ColorName  string `json:"color_name"`
	ColorValue string `json:"color_value"`
	Title      string `json:"title"`
}

Jump to

Keyboard shortcuts

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