fix: add complaint apiModelProperty

main
wangqing 9 months ago
parent a165ba794f
commit 198ec60de1

@ -1,6 +1,7 @@
package com.luoo.comment.pojo; package com.luoo.comment.pojo;
import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import org.springframework.data.annotation.Id; import org.springframework.data.annotation.Id;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
@ -11,45 +12,59 @@ import java.util.Date;
@Data @Data
public class Complaint implements Serializable { public class Complaint implements Serializable {
@ApiModelProperty(value = "id")
@Id @Id
private String _id; private String _id;
// 举报的评论ID // 举报的评论ID
@ApiModelProperty(value = " 举报的评论ID")
private String commentId; private String commentId;
// 举报的评论内容 // 举报的评论内容
@ApiModelProperty(value = "举报的评论内容")
private String commentContent; private String commentContent;
// 举报类型 // 举报类型
@ApiModelProperty(value = "举报类型")
private String type; private String type;
//举报人 //举报人
@ApiModelProperty(value = "举报人")
private String complaintFrom; private String complaintFrom;
// 举报时间 // 举报时间
@ApiModelProperty(value = "举报时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date complaintTime; private Date complaintTime;
// 举报关联 // 举报关联
@ApiModelProperty(value = "举报关联的期刊ID")
private String journalId; private String journalId;
@ApiModelProperty(value = "举报关联的期刊名称")
private String journalTitle; private String journalTitle;
// 举报对象 // 举报对象
@ApiModelProperty(value = "举报对象")
private String complaintTo; private String complaintTo;
// 举报状态 // 举报状态
@ApiModelProperty(value = "举报状态")
private String state; private String state;
// 处理结果 // 处理结果
@ApiModelProperty(value = "处理结果")
private String handleResult; private String handleResult;
// 处理人 // 处理人
@ApiModelProperty(value = "处理人")
private String handleBy; private String handleBy;
// 处理时间 // 处理时间
@ApiModelProperty(value = "处理时间")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date handleTime; private Date handleTime;

Loading…
Cancel
Save