| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- import request from '@/utils/request'
- export function listStorePromotion(query) {
- return request({
- url: '/store/storePromotion/list',
- method: 'get',
- params: query
- })
- }
- export function getStorePromotion(id) {
- return request({
- url: '/store/storePromotion/' + id,
- method: 'get'
- })
- }
- export function addStorePromotion(data) {
- return request({
- url: '/store/storePromotion',
- method: 'post',
- data: data
- })
- }
- export function updateStorePromotion(data) {
- return request({
- url: '/store/storePromotion',
- method: 'put',
- data: data
- })
- }
- export function delStorePromotion(id) {
- return request({
- url: '/store/storePromotion/' + id,
- method: 'delete'
- })
- }
- export function enableStorePromotion(id) {
- return request({
- url: '/store/storePromotion/' + id + '/enable',
- method: 'put'
- })
- }
- export function disableStorePromotion(id) {
- return request({
- url: '/store/storePromotion/' + id + '/disable',
- method: 'put'
- })
- }
- export function exportStorePromotion(query) {
- return request({
- url: '/store/storePromotion/export',
- method: 'get',
- params: query
- })
- }
- export function getOrderPromotionDetail(orderId) {
- return request({
- url: '/store/storePromotion/order/' + orderId,
- method: 'get'
- })
- }
- export function getPromotionReportStats(query) {
- return request({
- url: '/store/storePromotion/report/stats',
- method: 'get',
- params: query
- })
- }
- export function listPromotionReportOrders(query) {
- return request({
- url: '/store/storePromotion/report/orders',
- method: 'get',
- params: query
- })
- }
|