Changes between Initial Version and Version 1 of app2.0/object_properties


Ignore:
Timestamp:
02/04/2015 06:01:26 PM (11 years ago)
Author:
pengzhanxuan
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • app2.0/object_properties

    v1 v1  
     1[[TOC]] 
     2 
     3= 实体属性说明 = 
     4 
     5== 爆料: == 
     6 
     7{{{#!java 
     8topic:{ 
     9    id: 2395585, 
     10        commentNum: 0,  //评论数 
     11        title: "有钱你就来",  //标题 
     12        topicType: 2,  // 0发现,1优惠,2海淘,3晒物,4经验 
     13        image: "http://img0.pcauto.com.cn/12_1.png",  //图片 
     14        pubDate: "2013-02-03",        //时间 
     15        good: 20,  //值的数量 
     16        bad: 1,  //不值的数量 
     17        price: "只售998,还包邮~"  //价格 
     18        deprecated: 1  //是否过期 
     19        currentPrice : "0.00";  //现在价格 
     20        discount : "0.0折";  //打折数 
     21        formerPrice : "0.00";  //之前价格 
     22        eb: "电商名称", 
     23        overdueStatus: 1,  // 是否过期 
     24        showSource: 1,  // 是否显示直达链接 
     25        tryToGetWapSource: "http://www.google.com/"  // wap直达链接, 
     26    hasCoupon: 0,  // 是否有优惠券,适用于 优惠,海淘 
     27    hdCover: "http://www.google.com/1.png"  // 高清图,适用于晒物,经验,试用体验 
     28} 
     29}}} 
     30 
     31== 爆料类型 == 
     32 
     33{{{#!java 
     34topicType: { 
     35    id: 1, 
     36    name: '数码家电' 
     37} 
     38}}} 
     39 
     40== 发出的评论 == 
     41 
     42{{{#!java 
     43sendComment: { 
     44        commentId: 37283120, 
     45        currentFloor: 2, 
     46        formatCreateAt: "2014-10-29 09:40:58", 
     47        isSupportPurchasing: 0, 
     48        replyRefContent: ""看起来不错哦"", 
     49        sentNickName: "qz31244533", 
     50        textCommentContent: "怎么还要定金的呢", 
     51        topicId: 80671, 
     52        topicLogo: "http://img.pconline.com.cn/images/upload/upc/tx/pc_best/1410/28/c0/40244951_1414478236223_150x150.jpg", 
     53        topicTitle: "双11预售:佳能 单反相机 1200D/18-55 套机", 
     54        topicType: 0, 
     55        topicURLForPCWeb: "http://best.pconline.com.cn/faxian_80671.html", 
     56        topicUrl: "http://best.pconline.com.cn/discovery_art.jsp?topicId=80671", 
     57        urlForComment: "http://best.pconline.com.cn/discovery_art.jsp?topicId=80671", 
     58        userLogo: "http://i1.3conline.com/images/upload/upc/face/28/46/70/67/28467067_100x100", 
     59        userface: "http://i1.3conline.com/images/upload/upc/face/31/24/45/33/31244533_100x100", 
     60        username: "arthinking" 
     61} 
     62}}} 
     63 
     64== 收到的评论 == 
     65 
     66{{{#!java 
     67receiveComment: { 
     68        $sendComment, 
     69    userId: 1,  // 评论者ID 
     70    username: "Jason",  // 评论者名称 
     71    userface: "http://img.pc.com.cn/1.png"  // 评论者头像 
     72} 
     73}}} 
     74 
     75== 栏目 == 
     76 
     77{{{#!java 
     78section { 
     79    value: 1, 
     80    name: '海淘' 
     81} 
     82 
     83}}} 
     84 
     85== 栏目搜索结果 == 
     86 
     87{{{#!java 
     88sectionExtend{ 
     89    value: 1, 
     90    name: '海淘', 
     91    count: 12   
     92} 
     93}}} 
     94 
     95**新增属性:** 
     96 
     97hasCoupon  hdCover 
     98 
     99== 推荐位 == 
     100 
     101{{{#!java 
     102adPosition:{ 
     103        adId: 51, 
     104        adTitle: "好东西哇", 
     105        createTime: "2014-09-25 14:15:55", 
     106        imageUrl: "", 
     107        imageUrl_170x70: "", 
     108        positionIndex: 5, 
     109        topic: { 
     110                $topic 
     111        }, 
     112        url: "http://g.pconline.com.cn/a/73727.html", 
     113        urlType: 1,  // 1 爆料  2 网页, 
     114    seq:3  // 排序,插入到首页的位置 
     115} 
     116{{{#!java 
     117 
     118**新增属性** 
     119 
     120seq 
     121 
     122== 礼品 == 
     123 
     124{{{#!java 
     125gift: { 
     126    id: 1 
     127    mallName: '京东',  // 电商名称 
     128    mallId: 12, 
     129    squareImg: "http://img.pconline.com.cn/2.png",  // 正方形图片 
     130    rectangleImg: "http://img.pconline.com.cn/1.png",  // 2:1长方形图片 
     131    name: '京东优惠券',  // 标题 
     132    expiryDate: '2015-02-28 10:10:00', 
     133    giftExchangeRule: $giftExchangeRule, 
     134     
     135} 
     136}}} 
     137 
     138== 优惠券 == 
     139 
     140{{{#!java 
     141giftCoupon: { 
     142    gift: $gift, 
     143    cardNum: '1232', 
     144    cardPassword: 's123sdssdfs54212' 
     145} 
     146}}} 
     147 
     148== 礼品兑换规则 == 
     149 
     150{{{#!java 
     151giftExchangeRule: { 
     152    id: 1, 
     153    giftId: 2, 
     154    needScore: 10, 
     155    needGold: 2, 
     156    limitTimes: 10 
     157} 
     158}}} 
     159 
     160== 代购商家 == 
     161 
     162{{{#!java 
     163purchasing: { 
     164    id: 1, 
     165    linkForApp: "http://www.taobao.com/item_1.html",  // 代购地址 
     166    userface: "http://img.pconline.com.cn/1.png",  // 代购商家头像 
     167    description: "超值代购",  // 代购商家描述 
     168    hasSpotGoods: 1,  // 是否有现货:0 现货/1 代购 
     169    price: 123,  // 价格 
     170    username: best12  // 代购商家名称 
     171} 
     172}}} 
     173 
     174== 专题 == 
     175 
     176{{{#!java 
     177special: { 
     178    id:1, 
     179    specialName: "双十一精选", 
     180    image: "http://img.pconline.com.cn/1.png", 
     181    url: "http://g.pconline.com.cn/link/a.html" 
     182} 
     183}}} 
     184 
     185**新增属性** 
     186 
     187新增实体 
     188 
     189== 广场入口 == 
     190 
     191{{{#!java 
     192sunplazaEntry: { 
     193    type: 1,  // 1 标签爆料列表,2 分类爆料列表,3 电商爆料列表,4 爆料终端页,5 专题页,6 试用详情页,7 外链  
     194    tag: {$tag}, 
     195    topicType: {$topicType}, 
     196    mall: {}, 
     197    topic: {$topic}, 
     198    special: {$special}, 
     199    url: "http://best.pconline.com.cn/activity.html" 
     200} 
     201}}} 
     202 
     203**新增属性** 
     204 
     205新增实体 
     206 
     207== 标签 == 
     208 
     209{{{#!java 
     210tag: { 
     211    id: 1, 
     212    name: "精选" 
     213} 
     214}}} 
     215 
     216== 分类 == 
     217 
     218{{{#!java 
     219topicType: { 
     220    id: 1, 
     221    name: "数码家电" 
     222} 
     223}}} 
     224 
     225== 电商 == 
     226 
     227{{{#!java 
     228mall: { 
     229    id: 1, 
     230    name: "京东", 
     231    logo: "http://img.pconline.com.cn/1.png" 
     232} 
     233}}} 
     234 
     235== 活动 == 
     236 
     237{{{#!java 
     238activity{ 
     239    id: 1, 
     240    title: "亚马逊精选礼品图书满300-100", 
     241    cover: "",  // 获取80x40尺寸的 
     242} 
     243}}} 
     244 
     245== 设置活动 == 
     246 
     247{{{#!java 
     248setupActivity{ 
     249        $activity, 
     250        seq: 1 
     251} 
     252}}} 
     253 
     254== 用户信息 == 
     255 
     256{{{#!java 
     257userInfo: { 
     258    id: 12, 
     259    status: -1, 
     260    gold: 10 
     261    point: 20, 
     262        purchasingGold:10, 
     263    // img 头像从平台获取 
     264    logo: "http://img.pc.com.cn/1.png", 
     265} 
     266}}} 
     267 
     268== 用户扩展信息 == 
     269 
     270{{{#!java 
     271userExtend: { 
     272    topicNum: 1, 
     273    favNum: 10, 
     274    trialNum: 2, 
     275    couponNum: 2 
     276} 
     277}}} 
     278 
     279== 焦点图 == 
     280 
     281{{{#!java 
     282focusImage: { 
     283    topicId: 125,  // 爆料id 
     284    sectionType:1  // 爆料栏目类型: 0发现,1优惠,2海淘,3晒物,4经验 
     285    title: "现货直接买!iPhone6 Plus 64G三网通5K1", 
     286    image: "http://img.pconline.com.cn/7.jpg", 
     287    seq: 1, 
     288    isSupportPurchasing: 1,  // 是否支持代购 1 支持  0 不支持 
     289} 
     290}}} 
     291 
     292== 置顶广告位 == 
     293 
     294{{{#!java 
     295adPosition: { 
     296        adId: 51, 
     297    adTitle: "好东西哇", 
     298        createTime: "2014-09-25 14:15:55", 
     299        imageUrl: "", 
     300        imageUrl_170x70: "", 
     301        positionIndex: 5, 
     302        topic: { 
     303                $topic 
     304        },   // urlType 为 1的时候改属性不为空 
     305    seq: 1,  // 排序,插入到首页的位置 
     306        url: "http://best.pconline.com.cn/haitao/73727.html", 
     307        urlType: 1  // 1 爆料    2 网页 
     308} 
     309}}} 
     310 
     311== 收藏 == 
     312 
     313{{{#!java 
     314collect: { 
     315        id: 123, 
     316    title: "", 
     317    time: "", 
     318    price": "", 
     319    eb": "",(电商名称) 
     320    image": "http://xxx", 
     321    topicType: 2,  // 0发现,1优惠,2海淘,3晒物,4经验 
     322    invalid": 0, (1已失效,0未失效)  
     323    good: 20,    //值的数量 
     324    bad": 2,        //不值的数量 
     325    commentNum: 1,    //评论数 
     326    createName:"Jason",  // 作者 
     327    collectCount:1    // 收藏数 
     328} 
     329}}} 
     330 
     331= 试用体验相关实体 = 
     332== 试用体验 == 
     333 
     334{{{#!java 
     335// TODO: 
     336trial: { 
     337    id: 1, 
     338    name: '铃木口琴', 
     339    num: 1,   // 试用数量 
     340    applyNum: 12,  // 申请人数 
     341    status: 1,  // 活动状态:  1:... 
     342    finalTime: '2014-10-10 10:11:10',  // 截止时间 
     343    price: 100, 
     344    score: 10,  // 所需积分 
     345    gold: 10,  // 所需金币 
     346    detail: '',  // 试用详情 
     347} 
     348}}} 
     349 
     350== 体验类型 == 
     351 
     352{{{#!java 
     353trialType: { 
     354    id: 1, 
     355    name: '数码家电' 
     356} 
     357}}} 
     358 
     359== 我的试用 == 
     360 
     361{{{#!java 
     362myTrial: { 
     363    logo: "http://img.pconline.com.cn/1.png", 
     364    title: "申请这个" 
     365    date: '2015-02-03 10:10::00', 
     366    status: 1  // 状态说明, 
     367    experiencereport: { 
     368        title: 'test', 
     369        id: 12, 
     370        status: 1  // 未交报告,已交报告,报告通过,需修改 
     371    }  // 试用报告 
     372} 
     373}}} 
     374 
     375 
     376= 编辑自设定属性 = 
     377== 设定礼品 == 
     378 
     379{{{#!java 
     380setupGift: { 
     381    $gift, 
     382    seq: 1, 
     383    type: 1  // 1 首页   2   广场 
     384} 
     385}}} 
     386 
     387== 设定专题 == 
     388 
     389{{{#!java 
     390setupSpecial: { 
     391    $special 
     392} 
     393}}} 
     394 
     395== 设定体验 == 
     396 
     397{{{#!java 
     398setupTrial: { 
     399        $trial, 
     400    seq: seq, 
     401    type: 1  // 1 首页   2  广场 
     402} 
     403}}} 
     404 
     405== 关键词订阅 == 
     406 
     407{{{#!java 
     408subscriptionSecond: { 
     409    id: 1, 
     410    keywordId: 12, 
     411    keyword: 'ipad', 
     412    mallId: 12, 
     413    mallName: '亚马逊' 
     414} 
     415}}} 
     416 
     417== 标签 == 
     418 
     419{{{#!java 
     420topicTag:{ 
     421    id:1, 
     422    name: '土豪', 
     423    isHot: 1,  // 是否热点标签 
     424    isSpecial:0,  // 是否特色标签 
     425    type:0  // 类型  0 聚超值  1 母婴 
     426} 
     427}}}