Rename to footprint.
This commit is contained in:
21
rest/footprint_model.go
Normal file
21
rest/footprint_model.go
Normal file
@ -0,0 +1,21 @@
|
||||
package rest
|
||||
|
||||
/**
|
||||
* 系统的所有访问记录均记录在此
|
||||
*/
|
||||
type Footprint struct {
|
||||
Base
|
||||
SessionId string `json:"sessionId"`
|
||||
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"
|
||||
}
|
Reference in New Issue
Block a user