diff --git a/src/constants/errorCode.ts b/src/constants/errorCode.ts index 22aac216..37ef5a28 100644 --- a/src/constants/errorCode.ts +++ b/src/constants/errorCode.ts @@ -1 +1,2 @@ export const ERROR_CODE_UNVERIFIED = 'unverifed'; +export const ERROR_CODE_DUPLICATION = 'duplication'; diff --git a/src/i18n/zh/application/index.ts b/src/i18n/zh/application/index.ts index c61ce3af..3cd536a7 100644 --- a/src/i18n/zh/application/index.ts +++ b/src/i18n/zh/application/index.ts @@ -1,7 +1,9 @@ import field from './field'; import button from './button'; +import message from './message'; export default { field, - button + button, + message }; diff --git a/src/i18n/zh/application/message.ts b/src/i18n/zh/application/message.ts new file mode 100644 index 00000000..7dfe34bb --- /dev/null +++ b/src/i18n/zh/application/message.ts @@ -0,0 +1,4 @@ +export default { + alreadyApplied: '已经申请过该服务,请到控制台查看', + applySuccessfully: '申请成功,即将跳转到控制台' +}; diff --git a/src/operators/application/models.ts b/src/operators/application/models.ts index 77be6ff6..bb75f157 100644 --- a/src/operators/application/models.ts +++ b/src/operators/application/models.ts @@ -1,10 +1,10 @@ export interface IApplication { - id: string; + id?: string; service: string; - apiKey: string; - userId: string; - remainingCount: number; - usedCount: number; + apiKey?: string; + userId?: string; + remainingCount?: number; + usedCount?: number; createdAt?: string; updatedAt?: string; } diff --git a/src/pages/service/Detail.vue b/src/pages/service/Detail.vue index 8a1568f2..43e92561 100644 --- a/src/pages/service/Detail.vue +++ b/src/pages/service/Detail.vue @@ -30,7 +30,7 @@