25 lines
508 B
Go
25 lines
508 B
Go
package requests
|
|
|
|
import (
|
|
"errors"
|
|
|
|
"github.com/status-im/status-go/eth-node/types"
|
|
)
|
|
|
|
var (
|
|
ErrCheckAllCommunityChannelsPermissionsInvalidID = errors.New("check-community-channel-permissions: invalid id")
|
|
)
|
|
|
|
type CheckAllCommunityChannelsPermissions struct {
|
|
CommunityID types.HexBytes
|
|
Addresses []string `json:"addresses"`
|
|
}
|
|
|
|
func (u *CheckAllCommunityChannelsPermissions) Validate() error {
|
|
if len(u.CommunityID) == 0 {
|
|
return ErrCheckAllCommunityChannelsPermissionsInvalidID
|
|
}
|
|
|
|
return nil
|
|
}
|