You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
565 B
Go
23 lines
565 B
Go
package ckey
|
|
|
|
import "fmt"
|
|
|
|
func taskKey(format string, a ...any) string {
|
|
return TaskPrefix + fmt.Sprintf(format, a...)
|
|
}
|
|
|
|
// ValidEventsKey 有效事件任务
|
|
func ValidEventsKey(userId int64) string {
|
|
return taskKey("valid_events:%d", userId)
|
|
}
|
|
|
|
// ValidEventsUserMarkKey 有效事件任务
|
|
func ValidEventsUserMarkKey(userMark string) string {
|
|
return taskKey("valid_events_user_mark:%s", userMark)
|
|
}
|
|
|
|
// ProjectUserCoinDeduct 项目用户积分扣除
|
|
func ProjectUserCoinDeduct(userId int64) string {
|
|
return taskKey("project_user_coin_deduct:%d", userId)
|
|
}
|