def _get200Response(link):
    """获取当http response code为200时的返回模板

    :link: Link对象
    :returns: {'$ref': '', 'schema': ''}

    """
    serializer = getattr(link, '__serializer__', None)
    tpl = dict(description='Success')
    if not serializer:
        return tpl
    obj_name = serializer.name
    ref = {'$ref': '#/definitions/{}'.format(obj_name)}
    if link.action == 'get' and '{' not in link.url:
        tpl['schema'] = dict(items=ref, type='array')
    else:
        tpl['schema'] = ref
    return tpl
