| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- import request from '@/utils/request';
- import { AxiosPromise } from 'axios';
- import { DeviceChatScProductVO, DeviceChatScProductForm, DeviceChatScProductQuery } from '@/api/digital/deviceChatScProduct/types';
- /**
- * 查询数促-套餐推荐列表
- * @param query
- * @returns {*}
- */
- export const listDeviceChatScProduct = (query?: DeviceChatScProductQuery): AxiosPromise<DeviceChatScProductVO[]> => {
- return request({
- url: '/digital/deviceChatScProduct/list',
- method: 'get',
- params: query
- });
- };
- /**
- * 查询数促-套餐推荐详细
- * @param id
- */
- export const getDeviceChatScProduct = (id: string | number): AxiosPromise<DeviceChatScProductVO> => {
- return request({
- url: '/digital/deviceChatScProduct/' + id,
- method: 'get'
- });
- };
- /**
- * 新增数促-套餐推荐
- * @param data
- */
- export const addDeviceChatScProduct = (data: DeviceChatScProductForm) => {
- return request({
- url: '/digital/deviceChatScProduct',
- method: 'post',
- data: data
- });
- };
- /**
- * 修改数促-套餐推荐
- * @param data
- */
- export const updateDeviceChatScProduct = (data: DeviceChatScProductForm) => {
- return request({
- url: '/digital/deviceChatScProduct',
- method: 'put',
- data: data
- });
- };
- /**
- * 删除数促-套餐推荐
- * @param id
- */
- export const delDeviceChatScProduct = (id: string | number | Array<string | number>) => {
- return request({
- url: '/digital/deviceChatScProduct/' + id,
- method: 'delete'
- });
- };
|