Skip to main content

Module api_utils

Module api_utils 

Source
Expand description

文档服务 API 通用辅助函数。

Functions§

ensure_success
无 data 接口:仅用 code==0 判断成功。
extract_response_data
标准化响应数据提取。
missing_response_data_error
创建“响应 data 为空”的标准错误。
serialize_params
标准化参数序列化。