错误码
{% for err_code in err_codes %}
    {{ err_code.tag }} = {{ err_code.code }}; // {{ err_code.message }}{% endfor %}
返回格式
{{ ret_sample_data | to_json(indent=4, ensure_ascii=False) }}
接口列表
{% for api in api_list %}
  • {{ api.name }}
  • {% endfor %}
    {% for api in api_list %}

    {{ api.name }}

    请求地址
    {{ api.path }}
    支持请求类型
    {{ api.support_methods | join(' ') }}
    {% if api.field_info %} 参数列表 {% for name, info in api.field_info.items() %} {% for key in ('description', 'type', 'required', 'default', 'help_text', 'ex_info') %} {% endfor %} {% endfor %}
    参数名称类型是否必填默认值说明限制
    {% if info.required %} *{{ name }}* {% else %} [{{ name }}] {% endif %} {{ info.get(key, '') }}
    {% endif %} {% if api.return_sample %}
    返回格式说明
    {{ api.return_sample | to_json(indent=4, ensure_ascii=False) }}
    {% endif %}
    {% endfor %}