| | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import com.xcong.excoin.common.annotations.SubmitRepeat; |
| | | import com.xcong.excoin.common.response.Result; |
| | | import com.xcong.excoin.modules.activity.service.ActivityService; |
| | | import com.xcong.excoin.modules.activity.vo.ActivityMainDetailVo; |
| | |
| | | @ApiOperation(value="活动详情", notes="活动详情") |
| | | @ApiResponses({@ApiResponse( code = 200, message = "success", response = ActivityMainDetailVo.class)}) |
| | | @GetMapping(value = "/getActivityMainDetail") |
| | | public Result getActivityMainDetail(@ApiParam(name = "活动ID", value = "ID", example = "1") |
| | | @RequestParam(value = "Id") long Id) { |
| | | public Result getActivityMainDetail(@ApiParam(name = "id", value = "id", required = true,example = "1") |
| | | @RequestParam(value = "id") long Id) { |
| | | return activityService.getActivityMainDetail(Id); |
| | | } |
| | | |
| | | /** |
| | | * 点击领取 |
| | | */ |
| | | @SubmitRepeat |
| | | @ApiOperation(value="点击领取", notes="点击领取") |
| | | @GetMapping(value = "/clinkReceive") |
| | | public Result clinkReceive(@ApiParam(name = "活动规则ID", value = "subId", example = "1") |
| | | public Result clinkReceive(@ApiParam(name = "subId", value = "活动规则ID", example = "1") |
| | | @RequestParam(value = "subId") long subId) { |
| | | return activityService.clinkReceive(subId); |
| | | } |