24 lines
467 B
Go
24 lines
467 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
|
||
|
}
|
||
|
|
||
|
func (u *CheckAllCommunityChannelsPermissions) Validate() error {
|
||
|
if len(u.CommunityID) == 0 {
|
||
|
return ErrCheckAllCommunityChannelsPermissionsInvalidID
|
||
|
}
|
||
|
|
||
|
return nil
|
||
|
}
|