优化API命名

This commit is contained in:
GoEdgeLab
2021-11-24 12:00:38 +08:00
parent 36ea672d37
commit 119e9ea510
7 changed files with 120 additions and 77 deletions

View File

@@ -32,6 +32,7 @@ type HTTPWeb struct {
Auth string `field:"auth"` // 认证策略配置
Webp string `field:"webp"` // WebP配置
RemoteAddr string `field:"remoteAddr"` // 客户端IP配置
MergeSlashes uint8 `field:"mergeSlashes"` // 是否合并路径中的斜杠
}
type HTTPWebOperator struct {
@@ -65,6 +66,7 @@ type HTTPWebOperator struct {
Auth interface{} // 认证策略配置
Webp interface{} // WebP配置
RemoteAddr interface{} // 客户端IP配置
MergeSlashes interface{} // 是否合并路径中的斜杠
}
func NewHTTPWebOperator() *HTTPWebOperator {