package com.panzhihua.common.model.dtos.grid;
|
|
import javax.validation.constraints.Max;
|
import javax.validation.constraints.NotNull;
|
|
import org.hibernate.validator.constraints.Length;
|
|
import io.swagger.annotations.ApiModel;
|
import io.swagger.annotations.ApiModelProperty;
|
import lombok.Data;
|
|
/**
|
* 上报社区表单
|
*
|
* @author cedoo email:cedoo(a)qq.com
|
* @version 1.0
|
* @since 1.0
|
* @date 2021-05-26
|
*/
|
@Data
|
@ApiModel("上报社区请求参数")
|
public class CommonEventReportDTO {
|
|
@Max(9223372036854775807L)
|
@ApiModelProperty(value = "事件ID", hidden = false, example = "1", required = true)
|
@NotNull(message = "事件ID不能为空")
|
private Long eventId;
|
|
@Length(max = 255, message = "办理意见长度不能超过255")
|
@ApiModelProperty(value = "办理意见", hidden = false, example = "", required = true)
|
@NotNull(message = "办理意见不能为空")
|
private String processResult;
|
|
// 事件下游机构或网格员
|
@Max(9223372036854775807L)
|
@ApiModelProperty(value = "社区ID", hidden = false, example = "1", required = true)
|
@NotNull(message = "社区ID不能为空")
|
private Long toId;
|
|
@ApiModelProperty(value = "(当前操作)用户ID", hidden = true, example = "1")
|
private Long userId;
|
|
@ApiModelProperty(value = "(当前操作)用户姓名", hidden = true, example = "张三")
|
private String userName;
|
|
@ApiModelProperty(value = "(当前操作)用户社区ID", hidden = true, example = "1")
|
private Long communityId;
|
|
}
|