Documentation
¶
Index ¶
- func ErrString(data int, msg ...interface{}) string
- type FileBack
- func (fm *FileBack) AppendMsg(msg ...interface{}) *FileBack
- func (fm *FileBack) IncCode(iCode int) *FileBack
- func (fm *FileBack) IncData(iCode int) int
- func (fm *FileBack) InsertMsg(msg ...interface{}) *FileBack
- func (fm *FileBack) SetData(data interface{}) *FileBack
- func (fm *FileBack) SetMsg(msg ...interface{}) *FileBack
- func (fm *FileBack) ToStr() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileBack ¶
type FileBack struct { Success bool `json:"success"` Msg string `json:"msg"` Data interface{} `json:"data"` //[]byte Disposition string `json:"disposition"` Type string `json:"type"` Length int `json:"length"` LengthStr string `json:"lengthStr"` }
文件结构体,用于http返回传递消息
Click to show internal directories.
Click to hide internal directories.