|
@@ -6,6 +6,7 @@ import com.seamew.lottery.application.process.req.DrawProcessReq;
|
|
|
import com.seamew.lottery.application.process.res.DrawProcessResult;
|
|
|
import com.seamew.lottery.application.process.res.RuleQuantificationCrowdResult;
|
|
|
import com.seamew.lottery.common.Constants;
|
|
|
+import com.seamew.lottery.common.Result;
|
|
|
import com.seamew.lottery.domain.rule.model.req.DecisionMatterReq;
|
|
|
import com.seamew.lottery.domain.strategy.model.vo.DrawAwardVO;
|
|
|
import com.seamew.lottery.interfaces.assembler.IMapping;
|
|
@@ -16,6 +17,8 @@ import com.seamew.lottery.rpc.req.QuantificationDrawReq;
|
|
|
import com.seamew.lottery.rpc.res.DrawRes;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
+import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
+import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
@@ -26,7 +29,7 @@ import javax.annotation.Resource;
|
|
|
* @Description: 抽奖活动展台
|
|
|
* @Version: 1.0
|
|
|
*/
|
|
|
-@Controller
|
|
|
+@RestController("/")
|
|
|
@Slf4j
|
|
|
public class LotteryActivityBooth implements ILotteryActivityBooth {
|
|
|
@Resource
|
|
@@ -36,6 +39,7 @@ public class LotteryActivityBooth implements ILotteryActivityBooth {
|
|
|
private IMapping<DrawAwardVO, AwardDTO> awardMapping;
|
|
|
|
|
|
@Override
|
|
|
+ @RequestMapping("/doDraw")
|
|
|
public DrawRes doDraw(DrawReq drawReq) {
|
|
|
try {
|
|
|
log.info("抽奖,开始 uId:{} activityId:{}", drawReq.getUId(), drawReq.getActivityId());
|