package com.ltgk.message.domain.entity;


import com.baomidou.mybatisplus.annotation.*;
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;

/**
 * APP推送日志 (PushAppLog)实体类
 *
 * @author Qi ChengBin
 * @date 2025-05-19
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName(value = "push_app_log")
@ApiModel(value = "APP推送日志对象", description = "PushAppLog表")
public class PushAppLog 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 = "business_id")
    private String businessId;

    @ApiModelProperty(value = "client ID")
    @TableField(value = "cid", condition = SqlCondition.LIKE)
    private String cid;

    @ApiModelProperty(value = "通知类型")
    @TableField(value = "notice_type", condition = SqlCondition.LIKE)
    private String noticeType;

    @ApiModelProperty(value = "通知名称")
    @TableField(value = "notice_name", condition = SqlCondition.LIKE)
    private String noticeName;

    @ApiModelProperty(value = "通知内容")
    @TableField(value = "notice_content", condition = SqlCondition.LIKE)
    private String noticeContent;

    @ApiModelProperty(value = "通知时间")
    @TableField(value = "notice_time")
    private Date noticeTime;

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

