|
|
@@ -8,6 +8,11 @@ import (
|
|
|
|
|
|
type requestBody map[string]string
|
|
|
|
|
|
+//设置参数
|
|
|
+func (w requestBody) Set(key string, value string) {
|
|
|
+ w[key] = value
|
|
|
+}
|
|
|
+
|
|
|
//获取参数
|
|
|
func (w requestBody) Get(key string) string {
|
|
|
if w == nil {
|
|
|
@@ -17,11 +22,6 @@ func (w requestBody) Get(key string) string {
|
|
|
return ws
|
|
|
}
|
|
|
|
|
|
-//设置参数
|
|
|
-func (w requestBody) Set(key string, value string) {
|
|
|
- w[key] = value
|
|
|
-}
|
|
|
-
|
|
|
//删除参数
|
|
|
func (w requestBody) Remove(key string) {
|
|
|
delete(w, key)
|