| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- import request from '@/utils/request';
- import { AxiosPromise } from 'axios';
- import { StoreVO, StoreForm, StoreQuery, StoreStatusVO } from '@/api/system/store/types';
- /**
- * 查询门店管理列表
- * @param query
- * @returns {*}
- */
- export const listStore = (query?: StoreQuery): AxiosPromise<StoreVO[]> => {
- return request({
- url: '/system/store/list',
- method: 'get',
- params: query
- });
- };
- /**
- * 查询门店管理详细
- * @param id
- */
- export const getStore = (id: string | number): AxiosPromise<StoreVO> => {
- return request({
- url: '/system/store/' + id,
- method: 'get'
- });
- };
- /**
- * 新增门店管理
- * @param data
- */
- export const addStore = (data: StoreForm) => {
- return request({
- url: '/system/store',
- method: 'post',
- data: data
- });
- };
- /**
- * 修改门店管理
- * @param data
- */
- export const updateStore = (data: StoreForm) => {
- return request({
- url: '/system/store',
- method: 'put',
- data: data
- });
- };
- /**
- * 删除门店管理
- * @param id
- */
- export const delStore = (id: string | number | Array<string | number>) => {
- return request({
- url: '/system/store/' + id,
- method: 'delete'
- });
- };
- /**
- * 获取状态列表
- */
- export const listStoreStatus = (): AxiosPromise<StoreStatusVO[]> => {
- return request({
- url: '/system/store/listStatus',
- method: 'get'
- });
- };
|