github.com/status-im/status-go@v1.1.0/protocol/requests/reevaluate_community_members_permissions.go (about)

     1  package requests
     2  
     3  import (
     4  	"errors"
     5  
     6  	"github.com/status-im/status-go/eth-node/types"
     7  )
     8  
     9  type ReevaluateCommunityMembersPermissions struct {
    10  	CommunityID types.HexBytes `json:"communityId"`
    11  }
    12  
    13  func (r *ReevaluateCommunityMembersPermissions) Validate() error {
    14  	if r.CommunityID == nil || len(r.CommunityID) == 0 {
    15  		return errors.New("reevaluate community members permissions does not contain communityID")
    16  	}
    17  
    18  	return nil
    19  }