2023-06-13 12:50:15 +00:00
|
|
|
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
|
2023-08-18 19:50:23 +00:00
|
|
|
Addresses []string `json:"addresses"`
|
2023-06-13 12:50:15 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func (u *CheckAllCommunityChannelsPermissions) Validate() error {
|
|
|
|
if len(u.CommunityID) == 0 {
|
|
|
|
return ErrCheckAllCommunityChannelsPermissionsInvalidID
|
|
|
|
}
|
|
|
|
|
|
|
|
return nil
|
|
|
|
}
|