github.com/hungdoo/bot@v0.0.0-20240325145135-dd1f386f7b81/src/packages/command/common/types.go (about)

     1  package command
     2  
     3  type CommandType int32
     4  
     5  const (
     6  	Unknown CommandType = iota
     7  	ContractCall
     8  	Tomb
     9  	Debank
    10  	Balance
    11  	BybitIdo
    12  )
    13  
    14  func (s CommandType) String() string {
    15  	switch s {
    16  	case ContractCall:
    17  		return "callcontract"
    18  	case Tomb:
    19  		return "tomb"
    20  	case Debank:
    21  		return "debank"
    22  	case Balance:
    23  		return "balance"
    24  	case BybitIdo:
    25  		return "BybitIdo"
    26  	default:
    27  		return "unknown"
    28  	}
    29  }