mirror of
https://github.com/coaidev/coai.git
synced 2025-05-22 06:20:14 +09:00
15 lines
324 B
Go
15 lines
324 B
Go
package globals
|
|
|
|
import (
|
|
"fmt"
|
|
"time"
|
|
)
|
|
|
|
func GetImageLimitFormat(id int64) string {
|
|
return fmt.Sprintf(":imagelimit:%s:%d", time.Now().Format("2006-01-02"), id)
|
|
}
|
|
|
|
func GetSubscriptionLimitFormat(t string, id int64) string {
|
|
return fmt.Sprintf(":subscription-usage-%s:%s:%d", t, time.Now().Format("2006-01-02"), id)
|
|
}
|