package cn.axzo.msg.center.domain.entity;

import cn.axzo.msg.center.domain.persistence.BaseOwnEntity;
import cn.axzo.trade.datasecurity.core.annotation.CryptField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 请求消息渠道日志表
 * </p>
 *
 * @author zhaoyong
 * @since 2021-05-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("mns_message_channel_log")
public class MNSMessageChannelLog extends BaseOwnEntity<MNSMessageChannelLog> {

    private static final long serialVersionUID=1L;

    /**
     * 应用no
     */
    @TableField("app_no")
    private String appNo;

    /**
     * APP请求号
     */
    @TableField("app_request_no")
    private String appRequestNo;

    /**
     * 请求渠道号
     */
    @TableField("message_order_no")
    private String messageOrderNo;

    /**
     * 通知地址
     */
    @CryptField
    @TableField("target_address")
    private String targetAddress;

    /**
     * 回调数据
     */
    @TableField("callback_data")
    private String callbackData;

    /**
     * 定时任务响应数据
     */
    @TableField("task_data")
    private String taskData;

    /**
     * 响应对象
     */
    @TableField("response_data")
    private String responseData;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
