|
|
|
@@ -38,6 +38,9 @@ public class WxCouponSpreadController extends BaseController |
|
|
|
@ApiOperation("新增接口") |
|
|
|
@PostMapping("add") |
|
|
|
public ResultData add(@RequestBody WxCouponSpread wxCouponSpread) { |
|
|
|
if(wxCouponSpread.getCouponId()==null){ |
|
|
|
return new ResultData(Result.ERROR,"没有找到券id"); |
|
|
|
} |
|
|
|
//Assert.notNull(wxCouponSpread.getName(), "角色名不能为空"); |
|
|
|
//Assert.isTrue(!checkUnique(sysRole.getName(), null), "重复的角色名"); |
|
|
|
wxCouponSpreadService.saveOrUpdate(wxCouponSpread); |
|
|
|
|