package com.rdiot.yx485.http;

/**
 * HttpUrl地址常量类
 * <p>
 */
public class Url {

    public static final boolean isProductEnv = true;
    public static final String BASE_URL = isProductEnv ? "https://app.yongxulvjian.com" : "http://114.115.251.196";
    public static final String UPLOAD_FILE = BASE_URL + "/api/v1/files";
    public static final String BASE_URL2 = isProductEnv ? "https://appv2.yongxulvjian.com" : "http://114.115.251.196";
    //密码登录
    public static final String LOGIN = BASE_URL2 + "/api/v1/login/password";
    //登录
    public static final String LOGINSMS = BASE_URL2 + "/api/v1/login/sms";
    //获取验证码
    public static final String LOGINCODE = BASE_URL2 + "/api/v1/login/code";
    // 设置密码PUT
    public static final String SETPASSWORD = BASE_URL2 + "/api/v1/login/set_password";
    // 更新密码PUT
    public static final String UPDATEPASSWORD = BASE_URL2 + "/api/v1/login/update_pass";
    //首页背景
    public static final String BACKGROUNDS = BASE_URL2 + "/api/v1/backgrounds";
    //天气情况
    public static final String WEATHER = BASE_URL2 + "/api/v1/homepages/weather";
    //获取主页场景列表
    public static final String SCENES = BASE_URL2 + "/api/v1/scenes";
    public static final String SCENESDO = BASE_URL2 + "/api/v1/scenes/";
    //获取当前用户默认的家
    public static final String HOMEDEFAULT = BASE_URL2 + "/api/v1/homes/default";
    //获取我的房间列表
    public static final String ROOMS = BASE_URL2 + "/api/v1/rooms";
    //获取当前用户信息
    public static final String CURRENT = BASE_URL2 + "/api/v1/users/current";
    //校验app是否需要更新
    public static final String CHECKVERSION = BASE_URL2 + "/api/v1/check_version";
    public static final String REFRESH_TOKEN = BASE_URL2 + "/api/v1/login/refresh/token";
    //初始化
    public static final String INIT = BASE_URL2 + "/api/v1/init";
    //用户登出（退出登录）
    public static final String EXIT = BASE_URL2 + "/api/v1/login/unsubscribe";
    //更新房间设备类型
    public static final String DEVICETYPE = BASE_URL2 + "/api/v1/rooms/{code}/device_type";
    //房间管理
    //房间分页查询
    public static final String ROOMLIST = BASE_URL2 + "/api/v1/rooms";
    //获取房间详情
    public static final String ROOMDETAIL = BASE_URL2 + "/api/v1/rooms/{id}";
    //删除房间
    public static final String DEVICEDELETE = BASE_URL2 + "/api/v1/rooms";
    //更新房间
    public static final String ROOM_UPDATE = BASE_URL2 + "/api/v1/rooms/{id}";
    //创建房间
    public static final String ROOMCREATE = BASE_URL2 + "/api/v1/rooms";
    //获取设备配网结果
    public static final String CHECKNET = BASE_URL2 + "/api/v1/devices/check_net";
    //获取房间实时状态
    public static final String DEVICEDETAIL = BASE_URL2 + "/api/v1/rooms/status";
    //房间设备详情
    public static final String ALLDEVICE = BASE_URL2 + "/api/v1/rooms/";
    public static final String UPDATE_ROOM_ORDER = BASE_URL2 + "/api/v1/rooms/sequence";
    //设备列表查询
    public static final String DEVICES = BASE_URL2 + "/api/v1/devices";
    //设备管理
    //添加设备
    public static final String DEVICECREATES = BASE_URL2 + "/api/v1/devices";
    //设备删除
    public static final String DEVICEDELETES = BASE_URL2 + "/api/v1/devices/";
    //设备更新顺序
    public static final String SEQUENCE = BASE_URL2 + "/api/v1/devices/sequence";
    //设备更新
    public static final String DEVICEUPDATES = BASE_URL2 + "/api/v1/devices/{id}";
    //批量更新设备房间id
    public static final String DEVICEUPDATESMORE = BASE_URL2 + "/api/v1/devices/room";
    //批量删除设备
    public static final String DEVICEDELETEMORE = BASE_URL2 + "/api/v1/devices/{id}";
    //设备类型树查询
    public static final String DEVICETYPELIST = BASE_URL2 + "/api/v1/device_types";
    //开关控制
    public static final String POWER = BASE_URL2 + "/api/v1/control/power";
    public static final String ONLINE = BASE_URL2 + "/api/v1/control/online/{id}";
    //家庭管理
    //我的家分页查询
    public static final String HOMESLIST = BASE_URL2 + "/api/v1/homes";
    //我的家列表查询
    public static final String HOMES = BASE_URL2 + "/api/v1/homes";
    //获取家庭信息详情
    public static final String HOMEDETAILS = BASE_URL2 + "/api/v1/homes/{id}";
    //创建家庭
    public static final String HOMECREATE = BASE_URL2 + "/api/v1/homes";
    //更新家庭
    public static final String HOMEUPDATE = BASE_URL2 + "/api/v1/homes/{id}";
    //删除家庭
    public static final String HOMEDELETE = BASE_URL2 + "/api/v1/homes/{id}";
    //城市区域查询
    public static final String HOMEDEFAULTS = BASE_URL2 + "/api/v1/cities";
    //邀请家庭成员
    public static final String FAMILYMEMBER = BASE_URL2 + "/api/v1/family_members/invite";
    public static final String FAMILY_MEMBER_REMARK = BASE_URL2 + "/api/v1/family_members/{id}/remark";
    //删除家庭成员
    public static final String FAMILYMEMBERLIST = BASE_URL2 + "/api/v1/family_members";
    //更新用户默认的家
    public static final String FAMILYMEMBERDELETE = BASE_URL2 + "/api/v1/family_members/default/";
    //创建家庭默认房间列表
    public static final String FAMILYMEMBERLISTS = BASE_URL2 + "/api/v1/home/default_rooms";
    //根据手机号查询用户
    public static final String USER_INFO = BASE_URL2 + "/api/v1/users/{phone}";
    //用户管理
    //编辑个人资料
    public static final String USEREDIT = BASE_URL2 + "/api/v1/users/{id}";
    //banner图查询
    public static final String BANNERS = BASE_URL2 + "/api/v1/banners";
    public static final String GOODSlIST = BASE_URL2 + "/api/v1/goods";
    //未读数统计查询
    public static final String MESSAGE = BASE_URL2 + "/api/v1/messages";
    public static final String CONSUMABLE_LIST = BASE_URL2 + "/api/v1/device_consumables";
    public static final String CONSUMABLE_REPLACE = BASE_URL2 + "/api/v1/device_consumables";
    //获取消息列表
    public static final String MESSAGELST = BASE_URL2 + "/api/v1/messages";
    //更新状态
    public static final String MESSAGEREAD = BASE_URL2 + "/api/v1/messages/{id}/read";
    //全部已读
    public static final String MESSAGEREADALL = BASE_URL2 + "/api/v1/messages/{home_id}/read_all";
}
