wiki:app2.0/object_properties

Version 28 (modified by pengzhanxuan, 11 years ago) (diff)

--

实体属性说明

爆料:

topic:{
    topicId: 2395585,
    showSourceDesc: "显示直达链接",  // 是否显示直达链接:不显示直达链接,显示直达链接
    sectionDesc: "发现",  // 栏目描述 "优惠", "海淘", "发现", "晒物", "经验", "海淘晒物", "海淘经验", "试用体验", "专题"
    commentNum: 0,  //评论数
    title: "有钱你就来",  //标题
    section: 1, // 栏目:0 优惠  1 海淘  2 发现 3 晒物  4 经验  5 海淘晒物  6 海淘经验  7 试用体验  8 专题
    topSection: 1  // 顶级的栏目id:0优惠,1海淘,2 发现,3 晒物,4经验
    isSupportPurchasing: 1,  // 是否支持代购
    brandId: 1,  // 品牌ID
    shortTitle: "超值商品推荐"  // 短标题
    formerPrice: 20.01,  // 原价
    currentPrice: 20.00,  // 现价
    discount: 0.85,  // 折扣
    topicType: {
        id: 1,
        name: '数码家电'
    }, // 爆料类型
    topicTagList:[$topicTag],  // 聚超值标签
    topicBabyTagList:[$topicTag],  // 母婴生活馆标签
    mallName: "京东",  // 电商名称
    hdCover: "http://img.pconline.com.cn/1.png",  //  2:1图片
    mallId: 1, // 电商id
    title: "今日特惠",  // 标题
    price: "五折对低价199",  // 价格描述
    findPlace: "魅族官网",  // 发现地
    source: "http://detail.tmall.com/item.htm?spm=a220m.1000858.1000725.6.P2Y1D2&id=36688625539&areaId=&user_id=1803692106&is_b=1&cat_id=2&q=lumia+525&rn=07e8762161389369ece15346c5136044",  // 默认链接
    wapSource: "",  // 默认wap连接
    sourceMore: 1, // 是否多链接
    findPlaceOption:1,  // 来源标识 0:电商 1: 第三方
    activityUrl: "http://best.pconline.com.cn",  // 优惠活动链接
    pubDate: 13215412512000,  // 发布时间,时间戳 毫秒
    goldAount: 10,  // 爆料者获得的金币
    top: 1,  // 是否置顶
    overdueStatus: 1,  // 是否过期
    recommendIndex: 1,  // 是否推荐首页
    commentCount: 10,  // 评论数量
    goodCount: 2,  // 好评数
    badCount:3,  // 差评数
    favoriteCount: 12,  // 收藏数
    endTime: 13251245121000,  // 优惠截止时间
    area: "广东",  // 购买地区
    mall: $mall,  // 所属电商
    email: "123456@qq.com",
    createName: "Jason@qq.com",  // 创建者名称
    createNamePrefix: "Jason",  // 创建者名称,邮箱前缀
    topicTypeName: "数码家电",  // 爆料所属分类名称
    showDefaultIndex: 1, // 母婴是否首页显示    
    reason: "该爆料已经推荐过",  // 审核理由
    originalSource: "http://best.pconline.com.cn/1.do",  // 原始链点
    showSource: 1,  // 是否显示直达链接
    commitClientType: 1,  // 爆料来源:0 pc 1 app
    channelId: 12,  // 计数器栏目id
    topicBuyCount: {
        topicId: 123,
        addCount: 12,  // 新增数量
        totalCount: 20  // 总数量
    },
    purchasingCount: {
        topicId: 123,
        addCount: 12,  // 新增数量
        totalCount: 20  // 总数量        
    }, 
    isPurchasing: 1,  // 当前爆料该商家是否已经代购
    leastLevel: $topicType,  // 最低级分类
    firstLevel: $topicType,  // 爆料一级分类
    isWlt:1,  // 是否瓦拉淘支持的电商
    wltAlert: "http://best.pconline.com.cn/1.action",  // 获得瓦拉淘降价提醒的链接
    mallType: 1  // 0 国内电商   1 国外电商
    hasCoupon: 0,  // 是否有优惠券,适用于 优惠,海淘
    cover: "",
    hdCover: "http://www.google.com/1.png"  // 高清图,适用于晒物,经验,试用体验
}

