github.com/sandwich-go/boost@v1.3.29/misc/cloud/option.go (about)

     1  package cloud
     2  
     3  //go:generate optionGen  --option_return_previous=false
     4  func PutOptionsOptionDeclareWithDefault() interface{} {
     5  	return map[string]interface{}{
     6  		// annotation@ContentType(comment="上传文件的类型")
     7  		"ContentType": "application/octet-stream",
     8  		// annotation@ContentDisposition(comment="上传文件的内容描述")
     9  		"ContentDisposition": "",
    10  		// annotation@CacheControl(comment="上传文件的缓存控制")
    11  		"CacheControl": "",
    12  	}
    13  }
    14  
    15  //go:generate optionGen  --option_return_previous=false
    16  func StorageOptionsOptionDeclareWithDefault() interface{} {
    17  	return map[string]interface{}{
    18  		// annotation@Region(comment="云存储的Region")
    19  		"Region": "",
    20  	}
    21  }