feat: publish complete

This commit is contained in:
Rogee
2024-12-05 18:57:49 +08:00
parent e11924ea8a
commit 9f9d11f621
7 changed files with 40 additions and 16 deletions

View File

@@ -12,8 +12,9 @@ import (
type Store []UUIDMap
type UUIDMap struct {
UUID string
Name string
UUID string
Name string
Price uint
}
func NewStore(path string) (Store, error) {
@@ -55,8 +56,8 @@ func (s Store) Save(path string) error {
return nil
}
func (s Store) Add(uuid, name string) {
s = append(s, UUIDMap{UUID: uuid, Name: name})
func (s Store) Add(uuid, name string, price uint) {
s = append(s, UUIDMap{UUID: uuid, Name: name, Price: price})
}
func (s Store) UUIDs() []string {