func serializeToAPIData(obj g.Refer) apiData { return apiData{ Type: "", ID: uuid.UUID(obj.RefID()), Attrs: obj, } }
func wrapJSONResponse(obj g.Refer, attrs interface{}) apiJSONAPI { return apiJSONAPI{ Data: apiData{ Type: "", ID: uuid.UUID(obj.RefID()), Attrs: attrs, }, } }