Replace DB with Store in service/user (#321)

This commit is contained in:
zhaoyang
2022-01-28 19:03:34 +08:00
committed by GitHub
parent 8246d8f8a7
commit cd215a8392
17 changed files with 885 additions and 284 deletions

View File

@@ -0,0 +1,17 @@
package entity
import (
"fmt"
"time"
)
type Row struct {
Id string
Data string
CreatedAt time.Time
UpdatedAt time.Time
}
func KeyPrefix(tenantId string) string {
return fmt.Sprintf("user/%s/", tenantId)
}