Ver código fonte

feta add openapi

Young 4 meses atrás
pai
commit
0ac9b4eeb2

+ 1 - 1
src/pages/Settings/Settings.tsx

@@ -16,7 +16,7 @@ import { AddOutline } from 'antd-mobile-icons';
 import { EditBundle, useEdit } from '@/core/hooks/useEdit';
 import dayjs from 'dayjs';
 import ReactJson from 'react-json-view';
-import { getConfigGetApi, postConfigPageApi, postConfigSaveApi } from '@/services/swagger/zidianpeizhiguanlihoutaiApi';
+import { getConfigGetApi, postConfigPageApi, postConfigSaveApi } from '@/services/swagger/DictConfigAdmin';
 
 enum ConfigPermission {
   /**

src/services/swagger/zidianpeizhiguanlihoutaiApi.ts → src/services/swagger/DictConfigAdmin.ts


+ 3 - 4
src/services/swagger/index.ts

@@ -19,8 +19,8 @@ import * as peakLevelAdmin from './peakLevelAdmin';
 import * as peakAdmin from './peakAdmin';
 import * as menuAdmin from './menuAdmin';
 import * as factionLevelAdmin from './factionLevelAdmin';
-import * as zidianpeizhiguanlihoutaiApi from './zidianpeizhiguanlihoutaiApi';
-import * as yonghuqiandaokehuduanApi from './yonghuqiandaokehuduanApi';
+import * as dictConfigAdmin from './DictConfigAdmin';
+
 export default {
   userConfigClients,
   userLevelClients,
@@ -39,6 +39,5 @@ export default {
   peakAdmin,
   menuAdmin,
   factionLevelAdmin,
-  zidianpeizhiguanlihoutaiApi,
-  yonghuqiandaokehuduanApi,
+  dictConfigAdmin,
 };

+ 0 - 42
src/services/swagger/yonghuqiandaokehuduanApi.ts

@@ -1,42 +0,0 @@
-// @ts-ignore
-/* eslint-disable */
-import { invoke as request } from '@/core/network';
-
-/** 获取用户签到次数 GET /apis/clients/user_sign/cnt */
-export async function getUserSignCntApi(options?: { [key: string]: any }) {
-  return request<number>('/apis/clients/user_sign/cnt', {
-    method: 'GET',
-    ...(options || {}),
-  });
-}
-
-/** 查询用户当天是否签到 GET /apis/clients/user_sign/is_sign */
-export async function getUserSignIsSignApi(
-  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
-  params: SectApi.getUserSignIsSignApiParams,
-  options?: { [key: string]: any },
-) {
-  return request<boolean>('/apis/clients/user_sign/is_sign', {
-    method: 'GET',
-    params: {
-      ...params,
-    },
-    ...(options || {}),
-  });
-}
-
-/** 获取用户签到列表 GET /apis/clients/user_sign/list */
-export async function getUserSignListApi(options?: { [key: string]: any }) {
-  return request<number[]>('/apis/clients/user_sign/list', {
-    method: 'GET',
-    ...(options || {}),
-  });
-}
-
-/** 用户签到 GET /apis/clients/user_sign/sign */
-export async function getUserSignSignApi(options?: { [key: string]: any }) {
-  return request<boolean>('/apis/clients/user_sign/sign', {
-    method: 'GET',
-    ...(options || {}),
-  });
-}