5 Star 10 Fork 3

shop-yun.go / open-taobao

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
TaobaoRequest.go 778 Bytes
一键复制 编辑 原始数据 按行查看 历史
cnphpbb 提交于 2014-07-25 16:30 . 完善版本
// Copyright 2013 The Changkong Authors. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
package open_taobao
import (
"net/url"
)
type TaobaoRequestI interface {
GetValues() url.Values
GetReqUrl() string
}
type TaobaoRequest struct {
reqUrl string
values url.Values
}
func (t *TaobaoRequest) SetValue(key, value string) {
if t.values == nil {
t.values = url.Values{}
}
t.values.Set(key, value)
}
func (t *TaobaoRequest) GetValue(key string) string {
return t.values.Get(key)
}
func (t *TaobaoRequest) GetValues() url.Values {
return t.values
}
func (t *TaobaoRequest) SetReqUrl(resUrl string) {
t.reqUrl = resUrl
}
func (t *TaobaoRequest) GetReqUrl() string {
return t.reqUrl
}
Go
1
https://gitee.com/shop-yun.go/open-taobao.git
git@gitee.com:shop-yun.go/open-taobao.git
shop-yun.go
open-taobao
open-taobao
master

搜索帮助