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
427 B
Go

package libs
import (
"fmt"
"mygo/conf"
)
func AdminLoginCode(t string) string {
return fmt.Sprintf("%s:admin:code:%s", conf.APPNAME, t)
}
func AdminTokenKey(id string) string {
return fmt.Sprintf("%s:admin:token:%s", conf.APPNAME, id)
}
func GetAccessTokenKey() string {
return fmt.Sprintf("%s:admin:access_token", conf.APPNAME)
}
func GetAgentBiliKey() string {
return fmt.Sprintf("%s:agent:bili", conf.APPNAME)
}