From 1595cb282aab5399862fac6406b5de550863e3b6 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期一, 03 四月 2023 00:05:09 +0800 Subject: [PATCH] update 调整代码格式 --- src/api/system/post/index.ts | 46 +++++++++++++++++++++++----------------------- 1 files changed, 23 insertions(+), 23 deletions(-) diff --git a/src/api/system/post/index.ts b/src/api/system/post/index.ts index 84d5615..3e523ab 100644 --- a/src/api/system/post/index.ts +++ b/src/api/system/post/index.ts @@ -4,43 +4,43 @@ // 鏌ヨ宀椾綅鍒楄〃 export function listPost(query: PostQuery): AxiosPromise<PostVO[]> { - return request({ - url: '/system/post/list', - method: 'get', - params: query - }); + return request({ + url: '/system/post/list', + method: 'get', + params: query + }); } // 鏌ヨ宀椾綅璇︾粏 export function getPost(postId: string | number): AxiosPromise<PostVO> { - return request({ - url: '/system/post/' + postId, - method: 'get' - }); + return request({ + url: '/system/post/' + postId, + method: 'get' + }); } // 鏂板宀椾綅 export function addPost(data: PostForm) { - return request({ - url: '/system/post', - method: 'post', - data: data - }); + return request({ + url: '/system/post', + method: 'post', + data: data + }); } // 淇敼宀椾綅 export function updatePost(data: PostForm) { - return request({ - url: '/system/post', - method: 'put', - data: data - }); + return request({ + url: '/system/post', + method: 'put', + data: data + }); } // 鍒犻櫎宀椾綅 export function delPost(postId: string | number | (string | number)[]) { - return request({ - url: '/system/post/' + postId, - method: 'delete' - }); + return request({ + url: '/system/post/' + postId, + method: 'delete' + }); } -- Gitblit v1.9.3