Announcements And Articles API
/admin/add-announcement
- 用途:添加公告(管理员)
- 认证:出题组成员
- 输入参数:
参数名 类型 说明 content string 公告内容 is_hide int 是否隐藏 - 输出参数:
参数名 类型 说明 status int 状态码
/admin/delete-announcement
- 用途:删除公告(管理员)
- 认证:出题组成员
- 输入参数:
参数名 类型 说明 aid int 公告ID - 输出参数:
参数名 类型 说明 status int 状态码
/admin/edit-announcement
- 用途:编辑公告(管理员)
- 认证:出题组成员
- 输入参数:
参数名 类型 说明 aid int 公告ID content string 公告内容 is_hide int 是否隐藏 - 输出参数:
参数名 类型 说明 status int 状态码
/admin/get-announcement
- 用途:获取公告(管理员)
- 认证:出题组成员
- 输入参数:
参数名 类型 说明 aids array 公告ID列表 - 输出参数:
参数名 类型 说明 status int 状态码 announcements array 公告列表 announcements
结构参数名 类型 说明 aid int 公告ID update_time int64 更新时间(时间戳) create_time int64 创建时间(时间戳) content string 内容 is_hide int 是否隐藏
/get-announcement
- 用途:获取公告(普通用户)
- 认证:无
- 输入参数:
参数名 类型 说明 aids array 公告ID列表(不填查询全部) - 输出参数:
参数名 类型 说明 status int 状态码 announcements array 公告列表 announcements
结构参数名 类型 说明 aid int 公告ID update_time int64 更新时间(时间戳) create_time int64 创建时间(时间戳) content string 内容 type int 是否隐藏
/admin/add-article
- 用途:添加文章(管理员)
- 认证:出题组成员
- 输入参数:
参数名 类型 说明 title string 文章标题 path string 文章路径(可选,默认与标题相同) content string 文章内容 order int 排序 is_hide int 是否隐藏 - 输出参数:
参数名 类型 说明 status int 状态码
/admin/delete-article
- 用途:删除文章(管理员)
- 认证:出题组成员
- 输入参数:
参数名 类型 说明 aid int 文章ID - 输出参数:
参数名 类型 说明 status int 状态码
/admin/edit-article
- 用途:编辑文章(管理员)
- 认证:出题组成员
- 输入参数:
参数名 类型 说明 aid int 文章ID title string 文章标题 path string 文章路径(可选,默认与标题相同) content string 文章内容 order int 排序 is_hide int 是否隐藏 - 输出参数:
参数名 类型 说明 status int 状态码
/list-article
- 用途:获取文章列表(管理员)
- 认证:出题组成员
- 输入参数:无
- 输出参数:
参数名 类型 说明 status int 状态码 articles array 文章列表 articles
结构参数名 类型 说明 aid int 文章ID title string 文章标题 path string 文章路径 content string 文章内容 order int 排序 dt_create int64 创建时间(时间戳) dt_update int64 更新时间(时间戳) is_hide int 是否隐藏
/get-article
- 用途:获取指定文章及可见文章列表(普通用户)
- 认证:无
- 输入参数:
参数名 类型 说明 path string 文章路径 - 输出参数:
参数名 类型 说明 status int 状态码 article object 文章对象 list array 可见文章简要列表 article
结构参数名 类型 说明 aid int 文章ID title string 文章标题 path string 文章路径 content string 文章内容 order int 排序 dt_create int64 创建时间(时间戳) dt_update int64 更新时间(时间戳) is_hide int 是否隐藏 list
结构参数名 类型 说明 path string 文章路径 title string 文章标题