Merge remote-tracking branch 'origin/master' into feature/bpm-back

This commit is contained in:
cuicui
2022-04-30 20:52:46 +08:00
1131 changed files with 16799 additions and 13186 deletions

View File

@ -73,26 +73,11 @@ export function getSchemaTableList(query) {
}
// 基于数据库的表结构,创建代码生成器的表定义
export function createCodegenListFromDB(tableNames) {
export function createCodegenList(data) {
return request({
url: '/infra/codegen/create-list-from-db',
url: '/infra/codegen/create-list',
method: 'post',
headers:{
'Content-type': 'application/x-www-form-urlencoded'
},
data: 'tableNames=' + tableNames
})
}
// 基于 SQL 建表语句,创建代码生成器的表定义
export function createCodegenListFromSQL(data) {
return request({
url: '/infra/codegen/create-list-from-sql',
method: 'post',
headers:{
'Content-type': 'application/x-www-form-urlencoded'
},
data: 'sql=' + data.sql,
data: data
})
}

View File

@ -0,0 +1,43 @@
import request from '@/utils/request'
// 创建数据源配置
export function createDataSourceConfig(data) {
return request({
url: '/infra/data-source-config/create',
method: 'post',
data: data
})
}
// 更新数据源配置
export function updateDataSourceConfig(data) {
return request({
url: '/infra/data-source-config/update',
method: 'put',
data: data
})
}
// 删除数据源配置
export function deleteDataSourceConfig(id) {
return request({
url: '/infra/data-source-config/delete?id=' + id,
method: 'delete'
})
}
// 获得数据源配置
export function getDataSourceConfig(id) {
return request({
url: '/infra/data-source-config/get?id=' + id,
method: 'get'
})
}
// 获得数据源配置列表
export function getDataSourceConfigList() {
return request({
url: '/infra/data-source-config/list',
method: 'get',
})
}

View File

@ -9,7 +9,7 @@ export function login(username, password, code, uuid) {
uuid
}
return request({
url: '/system/login',
url: '/system/auth/login',
method: 'post',
data: data
})
@ -18,7 +18,7 @@ export function login(username, password, code, uuid) {
// 获取用户详细信息
export function getInfo() {
return request({
url: '/system/get-permission-info',
url: '/system/auth/get-permission-info',
method: 'get'
})
}
@ -43,15 +43,15 @@ export function getCodeImg() {
// 社交授权的跳转
export function socialAuthRedirect(type, redirectUri) {
return request({
url: '/system/social-auth-redirect?type=' + type + '&redirectUri=' + redirectUri,
url: '/system/auth/social-auth-redirect?type=' + type + '&redirectUri=' + redirectUri,
method: 'get'
})
}
// 社交登录,使用 code 授权码
export function socialLogin(type, code, state) {
// 社交快捷登录,使用 code 授权码
export function socialQuickLogin(type, code, state) {
return request({
url: '/system/social-login',
url: '/system/auth/social-quick-login',
method: 'post',
data: {
type,
@ -61,10 +61,10 @@ export function socialLogin(type, code, state) {
})
}
// 社交登录,使用 code 授权码 + + 账号密码
export function socialLogin2(type, code, state, username, password) {
// 社交绑定登录,使用 code 授权码 + + 账号密码
export function socialBindLogin(type, code, state, username, password) {
return request({
url: '/system/social-login2',
url: '/system/auth/social-bind-login',
method: 'post',
data: {
type,
@ -75,28 +75,3 @@ export function socialLogin2(type, code, state, username, password) {
}
})
}
// 社交绑定,使用 code 授权码
export function socialBind(type, code, state) {
return request({
url: '/system/social-bind',
method: 'post',
data: {
type,
code,
state,
}
})
}
// 取消社交绑定
export function socialUnbind(type, unionId) {
return request({
url: '/system/social-unbind',
method: 'delete',
data: {
type,
unionId
}
})
}

View File

@ -3,7 +3,7 @@ import request from '@/utils/request'
// 获取路由
export const getRouters = () => {
return request({
url: '/system/list-menus',
url: '/system/auth/list-menus',
method: 'get'
})
}

View File

@ -0,0 +1,71 @@
import request from '@/utils/request'
import qs from 'qs'
// 创建敏感词
export function createSensitiveWord(data) {
return request({
url: '/system/sensitive-word/create',
method: 'post',
data: data
})
}
// 更新敏感词
export function updateSensitiveWord(data) {
return request({
url: '/system/sensitive-word/update',
method: 'put',
data: data
})
}
// 删除敏感词
export function deleteSensitiveWord(id) {
return request({
url: '/system/sensitive-word/delete?id=' + id,
method: 'delete'
})
}
// 获得敏感词
export function getSensitiveWord(id) {
return request({
url: '/system/sensitive-word/get?id=' + id,
method: 'get'
})
}
// 获得敏感词分页
export function getSensitiveWordPage(query) {
return request({
url: '/system/sensitive-word/page',
method: 'get',
params: query
})
}
// 导出敏感词 Excel
export function exportSensitiveWordExcel(query) {
return request({
url: '/system/sensitive-word/export-excel',
method: 'get',
params: query,
responseType: 'blob'
})
}
// 获取所有敏感词的标签数组
export function getSensitiveWordTags(){
return request({
url: '/system/sensitive-word/get-tags',
method: 'get'
})
}
// 获得文本所包含的不合法的敏感词数组
export function validateText(query) {
return request({
url: '/system/sensitive-word/validate-text?' + qs.stringify(query, {arrayFormat: 'repeat'}),
method: 'get',
})
}

View File

@ -0,0 +1,26 @@
import request from "@/utils/request";
// 社交绑定,使用 code 授权码
export function socialBind(type, code, state) {
return request({
url: '/system/social-user/bind',
method: 'post',
data: {
type,
code,
state,
}
})
}
// 取消社交绑定
export function socialUnbind(type, openid) {
return request({
url: '/system/social-user/unbind',
method: 'delete',
data: {
type,
openid
}
})
}