/*
 * Copyright (C), 2002-2015, 江苏三六五网络股份有限公司
 * FileName: TfhConstant.java
 * Author:   duhui
 * Date:     2015年1月31日 下午2:37:19
 * Description:     
 * History: 
 * <author>      <time>      <version>    <desc>
 * 修改人姓名                          修改时间                        版本号                                 描述
 */
package com.house365.rest.context;

/**
 * 客立方参数
 *
 * @author yangyang
 * @version [v1.0.0, 2015年7月1日]
 * @see [相关类/方法]（可选）
 * @since [产品/模块版本] （可选）
 */
public class CmConstant {


    /**
     * ID
     */
    public static final String ID = "id";

    /**
     * 用户UID
     */
    public static final String USERID = "userId";

    /**
     * 经纪人ID
     */
    public static final String BROKERID = "brokerId";


    /**
     * 楼盘ID
     */
    public static final String HOUSEID = "houseId";

    public static final String STARTDATE = "startDate";

    public static final String ENDDATE = "endDate";

    public static final String HOUSENAME = "houseName";
    /**
     * 是否加精
     */
    public static final String IS_EXCELLENT = "isExcellent";
    /**
     * 是否有图
     */
    public static final String HAS_PICTURE = "hasPicture";

    /**
     * 楼盘物业类型
     */
    public static final String CHANNEL = "channel";

    /**
     * 用户手机号
     */
    public static final String PHONENUMBER = "phoneNumber";

    /**
     * 评论ID
     */
    public static final String COMMENTID = "commentId";

    /**
     * 楼主ID
     */
    public static final String HOSTCOMMENTID = "hostCommentId";

    /**
     * 积分规则Id
     */
    public static final String RULEID = "ruleId";
    /**
     * 当前页
     */
    public static final String PAGE = "currentPage";
    /**
     * 每页条数
     */
    public static final String PAGESIZE = "pageSize";
    /**
     * 排名类型type
     */
    public static final String TYPE = "type";
    /**
     * 客户ID
     */
    public static final String CID = "cid";

    /**
     * 城市id
     */
    public static final String CITY_ID = "cityId";

    /**
     * 城市名称
     */
    public static final String CITY_NAME = "cityName";

    /**
     * 用户名
     */
    public static final String USER_NAME = "userName";

    /**
     * 用户ID
     */
    public static final String USER_ID = "userId";

    /**
     * 用户密码
     */
    public static final String USER_PASSWORD = "userPassword";

    /**
     * 用户手机
     */
    public static final String USER_PHONE = "userPhone";

    /**
     * 用户积分
     */
    public static final String USERCREDITS = "userCredits";

    /**
     * 评论类型
     */
    public static final String COMMENTTYPE = "commentType";

    /**
     * 评论类型
     */
    public static final String SOURCE = "source";

    /**
     * 签到积分
     */
    public static final int CREDITS_RULE_SIGN = 1;
    /**
     * 楼盘评论积分
     */
    public static final int CREDITS_RULE_HOUSE_COMMENT = 2;
    /**
     * 房源积分
     */
    public static final int CREDITS_RULE_HOUSE_RESOURCE = 3;
    /**
     * 经纪人评论积分
     */
    public static final int CREDITS_RULE_BROKER_COMMENT = 4;
    /**
     * 经纪人评论扣除积分
     */
    public static final int CREDITS_RULE_BROKER_COMMENT_REMOVE = 5;
    /**
     * 楼盘评论扣除积分
     */
    public static final int CREDITS_RULE_HOUSE_COMMENT_REMOVE = 6;
    /**
     * 奖品兑换扣除积分
     */
    public static final int CREDITS_RULE_EXCHANGE_GOODS = 7;
    /**
     * 邀请用户积分
     */
    public static final int CREDITS_RULE_INVITE_USER = 8;
    /**
     * 大转盘抽奖积分
     */
    public static final int CREDITS_RULE_SIGN_LOTTERY = 9;
    /**
     * 用户注册
     */
    public static final int CREDITS_RULE_REGISTER = 10;
    /**
     * 用户上传头像
     */
    public static final int CREDITS_RULE_UPLOAD_PHOTO = 11;
    /**
     * 加精
     */
    public static final int CREDITS_RULE_ADD_EXCELLENT = 12;

    /**
     * 提问
     */
    public static final int CREDITS_RULE_QUESTION = 13;

    /**
     * 积分变更
     */
    public static final int CREDITS_RULE_CHANGE = 14;

    /**
     * 抽奖所需积分
     */
    public static final int CREDITS_RULE_LOTTERY = 15;

    //社区发帖/回帖
    public static final int CREDITS_RULE_POST = 16;

