Skip to content

Commit

Permalink
fix(api): select api type error
Browse files Browse the repository at this point in the history
  • Loading branch information
mynetfan committed Jun 10, 2021
1 parent 2c5351f commit b387681
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/api/demo/model/optionsModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ export interface DemoOptionsItem {
/**
* @description: Request list return value
*/
export type DemoOptionsGetResultModel = BasicFetchResult<DemoOptionsItem[]>;
export type DemoOptionsGetResultModel = BasicFetchResult<DemoOptionsItem>;
6 changes: 2 additions & 4 deletions src/api/demo/select.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import { defHttp } from '/@/utils/http/axios';
import { DemoOptionsGetResultModel } from './model/optionsModel';

import { DemoOptionsItem } from './model/optionsModel';
enum Api {
OPTIONS_LIST = '/select/getDemoOptions',
}

/**
* @description: Get sample options value
*/
export const optionsListApi = () =>
defHttp.get<DemoOptionsGetResultModel>({ url: Api.OPTIONS_LIST });
export const optionsListApi = () => defHttp.get<DemoOptionsItem[]>({ url: Api.OPTIONS_LIST });

0 comments on commit b387681

Please sign in to comment.