chufengma / b2b

0 stars 0 forks source link

加工信息相关API #5

Open chufengma opened 8 years ago

chufengma commented 8 years ago

获取加工信息选择器

handing/categories Get

---

---
jsonData = {
List<String> handingTypes,
List<String> units
}

目前为止返回的数据中:
handingTypes = Arrays.asList("整卷油磨",
            "中厚板镜面抛光",
            "中厚板油磨",
            "冲花板",
            "压花板",
            "抗指纹",
            "平板油磨拉丝",
            "平板干磨短丝",
            "普通拉丝",
            "普通镜面",
            "卷圆焊接",
            "剪折弯",
            "激光切割",
            "水刀切割",
            "超宽板拉丝",
            "不锈钢非标准件定制",
            "镀色板",
            "和纹板")

units = Arrays.asList("吨", "平方米", "米")
chufengma commented 8 years ago

发布加工信息(仅卖家)

handing/push multiPost
---
String type;  // 加工类型
String souCityId; // 加工所在城市
String title;   // 标题
float price;    // 价格
String unit;    // 单位
File cover;     // 封面
File image1;   // 可选
File image2;   // 可选 
File image3;   // 可选
---
jsonData = {}
chufengma commented 8 years ago

发布求购信息

handing/buy Post
---
String handingType;
String souCityId;
String message;
long timeLimit;  // 时间限制(以秒为单位)
---
jsonData={}
chufengma commented 8 years ago

加工信息分页

handing/handing Get
---
int currentPage;
int pageCount;
String userId; (可选)
handingType;     // 加工种类 (可选)
souCityId;   // 加工所在城市 (可选)
keyword; // 关键词(可选)
boolean score; // 按score排序,true从高到低,false反之(可选)
boolean  price; // 按价格排序,true从高到低(可选)
boolean monthSellCount; // 按月销量排序 true从高到低(可选)
---
jsonData = { 
maxCount,
currentPage,
pageCount,
List<HandingProduct> handingProducts,
}

其中:
HandingProduct =    {
        "cover": "./files/2016/6/19/WdDfdnobGk7Y.jpg",
        "id": "A2amYGBYWgVu",
        "monthSellCount": 23,
        "price": 123,
        "score": 0,
        "souCityId": "wYC4sP3V",
        "sourceCity": "广东 深圳 ",
        "title": "sss",
        "type": "整卷油磨",
        "unit": "米"
      },
chufengma commented 8 years ago

求购信息分页

handing/buy  Get
---
currentPage  
pageCount
    public String handingType; (可选)
    public String cityId; (可选)
    public String userId; (可选)
---
{
  "data": {
    "currentPage": 0,
    "handings": [
      {
        "handingType": "冲花板",
        "id": "PmPNOklFbltl",
        "message": "asfasdf",
        "pushTime": 1466819441150,
        "souCityId": "PwUgn58r",
        "sourceCity": "黑龙江 ",
        "timeLimit": 1466819442150,
        "userId": "527cec6a380046b5b813537e10d065e9"
      },
      {
        "handingType": "冲花板",
        "id": "d0p50HOYdWCc",
        "message": "asfasdf",
        "pushTime": 1466227226321,
        "souCityId": "PwUgn58r",
        "sourceCity": "黑龙江 ",
        "timeLimit": 0,
        "userId": "527cec6a380046b5b813537e10d065e9"
      }
    ],
    "maxCount": 2,
    "pageCount": 3
  },
  "errorMsg": "",
  "status": 0
}