gitlab.com/evatix-go/core@v1.3.55/coredata/coreapi/InvalidSimpleGenericRequest.go (about)

     1  package coreapi
     2  
     3  func InvalidSimpleGenericRequest(attribute *RequestAttribute) *SimpleGenericRequest {
     4  	if attribute == nil {
     5  		return &SimpleGenericRequest{
     6  			Attribute: InvalidRequestAttribute(),
     7  			Request:   nil,
     8  		}
     9  	}
    10  
    11  	return &SimpleGenericRequest{
    12  		Attribute: attribute,
    13  		Request:   nil,
    14  	}
    15  }