diff --git a/src/i18n/zh/application/field.ts b/src/i18n/zh/application/field.ts index 22e8429c..5bf57151 100644 --- a/src/i18n/zh/application/field.ts +++ b/src/i18n/zh/application/field.ts @@ -6,5 +6,6 @@ export default { operation: '操作', amount: '数量', shouldPayPrice: '应付金额', - api: 'API' + api: 'API', + credential: '密钥' }; diff --git a/src/operators/application/models.ts b/src/operators/application/models.ts index ce2e070c..a44094e7 100644 --- a/src/operators/application/models.ts +++ b/src/operators/application/models.ts @@ -5,6 +5,21 @@ export enum IApplicationType { PROXY = 'Proxy' } +export enum ICredentialType { + TOKEN = 'Token', + IDENTITY = 'Identity' +} + +export interface ICredential { + type: ICredentialType; + name?: string; + token?: string; + username?: string; + password?: string; + created_at?: string; + updated_at?: string; +} + export interface IApplication { id?: string; api?: IApi; @@ -15,6 +30,7 @@ export interface IApplication { user_id?: string; remaining_count?: number; used_count?: number; + credential?: ICredential; created_at?: string; updated_at?: string; } diff --git a/src/pages/console/application/List.vue b/src/pages/console/application/List.vue index 1ba07c5e..67428e33 100644 --- a/src/pages/console/application/List.vue +++ b/src/pages/console/application/List.vue @@ -27,12 +27,24 @@ width="100px" class-name="text-center" /> - + @@ -65,7 +77,14 @@