签入版本
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
import { http } from '@/utils/http/axios';
|
||||
|
||||
/**
|
||||
* @description: 行政区划列表
|
||||
*/
|
||||
export function getCityList(params?) {
|
||||
return http.request({
|
||||
url: '/city/list',
|
||||
method: 'GET',
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 根据ID获取详情
|
||||
*/
|
||||
export function getCityDetail(id) {
|
||||
return http.request({
|
||||
url: '/city/detail/' + id,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 添加行政区划
|
||||
*/
|
||||
export function cityAdd(data: any) {
|
||||
return http.request({
|
||||
url: '/city/add',
|
||||
method: 'POST',
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 更新行政区划
|
||||
*/
|
||||
export function cityUpdate(data: any) {
|
||||
return http.request({
|
||||
url: '/city/update',
|
||||
method: 'PUT',
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 删除行政区划
|
||||
*/
|
||||
export function cityDelete(id) {
|
||||
return http.request({
|
||||
url: '/city/delete/' + id,
|
||||
method: 'DELETE',
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 批量删除行政区划
|
||||
*/
|
||||
export function cityBatchDelete(data: any) {
|
||||
return http.request({
|
||||
url: '/city/batchDelete',
|
||||
method: 'DELETE',
|
||||
data,
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,155 @@
|
||||
import { http } from '@/utils/http/axios';
|
||||
|
||||
/**
|
||||
* @description: 配置列表
|
||||
*/
|
||||
export function getConfigList(params?) {
|
||||
return http.request({
|
||||
url: '/config/page',
|
||||
method: 'GET',
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取全部配置列表
|
||||
* @param params 参数
|
||||
* @returns 返回结果
|
||||
*/
|
||||
export function getConfigAllList(params?) {
|
||||
return http.request({
|
||||
url: '/config/list',
|
||||
method: 'GET',
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 根据ID获取详情
|
||||
*/
|
||||
export function getConfigDetail(id) {
|
||||
return http.request({
|
||||
url: '/config/detail/' + id,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 添加配置
|
||||
*/
|
||||
export function configAdd(data: any) {
|
||||
return http.request({
|
||||
url: '/config/add',
|
||||
method: 'POST',
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 更新配置
|
||||
*/
|
||||
export function configUpdate(data: any) {
|
||||
return http.request({
|
||||
url: '/config/update',
|
||||
method: 'PUT',
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 删除配置
|
||||
*/
|
||||
export function configDelete(id) {
|
||||
return http.request({
|
||||
url: '/config/delete/' + id,
|
||||
method: 'DELETE',
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 批量删除配置
|
||||
*/
|
||||
export function configBatchDelete(data: any) {
|
||||
return http.request({
|
||||
url: '/config/batchDelete',
|
||||
method: 'DELETE',
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 配置项列表
|
||||
*/
|
||||
export function getConfigItemList(params?) {
|
||||
return http.request({
|
||||
url: '/config/item/page',
|
||||
method: 'GET',
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取全部配置项列表
|
||||
* @param params 参数
|
||||
* @returns 返回结果
|
||||
*/
|
||||
export function getConfigItemAllList(params?) {
|
||||
return http.request({
|
||||
url: '/config/item/list',
|
||||
method: 'GET',
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 根据ID获取详情
|
||||
*/
|
||||
export function getConfigItemDetail(id) {
|
||||
return http.request({
|
||||
url: '/config/item/detail/' + id,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 添加配置项
|
||||
*/
|
||||
export function configItemAdd(data: any) {
|
||||
return http.request({
|
||||
url: '/config/item/add',
|
||||
method: 'POST',
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 更新配置项
|
||||
*/
|
||||
export function configItemUpdate(data: any) {
|
||||
return http.request({
|
||||
url: '/config/item/update',
|
||||
method: 'PUT',
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 删除配置项
|
||||
*/
|
||||
export function configItemDelete(id) {
|
||||
return http.request({
|
||||
url: '/config/item/delete/' + id,
|
||||
method: 'DELETE',
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 批量删除配置项
|
||||
*/
|
||||
export function configItemBatchDelete(data: any) {
|
||||
return http.request({
|
||||
url: '/config/item/batchDelete',
|
||||
method: 'DELETE',
|
||||
data,
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,139 @@
|
||||
import { http } from '@/utils/http/axios';
|
||||
|
||||
/**
|
||||
* @description: 字典列表
|
||||
*/
|
||||
export function getDictList(params?) {
|
||||
return http.request({
|
||||
url: '/dict/page',
|
||||
method: 'GET',
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 根据ID获取详情
|
||||
*/
|
||||
export function getDictDetail(id) {
|
||||
return http.request({
|
||||
url: '/dict/detail/' + id,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 刷新缓存
|
||||
*/
|
||||
export function refreshCache() {
|
||||
return http.request({
|
||||
url: '/dict/refreshCache',
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 添加字典
|
||||
*/
|
||||
export function dictAdd(data: any) {
|
||||
return http.request({
|
||||
url: '/dict/add',
|
||||
method: 'POST',
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 更新字典
|
||||
*/
|
||||
export function dictUpdate(data: any) {
|
||||
return http.request({
|
||||
url: '/dict/update',
|
||||
method: 'PUT',
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 删除字典
|
||||
*/
|
||||
export function dictDelete(id) {
|
||||
return http.request({
|
||||
url: '/dict/delete/' + id,
|
||||
method: 'DELETE',
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 批量删除字典
|
||||
*/
|
||||
export function dictBatchDelete(data: any) {
|
||||
return http.request({
|
||||
url: '/dict/batchDelete',
|
||||
method: 'DELETE',
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 字典项列表
|
||||
*/
|
||||
export function getDictItemList(params?) {
|
||||
return http.request({
|
||||
url: '/dict/item/page',
|
||||
method: 'GET',
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 根据ID获取详情
|
||||
*/
|
||||
export function getDictItemDetail(id) {
|
||||
return http.request({
|
||||
url: '/dict/item/detail/' + id,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 添加字典项
|
||||
*/
|
||||
export function dictItemAdd(data: any) {
|
||||
return http.request({
|
||||
url: '/dict/item/add',
|
||||
method: 'POST',
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 更新字典项
|
||||
*/
|
||||
export function dictItemUpdate(data: any) {
|
||||
return http.request({
|
||||
url: '/dict/item/update',
|
||||
method: 'PUT',
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 删除字典项
|
||||
*/
|
||||
export function dictItemDelete(id) {
|
||||
return http.request({
|
||||
url: '/dict/item/delete/' + id,
|
||||
method: 'DELETE',
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 批量删除字典项
|
||||
*/
|
||||
export function dictItemBatchDelete(data: any) {
|
||||
return http.request({
|
||||
url: '/dict/item/batchDelete',
|
||||
method: 'DELETE',
|
||||
data,
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
import { http } from '@/utils/http/axios';
|
||||
|
||||
/**
|
||||
* @description: 消息列表
|
||||
*/
|
||||
export function getMessageList(params?) {
|
||||
return http.request({
|
||||
url: '/message/page',
|
||||
method: 'GET',
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 已读消息
|
||||
*/
|
||||
export function messageRead(id) {
|
||||
return http.request({
|
||||
url: '/message/read/' + id,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 根据ID获取详情
|
||||
*/
|
||||
export function getMessageDetail(id) {
|
||||
return http.request({
|
||||
url: '/message/detail/' + id,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 删除消息
|
||||
*/
|
||||
export function messageDelete(id) {
|
||||
return http.request({
|
||||
url: '/message/delete/' + id,
|
||||
method: 'DELETE',
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 批量删除消息
|
||||
*/
|
||||
export function messageBatchDelete(data: any) {
|
||||
return http.request({
|
||||
url: '/message/batchDelete',
|
||||
method: 'DELETE',
|
||||
data,
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
import { http } from '@/utils/http/axios';
|
||||
|
||||
/**
|
||||
* @description: 公告列表
|
||||
*/
|
||||
export function getNoticeList(params?) {
|
||||
return http.request({
|
||||
url: '/notice/page',
|
||||
method: 'GET',
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取全部通知公告列表
|
||||
* @param params 参数
|
||||
* @returns 返回结果
|
||||
*/
|
||||
export function getNoticeAllList(params?) {
|
||||
return http.request({
|
||||
url: '/notice/list',
|
||||
method: 'GET',
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 根据ID获取详情
|
||||
*/
|
||||
export function getNoticeDetail(id) {
|
||||
return http.request({
|
||||
url: '/notice/detail/' + id,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 添加公告
|
||||
*/
|
||||
export function noticeAdd(data: any) {
|
||||
return http.request({
|
||||
url: '/notice/add',
|
||||
method: 'POST',
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 更新公告
|
||||
*/
|
||||
export function noticeUpdate(data: any) {
|
||||
return http.request({
|
||||
url: '/notice/update',
|
||||
method: 'PUT',
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 删除公告
|
||||
*/
|
||||
export function noticeDelete(id) {
|
||||
return http.request({
|
||||
url: '/notice/delete/' + id,
|
||||
method: 'DELETE',
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 批量删除公告
|
||||
*/
|
||||
export function noticeBatchDelete(data: any) {
|
||||
return http.request({
|
||||
url: '/notice/batchDelete',
|
||||
method: 'DELETE',
|
||||
data,
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
import { http } from '@/utils/http/axios';
|
||||
|
||||
/**
|
||||
* @description: 参数列表
|
||||
*/
|
||||
export function getParamList(params?) {
|
||||
return http.request({
|
||||
url: '/param/page',
|
||||
method: 'GET',
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取全部参数列表
|
||||
* @param params 参数
|
||||
* @returns 返回结果
|
||||
*/
|
||||
export function getParamAllList(params?) {
|
||||
return http.request({
|
||||
url: '/param/list',
|
||||
method: 'GET',
|
||||
params,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 根据ID获取详情
|
||||
*/
|
||||
export function getParamDetail(paramId) {
|
||||
return http.request({
|
||||
url: '/param/detail/' + paramId,
|
||||
method: 'get',
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 添加参数
|
||||
*/
|
||||
export function paramAdd(data: any) {
|
||||
return http.request({
|
||||
url: '/param/add',
|
||||
method: 'POST',
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 更新参数
|
||||
*/
|
||||
export function paramUpdate(data: any) {
|
||||
return http.request({
|
||||
url: '/param/update',
|
||||
method: 'PUT',
|
||||
data,
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 删除参数
|
||||
*/
|
||||
export function paramDelete(paramId) {
|
||||
return http.request({
|
||||
url: '/param/delete/' + paramId,
|
||||
method: 'DELETE',
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* @description: 批量删除参数
|
||||
*/
|
||||
export function paramBatchDelete(data: any) {
|
||||
return http.request({
|
||||
url: '/param/batchDelete',
|
||||
method: 'DELETE',
|
||||
data,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user