chore: fix typo

This commit is contained in:
Noah Hsu
2022-07-12 18:41:16 +08:00
parent 2bff656f00
commit a16da3b45e
7 changed files with 17 additions and 6 deletions

View File

@ -27,8 +27,8 @@ type Proxy struct {
DownProxyUrl string `json:"down_proxy_url"`
}
func (a Storage) GetStorage() Storage {
return a
func (a *Storage) GetStorage() Storage {
return *a
}
func (a *Storage) SetStatus(status string) {

View File

@ -54,7 +54,7 @@ func registerDriverItems(config driver.Config, addition driver.Additional) {
func getMainItems(config driver.Config) []driver.Item {
items := []driver.Item{{
Name: "virtual_path",
Name: "mount_path",
Type: conf.TypeString,
Required: true,
Help: "",
@ -62,6 +62,9 @@ func getMainItems(config driver.Config) []driver.Item {
Name: "index",
Type: conf.TypeNumber,
Help: "use to sort",
}, {
Name: "remark",
Type: conf.TypeText,
}, {
Name: "down_proxy_url",
Type: conf.TypeText,