Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostLog ¶
type PostLog struct { ID bson.ObjectId `bson:"_id"` Time string `json:"time" bson:"time"` RequestId string `json:"requestId" bson:"requestId"` Responsetime string `json:"responsetime" bson:"responsetime"` TTL int `json:"ttl" bson:"ttl"` AppName string `json:"appName" bson:"appName"` Apiname string `json:"apiName" bson:"apiName"` Method string `json:"method" bson:"method"` ContentType string `json:"contentType" bson:"contentType"` Uri string `json:"uri" bson:"uri"` Requestparam interface{} `json:"requestparam" bson:"requestparam"` Responsestr string `json:"responsestr" bson:"responsestr"` Responsemap map[string]interface{} `json:"responsemap" bson:"responsemap"` }
type Result ¶
type Result struct { Status int `json:"status" bson:"status"` Msg string `json:"msg" bson:"msg"` Data interface{} `json:"data" bson:"data"` Page *ResultPage `json:"page" bson:"page"` }
* 通用返回结果类
func SuccessWithMsg ¶
func SuccessWithPage ¶
Click to show internal directories.
Click to hide internal directories.