update
parent
074d1d5582
commit
2de0509b26
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue