feat: add user-defined id to resource

This commit is contained in:
Steven
2024-01-21 10:49:30 +08:00
parent 40bd75c725
commit 582cc6609c
12 changed files with 100 additions and 106 deletions

View File

@@ -4,6 +4,7 @@ import (
"context"
"testing"
"github.com/lithammer/shortuuid/v4"
"github.com/stretchr/testify/require"
"github.com/usememos/memos/store"
@@ -33,6 +34,7 @@ func TestMigrateResourceInternalPath(t *testing.T) {
for _, testCase := range testCases {
for input, expectedOutput := range testCase {
resourceCreate := &store.Resource{
ResourceName: shortuuid.New(),
CreatorID: user.ID,
InternalPath: input,
}