fix: remove duplicate wishTree.js (keep wishtree.js with more features)
This commit is contained in:
parent
b08765e035
commit
4890c98f85
|
|
@ -1,146 +0,0 @@
|
||||||
import request from '@/utils/request';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 许愿树管理 API
|
|
||||||
*/
|
|
||||||
|
|
||||||
// ========== 许愿树管理 ==========
|
|
||||||
|
|
||||||
// 许愿树列表
|
|
||||||
export function wishTreeListApi(params) {
|
|
||||||
return request({
|
|
||||||
url: '/admin/wish/tree/list',
|
|
||||||
method: 'get',
|
|
||||||
params,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// 许愿树详情(含节点)
|
|
||||||
export function wishTreeInfoApi(id) {
|
|
||||||
return request({
|
|
||||||
url: `/admin/wish/tree/info/${id}`,
|
|
||||||
method: 'get',
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// 新增许愿树(含节点)
|
|
||||||
export function wishTreeSaveApi(data) {
|
|
||||||
return request({
|
|
||||||
url: '/admin/wish/tree/save',
|
|
||||||
method: 'post',
|
|
||||||
data,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// 更新许愿树(含节点)
|
|
||||||
export function wishTreeUpdateApi(data) {
|
|
||||||
return request({
|
|
||||||
url: '/admin/wish/tree/update',
|
|
||||||
method: 'post',
|
|
||||||
data,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// 删除许愿树
|
|
||||||
export function wishTreeDeleteApi(id) {
|
|
||||||
return request({
|
|
||||||
url: `/admin/wish/tree/delete/${id}`,
|
|
||||||
method: 'post',
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// 启用/停用许愿树
|
|
||||||
export function wishTreeActivateApi(id) {
|
|
||||||
return request({
|
|
||||||
url: `/admin/wish/tree/activate/${id}`,
|
|
||||||
method: 'post',
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// ========== 节点管理 ==========
|
|
||||||
|
|
||||||
// 节点列表
|
|
||||||
export function wishTreeNodeListApi(params) {
|
|
||||||
return request({
|
|
||||||
url: '/admin/wish/tree/node/list',
|
|
||||||
method: 'get',
|
|
||||||
params,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// 节点详情
|
|
||||||
export function wishTreeNodeInfoApi(id) {
|
|
||||||
return request({
|
|
||||||
url: `/admin/wish/tree/node/info/${id}`,
|
|
||||||
method: 'get',
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// 新增节点
|
|
||||||
export function wishTreeNodeSaveApi(data) {
|
|
||||||
return request({
|
|
||||||
url: '/admin/wish/tree/node/save',
|
|
||||||
method: 'post',
|
|
||||||
data,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// 更新节点
|
|
||||||
export function wishTreeNodeUpdateApi(data) {
|
|
||||||
return request({
|
|
||||||
url: '/admin/wish/tree/node/update',
|
|
||||||
method: 'post',
|
|
||||||
data,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// 删除节点
|
|
||||||
export function wishTreeNodeDeleteApi(id) {
|
|
||||||
return request({
|
|
||||||
url: `/admin/wish/tree/node/delete/${id}`,
|
|
||||||
method: 'post',
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// 修改节点状态
|
|
||||||
export function wishTreeNodeStatusApi(id) {
|
|
||||||
return request({
|
|
||||||
url: `/admin/wish/tree/node/status/${id}`,
|
|
||||||
method: 'post',
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// ========== 用户留言管理 ==========
|
|
||||||
|
|
||||||
// 留言列表(按许愿树查询)
|
|
||||||
export function wishTreeMessageListApi(params) {
|
|
||||||
return request({
|
|
||||||
url: '/admin/wish/tree/message/list',
|
|
||||||
method: 'get',
|
|
||||||
params,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// 留言详情
|
|
||||||
export function wishTreeMessageInfoApi(id) {
|
|
||||||
return request({
|
|
||||||
url: `/admin/wish/tree/message/info/${id}`,
|
|
||||||
method: 'get',
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// 删除留言
|
|
||||||
export function wishTreeMessageDeleteApi(id) {
|
|
||||||
return request({
|
|
||||||
url: `/admin/wish/tree/message/delete/${id}`,
|
|
||||||
method: 'post',
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
// 修改留言状态
|
|
||||||
export function wishTreeMessageStatusApi(id) {
|
|
||||||
return request({
|
|
||||||
url: `/admin/wish/tree/message/status/${id}`,
|
|
||||||
method: 'post',
|
|
||||||
});
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue
Block a user