package com.hr.repository.domain;

import jakarta.persistence.*;
import lombok.Data;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;

import java.util.Date;


@Schema(description = "调用记录表")
@Data
@Entity
@Table(name = "ip_order")
public class IpOrderPO {

    @Id
    /**
     * 主键,;
     */
    @Schema(description = "主键")
	private Long id;

    /**
     * 调用编号（业务编号）,唯一，格式为年月日时分秒毫秒加6位随机数20250918010256001000001,;
     */
    @Column(name = "order_no")
    @Schema(description = "调用编号（业务编号）;唯一，格式为年月日时分秒毫秒加6位随机数20250918010256001000001")
	private String orderNo;

    /**
     * 接口名称,;
     */
    @Column(name = "interface_name")
    @Schema(description = "接口名称")
	private String interfaceName;

	/**	
	外部业务编号
	*/
    @Column(name = "business_no")
    @Schema(description = "外部业务编号")
	private String businessNo;

    /**
     * 厂商,;
     */
    @Column(name = "manufacturer")
    private String manufacturer;

    /**
     * 账户编号,;
     */
    @Column(name = "acc_no")
    @Schema(description = "账户编号")
	private String accNo;

    /**
     * token值,;
     */
    @Column(name = "token")
    @Schema(description = "token值")
	private String token;

    /**
     * 回调地址,;
     */
    @Column(name = "callback_url")
    @Schema(description = "回调地址")
	private String callbackUrl;

    /**
     * 是否支持回调,yes支持，no不支持,;
     */
    @Column(name = "is_callback")
    private Boolean isCallback;

    /**
     * 回调次数,尝试回调的次数，超过次数则不再回调,;
     */
    @Column(name = "callback_num")
    @Schema(description = "回调次数;尝试回调的次数，超过次数则不再回调")
	private Integer callbackNum;

    /**
     * 调用状态,handle处理中，success成功，fail失败,;
     */
    @Column(name = "status")
    @Schema(description = "调用状态;handle处理中，success成功，fail失败")
	private String status;

    /**
     * 回调状态,handle处理中，success成功，fail失败,;
     */
    @Column(name = "callback_status")
    @Schema(description = "回调状态;handle处理中，success成功，fail失败")
	private String callbackStatus;

    /**
     * 创建时间,;
     */
    @Column(name = "add_time")
    @Schema(description = "创建时间")
	private Date addTime;

    /**
     * 更新时间,;
     */
    @Column(name = "update_time")
    @Schema(description = "更新时间")
	private Date updateTime;

    /**
     * 创建人id,;
     */
    @Column(name = "add_user_id")
    private Long addUserId;

    /**
     * 更新人id,;
     */
    @Column(name = "update_user_id")
    private Long updateUserId;

    /**
     * 创建人姓名,;
     */
    @Column(name = "add_user_name")
    @Schema(description = "创建人姓名")
	private String addUserName;

    /**
     * 更新人姓名,;
     */
    @Column(name = "update_user_name")
    @Schema(description = "更新人姓名")
	private String updateUserName;



    /** tid,; */
    @Column(name="tid")
    private Long tid ;

	/**
	关联调用记录
	*/
    @Column(name = "ref_id")
    @Schema(description = "关联调用记录")
	private Long refId;

    @Column(name = "order_status", length = 255)
    private String orderStatus;

/**	
接口 id
*/
    @Schema(description = "接口 id")
    @Column(name = "iid")
    private Long iid;

}
