1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
| import { request } from '@umijs/max';
|
| // 列表
| export const getList = async (data) => {
| return request(`/api/huacheng-sangeshenbian/messageNotification/list`, {
| method: 'GET',
| data
| });
| }
| // 设置已读
| export const setStatus = async (id) => {
| return request(`/api/huacheng-sangeshenbian/messageNotification/read/${id}`, {
| method: 'PUT',
| // data
| });
| }
|
|
| // 详情列表
| export const getDetailList = async (data) => {
| return request(`/goods/mgt/goods-sku/page`, {
| method: 'POST',
| data
| });
| }
|
| // 删除
| export const deleteBanner = async (id) => {
| return request(`/promotion/mgt/promotion-banner/${id}`, {
| method: 'delete',
| // params
| });
| }
|
| // 添加 编辑
| export const addAndEdit = async (data) => {
| return request('/promotion/mgt/promotion-banner/save', {
| method: 'POST',
| data,
| });
| }
|
|
|
| // 上下架
| export const updateStatus = async (data) => {
| return request(`/promotion/mgt/promotion-banner/upd-status`, {
| method: 'POST',
| data
| });
| }
|
|