release- TaskPoint序列化

release-2024-08-08
huangyawei 4 months ago
parent c44c213f92
commit a2bed1ddf6

@ -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));
}

@ -2,6 +2,7 @@ package com.luoo.user.pojo;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.time.LocalDateTime;
import javax.persistence.Column;
import javax.persistence.Entity;
@ -32,7 +33,7 @@ import org.springframework.format.annotation.DateTimeFormat;
@DynamicUpdate
@Table(name = "tb_task_point")
@EntityListeners(AuditingEntityListener.class)
public class TaskPoint {
public class TaskPoint implements Serializable {
@Id
@Size(max = 20)

@ -19,3 +19,7 @@ alter table tb_user_info
alter table tb_user_info
add enable_chat int null comment '是否允许私信 0为关闭 1为启用 默认启用';
alter table tb_lottery_user
modify region_id int null comment '地区id';

Loading…
Cancel
Save