|
@@ -156,3 +156,25 @@ export const getCategoryList = () => {
|
|
|
method: 'get'
|
|
|
});
|
|
|
};
|
|
|
+
|
|
|
+/**
|
|
|
+ * 删除公告
|
|
|
+ * @param {string} id - 公告ID(必填)
|
|
|
+ * @returns {Promise<NoticeOperationResponse>} 操作结果
|
|
|
+ * @throws {Error} 当请求失败或公告不存在时抛出错误
|
|
|
+ * @example
|
|
|
+ * // 删除公告
|
|
|
+ * const response = await deleteNotice('123');
|
|
|
+ * if (response.data.success) {
|
|
|
+ * console.log('删除成功');
|
|
|
+ * } else {
|
|
|
+ * console.error('删除失败:', response.data.msg);
|
|
|
+ * }
|
|
|
+ */
|
|
|
+export const deleteNotice = (id) => {
|
|
|
+ return request({
|
|
|
+ url: '/api/blade-factory/api/factory/notice/delete',
|
|
|
+ method: 'post',
|
|
|
+ params: { id }
|
|
|
+ });
|
|
|
+};
|