Ready to implement the cache lib.

This commit is contained in:
zicla
2018-11-28 21:02:06 +08:00
parent a2a35ed4d2
commit 7d8db0a518
8 changed files with 435 additions and 69 deletions

View File

@ -0,0 +1,21 @@
package rest
/**
* 系统的所有访问记录均记录在此
*/
type SecurityVisit 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 (SecurityVisit) TableName() string {
return TABLE_PREFIX + "security_visit"
}