文档
测试

创建宝贝

POST
/auction/create

接口描述

(!!!application/json 格式 传给后端 ) 商品图片的话先调 UploadController.uploadImage 接口传图再至上图片字段ossId的值 忽略result 只关注code

说明 / 示例

//创建宝贝入参对象 /** * 名称 */ private String name; /** * 拍卖商品主图 */ private String image; /** * 保证金也就是定金 */ private int deposit; /** * 起拍价 单位分 */ private int startPrice; /** * 最高价 单位分 */ private int mostPrice; /** * 加价幅度 单位分 (mostPrice-startPrice)/totalStepCount */ private int step; /** * 允许加价总数 */ private int totalStepCount; /** * 距离上次加价间隔多少时间 (单位/秒) * 拍卖结束时间 = stepInterval * totalStepCount */ private int stepInterval; /** * 商品详情图片集合 */ private List<String> detailImages; /** * 几人场 先写死3 */ private int limit; /** * 宝贝状态 * @see hz.chenjh.auction.biz.enums.AuctionStatus */ private int status; STOP(0, "停拍下架"), SHELF(1, "上架"); /** * 最近 上架时间 */ private Long shelfTime; /** * 累计总人数 */ private long total; /** * 红包区间 */ private int[] redPacketRegion;