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.*;
import lombok.experimental.Accessors;

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

/**
 * <p>
 * 资金账号市场权限表
 * </p>
 *
 * @author XKF
 * @since 2024-06-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("TAACCOUNTMARKET")
@ApiModel(value = "Taaccountmarket对象", description = "资金账号市场权限表")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Taaccountmarket extends Model<Taaccountmarket> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "资金账号ID")
    private Long accountid;

    @ApiModelProperty(value = "市场ID")
    @TableField("MARKETID")
    private Long marketid;

    @ApiModelProperty(value = "修改时间")
    @TableField("MODIFYTIME")
    private Date modifytime;

    @ApiModelProperty(value = "修改人")
    @TableField("MODIFIERID")
    private Long modifierid;

    @ApiModelProperty(value = "现货权限类型 - 0:无1:可挂可摘 2:可挂 3:可摘 [现货类](卖大厅)")
    @TableField("SPOTRIGHTTYPE")
    private Integer spotrighttype;

    @ApiModelProperty(value = "现货权限类型 - 0:无1:可挂可摘 2:可挂 3:可摘 [现货类](买大厅)")
    @TableField("BUYSPOTRIGHTTYPE")
    private Integer buyspotrighttype;


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

}
