| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- import axios from 'axios';
- import type { ListRes, FormRes } from './base';
- export interface AliyunAccountRecord {
- id: number;
- pin: string;
- name: string;
- username: string;
- password: string;
- company: string;
- mobile: string;
- accessKeyId: string;
- accessKeySecret: string;
- status: boolean;
- create_time: Date;
- last_time: Date;
- balance: number;
- regions: string;
- }
- export interface AliyunAccountParams extends Partial<AliyunAccountRecord> {
- current: number;
- pageSize: number;
- sort?: string;
- order?: string;
- getTotal: boolean;
- }
- export interface AliyunAccountRes extends ListRes {
- list: AliyunAccountRecord[];
- }
- export function queryAccountList(data: AliyunAccountParams) {
- return axios.post<AliyunAccountRes>('/api/aliyun/account_list', data);
- }
- export interface UpdateAccountModel {
- id: number;
- name: string;
- val: any;
- }
- export function UpdateAccount(data: UpdateAccountModel) {
- return axios.post<FormRes>('/api/aliyun/update', data);
- }
|