This commit is contained in:
2026-08-14 16:34:17 +08:00
parent e0b0e1d8c8
commit f63acae353
53 changed files with 2488 additions and 350 deletions
-3
View File
@@ -41,9 +41,6 @@ func (uc *SettingsUsecase) PrepareAPIToken(ctx context.Context, userID, authorit
if days == -1 {
duration = 100 * 365 * 24 * time.Hour
}
if duration <= 0 {
return nil, 0, errors.New("有效天数必须大于0或为-1")
}
return user, duration, nil
}