feat: implement creator_id factor

This commit is contained in:
Johnny
2025-03-11 22:00:57 +08:00
parent ba52a786f9
commit e3a4f49c5c
6 changed files with 75 additions and 5 deletions

View File

@@ -9,6 +9,7 @@ import (
// MemoFilterCELAttributes are the CEL attributes for memo.
var MemoFilterCELAttributes = []cel.EnvOption{
cel.Variable("content", cel.StringType),
cel.Variable("creator_id", cel.IntType),
// As the built-in timestamp type is deprecated, we use string type for now.
// e.g., "2021-01-01T00:00:00Z"
cel.Variable("create_time", cel.StringType),