package request

import (
	"time"

	"courseSign/server/model/common/request"
	"courseSign/server/model/entrustPool"
)

type PoolAddrSearch struct{
    entrustPool.PoolAddr
    StartCreatedAt *time.Time `json:"startCreatedAt" form:"startCreatedAt"`
    EndCreatedAt   *time.Time `json:"endCreatedAt" form:"endCreatedAt"`
    request.PageInfo
}

type PoolAddrInfoReq struct {
	Addr string `json:"addr" form:"addr"`
	Miner string `json:"miner" form:"miner"`
}

type AddrFeeUpdateReq struct {
	Addr string `json:"addr" form:"addr"`
	Miner string `json:"miner" form:"miner"`
	Hash string `json:"hash" form:"hash"`
}

type PoolAddrAccount struct {
	Addr string `json:"addr"`
	Data []*PoolAddrFeeInfo
	Pool *entrustPool.Pool
}

type PoolAddrFeeInfo struct {
	Fee  int32 `json:"fee"`  // 最大累计fee
	FeeSend  int32 `json:"feeSend"` //
	FeeTBD int32 `json:"feeTBD"`
	FeeHash string `json:"feeHash"`
	PoolId  int32 `json:"poolId"`
	FeeAddr string `json:"feeAddr"`
	MinerAddr string `json:"minerAddr"`
	PoolName string `json:"poolName"`
}
