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 {
Gsuccess bool `json:"success"`
Gmsg string `json:"msg"`
Gdata interface{} `json:"data"` //[]byte
Gdisposition string `json:"disposition"`
Gtype string `json:"type"`
Glength int `json:"length"`
GsLength string `json:"sLength"`
}
文件结构体,用于http返回传递消息
Click to show internal directories.
Click to hide internal directories.