update
This commit is contained in:
131
src/api/admin.js
131
src/api/admin.js
@@ -253,6 +253,137 @@ const admin = {
|
||||
data: data
|
||||
});
|
||||
},
|
||||
getBarragelist: async (data) => {
|
||||
return request({
|
||||
url: '/admin/barrage/getlist',
|
||||
method: Method.POST,
|
||||
data: data
|
||||
});
|
||||
},
|
||||
addBarrage: async (data) => {
|
||||
return request({
|
||||
url: '/admin/barrage/add',
|
||||
method: Method.POST,
|
||||
data: data
|
||||
});
|
||||
},
|
||||
editBarrage: async (data) => {
|
||||
return request({
|
||||
url: '/admin/barrage/edit',
|
||||
method: Method.POST,
|
||||
data: data
|
||||
});
|
||||
},
|
||||
barrageWeigh: async (data) => {
|
||||
return request({
|
||||
url: '/admin/barrage/weigh',
|
||||
method: Method.POST,
|
||||
data: data
|
||||
});
|
||||
},
|
||||
barrageDel: async (data) => {
|
||||
return request({
|
||||
url: '/admin/barrage/del',
|
||||
method: Method.POST,
|
||||
data: data
|
||||
});
|
||||
},
|
||||
getNoticeList: async (data) => {
|
||||
return request({
|
||||
url: '/admin/notice/getList',
|
||||
method: Method.POST,
|
||||
data: data
|
||||
});
|
||||
},
|
||||
addNotice: async (data) => {
|
||||
return request({
|
||||
url: '/admin/notice/add',
|
||||
method: Method.POST,
|
||||
data: data
|
||||
});
|
||||
},
|
||||
editNotice: async (data) => {
|
||||
return request({
|
||||
url: '/admin/notice/edit',
|
||||
method: Method.POST,
|
||||
data: data
|
||||
});
|
||||
},
|
||||
delNotice: async (id) => {
|
||||
return request({
|
||||
url: '/admin/notice/del',
|
||||
method: Method.POST,
|
||||
data: {id}
|
||||
});
|
||||
},
|
||||
getNoticeType: async () => {
|
||||
return request({
|
||||
url: '/admin/notice/getType',
|
||||
method: Method.POST,
|
||||
});
|
||||
},
|
||||
setNoticeStatus: async (id) => {
|
||||
return request({
|
||||
url: '/admin/notice/status',
|
||||
method: Method.POST,
|
||||
data: {id}
|
||||
});
|
||||
},
|
||||
setNoticeTop: async (id) => {
|
||||
return request({
|
||||
url: '/admin/notice/top',
|
||||
method: Method.POST,
|
||||
data: {id}
|
||||
});
|
||||
},
|
||||
setNotcieWeigh: async (data) => {
|
||||
return request({
|
||||
url: '/admin/notice/weigh',
|
||||
method: Method.POST,
|
||||
data: data
|
||||
});
|
||||
},
|
||||
getADVType: async () => {
|
||||
return request({
|
||||
url: '/admin/adv/getType',
|
||||
method: Method.POST,
|
||||
});
|
||||
},
|
||||
addADV: async (data) => {
|
||||
return request({
|
||||
url: '/admin/adv/add',
|
||||
method: Method.POST,
|
||||
data: data
|
||||
});
|
||||
},
|
||||
setADVStatus: async (id) => {
|
||||
return request({
|
||||
url: '/admin/adv/status',
|
||||
method: Method.POST,
|
||||
data: {id}
|
||||
});
|
||||
},
|
||||
setADVWeigh: async (data) => {
|
||||
return request({
|
||||
url: '/admin/adv/weigh',
|
||||
method: Method.POST,
|
||||
data: data
|
||||
});
|
||||
},
|
||||
delADV: async (id) => {
|
||||
return request({
|
||||
url: '/admin/adv/del',
|
||||
method: Method.POST,
|
||||
data: {id}
|
||||
});
|
||||
},
|
||||
getADVList: async (data) => {
|
||||
return request({
|
||||
url: '/admin/adv/getList',
|
||||
method: Method.POST,
|
||||
data: data
|
||||
});
|
||||
},
|
||||
}
|
||||
|
||||
export default admin;
|
||||
|
||||
Reference in New Issue
Block a user