爆料类型

topicType: {
    typeId: 1,
    name: '数码家电',
    level: 1  // 分类等级
}

爆料标签

topicTag: {
    tagId: 1,  // 标签Id
    name: "白菜价",  // 标签名称
    isHot: 1,  // 是否热门标签
    isSpecial: 1,  // 是否特色标签
    isRed:1,  // 是否套红
    description: "最低白菜价",  // 标签描述
    type:  1  // 0 聚超值   1  母婴生活馆
}

爆料来源

topicSource: {
    sourceId: 1,  // 来源id
    topicId: 1321,  // 爆料id
    title: "广式菠萝啤",  // 标题
    uri: "http://chaoshi.tmall.com/detail/view_detail.htm?spm=3.583907.6780765.7.ahUZyv&item_id=20173439873&rewcatid=50514008",
    originalUri: "www.qq.com",
    wapUri: ""
}

发出的评论

sendComment: {
        commentId: 37283120,
        currentFloor: 2,
        formatCreateAt: "2014-10-29 09:40:58",
        isSupportPurchasing: 0,
        replyRefContent: ""看起来不错哦"",
        sentNickName: "qz31244533",
        textCommentContent: "怎么还要定金的呢",
        topicId: 80671,
        topicLogo: "http://img.pconline.com.cn/images/upload/upc/tx/pc_best/1410/28/c0/40244951_1414478236223_150x150.jpg",
        topicTitle: "双11预售:佳能 单反相机 1200D/18-55 套机",
        topicType: 0,
        topicURLForPCWeb: "http://best.pconline.com.cn/faxian_80671.html",
        topicUrl: "http://best.pconline.com.cn/discovery_art.jsp?topicId=80671",
        urlForComment: "http://best.pconline.com.cn/discovery_art.jsp?topicId=80671",
        userLogo: "http://i1.3conline.com/images/upload/upc/face/28/46/70/67/28467067_100x100",
        userface: "http://i1.3conline.com/images/upload/upc/face/31/24/45/33/31244533_100x100",
        username: "arthinking"
}

收到的评论

receiveComment: {
        $sendComment,
    userId: 1,  // 评论者ID
    username: "Jason",  // 评论者名称
    userface: "http://img.pc.com.cn/1.png"  // 评论者头像
}

系统信息

