|
|
|
@ -94,8 +94,8 @@ public class PointController {
|
|
|
|
|
@PostMapping("/task/batch/update")
|
|
|
|
|
@GlobalInterceptor(checkAdminLogin = true)
|
|
|
|
|
@ApiImplicitParams({
|
|
|
|
|
@ApiImplicitParam(name = "taskPoints", value = "任务积分配置", required = true, dataType = "List<TaskPoint>", paramType = "body"),
|
|
|
|
|
@ApiImplicitParam(name = "Authorization", value = "token", required = true, dataType = "String", paramType = "header")}
|
|
|
|
|
@ApiImplicitParam(name = "Authorization", value = "token", required = true, dataType = "String", paramType = "header"),
|
|
|
|
|
@ApiImplicitParam(name = "taskPoints", value = "任务积分配置", required = true, dataType = "List<TaskPoint>", paramType = "body")}
|
|
|
|
|
)
|
|
|
|
|
public Result<Void> batchUpdate(
|
|
|
|
|
@RequestHeader(value = "Authorization", required = true) String authorization,
|
|
|
|
@ -192,7 +192,8 @@ public class PointController {
|
|
|
|
|
@ApiImplicitParams({
|
|
|
|
|
@ApiImplicitParam(name = "Authorization", value = "token", required = true, dataType = "String", paramType = "header")
|
|
|
|
|
})
|
|
|
|
|
public Result<Void> addLogSign(@RequestHeader(value = "Authorization", required = true) String authorization) {
|
|
|
|
|
public Result<Void> addLogSign(
|
|
|
|
|
@RequestHeader(value = "Authorization", required = true) String authorization) {
|
|
|
|
|
userPointLogService.dailySign(authorization);
|
|
|
|
|
return Result.success();
|
|
|
|
|
}
|
|
|
|
@ -204,7 +205,9 @@ public class PointController {
|
|
|
|
|
@ApiImplicitParam(name = "Authorization", value = "token", required = true, dataType = "String", paramType = "header"),
|
|
|
|
|
@ApiImplicitParam(name = "journalId", value = "期刊id", required = true, dataType = "String", paramType = "query")
|
|
|
|
|
})
|
|
|
|
|
public Result<Void> addLogShareJournal(@RequestHeader(value = "Authorization", required = true) String authorization, @RequestParam String journalId) {
|
|
|
|
|
public Result<Void> addLogShareJournal(
|
|
|
|
|
@RequestHeader(value = "Authorization", required = true) String authorization,
|
|
|
|
|
@RequestParam String journalId) {
|
|
|
|
|
userPointLogService.shareJournal(authorization);
|
|
|
|
|
return Result.success();
|
|
|
|
|
}
|
|
|
|
@ -299,7 +302,8 @@ public class PointController {
|
|
|
|
|
@ApiImplicitParam(name = "id", value = "抽奖id", required = true, dataType = "String", paramType = "query"),
|
|
|
|
|
@ApiImplicitParam(name = "regionId", value = "区域id", required = true, dataType = "Integer", paramType = "query")
|
|
|
|
|
})
|
|
|
|
|
public Result<Void> participate(@RequestHeader("Authorization") String token, @NotNull String id, @NotNull Integer regionId) {
|
|
|
|
|
public Result<Void> participate(@RequestHeader("Authorization") String token, @NotNull String id,
|
|
|
|
|
@NotNull Integer regionId) {
|
|
|
|
|
lotteryService.participate(id, token, regionId);
|
|
|
|
|
return Result.success();
|
|
|
|
|
}
|
|
|
|
@ -324,7 +328,8 @@ public class PointController {
|
|
|
|
|
@ApiParam(value = "查询对象") @RequestBody LotterySearchDto lotterySearchDto,
|
|
|
|
|
@ApiParam(value = "页码", required = true) @PathVariable Integer page,
|
|
|
|
|
@ApiParam(value = "每页条数", required = true) @PathVariable Integer size) {
|
|
|
|
|
return Result.success(lotteryService.findLotteryListForApp(page, size, lotterySearchDto, token));
|
|
|
|
|
return Result.success(
|
|
|
|
|
lotteryService.findLotteryListForApp(page, size, lotterySearchDto, token));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "3.10.已参与抽奖的人(APP)", notes = "APP")
|
|
|
|
@ -341,7 +346,8 @@ public class PointController {
|
|
|
|
|
@ApiOperation(value = "3.11.抽奖结果(APP)", notes = "APP")
|
|
|
|
|
@PostMapping("/lottery/result/{id}")
|
|
|
|
|
@GlobalInterceptor(checkAppUserLogin = true)
|
|
|
|
|
public Result<Integer> findLotteryResult(@ApiParam(value = "Header中的token信息", required = true) @RequestHeader("Authorization") String token,
|
|
|
|
|
public Result<Integer> findLotteryResult(
|
|
|
|
|
@ApiParam(value = "Header中的token信息", required = true) @RequestHeader("Authorization") String token,
|
|
|
|
|
@ApiParam(value = "抽奖id", required = true) @PathVariable String id) {
|
|
|
|
|
return Result.success(lotteryService.getLotteryUserResult(id, token));
|
|
|
|
|
}
|
|
|
|
|