package com.storlead.message.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.storlead.framework.mybatis.entity.SysBaseField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * 消息开关配置
 *
 * @author chenkq
 * @since 2025-04-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("user_message_notice_config")
@ApiModel(value = "UserMessageNoticeConfigEntity对象", description = "消息开关配置")
public class UserMessageNoticeConfigEntity extends SysBaseField {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "模板名称")
    @TableField("template_event_id")
    private Long templateEventId;

    @ApiModelProperty(value = "模板code")
    @TableField("template_event_code")
    private String templateEventCode;

    @ApiModelProperty(value = "site:站内,sms:短信,wecom:企业微信,mail:邮件")
    @TableField("template_detail_type")
    private String templateDetailType;

    @ApiModelProperty(value = "数组: site:站内,sms:短信,wecom:企业微信,mail:邮件,需要同时控制的消息类型")
    @TableField(exist = false)
    private List<String> templateDetailTypels;

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