Versions in this module Expand all Collapse all v0 v0.0.2 Jul 5, 2024 v0.0.1 May 27, 2024 Changes in this version + func Marshal(v interface{}) (b []byte, err error) + func MarshalAutoAssign(v interface{}) (b []byte, err error) + type BaseRequest struct + Data interface{} + ProductID string + Sign string + SysID string + func (b *BaseRequest) Build() (req *http.Request, err error) + func (b *BaseRequest) GetData() interface{} + func (b *BaseRequest) GetProductID() string + func (b *BaseRequest) GetSysID() string + func (b *BaseRequest) GetURL() string + func (b *BaseRequest) SetData(data interface{}) + func (b *BaseRequest) SetProductID(pid string) + func (b *BaseRequest) SetSign(sign string) + func (b *BaseRequest) SetSysID(sid string) + func (b *BaseRequest) SetURL(url string) + type FileRequest struct + func NewFileRequest(url string, data interface{}) *FileRequest + func (f *FileRequest) Build() (req *http.Request, err error) + func (f *FileRequest) SetFile(file io.Reader) + func (f *FileRequest) StartWriteToBody() error + type Request interface + Build func() (*http.Request, error) + GetData func() interface{} + GetProductID func() string + GetSysID func() string + GetURL func() string + SetData func(interface{}) + SetProductID func(string) + SetSign func(string) + SetSysID func(string) + SetURL func(string) + func New(url string, data interface{}) Request