@Test public void testQueryUserCommRecord() throws Exception { JSONObject jsonObject=new JSONObject(); jsonObject.put("item",1); jsonObject.put("page",1); post("/api/v1/user/usercomm/show",jsonObject.toJSONString()); }
@ResponseBody @ApiOperation("获取用户夺宝记录（带分页）") @RequestMapping(value = "/api/v1/user/usercomm/show", method = {RequestMethod.POST, RequestMethod.GET}) public JSONObject queryUserCommRecord(@ApiParam("item（显示形式）：1、进行中；2、已揭晓；其他数字显示全部") @RequestParam("item") Integer item, @ApiParam("最后一个商品Id") @RequestParam("lastCommId") Long lastCommId) { List<Map<String, Object>> historyLottery = userService.selectPurchaseRecords(item, getUserId(), lastCommId); return success(historyLottery); }
UserController extends BaseController { @ResponseBody @ApiOperation("获取用户夺宝记录（带分页）") @RequestMapping(value = "/api/v1/user/usercomm/show", method = {RequestMethod.POST, RequestMethod.GET}) public JSONObject queryUserCommRecord(@ApiParam("item（显示形式）：1、进行中；2、已揭晓；其他数字显示全部") @RequestParam("item") Integer item, @ApiParam("最后一个商品Id") @RequestParam("lastCommId") Long lastCommId) { List<Map<String, Object>> historyLottery = userService.selectPurchaseRecords(item, getUserId(), lastCommId); return success(historyLottery); } }
UserController extends BaseController { @ResponseBody @ApiOperation("获取用户夺宝记录（带分页）") @RequestMapping(value = "/api/v1/user/usercomm/show", method = {RequestMethod.POST, RequestMethod.GET}) public JSONObject queryUserCommRecord(@ApiParam("item（显示形式）：1、进行中；2、已揭晓；其他数字显示全部") @RequestParam("item") Integer item, @ApiParam("最后一个商品Id") @RequestParam("lastCommId") Long lastCommId) { List<Map<String, Object>> historyLottery = userService.selectPurchaseRecords(item, getUserId(), lastCommId); return success(historyLottery); }  }
UserController extends BaseController { @ResponseBody @ApiOperation("获取用户夺宝记录（带分页）") @RequestMapping(value = "/api/v1/user/usercomm/show", method = {RequestMethod.POST, RequestMethod.GET}) public JSONObject queryUserCommRecord(@ApiParam("item（显示形式）：1、进行中；2、已揭晓；其他数字显示全部") @RequestParam("item") Integer item, @ApiParam("最后一个商品Id") @RequestParam("lastCommId") Long lastCommId) { List<Map<String, Object>> historyLottery = userService.selectPurchaseRecords(item, getUserId(), lastCommId); return success(historyLottery); }  @ResponseBody @ApiOperation("Android端用户个人中心信息接口") @RequestMapping(value = "/api/v1/user/center", method = {RequestMethod.POST, RequestMethod.GET}) JSONObject queryUserCenter(); @ResponseBody @ApiOperation("Android端“我”的用户信息（头像、昵称、推广id、积分、闪币）") @RequestMapping(value = "/api/v1/user/info", method = {RequestMethod.POST, RequestMethod.GET}) JSONObject queryUserInfo(); @ResponseBody @ApiOperation("获取用户中奖记录（带分页）") @RequestMapping(value = "/api/v1/user/win", method = {RequestMethod.POST, RequestMethod.GET}) JSONObject queryUserWinningHistory(@ApiParam("当前页最后一item的实际id") @RequestParam("lastCommId") Long lastCommId) {; @ResponseBody @ApiOperation("获取用户夺宝记录（带分页）") @RequestMapping(value = "/api/v1/user/usercomm/show", method = {RequestMethod.POST, RequestMethod.GET}) JSONObject queryUserCommRecord(@ApiParam("item（显示形式）：1、进行中；2、已揭晓；其他数字显示全部") @RequestParam("item") Integer item, @ApiParam("最后一个商品Id") @RequestParam("lastCommId") Long lastCommId) {; @ResponseBody @ApiOperation("获取用户夺宝记录中的luckCode带分页") @RequestMapping(value = "/api/v1/priv/user/usercomm/code/show", method = {RequestMethod.POST, RequestMethod.GET}) JSONObject queryUserLuckCode(@ApiParam("回传最后一个Code码") @RequestParam("commId") Long commId, @ApiParam("回传最后一个Code码") @RequestParam(name = "lastCode", required = false) String lastCode) {; @ResponseBody @ApiOperation("用户签到接口") @RequestMapping(value = "/api/v1/user/sign/add", method = {RequestMethod.POST, RequestMethod.GET}) JSONObject addUserSign(); @ResponseBody @ApiOperation("用户签到信息") @RequestMapping(value = "/api/v1/user/sign/show", method = {RequestMethod.POST, RequestMethod.GET}) JSONObject queryUserSign(); @ResponseBody @ApiOperation("用户上传头像（tip:接口暂时未使用也未实现功能）") @RequestMapping(value = "/api/v1/user/upload/headimg.do", method = {RequestMethod.POST, RequestMethod.GET}) JSONObject uploadUserImg(@RequestParam("accountId") Long accountId, @RequestParam("photo") MultipartFile imgFile); @ResponseBody @ApiOperation("修改用户昵称") @RequestMapping(value = "/api/v1/user/update/nickname", method = {RequestMethod.POST, RequestMethod.GET}) JSONObject updateUserNickName(@RequestParam("nickname") String nickname); @ResponseBody @ApiOperation("修改电话号码（tip:未实现功能）") @RequestMapping(value = "/api/v1/user/update/phone", method = {RequestMethod.POST, RequestMethod.GET}) JSONObject updatePhone(@RequestParam("phone") String phone, @RequestParam("imgCode") String imgCode, @RequestParam("SMSCode") String SMSCode); @ResponseBody @ApiOperation("修改QQ号") @RequestMapping(value = "/api/v1/user/update/qq", method = {RequestMethod.POST, RequestMethod.GET}) JSONObject updateQQNumber(@RequestParam("qq") String QQ); @ResponseBody @ApiOperation("推广员收益信息（带分页）") @RequestMapping(value = "/api/v1/user/promoter/profit/info", method = {RequestMethod.POST, RequestMethod.GET}) JSONObject queryPromoterProfit(); @ResponseBody @ApiOperation("添加推广员Id") @RequestMapping(value = "/api/v1/user/promoter/add/promote", method = {RequestMethod.POST, RequestMethod.GET}) JSONObject addPromoter(@ApiParam("推广员Id") @RequestParam("promId") Long promId) {; }
UserController extends BaseController { @ResponseBody @ApiOperation("获取用户夺宝记录（带分页）") @RequestMapping(value = "/api/v1/user/usercomm/show", method = {RequestMethod.POST, RequestMethod.GET}) public JSONObject queryUserCommRecord(@ApiParam("item（显示形式）：1、进行中；2、已揭晓；其他数字显示全部") @RequestParam("item") Integer item, @ApiParam("最后一个商品Id") @RequestParam("lastCommId") Long lastCommId) { List<Map<String, Object>> historyLottery = userService.selectPurchaseRecords(item, getUserId(), lastCommId); return success(historyLottery); }  @ResponseBody @ApiOperation("Android端用户个人中心信息接口") @RequestMapping(value = "/api/v1/user/center", method = {RequestMethod.POST, RequestMethod.GET}) JSONObject queryUserCenter(); @ResponseBody @ApiOperation("Android端“我”的用户信息（头像、昵称、推广id、积分、闪币）") @RequestMapping(value = "/api/v1/user/info", method = {RequestMethod.POST, RequestMethod.GET}) JSONObject queryUserInfo(); @ResponseBody @ApiOperation("获取用户中奖记录（带分页）") @RequestMapping(value = "/api/v1/user/win", method = {RequestMethod.POST, RequestMethod.GET}) JSONObject queryUserWinningHistory(@ApiParam("当前页最后一item的实际id") @RequestParam("lastCommId") Long lastCommId) {; @ResponseBody @ApiOperation("获取用户夺宝记录（带分页）") @RequestMapping(value = "/api/v1/user/usercomm/show", method = {RequestMethod.POST, RequestMethod.GET}) JSONObject queryUserCommRecord(@ApiParam("item（显示形式）：1、进行中；2、已揭晓；其他数字显示全部") @RequestParam("item") Integer item, @ApiParam("最后一个商品Id") @RequestParam("lastCommId") Long lastCommId) {; @ResponseBody @ApiOperation("获取用户夺宝记录中的luckCode带分页") @RequestMapping(value = "/api/v1/priv/user/usercomm/code/show", method = {RequestMethod.POST, RequestMethod.GET}) JSONObject queryUserLuckCode(@ApiParam("回传最后一个Code码") @RequestParam("commId") Long commId, @ApiParam("回传最后一个Code码") @RequestParam(name = "lastCode", required = false) String lastCode) {; @ResponseBody @ApiOperation("用户签到接口") @RequestMapping(value = "/api/v1/user/sign/add", method = {RequestMethod.POST, RequestMethod.GET}) JSONObject addUserSign(); @ResponseBody @ApiOperation("用户签到信息") @RequestMapping(value = "/api/v1/user/sign/show", method = {RequestMethod.POST, RequestMethod.GET}) JSONObject queryUserSign(); @ResponseBody @ApiOperation("用户上传头像（tip:接口暂时未使用也未实现功能）") @RequestMapping(value = "/api/v1/user/upload/headimg.do", method = {RequestMethod.POST, RequestMethod.GET}) JSONObject uploadUserImg(@RequestParam("accountId") Long accountId, @RequestParam("photo") MultipartFile imgFile); @ResponseBody @ApiOperation("修改用户昵称") @RequestMapping(value = "/api/v1/user/update/nickname", method = {RequestMethod.POST, RequestMethod.GET}) JSONObject updateUserNickName(@RequestParam("nickname") String nickname); @ResponseBody @ApiOperation("修改电话号码（tip:未实现功能）") @RequestMapping(value = "/api/v1/user/update/phone", method = {RequestMethod.POST, RequestMethod.GET}) JSONObject updatePhone(@RequestParam("phone") String phone, @RequestParam("imgCode") String imgCode, @RequestParam("SMSCode") String SMSCode); @ResponseBody @ApiOperation("修改QQ号") @RequestMapping(value = "/api/v1/user/update/qq", method = {RequestMethod.POST, RequestMethod.GET}) JSONObject updateQQNumber(@RequestParam("qq") String QQ); @ResponseBody @ApiOperation("推广员收益信息（带分页）") @RequestMapping(value = "/api/v1/user/promoter/profit/info", method = {RequestMethod.POST, RequestMethod.GET}) JSONObject queryPromoterProfit(); @ResponseBody @ApiOperation("添加推广员Id") @RequestMapping(value = "/api/v1/user/promoter/add/promote", method = {RequestMethod.POST, RequestMethod.GET}) JSONObject addPromoter(@ApiParam("推广员Id") @RequestParam("promId") Long promId) {;  }