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_request_log")
public class MNSMessageRequestLog extends BaseOwnEntity<MNSMessageRequestLog> {

    private static final long serialVersionUID=1L;

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

    /**
     * APP请求号
     */
    @TableField("request_no")
    private String requestNo;

    /**
     * 请求方法
     */
    @TableField("method_name")
    private String methodName;

    /**
     * 请求体
     */
    @TableField("request_body")
    @CryptField
    private String requestBody;

    /**
     * 响应体
     */
    @TableField("response_body")
    private String responseBody;

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

}
