完成验证码及登录功能

This commit is contained in:
橙子
2023-02-04 18:06:42 +08:00
parent cfd25b0a8d
commit b01d242cbc
276 changed files with 24201 additions and 22 deletions

View File

@@ -0,0 +1,58 @@
import request from '@/utils/request'
// 查询字典数据列表
export function listData(query) {
return request({
url: '/dictionaryInfo/pageList',
method: 'get',
params: query
})
}
// 查询字典数据详细
export function getData(dictCode) {
return request({
url: '/dictionaryInfo/getById/' + dictCode,
method: 'get'
})
}
// 根据字典类型查询字典数据信息
export function getDicts(dictType) {
return request({
url: '/dictionaryInfo/GetListByType/' + dictType,
method: 'get'
})
}
// 新增字典数据
export function addData(data) {
return request({
url: '/dictionaryInfo/add',
method: 'post',
data: data
})
}
// 修改字典数据
export function updateData(data) {
return request({
url: '/dictionaryInfo/update',
method: 'put',
data: data
})
}
// 删除字典数据
export function delData(dictCode) {
if("string"==typeof(dictCode))
{
dictCode=[dictCode];
}
return request({
url: '/dictionaryInfo/delList',
method: 'delete',
data:dictCode
})
}

View File

@@ -0,0 +1,65 @@
import request from '@/utils/request'
// 查询字典类型列表
export function listType(query) {
return request({
url: '/dictionary/pageList',
method: 'get',
params: query
})
}
// 查询字典类型详细
export function getType(dictId) {
return request({
url: '/dictionary/getById/' + dictId,
method: 'get'
})
}
// 新增字典类型
export function addType(data) {
return request({
url: '/dictionary/add',
method: 'post',
data: data
})
}
// 修改字典类型
export function updateType(data) {
return request({
url: '/dictionary/update',
method: 'put',
data: data
})
}
// 删除字典类型
export function delType(dictId) {
if("string"==typeof(dictId))
{
dictId=[dictId];
}
return request({
url: '/dictionary/delList',
method: 'delete',
data:dictId
})
}
// 刷新字典缓存
export function refreshCache() {
return request({
url: '/system/dict/type/refreshCache',
method: 'delete'
})
}
// 获取字典选择框列表
export function optionselect() {
return request({
url: '/dictionary/getList',
method: 'get'
})
}