|
|
@ -3,7 +3,9 @@ package org.jeecg.modules.api.assessmentController; |
|
|
import io.swagger.annotations.Api; |
|
|
import io.swagger.annotations.Api; |
|
|
import io.swagger.annotations.ApiOperation; |
|
|
import io.swagger.annotations.ApiOperation; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
|
|
import org.apache.commons.lang.StringUtils; |
|
|
import org.jeecg.common.api.vo.Result; |
|
|
import org.jeecg.common.api.vo.Result; |
|
|
|
|
|
import org.jeecg.modules.api.bean.AssessmentCode; |
|
|
import org.jeecg.modules.api.bean.PageBean; |
|
|
import org.jeecg.modules.api.bean.PageBean; |
|
|
import org.jeecg.modules.api.service.ConfigService; |
|
|
import org.jeecg.modules.api.service.ConfigService; |
|
|
import org.jeecg.modules.assessmentBanner.entity.AssessmentBanner; |
|
|
import org.jeecg.modules.assessmentBanner.entity.AssessmentBanner; |
|
|
@ -48,9 +50,9 @@ public class ConfigController { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value="系统配置-生成兑换码", notes="系统配置-生成兑换码") |
|
|
@ApiOperation(value="系统配置-生成兑换码", notes="系统配置-生成兑换码") |
|
|
@RequestMapping(value = "/generateCode", method = {RequestMethod.POST}) |
|
|
|
|
|
public Result<?> generateCode(int num, BigDecimal discountAmount){ |
|
|
|
|
|
return configService.generateCode(num, discountAmount); |
|
|
|
|
|
|
|
|
@RequestMapping(value = "/generateCode", method = {RequestMethod.GET}) |
|
|
|
|
|
public Result<?> generateCode(AssessmentCode assessmentCode){ |
|
|
|
|
|
return configService.generateCode(assessmentCode.getNum(), assessmentCode.getDiscountAmount()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |