1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- "use strict";
- var common_request = require("../common/request.js");
- let request = new common_request.Request().http;
- const api = {
- liveDataLike: (liveId) => `/app/live/liveData/like/${liveId}`,
- collectStore: "/app/live/liveData/collectStore",
- follow: (liveId) => `/app/live/liveData/follow/${liveId}`,
- getRecentLiveViewers: (liveId) => `/app/live/liveData/getRecentLiveViewers/${liveId}`,
- getLiveInfo: (liveId) => `/app/live/${liveId}`,
- getLiveViewData: (liveId) => `/app/live/liveData/getLiveViewData/${liveId}`,
- liveStore: (liveId) => `/app/live/liveGoods/liveStore/${liveId}`,
- liveGoodsDetail: (productId) => `/app/live/liveGoods/liveGoodsDetail/${productId}`,
- liveOrderUser: (liveId) => `/app/live/liveOrder/liveOrderUser/${liveId}`
- };
- function liveDataLike(liveId, data = {}) {
- return request(api.liveDataLike(liveId), data, "GET", "application/json;charset=UTF-8");
- }
- function collectStore(data) {
- return request(api.collectStore, data, "GET", "application/json;charset=UTF-8");
- }
- function follow(liveId, data = {}) {
- return request(api.follow(liveId), data, "GET", "application/json;charset=UTF-8");
- }
- function getRecentLiveViewers(liveId, data = {}) {
- return request(api.getRecentLiveViewers(liveId), data, "GET", "application/json;charset=UTF-8");
- }
- function liveStore(liveId, data) {
- return request(api.liveStore(liveId), data, "GET", "application/json;charset=UTF-8");
- }
- function liveGoodsDetail(productId, data) {
- return request(api.liveGoodsDetail(productId), data, "GET", "application/json;charset=UTF-8");
- }
- function liveOrderUser(liveId, data = {}) {
- return request(api.liveOrderUser(liveId), data, "GET", "application/json;charset=UTF-8");
- }
- function getLiveInfo(liveId, data = {}) {
- return request(api.getLiveInfo(liveId), data, "GET", "application/json;charset=UTF-8");
- }
- function getLiveViewData(liveId, data = {}) {
- return request(api.getLiveViewData(liveId), data, "GET", "application/json;charset=UTF-8");
- }
- exports.collectStore = collectStore;
- exports.follow = follow;
- exports.getLiveInfo = getLiveInfo;
- exports.getLiveViewData = getLiveViewData;
- exports.getRecentLiveViewers = getRecentLiveViewers;
- exports.liveDataLike = liveDataLike;
- exports.liveGoodsDetail = liveGoodsDetail;
- exports.liveOrderUser = liveOrderUser;
- exports.liveStore = liveStore;
|