v3
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
package know
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
const (
|
||||
CustomerCategory = "customer_category"
|
||||
CustomerSource = "customer_source"
|
||||
@@ -43,3 +48,8 @@ var (
|
||||
// 所有角色
|
||||
AllRoles = "m:role:all"
|
||||
)
|
||||
|
||||
func GetManageKey(ctx context.Context, key string, arg ...any) string {
|
||||
key = fmt.Sprintf(key, arg...)
|
||||
return key
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user