chore: use resource name in frontend

This commit is contained in:
Steven
2024-01-21 10:55:49 +08:00
parent 582cc6609c
commit 4d48f50815
10 changed files with 168 additions and 147 deletions

View File

@ -27,7 +27,8 @@ import (
)
type Resource struct {
ID int32 `json:"id"`
ID int32 `json:"id"`
Name string `json:"name"`
// Standard fields
CreatorID int32 `json:"creatorId"`
@ -368,6 +369,7 @@ func replacePathTemplate(path, filename string) string {
func convertResourceFromStore(resource *store.Resource) *Resource {
return &Resource{
ID: resource.ID,
Name: resource.ResourceName,
CreatorID: resource.CreatorID,
CreatedTs: resource.CreatedTs,
UpdatedTs: resource.UpdatedTs,