one-api/controller
Laisky.Cai 4fd0b247d2 chore: decrease token quota in ConsumeToken function
This commit modifies the ConsumeToken function in the token.go file to decrease the token quota by the specified amount. It replaces the previous code that directly updated the quota values with a call to the DecreaseTokenQuota function from the model package. This change improves code clarity and maintainability.

Closes #123
2024-06-25 06:15:07 +00:00
..
auth Merge remote-tracking branch 'origin/upstream/main' 2024-05-29 06:12:37 +00:00
billing.go Merge commit '1c2654320e5b6268b13b6efca40ce37a523d032b' 2024-04-28 01:53:31 +00:00
channel-billing.go Merge remote-tracking branch 'origin/upstream/main' 2024-05-29 06:12:37 +00:00
channel-test.go Merge remote-tracking branch 'origin/upstream/main' 2024-05-29 06:12:37 +00:00
channel.go Merge commit '1c2654320e5b6268b13b6efca40ce37a523d032b' 2024-04-28 01:53:31 +00:00
group.go Merge commit '1c2654320e5b6268b13b6efca40ce37a523d032b' 2024-04-28 01:53:31 +00:00
log.go Merge remote-tracking branch 'origin/upstream/main' 2024-05-29 06:12:37 +00:00
misc.go Merge commit '2369025842b828ac38f4427fd1ebab8d03b1fe7f' 2024-04-20 01:07:29 +00:00
model.go Merge remote-tracking branch 'origin/upstream/main' 2024-05-29 06:12:37 +00:00
option.go Merge commit '2369025842b828ac38f4427fd1ebab8d03b1fe7f' 2024-04-20 01:07:29 +00:00
redemption.go Merge remote-tracking branch 'origin/upstream/main' 2024-05-29 06:12:37 +00:00
relay.go Merge remote-tracking branch 'origin/upstream/main' 2024-05-29 06:12:37 +00:00
token.go chore: decrease token quota in ConsumeToken function 2024-06-25 06:15:07 +00:00
user.go Merge remote-tracking branch 'origin/upstream/main' 2024-06-17 03:16:36 +00:00