电商实战接口Api

来源:互联网 发布:网络监控机怎么安装 编辑:程序博客网 时间:2024/05/21 11:03
public class Api {
    public static String UID = "2752";
    public static String TOKEN = "281AAB332365B682754BA7D0D37371D3";
    //登录 mobile password token
    public static String LOGIN = "https://www.zhaoapi.cn/user/login";
    //注册 mobile password token
    public static String REG = "https://www.zhaoapi.cn/user/reg";
    //上传头像 uid file token
    public static String UPLOAD = "https://www.zhaoapi.cn/file/upload";
    //用户信息 uid token
    public static String USER_INFO = "https://www.zhaoapi.cn/user/getUserInfo";
    //首页
    public static String HOME_PAGE = "https://www.zhaoapi.cn/ad/getAd";
    //分类
    public static String CLASSIFICATION = "https://www.zhaoapi.cn/product/getCatagory";
    //子分类 cid
    public static String CHILD_CLASSIFICATION = "https://www.zhaoapi.cn/product/getProductCatagory";
    //商品详情 pid
    public static String GOOD_DETAIL = "https://www.zhaoapi.cn/product/getProductDetail";
    //子分类下的商品列表 pscid (page sort(0默认1销量2价格)非必填)
    public static String GOOD_LIST = "https://www.zhaoapi.cn/product/getProducts";
    //根据关键词搜索 keywords (page sort(0默认1销量2价格)非必填)
    public static String KEYWORDS_SEARCH = "https://www.zhaoapi.cn/product/searchProducts";
    //修改昵称 uid token nickname
    public static String UPDATE_NICK_NAME = "https://www.zhaoapi.cn/user/updateNickName";
    //添加购物车 uid pid token
    public static String ADD_CART = "https://www.zhaoapi.cn/product/addCart";
    //查询购物车 uid token
    public static String GET_CARTS = "https://www.zhaoapi.cn/product/getCarts";
    //更新购物车 uid sellerid pid selected num token
    public static String UPDATE_CARTS = "https://www.zhaoapi.cn/product/updateCarts";
    //删除购物车 uid pid token
    public static String DELETE_CART = "https://www.zhaoapi.cn/product/deleteCart";
    //创建订单 uid price token
    public static String CREATE_ORDER = "https://www.zhaoapi.cn/product/createOrder";
    //修改订单状态 uid status(0 待支付 1 已支付 2 已取消) orderId token
    public static String UPDATE_ORDER = "https://www.zhaoapi.cn/product/updateOrder";
    //订单列表 uid token (page 非必填)
    public static String GET_ORDERS = "https://www.zhaoapi.cn/product/getOrders";
    //常用收货地址列表 uid token
    public static String GET_ADDRS = "https://www.zhaoapi.cn/user/getAddrs";
    //添加常用收货地址 uid addr mobile name token
    public static String ADD_ADDR = "https://www.zhaoapi.cn/user/addAddr";
    //修改常用收货地址 uid addrid token (mobile name 非必填)
    public static String UPDATE_ADDR = "https://www.zhaoapi.cn/user/updateAddr";
    //设置默认地址 uid addrid status(0:非默认 1:默认) token
    public static String SET_ADDR = "https://www.zhaoapi.cn/user/setAddr";
    //获取默认地址 uid token
    public static String GET_DEFAULT_ADDR = "https://www.zhaoapi.cn/user/getDefaultAddr";
}
原创粉丝点击