Authored by chenchao

set default value

... ... @@ -41,13 +41,14 @@ public class CouponController {
/**
* 个人中心优惠券列表
* @param userType 0:全部 1:买家 2:卖家
* @param uid
* @return
*/
@RequestMapping(params = "method=ufo.coupons.get")
@ResponseBody
public ApiResponse queryCouponList(@RequestParam(value = "uid") Integer uid,
@RequestParam(value = "userType") Integer userType) {
@RequestParam(value = "userType", defaultValue = "1") Integer userType) {
logger.info("query user coupons list, uid: {}, userType:{}", uid, userType);
List<CouponInfo> couponInfoListBo = couponService.queryCouponList(uid, userType);
... ...