Skip to content

Commit 4404554

Browse files
committed
1. 统一化代码
2. 增加 DocAlert 关联文档
1 parent bb88e3d commit 4404554

File tree

111 files changed

+640
-567
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+640
-567
lines changed

.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,5 @@ VITE_APP_TENANT_ENABLE=true
1313
# 验证码的开关
1414
VITE_APP_CAPTCHA_ENABLE=true
1515

16+
# 验证码的开关
17+
VITE_APP_CAPTCHA_ENABLE=true

src/api/bpm/leave/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ export type LeaveVO = {
1212
}
1313

1414
// 创建请假申请
15-
export const createLeaveApi = async (data: LeaveVO) => {
15+
export const createLeave = async (data: LeaveVO) => {
1616
return await request.post({ url: '/bpm/oa/leave/create', data: data })
1717
}
1818

1919
// 获得请假申请
20-
export const getLeaveApi = async (id: number) => {
20+
export const getLeave = async (id: number) => {
2121
return await request.get({ url: '/bpm/oa/leave/get?id=' + id })
2222
}
2323

2424
// 获得请假申请分页
25-
export const getLeavePageApi = async (params) => {
25+
export const getLeavePage = async (params) => {
2626
return await request.get({ url: '/bpm/oa/leave/page', params })
2727
}

src/api/bpm/processInstance/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,22 @@ export type ProcessInstanceVO = {
2020
endTime: string
2121
}
2222

23-
export const getMyProcessInstancePageApi = async (params) => {
23+
export const getMyProcessInstancePage = async (params) => {
2424
return await request.get({ url: '/bpm/process-instance/my-page', params })
2525
}
2626

27-
export const createProcessInstanceApi = async (data) => {
27+
export const createProcessInstance = async (data) => {
2828
return await request.post({ url: '/bpm/process-instance/create', data: data })
2929
}
3030

31-
export const cancelProcessInstanceApi = async (id: number, reason: string) => {
31+
export const cancelProcessInstance = async (id: number, reason: string) => {
3232
const data = {
3333
id: id,
3434
reason: reason
3535
}
3636
return await request.delete({ url: '/bpm/process-instance/cancel', data: data })
3737
}
3838

39-
export const getProcessInstanceApi = async (id: number) => {
39+
export const getProcessInstance = async (id: number) => {
4040
return await request.get({ url: '/bpm/process-instance/get?id=' + id })
4141
}

src/api/infra/config/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ export const deleteConfig = (id: number) => {
4343
}
4444

4545
// 导出参数
46-
export const exportConfigApi = (params) => {
46+
export const exportConfig = (params) => {
4747
return request.download({ url: '/infra/config/export', params })
4848
}

src/api/infra/dbDoc/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
import request from '@/config/axios'
22

33
// 导出Html
4-
export const exportHtmlApi = () => {
4+
export const exportHtml = () => {
55
return request.download({ url: '/infra/db-doc/export-html' })
66
}
77

88
// 导出Word
9-
export const exportWordApi = () => {
9+
export const exportWord = () => {
1010
return request.download({ url: '/infra/db-doc/export-word' })
1111
}
1212

1313
// 导出Markdown
14-
export const exportMarkdownApi = () => {
14+
export const exportMarkdown = () => {
1515
return request.download({ url: '/infra/db-doc/export-markdown' })
1616
}

src/api/infra/job/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export const updateJobStatus = (id: number, status: number) => {
5353
}
5454

5555
// 定时任务立即执行一次
56-
export const runJobApi = (id: number) => {
56+
export const runJob = (id: number) => {
5757
return request.put({ url: '/infra/job/trigger?id=' + id })
5858
}
5959

src/api/infra/redis/index.ts

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,35 +3,38 @@ import request from '@/config/axios'
33
/**
44
* 获取redis 监控信息
55
*/
6-
export const getCacheApi = () => {
6+
export const getCache = () => {
77
return request.get({ url: '/infra/redis/get-monitor-info' })
88
}
9+
910
// 获取模块
10-
export const getKeyDefineListApi = () => {
11+
export const getKeyDefineList = () => {
1112
return request.get({ url: '/infra/redis/get-key-define-list' })
1213
}
14+
1315
/**
1416
* 获取redis key列表
1517
*/
16-
export const getKeyListApi = (keyTemplate: string) => {
18+
export const getKeyList = (keyTemplate: string) => {
1719
return request.get({
1820
url: '/infra/redis/get-key-list',
1921
params: {
2022
keyTemplate
2123
}
2224
})
2325
}
26+
2427
// 获取缓存内容
25-
export const getKeyValueApi = (key: string) => {
28+
export const getKeyValue = (key: string) => {
2629
return request.get({ url: '/infra/redis/get-key-value?key=' + key })
2730
}
2831

2932
// 根据键名删除缓存
30-
export const deleteKeyApi = (key: string) => {
33+
export const deleteKey = (key: string) => {
3134
return request.delete({ url: '/infra/redis/delete-key?key=' + key })
3235
}
3336

34-
export const deleteKeysApi = (keyTemplate: string) => {
37+
export const deleteKeys = (keyTemplate: string) => {
3538
return request.delete({
3639
url: '/infra/redis/delete-keys?',
3740
params: {

src/api/login/index.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export interface SmsLoginVO {
1717
}
1818

1919
// 登录
20-
export const loginApi = (data: UserLoginVO) => {
20+
export const login = (data: UserLoginVO) => {
2121
return request.post({ url: '/system/auth/login', data })
2222
}
2323

@@ -27,47 +27,47 @@ export const refreshToken = () => {
2727
}
2828

2929
// 使用租户名,获得租户编号
30-
export const getTenantIdByNameApi = (name: string) => {
30+
export const getTenantIdByName = (name: string) => {
3131
return request.get({ url: '/system/tenant/get-id-by-name?name=' + name })
3232
}
3333

3434
// 登出
35-
export const loginOutApi = () => {
35+
export const loginOut = () => {
3636
return request.post({ url: '/system/auth/logout' })
3737
}
3838

3939
// 获取用户权限信息
40-
export const getInfoApi = () => {
40+
export const getInfo = () => {
4141
return request.get({ url: '/system/auth/get-permission-info' })
4242
}
4343

4444
// 路由
45-
export const getAsyncRoutesApi = () => {
45+
export const getAsyncRoutes = () => {
4646
return request.get({ url: '/system/auth/list-menus' })
4747
}
4848

4949
//获取登录验证码
50-
export const sendSmsCodeApi = (data: SmsCodeVO) => {
50+
export const sendSmsCode = (data: SmsCodeVO) => {
5151
return request.post({ url: '/system/auth/send-sms-code', data })
5252
}
5353

5454
// 短信验证码登录
55-
export const smsLoginApi = (data: SmsLoginVO) => {
55+
export const smsLogin = (data: SmsLoginVO) => {
5656
return request.post({ url: '/system/auth/sms-login', data })
5757
}
5858

5959
// 社交授权的跳转
60-
export const socialAuthRedirectApi = (type: number, redirectUri: string) => {
60+
export const socialAuthRedirect = (type: number, redirectUri: string) => {
6161
return request.get({
6262
url: '/system/auth/social-auth-redirect?type=' + type + '&redirectUri=' + redirectUri
6363
})
6464
}
65-
// 获取验证图片 以及token
66-
export const getCodeApi = (data) => {
65+
// 获取验证图片以及 token
66+
export const getCode = (data) => {
6767
return request.postOriginal({ url: 'system/captcha/get', data })
6868
}
6969

7070
// 滑动或者点选验证
71-
export const reqCheckApi = (data) => {
71+
export const reqCheck = (data) => {
7272
return request.postOriginal({ url: 'system/captcha/check', data })
7373
}

src/api/pay/app/index.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,41 +38,41 @@ export interface AppUpdateStatusReqVO {
3838
}
3939

4040
// 查询列表支付应用
41-
export const getAppPageApi = (params: AppPageReqVO) => {
41+
export const getAppPage = (params: AppPageReqVO) => {
4242
return request.get({ url: '/pay/app/page', params })
4343
}
4444

4545
// 查询详情支付应用
46-
export const getAppApi = (id: number) => {
46+
export const getApp = (id: number) => {
4747
return request.get({ url: '/pay/app/get?id=' + id })
4848
}
4949

5050
// 新增支付应用
51-
export const createAppApi = (data: AppVO) => {
51+
export const createApp = (data: AppVO) => {
5252
return request.post({ url: '/pay/app/create', data })
5353
}
5454

5555
// 修改支付应用
56-
export const updateAppApi = (data: AppVO) => {
56+
export const updateApp = (data: AppVO) => {
5757
return request.put({ url: '/pay/app/update', data })
5858
}
5959

6060
// 支付应用信息状态修改
61-
export const changeAppStatusApi = (data: AppUpdateStatusReqVO) => {
61+
export const changeAppStatus = (data: AppUpdateStatusReqVO) => {
6262
return request.put({ url: '/pay/app/update-status', data: data })
6363
}
6464

6565
// 删除支付应用
66-
export const deleteAppApi = (id: number) => {
66+
export const deleteApp = (id: number) => {
6767
return request.delete({ url: '/pay/app/delete?id=' + id })
6868
}
6969

7070
// 导出支付应用
71-
export const exportAppApi = (params: AppExportReqVO) => {
71+
export const exportApp = (params: AppExportReqVO) => {
7272
return request.download({ url: '/pay/app/export-excel', params })
7373
}
7474

7575
// 根据商ID称搜索应用列表
76-
export const getAppListByMerchantIdApi = (merchantId: number) => {
76+
export const getAppListByMerchantId = (merchantId: number) => {
7777
return request.get({ url: '/pay/app/list-merchant-id', params: { merchantId: merchantId } })
7878
}

src/api/pay/channel/index.ts

Lines changed: 6 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -12,35 +12,13 @@ export interface ChannelVO {
1212
createTime: Date
1313
}
1414

15-
export interface ChannelPageReqVO extends PageParam {
16-
code?: string
17-
status?: number
18-
remark?: string
19-
feeRate?: number
20-
merchantId?: number
21-
appId?: number
22-
config?: string
23-
createTime?: Date[]
24-
}
25-
26-
export interface ChannelExportReqVO {
27-
code?: string
28-
status?: number
29-
remark?: string
30-
feeRate?: number
31-
merchantId?: number
32-
appId?: number
33-
config?: string
34-
createTime?: Date[]
35-
}
36-
3715
// 查询列表支付渠道
38-
export const getChannelPageApi = (params: ChannelPageReqVO) => {
16+
export const getChannelPage = (params: PageParam) => {
3917
return request.get({ url: '/pay/channel/page', params })
4018
}
4119

4220
// 查询详情支付渠道
43-
export const getChannelApi = (merchantId: number, appId: string, code: string) => {
21+
export const getChannel = (merchantId: number, appId: string, code: string) => {
4422
const params = {
4523
merchantId: merchantId,
4624
appId: appId,
@@ -50,21 +28,21 @@ export const getChannelApi = (merchantId: number, appId: string, code: string) =
5028
}
5129

5230
// 新增支付渠道
53-
export const createChannelApi = (data: ChannelVO) => {
31+
export const createChannel = (data: ChannelVO) => {
5432
return request.post({ url: '/pay/channel/create', data })
5533
}
5634

5735
// 修改支付渠道
58-
export const updateChannelApi = (data: ChannelVO) => {
36+
export const updateChannel = (data: ChannelVO) => {
5937
return request.put({ url: '/pay/channel/update', data })
6038
}
6139

6240
// 删除支付渠道
63-
export const deleteChannelApi = (id: number) => {
41+
export const deleteChannel = (id: number) => {
6442
return request.delete({ url: '/pay/channel/delete?id=' + id })
6543
}
6644

6745
// 导出支付渠道
68-
export const exportChannelApi = (params: ChannelExportReqVO) => {
46+
export const exportChannel = (params) => {
6947
return request.download({ url: '/pay/channel/export-excel', params })
7048
}

0 commit comments

Comments
 (0)