|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414 |
- /* eslint-disable */
- // 该文件由 OneAPI 自动生成,请勿手动修改!
-
- declare namespace API {
- interface PageInfo {
- current?: number;
- pageSize?: number;
- total?: number;
- list?: Array<Record<string, any>>;
- }
-
- interface PageInfo_UserInfo_ {
- current?: number;
- pageSize?: number;
- total?: number;
- list?: Array<UserInfo>;
- }
-
- interface Result {
- code: number;
- msg: string;
- data?: Record<string, any>;
- }
-
- interface Result_PageInfo_UserInfo__ {
- code: number;
- msg: string;
- data?: PageInfo_UserInfo_;
- }
- interface UserInfoResult {
- code?: number;
- msg?: string;
- user: UserInfo;
- permissions: any;
- roles: any;
- }
-
- interface Result_string_ {
- success?: boolean;
- errorMessage?: string;
- data?: string;
- }
-
- type UserGenderEnum = 'MALE' | 'FEMALE';
-
- interface UserInfo {
- userId?: string;
- userName?: string;
- nickName?: string;
- avatar?: string;
- sex?: string;
- email?: string;
- gender?: UserGenderEnum;
- unreadCount: number;
- address?: string;
- phonenumber?: string;
- dept?: Dept;
- roles?: Role[];
- permissions: string[];
- }
-
- interface UserInfoVO {
- name?: string;
- /** nick */
- nickName?: string;
- /** email */
- email?: string;
- }
-
- type definitions_0 = null;
-
- type MenuItemMeta = {
- title: string;
- icon: string;
- noCache: boolean;
- link: string;
- };
-
- type RoutersMenuItem = {
- alwaysShow?: boolean;
- children?: RoutersMenuItem[];
- component?: string;
- hidden?: boolean;
- meta: MenuItemMeta;
- name: string;
- path: string;
- redirect?: string;
- [key: string]: any;
- };
- interface GetRoutersResult {
- code: number;
- msg: string;
- data: RoutersMenuItem[];
- }
-
- type NoticeIconList = {
- data?: NoticeIconItem[];
- /** 列表的内容总数 */
- total?: number;
- success?: boolean;
- };
-
- type NoticeIconItemType = 'notification' | 'message' | 'event';
-
- type NoticeIconItem = {
- id?: string;
- extra?: string;
- key?: string;
- read?: boolean;
- avatar?: string;
- title?: string;
- status?: string;
- datetime?: string;
- description?: string;
- type?: NoticeIconItemType;
- };
-
- export type MenuType = {
- menuId: number;
- menuName: string;
- parentId: string;
- orderNum: number;
- path: string;
- component: string;
- isFrame: number;
- isCache: number;
- menuType: string;
- visible: string;
- status: string;
- perms: string;
- icon: string;
- createBy: string;
- createTime: Date;
- updateBy: string;
- updateTime: Date;
- remark: string;
- };
-
- export type MenuListParams = {
- menuId?: string;
- menuName?: string;
- parentId?: string;
- orderNum?: string;
- path?: string;
- component?: string;
- isFrame?: string;
- isCache?: string;
- menuType?: string;
- visible?: string;
- status?: string;
- perms?: string;
- icon?: string;
- createBy?: string;
- createTime?: string;
- updateBy?: string;
- updateTime?: string;
- remark?: string;
- pageSize?: string;
- currentPage?: string;
- filter?: string;
- sorter?: string;
- };
-
- export type DictTypeType = {
- dictId: number;
- dictName: string;
- dictType: string;
- status: string;
- createBy: string;
- createTime: Date;
- updateBy: string;
- updateTime: Date;
- remark: string;
- };
-
- export type DictTypeListParams = {
- dictId?: string;
- dictName?: string;
- dictType?: string;
- status?: string;
- createBy?: string;
- createTime?: string;
- updateBy?: string;
- updateTime?: string;
- remark?: string;
- pageSize?: string;
- currentPage?: string;
- filter?: string;
- sorter?: string;
- };
- type CurrentUser = UserInfo & {
- signature?: string;
- title?: string;
- group?: string;
- tags?: { key?: string; label?: string }[];
- notifyCount?: number;
- unreadCount?: number;
- country?: string;
- access?: string;
- geographic?: {
- province?: { label?: string; key?: string };
- city?: { label?: string; key?: string };
- };
- address?: string;
- phone?: string;
- roleNames?: {
- roleName?: string;
- }[];
- };
-
- type ErrorResponse = {
- /** 业务约定的错误码 */
- errorCode: string;
- /** 业务上的错误信息 */
- errorMessage?: string;
- /** 业务上的请求是否成功 */
- success?: boolean;
- };
-
- type FakeCaptcha = {
- code?: number;
- status?: string;
- };
-
- type getFakeCaptchaParams = {
- /** 手机号 */
- phone?: string;
- };
-
- type LoginParams = {
- username?: string;
- password?: string;
- uuid?: string;
- autoLogin?: boolean;
- type?: string;
- };
-
- type LoginResult = {
- code: number;
- msg?: string;
- type?: string;
- data?: {
- access_token?: string;
- expires_in?: number;
- };
- };
-
- type NoticeIconItem = {
- id?: string;
- extra?: string;
- key?: string;
- read?: boolean;
- avatar?: string;
- title?: string;
- status?: string;
- datetime?: string;
- description?: string;
- type?: NoticeIconItemType;
- };
-
- type NoticeIconItemType = 'notification' | 'message' | 'event';
-
- type NoticeIconList = {
- data?: NoticeIconItem[];
- /** 列表的内容总数 */
- total?: number;
- success?: boolean;
- };
-
- type PageParams = {
- current?: number;
- pageSize?: number;
- };
-
- type RuleList = {
- data?: RuleListItem[];
- /** 列表的内容总数 */
- total?: number;
- success?: boolean;
- };
-
- type RuleListItem = {
- key?: number;
- disabled?: boolean;
- href?: string;
- avatar?: string;
- name?: string;
- owner?: string;
- desc?: string;
- callNo?: number;
- status?: number;
- updatedAt?: string;
- createdAt?: string;
- progress?: number;
- };
-
- type ruleParams = {
- /** 当前的页码 */
- current?: number;
- /** 页面的容量 */
- pageSize?: number;
- };
-
- type ApiResponse = {
- code?: number;
- type?: string;
- message?: string;
- };
-
- type Category = {
- id?: number;
- name?: string;
- };
-
- type deleteOrderParams = {
- /** ID of the order that needs to be deleted */
- orderId: number;
- };
-
- type deletePetParams = {
- api_key?: string;
- /** Pet id to delete */
- petId: number;
- };
-
- type deleteUserParams = {
- /** The name that needs to be deleted */
- username: string;
- };
-
- type findPetsByStatusParams = {
- /** Status values that need to be considered for filter */
- status: ('available' | 'pending' | 'sold')[];
- };
-
- type findPetsByTagsParams = {
- /** Tags to filter by */
- tags: string[];
- };
-
- type getOrderByIdParams = {
- /** ID of pet that needs to be fetched */
- orderId: number;
- };
-
- type getPetByIdParams = {
- /** ID of pet to return */
- petId: number;
- };
-
- type getUserByNameParams = {
- /** The name that needs to be fetched. Use user1 for testing. */
- username: string;
- };
-
- type loginUserParams = {
- /** The user name for login */
- username: string;
- /** The password for login in clear text */
- password: string;
- };
-
- type Order = {
- id?: number;
- petId?: number;
- quantity?: number;
- shipDate?: string;
- /** Order Status */
- status?: 'placed' | 'approved' | 'delivered';
- complete?: boolean;
- };
-
- type Pet = {
- id?: number;
- category?: Category;
- name: string;
- photoUrls: string[];
- tags?: Tag[];
- /** pet status in the store */
- status?: 'available' | 'pending' | 'sold';
- };
-
- type Tag = {
- id?: number;
- name?: string;
- };
-
- type updatePetWithFormParams = {
- /** ID of pet that needs to be updated */
- petId: number;
- };
-
- type updateUserParams = {
- /** name that need to be updated */
- username: string;
- };
-
- type uploadFileParams = {
- /** ID of pet to update */
- petId: number;
- };
-
- type User = {
- id?: number;
- username?: string;
- firstName?: string;
- lastName?: string;
- email?: string;
- password?: string;
- phone?: string;
- /** User Status */
- userStatus?: number;
- };
- }
|