refactor: 将 StorageConfig.Value() 接收者改为值类型
This commit is contained in:
@@ -84,7 +84,7 @@ type StorageConfig struct {
|
|||||||
Provider string `yaml:"provider" json:"provider"`
|
Provider string `yaml:"provider" json:"provider"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *StorageConfig) Value() (driver.Value, error) {
|
func (c StorageConfig) Value() (driver.Value, error) {
|
||||||
return json.Marshal(c)
|
return json.Marshal(c)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user