]> 127.0.0.1 Git - bili_danmu/.git/commitdiff
Add 主播商品营销
authorqydysky <32743305+qydysky@users.noreply.github.com>
Tue, 24 Jan 2023 04:49:46 +0000 (12:49 +0800)
committerqydysky <32743305+qydysky@users.noreply.github.com>
Tue, 24 Jan 2023 04:49:46 +0000 (12:49 +0800)
Reply/Msg.go
Reply/ws_msg/RECOMMEND_CARD.go [new file with mode: 0644]

index 16262613c854c3d252952cdbdcf97225b312533d..0bc23ac53e54f7cc9f2727941c7773dc1749960e 100644 (file)
@@ -117,6 +117,7 @@ var Msg_map = map[string]func(replyF, string){
        "POPULAR_RANK_CHANGED":              nil, //replyF.popular_rank_changed, // Msg-人气排名
        "AREA_RANK_CHANGED":                 nil,
        "GIFT_STAR_PROCESS":                 nil,
+       "RECOMMEND_CARD":                    nil, //主播商品营销
 }
 
 // 屏蔽不需要的消息
diff --git a/Reply/ws_msg/RECOMMEND_CARD.go b/Reply/ws_msg/RECOMMEND_CARD.go
new file mode 100644 (file)
index 0000000..dc5d788
--- /dev/null
@@ -0,0 +1,43 @@
+package part
+
+type RECOMMEND_CARD struct {
+       Cmd  string `json:"cmd"`
+       Data struct {
+               TitleIcon     string `json:"title_icon"`
+               RecommendList []struct {
+                       ShoppingCardDetail struct {
+                               GoodsID             string        `json:"goods_id"`
+                               GoodsName           string        `json:"goods_name"`
+                               GoodsPrice          string        `json:"goods_price"`
+                               GoodsMaxPrice       string        `json:"goods_max_price"`
+                               SaleStatus          int           `json:"sale_status"`
+                               CouponName          string        `json:"coupon_name"`
+                               GoodsIcon           string        `json:"goods_icon"`
+                               GoodsStatus         int           `json:"goods_status"`
+                               Source              int           `json:"source"`
+                               H5URL               string        `json:"h5_url"`
+                               JumpLink            string        `json:"jump_link"`
+                               SchemaURL           string        `json:"schema_url"`
+                               IsPreSale           int           `json:"is_pre_sale"`
+                               ActivityInfo        interface{}   `json:"activity_info"`
+                               PreSaleInfo         interface{}   `json:"pre_sale_info"`
+                               EarlyBirdInfo       interface{}   `json:"early_bird_info"`
+                               Timestamp           int           `json:"timestamp"`
+                               CouponDiscountPrice string        `json:"coupon_discount_price"`
+                               SellingPoint        string        `json:"selling_point"`
+                               HotBuyNum           int           `json:"hot_buy_num"`
+                               GiftBuyInfo         []interface{} `json:"gift_buy_info"`
+                               IsExclusive         bool          `json:"is_exclusive"`
+                               CouponID            string        `json:"coupon_id"`
+                               RewardInfo          interface{}   `json:"reward_info"`
+                               GoodsTagList        interface{}   `json:"goods_tag_list"`
+                               VirtualExtraInfo    interface{}   `json:"virtual_extra_info"`
+                               PriceInfo           interface{}   `json:"price_info"`
+                               BtnInfo             interface{}   `json:"btn_info"`
+                               GoodsSortID         int           `json:"goods_sort_id"`
+                       } `json:"shopping_card_detail"`
+                       RecommendCardExtra interface{} `json:"recommend_card_extra"`
+               } `json:"recommend_list"`
+               Timestamp int `json:"timestamp"`
+       } `json:"data"`
+}