channel_error.go 611 B

123456789101112131415161718192021
  1. package types
  2. type ChannelError struct {
  3. ChannelId int `json:"channel_id"`
  4. ChannelType int `json:"channel_type"`
  5. ChannelName string `json:"channel_name"`
  6. IsMultiKey bool `json:"is_multi_key"`
  7. AutoBan bool `json:"auto_ban"`
  8. UsingKey string `json:"using_key"`
  9. }
  10. func NewChannelError(channelId int, channelType int, channelName string, isMultiKey bool, usingKey string, autoBan bool) *ChannelError {
  11. return &ChannelError{
  12. ChannelId: channelId,
  13. ChannelType: channelType,
  14. ChannelName: channelName,
  15. IsMultiKey: isMultiKey,
  16. AutoBan: autoBan,
  17. UsingKey: usingKey,
  18. }
  19. }