tank/rest/footprint_model.go
2018-11-30 17:37:52 +08:00

21 lines
448 B
Go

package rest
/**
* 系统的所有访问记录均记录在此
*/
type Footprint struct {
Base
UserUuid string `json:"userUuid"`
Ip string `json:"ip"`
Host string `json:"host"`
Uri string `json:"uri"`
Params string `json:"params"`
Cost int64 `json:"cost"`
Success bool `json:"success"`
}
// set File's table name to be `profiles`
func (Footprint) TableName() string {
return TABLE_PREFIX + "footprint"
}