package
Version:
v1.0.3
Opens a new window with list of versions in this module.
Published: May 20, 2019
License: GPL-3.0
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
¶
type BaseResp struct {
Result bool `json:"result"`
Code int `json:"bk_error_code"`
ErrMsg string `json:"bk_error_msg"`
}
type Response struct {
BaseResp `json:",inline"`
Data interface{} `json:"data"`
}
func NewSuccessResp(data interface{}) *Response
Source Files
¶
Click to show internal directories.
Click to hide internal directories.