From a56a2f6099ae741096290e644f91acea54bc242c Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 2 Apr 2023 11:05:51 +0800 Subject: [PATCH] =?UTF-8?q?REVIEW=20OAuth2=20=E5=AE=A2=E6=88=B7=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/oauth2/client.ts | 22 +++++------ .../client/{form.vue => ClientForm.vue} | 38 +++++++++---------- src/views/system/oauth2/client/index.vue | 34 ++++++++++------- 3 files changed, 48 insertions(+), 46 deletions(-) rename src/views/system/oauth2/client/{form.vue => ClientForm.vue} (88%) diff --git a/src/api/system/oauth2/client.ts b/src/api/system/oauth2/client.ts index 4c06386d..6f71acad 100644 --- a/src/api/system/oauth2/client.ts +++ b/src/api/system/oauth2/client.ts @@ -21,31 +21,27 @@ export interface OAuth2ClientVO { createTime: Date } -export interface OAuth2ClientPageReqVO extends PageParam { - name?: string - status?: number -} -// 查询 OAuth2列表 -export const getOAuth2ClientPageApi = (params: OAuth2ClientPageReqVO) => { +// 查询 OAuth2 客户端的列表 +export const getOAuth2ClientPage = (params: PageParam) => { return request.get({ url: '/system/oauth2-client/page', params }) } -// 查询 OAuth2详情 -export const getOAuth2ClientApi = (id: number) => { +// 查询 OAuth2 客户端的详情 +export const getOAuth2Client = (id: number) => { return request.get({ url: '/system/oauth2-client/get?id=' + id }) } -// 新增 OAuth2 -export const createOAuth2ClientApi = (data: OAuth2ClientVO) => { +// 新增 OAuth2 客户端 +export const createOAuth2Client = (data: OAuth2ClientVO) => { return request.post({ url: '/system/oauth2-client/create', data }) } -// 修改 OAuth2 -export const updateOAuth2ClientApi = (data: OAuth2ClientVO) => { +// 修改 OAuth2 客户端 +export const updateOAuth2Client = (data: OAuth2ClientVO) => { return request.put({ url: '/system/oauth2-client/update', data }) } // 删除 OAuth2 -export const deleteOAuth2ClientApi = (id: number) => { +export const deleteOAuth2Client = (id: number) => { return request.delete({ url: '/system/oauth2-client/delete?id=' + id }) } diff --git a/src/views/system/oauth2/client/form.vue b/src/views/system/oauth2/client/ClientForm.vue similarity index 88% rename from src/views/system/oauth2/client/form.vue rename to src/views/system/oauth2/client/ClientForm.vue index 2800bd1f..2e2281f5 100644 --- a/src/views/system/oauth2/client/form.vue +++ b/src/views/system/oauth2/client/ClientForm.vue @@ -1,10 +1,10 @@