Rename to footprint.

This commit is contained in:
zicla
2018-11-30 13:17:58 +08:00
parent bfc549a669
commit 4af940647d
8 changed files with 145 additions and 143 deletions

21
rest/footprint_model.go Normal file
View 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"
}