package com.muchinfo.mtp3pojos.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.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 对冲账号配置表
 * </p>
 *
 * @author XKF
 * @since 2024-12-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("HEDGEACCOUNT")
@ApiModel(value="Hedgeaccount对象", description="对冲账号配置表")
public class Hedgeaccount extends Model<Hedgeaccount> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "账号代码")
    private String code;

    @ApiModelProperty(value = "接口类型 - 1:对冲接口 2:交易接口")
    @TableField("APITYPE")
    private Integer apitype;

    @ApiModelProperty(value = "账号名称")
    @TableField("NAME")
    private String name;

    @ApiModelProperty(value = "创建时间")
    @TableField("CREATEDATE")
    private Date createdate;

    @ApiModelProperty(value = "是否有效 - 0:无效 1:有效")
    @TableField("ACCOUNTSTATUS")
    private Integer accountstatus;

    @ApiModelProperty(value = "登录密码(MD5)")
    @TableField("LOGINPWD")
    private String loginpwd;

    @ApiModelProperty(value = "是否发送行情 - 0:不发送 1:发送")
    @TableField("ISSENDQUOTATION")
    private Integer issendquotation;

    @ApiModelProperty(value = "主Key")
    @TableField("MASTERKEY")
    private String masterkey;

    @ApiModelProperty(value = "最后操作时间")
    @TableField("LASTOPERATEDATE")
    private Date lastoperatedate;

    @ApiModelProperty(value = "报价商用户ID")
    @TableField("QUOTERUSERID")
    private Long quoteruserid;


    @Override
    public Serializable pkVal() {
        return this.code;
    }

}
