master
Evan Chen 2021-12-19 01:54:17 +08:00
parent 074d1d5582
commit 2de0509b26
1 changed files with 2 additions and 2 deletions

View File

@ -33,12 +33,12 @@ func Init() error {
return nil return nil
} }
func Add(Key, Description, Default, Value string) error { func Add(Key, Description, Default string) error {
a := &Attribute{ a := &Attribute{
Key: Key, Key: Key,
Description: Description, Description: Description,
Default: Default, Default: Default,
Value: Value, Value: Default,
} }
return store.DB.Create(a).Error return store.DB.Create(a).Error
} }