package com.dy.pipIrrGlobal.pojoOp;
|
|
import com.alibaba.fastjson2.annotation.JSONField;
|
import com.alibaba.fastjson2.writer.ObjectWriterImplToString;
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
import com.dy.common.po.BaseEntity;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
import io.swagger.v3.oas.annotations.media.Schema;
|
import jakarta.validation.constraints.NotNull;
|
import lombok.*;
|
import org.hibernate.validator.constraints.Length;
|
import org.springframework.format.annotation.DateTimeFormat;
|
|
import java.util.Date;
|
|
/**
|
* @author :WuZeYu
|
* @Date :2024/7/29 16:45
|
* @LastEditTime :2024/7/29 16:45
|
* @Description
|
*/
|
/**
|
* 问题反馈表
|
*/
|
@TableName(value="ope_feedback", autoResultMap = true)
|
@Data
|
@ToString
|
@Builder
|
@NoArgsConstructor
|
@AllArgsConstructor
|
@Schema(name = "问题反馈表")
|
public class OpeFeedback implements BaseEntity {
|
/**
|
* 主键
|
*/
|
@JSONField(serializeUsing= ObjectWriterImplToString.class)
|
@TableId(type = IdType.INPUT)
|
private Long id;
|
|
/**
|
* 反馈内容
|
*/
|
@Length(message = "反馈内容不大于{max}字", max = 200)
|
private String content;
|
|
/**
|
* 图片;最多3张图片
|
*/
|
@Length(message = "图片不大于{max}字", max = 255)
|
private String image;
|
|
/**
|
* 音频;最多1个
|
*/
|
@Length(message = "音频不大于{max}字", max = 255)
|
private String audio;
|
|
/**
|
* 视频;最多1个
|
*/
|
@Length(message = "视频不大于{max}字,", max = 255)
|
private String video;
|
|
/**
|
* 联系电话;联系电话
|
*/
|
@Length(message = "联系电话不大于{max}字,不小于{min}字", min = 11, max = 11)
|
private String phone;
|
|
/**
|
* 农户ID
|
*/
|
private Long feedbackerId;
|
|
/**
|
* 反馈时间
|
*/
|
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
private Date feedbackTime;
|
|
/**
|
* 经度
|
*/
|
private Double lng;
|
|
/**
|
* 纬度
|
*/
|
private Double lat;
|
|
/**
|
* 反馈状态;0-进行中,1-管理员结束,2-管理员删除
|
*/
|
private Byte state;
|
|
|
}
|