{
    accountId: 4712407,
    content: "恭喜您刮中了“神秘奖-聚超值积分10个”,请在小金库中查收,感谢您参加“聚超值刮刮乐”活动!",
    createTime: 1400042156000,
    groupSend: 0,
    groupType: 0,
    id: 81120957,
    resultText: "",
    senderId: 0,
    siteId: 1,
    status: 1,
    type: {
        description: "今日最超值",
        groupType: 0,
        id: 1006,
        name: "今日最超值",
        siteId: 1,
        templateId: 1006
    },
    typeId: 1006

栏目

section {
    value: 1,
    name: '海淘'
}

栏目搜索结果

sectionExtend{
    value: 1,
    name: '海淘',
    count: 12  
}

新增属性:

hasCoupon hdCover

推荐位

adPosition:{
    adId: 51,
    adTitle: "好东西哇",
    price: "12块包邮",
    imageUrl: "",
    seq: 1,
    positionIndex: 5,  // 用途 0 焦点图下方广告、1 置顶广告
    topic: {
        $topic
    },
    url: "http://g.pconline.com.cn/a/73727.html",  // 跳转链接
    urlType: 1,  // 1 爆料  2 网页,
    seq:3  // 排序,插入到首页的位置
}

新增属性

seq

礼品

gift: {
    giftId: 1
    subGiftDesc: "好礼物",  // 个人中心相关礼品介绍截取100字符字段
    giftStock: $giftStock,
    giftExchangeRule: $giftExchangeRule,
    name: "京东卡",
    mallName: '京东',  // 电商名称
    type: 1,  // 礼品类型: 1 礼品卡  2 实物礼品 3 优惠券
    image: "http://a.cn/1.png",  // 图片
    orderNum: 1,  // 排序
    giftPrice: 12.00,  // 礼品价格
    createTime: 13251245124000,  // 创建时间
    disCount: "满400减20",  // 优惠券额度
    expiryDate: 13621321521000,  // 有效期
    mallId:  12,  // 电商Id
    remainingDay:2  // 当前时间距离优惠券过期的天数
}

优惠券

giftCoupon: {
    gift: $gift,
    couponId: 123,  // 优惠券Id
    giftId: 123,  // 礼品Id
    cardNum: '1232',
    cardPassword: 's123sdssdfs54212',
    status: 1,  // 状态0:禁用;1:未领取;2:已领取
    createAt: 1352125412000,  // 创建时间
    createrId: 132,  // 创建人id
    updateAt: 13215478541000,  // 更新时间
    updaterId:  132,
    updateName: "Jason",  // 更新人
    createName: "Jason",  // 创建人
    useDate: 13212457451000,  // 被领取时间
}

礼品兑换规则

giftExchangeRule: {
    id: 1,
    giftId: 2,
    needScore: 10,
    needGold: 2,
    limitTimes: 10
}

礼物描述

giftDesc:{
    giftId: 123,
    giftDesc:"好礼物",  // 礼物描述
    subGiftDesc: "好礼物"  // 个人中心相关礼品介绍截取100字符字段
}

礼品库存

giftStock:{
    giftId: 123,  
    stockNum: 12,  // 剩余库存
    totalStockNum: 20,   // 总库存
    createTime: 13215467895000,  // 创建时间
    changeNum: 1  // 已领取数量
}

代购商家

purchasing: {
    purchasingId: 1,
    price: 123,  // 价格
    hasSpotGoods: 1,  // 是否有现货:0 现货/1 代购
    link: "http://www.taobao.com/item_1.html",  // 代购地址
    description: "超值代购",  // 代购商家描述
    userId: 12,  // 代购商家id
    topicId: 12,  // 爆料id
    user: $user,
    topic: $topic
}

专题

special: {
    id:1,
    specialName: "双十一精选",
    image: "http://img.pconline.com.cn/1.png",
    url: "http://g.pconline.com.cn/link/a.html"
}

新增属性

新增实体

广场入口

sunplazaEntry: {
    type: 1,  // 1 标签爆料列表,2 分类爆料列表,3 电商爆料列表,4 爆料终端页,5 专题页,6 试用详情页,7 外链,8 搜索结果页,9商家优惠券列表
    mall: {tagId or mallId or catId or topicId or trialId or url or keyword}
}

新增属性

新增实体

标签

tag: {
    id: 1,
    name: "精选"
}

分类

topicType: {
    id: 1,
    name: "数码家电"
}

电商

mall: {
    mallId: 1, 
    name: "京东",
    url: "http://www.jd.com", // 电商URL
    seq: 12,  // 排序
    typeId: 1,  // 国内外电商  0国内电商 1国外电商
    areaType: 1,  // 地域类型  0其他电商 1美淘电商 2日淘电商
    logo: "http://img.pc.com.cn/1.png"
}

活动

activity{
    activityId: 1,
    cover: "http://1.c.cn/1.png",  // PC活动封面
    appCover: "http://1.c.cn/2.png",  // app活动封面
    title: "亚马逊精选礼品图书满300-100",
    url: "http://www.a.cc/w.do",  // 链点
    description: "好活动",  // 活动描述
    seq: 1,  // 排序
    isTop:  1,  // 是否置顶
    isHaiTao: 1,  // 是否海淘活动
    isMall: 1,  // 是否电商活动
    createAt: 13251245121000,     
}

设置活动

setupActivity{
        $activity,
        seq: 1
}

用户信息

userInfo: {
    userId: 12,
    name: "Jason",  // 用户名
    nickName: "Jason",  // 昵称
    email: "Jason@gg.cc",  // 电子邮件
    face: "http://img.a.b/1.png",  // 头像
    goldAmount:12,  // 金币
    score: 10,  // 积分
    levelId: 12,  // 等级Id
    experience: 12,  // 经验
    createAt:135212544845000,  // 创建时间
    pristige: 10,  // 威望值
    isBlack: 1,  // 是否黑名单
    purchasingGold:10,  // 钻石
    isPurchasing: 1,  // 1:代购商家 0:求购买家
    
    // img 头像从平台获取
    logo: "http://img.pc.com.cn/1.png",
}

用户扩展信息

userExtend: {
    topicNum: 1,
    favNum: 10,
    trialNum: 2,
    couponNum: 2
}

焦点图

focusImage: {
    focusImageId: 12,
    typeId: 爆料类型Id
    image: "http://img.pconline.com.cn/7.jpg",  // 焦点图
    seq: 1,
    positionIndex: 1,  // 0 app端焦点图、1 wap端焦点图、2 pc端首页焦点图、3 pc端海淘焦点图、4 PC端晒货焦点图、5 PC端经验焦点图、6 WAP端首页焦点图、7 wap端海淘焦点图、8 wap端发现焦点图、9 wap端晒物焦点图、10 wap端经验焦点图
    focusTitle: "现货直接买!iPhone6 Plus 64G三网通5K1",
    topicId: 125,  // 爆料id
    sectionType: 1  // 顶级的栏目id:0优惠,1海淘,2 发现,3 晒物,4经验
    url: "http://img.1.cn/1.png",  // 焦点图跳转链接
    createAt: 136521542140000  // 创建时间
}

收藏

favorite: {
    favoriteId: 123,  // 收藏id
    topic: $topic,
    userId: 12,  // 收藏的用户Id
    createAt: 13625123531000
}

试用体验相关实体

试用体验

// TODO:
trial: {
    id: 1,
    name: '铃木口琴',
    num: 1,   // 试用数量
    applyNum: 12,  // 申请人数
    status: 1,  // 活动状态:  1:...
    finalTime: '2014-10-10 10:11:10',  // 截止时间
    img_540_270: '',
    price: 100,
    score: 10,  // 所需积分
    gold: 10,  // 所需金币
    detail: '',  // 试用详情
}

体验类型

trialType: {
    id: 1,
    name: '数码家电'
}

我的试用

myTrial: {
    logo: "http://img.pconline.com.cn/1.png",
    title: "申请这个"
    date: '2015-02-03 10:10::00',
    status: 1  // 状态说明,
    experiencereport: {
        title: 'test',
        id: 12,
        status: 1  // 未交报告,已交报告,报告通过,需修改
    }  // 试用报告
}

编辑自设定属性

设定礼品

setupGift: {
    $gift,
    seq: 1,
    type: 1  // 1 首页   2   广场
}

设定专题

setupSpecial: {
    $special
}

设定体验

setupTrial: {
        $trial,
    seq: seq,
    type: 1  // 1 首页   2  广场
}

关键词订阅

subscriptionSecond: {
    subscriptionId: 1,
    keyword: $subscriptionKeyword
}

关键词

subscriptionKeyword:{
    keywordId:12,
    keyword: "ipad"
}

标签

topicTag:{
    id:1,
    name: '土豪',
    isHot: 1,  // 是否热点标签
    isSpecial:0,  // 是否特色标签
    type:0  // 类型  0 聚超值  1 母婴
}

组合VO对象

首页VO

indexVo: {
    type: 1,  // 1 爆料   2 推荐位  3 试用  4 优惠券
    value: {$topic or $adPosition or $trial or $gift}  // 根据type判断这里是什么类型
}