package com.ltgk.system.domain;


import com.baomidou.mybatisplus.annotation.*;
import com.ltgk.common.annotation.Excel;
import com.ltgk.common.core.page.BasePage;
import com.ltgk.common.validation.groups.Detail;
import com.ltgk.common.validation.groups.Update;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * 意见管理 (OpinionManagement)实体类
 *
 * @author Qi ChengBin
 * @date 2025-03-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName(value = "opinion_management")
@ApiModel(value = "意见管理对象", description = "OpinionManagement表")
public class OpinionManagement extends BasePage implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @NotBlank(message = "主键信息不能为空", groups = {Detail.class, Update.class})
    private String id;

    @ApiModelProperty(value = "意见标题")
    @TableField(value = "opinion_title", condition = SqlCondition.LIKE)
    @Excel(name = "意见标题")
    private String opinionTitle;

    @ApiModelProperty(value = "意见内容")
    @TableField(value = "opinion_content", condition = SqlCondition.LIKE)
    @Excel(name = "意见内容")
    private String opinionContent;

    @ApiModelProperty(value = "发布时间")
    @TableField(value = "publish_time")
    @Excel(name = "发布时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date publishTime;

    @ApiModelProperty(value = "发布者用户id")
    @TableField(value = "user_id")
    private String userId;

    @ApiModelProperty(value = "发布者登录账号")
    @TableField(value = "user_name")
    private String userName;

    @ApiModelProperty(value = "发布者名称")
    @TableField(value = "nick_name")
    @Excel(name = "发布者名称")
    private String nickName;

    @ApiModelProperty(value = "删除标志: 0-未删除, 1-已删除")
    @TableField(value = "del_flag")
    @TableLogic(delval = "1", value = "0")
    private Integer delFlag;

    @ApiModelProperty(value = "行政区域编码")
    @TableField(value = "area_code")
    private String areaCode;

    @ApiModelProperty(value = "行政区域名称")
    @TableField(value = "area_name")
    private String areaName;

    @ApiModelProperty(value = "创建人")
    @TableField(value = "create_by")
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_at")
    private Date createAt;

    @ApiModelProperty(value = "更新人")
    @TableField(value = "update_by")
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField(value = "update_at")
    private Date updateAt;

    @ApiModelProperty(value = "备注")
    @TableField(value = "remark")
    private String remark;

    @ApiModelProperty(value = "开始时间")
    @TableField(exist = false)
    private String startTime;

    @ApiModelProperty(value = "结束时间")
    @TableField(exist = false)
    private String endTime;
}

