feat: Enhance email expiration options and update README

This commit is contained in:
beilunyang
2024-12-21 01:36:35 +08:00
parent 3566a33c3b
commit 929f310202
4 changed files with 12 additions and 5 deletions
+3 -2
View File
@@ -1,10 +1,11 @@
export interface ExpiryOption {
label: string
value: number // 过期时间(毫秒)
value: number
}
export const EXPIRY_OPTIONS: ExpiryOption[] = [
{ label: '1小时', value: 1000 * 60 * 60 },
{ label: '24小时', value: 1000 * 60 * 60 * 24 },
{ label: '3天', value: 1000 * 60 * 60 * 24 * 3 }
{ label: '3天', value: 1000 * 60 * 60 * 24 * 3 },
{ label: '永久', value: 0 }
]