123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- import request from '@/utils/request'
- // 查询城市列表
- export function listCity(query) {
- return request({
- url: '/store/city/list',
- method: 'get',
- params: query
- })
- }
- export function getAllList(query) {
- return request({
- url: '/store/city/getAllList',
- method: 'get',
- params: query
- })
- }
- export function getCitys() {
- return request({
- url: '/store/city/getCitys',
- method: 'get'
- })
- }
- // 查询城市详细
- export function getCity(id) {
- return request({
- url: '/store/city/' + id,
- method: 'get'
- })
- }
- // 新增城市
- export function addCity(data) {
- return request({
- url: '/store/city',
- method: 'post',
- data: data
- })
- }
- // 修改城市
- export function updateCity(data) {
- return request({
- url: '/store/city',
- method: 'put',
- data: data
- })
- }
- // 删除城市
- export function delCity(id) {
- return request({
- url: '/store/city/' + id,
- method: 'delete'
- })
- }
- // 导出城市
- export function exportCity(query) {
- return request({
- url: '/store/city/export',
- method: 'get',
- params: query
- })
- }
|