    //房博士提问扣积分
    public static final int CREDITS_RULE_QUESTION_MINUS = 17;

    //房博士提问送心意
    public static final int CREDITS_RULE_SENDGIFT = 18;

    /**
     * 管理员角色
     */
    public static final String ROLE_ADMIN = "1";

    /**
     * 事业部站点编码
     */
    public static final String ShiYeBu = "zbu";
    /**
     * 事业部中文
     */
    public static final String ShiYeBuStr = "事业部";

    /**
     * 用户角色
     */
    public static final String USER_ROLE = "userRole";

    /**
     * 城市键值
     */
    public static final String CITY_KEY = "cityKey";

    /**
     * 城市键值
     */
    public static final String USER_CITY_KEY = "userCityKey";

    public static final String USER_PHOTO = "userPhoto";
    /**
     * 用户ID类型：1:用户中心账号 2:其他库账号
     */
    public static final String USERID_TYPE = "useridType";
    public static final Integer USERID_TYPE_USER_CENTER = 1;
    public static final Integer USERID_TYPE_OTHER = 2;

    //总部对应字段
    public static final String ZONGBU = "zbu";
    //Order by字段
    public static final String ORDER_FIELD = "orderField";
    //Order by顺序
    public static final String ORDER_DESC_OR_ACS = "orderDescOrAsc";
    //积分区间最大值
    public static final String MIN_CREDITS = "minCredits";
    //积分区间最小值
    public static final String MAX_CREDITS = "maxCredits";


    //点赞接口参数
    public static final String PRAISE = "praise";
    //取消赞
    public static final Integer PRAISE_NOT = 0;
    //赞
    public static final Integer PRAISE_ON = 1;
    // 评论楼盘接口
    public static final String[] HouseCommentList = {HOUSEID, CITY_KEY, PAGESIZE, PAGE};
    //用户楼盘评论接口
    public static final String[] UserOwnHouseCommentList = {USERID_TYPE, USERID, PAGESIZE, PAGE};
    // 楼盘评价回复接口
    public static final String[] HouseCommentReply = {COMMENTID, USERID, CITY_KEY};
    // 获取楼盘信息接口
    public static final String[] GetHouseById = {HOUSEID, CHANNEL, CITY_KEY};
    //楼盘\主评论\回复
    public static final String[] CommentAndReplyInfo = {STARTDATE, ENDDATE};
    // 获取楼盘信息接口
    public static final String[] UpdateHouseName = {HOUSEID, CHANNEL, HOUSENAME, CITY_KEY};
    // 楼盘评论回复列表接口
    public static final String[] HouseCommentReplyList = {COMMENTID};
    // 经纪人评论接口
    public static final String[] BrokerComment = {BROKERID, USERID, CITY_KEY, USERID_TYPE};
    // 获取送货信息接口
    public static final String[] GetDeliveryInfo = {USERID};
    // 经纪人评论列表接口
    public static final String[] BrokerCommentList = {BROKERID, CITY_KEY, PAGESIZE, PAGE};
    // 评论举报接口
    public static final String[] CommentReport = {COMMENTID, COMMENTTYPE, SOURCE};
    // 标签列表接口
    public static final String[] LabelList = {};
    //用户首次上传照片
    public static final String[] UPLOAD_USER_PHOTO_CREDITS = {USERID, USER_PHOTO};
    //更新用户信息
    public static final String[] UPDATE_USER_INFO_PARAMS = {USERID};
    //Redis字段
    public static final String SECKILL_CURRENT_COUNT = "secKill:currentCount:";
    public static final String SECKILL_STOCK = "secKill:stock:";
    public static final String SECKILL_LEFT_STOCK_LIST = "secKill:left:stock:list:";
    public static final String ORDER_SUBMIT_BY = "order:submit:by:";
    public static final String ORDER_COUNT = "order:count:";
    public static final String SECKILL_USER_GOODS = "secKill:userId:goodsId:";
    /**
     * 楼盘评分
     **/
    //评论内容
    public static String criticContent = "criticContent";
    //评论图片
    public static String criticPictures = "criticPictures";
    //匿名
    public static String isAnonymous = "isAnonymous";
    //价格评分
    public static String priceScore = "priceScore";
    //交通评分
    public static String trafficScore = "trafficScore";
    //位置评分
    public static String placeScore = "placeScore";
    //设施评分
    public static String infrastructureScore = "infrastructureScore";
    //环境评分
    public static String environmentScore = "environmentScore";
    // 评论楼盘接口
    public static final String[] CommentHouse = {HOUSEID, USERID, CITY_KEY, USERID_TYPE, CHANNEL, criticContent, isAnonymous, priceScore, trafficScore, placeScore, infrastructureScore, environmentScore};


}
