|
|
|
@ -1,4 +1,4 @@ |
|
|
|
import { _get, _post, _put, _delete } from "@/http/index"; |
|
|
|
import { _get, _post, _delete, _put } from "@/http/index"; |
|
|
|
|
|
|
|
// region 预告管理接口
|
|
|
|
|
|
|
|
@ -11,11 +11,11 @@ export const getMyNoticeList = (params, success, error) => _get(noticeBaseUrl + |
|
|
|
// 预告详情
|
|
|
|
export const getNoticeDetail = (id, success, error) => _get(noticeBaseUrl + "/" + id, {}, success, error); |
|
|
|
|
|
|
|
// 新增预告(草稿/发布)
|
|
|
|
export const addNotice = (params, success, error) => _post(noticeBaseUrl, params, success, error); |
|
|
|
// 新增预告(草稿,status=0;1=已发布,2=已取消,3=已执行)
|
|
|
|
export const addNotice = (params, success, error) => _post(noticeBaseUrl + "/save", params, success, error); |
|
|
|
|
|
|
|
// 修改预告
|
|
|
|
export const editNotice = (params, success, error) => _put(noticeBaseUrl, params, success, error); |
|
|
|
export const editNotice = (params, success, error) => _put(noticeBaseUrl + "/update", params, success, error); |
|
|
|
|
|
|
|
// 删除预告
|
|
|
|
export const deleteNotice = (ids, success, error) => _delete(noticeBaseUrl + "/" + ids, {}, success, error); |
|
|
|
|