做统一认证登录
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
package models
|
||||
|
||||
import "time"
|
||||
|
||||
// AuthLoginLog 统一登录日志:yz_auth_login_log
|
||||
// 认证中心上线后逐步替代 yz_system_login_log,补充 client_id / amr 字段。
|
||||
type AuthLoginLog struct {
|
||||
ID uint64 `orm:"column(id);pk;auto" json:"id"`
|
||||
Tid *uint64 `orm:"column(tid);null" json:"tid"`
|
||||
IdentityID *uint64 `orm:"column(identity_id);null" json:"identity_id"`
|
||||
Account string `orm:"column(account);size(64);default('')" json:"account"`
|
||||
UserName string `orm:"column(user_name);size(64);default('')" json:"user_name"`
|
||||
TenantName string `orm:"column(tenant_name);size(64);default('')" json:"tenant_name"`
|
||||
ClientID string `orm:"column(client_id);size(64);default('')" json:"client_id"`
|
||||
LoginType string `orm:"column(login_type);size(20);default(password)" json:"login_type"`
|
||||
Amr *string `orm:"column(amr);size(64);null" json:"amr"`
|
||||
Status int8 `orm:"column(status);default(1)" json:"status"`
|
||||
Message string `orm:"column(message);size(255);default('')" json:"message"`
|
||||
IP string `orm:"column(ip);size(45);default('')" json:"ip"`
|
||||
UserAgent string `orm:"column(user_agent);size(500);default('')" json:"user_agent"`
|
||||
CreateTime time.Time `orm:"column(create_time);auto_now_add;type(datetime)" json:"create_time"`
|
||||
}
|
||||
|
||||
func (m *AuthLoginLog) TableName() string {
|
||||
return "yz_auth_login_log"
|
||||
}
|
||||
Reference in New Issue
Block a user