diff --git a/cmfx/user/models.go b/cmfx/user/models.go index 9478312..fce3357 100644 --- a/cmfx/user/models.go +++ b/cmfx/user/models.go @@ -39,10 +39,11 @@ type LogVO struct { //--------------------------------------- user --------------------------------------- type User struct { - XMLName struct{} `orm:"-" json:"-" xml:"user" cbor:"-"` - Created time.Time `orm:"name(created)" json:"created" xml:"created,attr" cbor:"created" yaml:"created" comment:"created time"` // 添加时间 + XMLName struct{} `orm:"-" json:"-" xml:"user" cbor:"-" yaml:"-"` + State State `orm:"name(state)" json:"state" xml:"state,attr" cbor:"state" yaml:"state" comment:"user state"` // 状态 - Last time.Time `orm:"name(last)" json:"last,omitempty" xml:"last,omitempty" cbor:"last,omitempty" yaml:"last,omitempty"` + Created time.Time `orm:"name(created)" json:"created" xml:"created,attr" cbor:"created" yaml:"created" comment:"created time"` // 添加时间 + Last time.Time `orm:"name(last)" json:"last,omitempty" xml:"last,omitempty" cbor:"last,omitempty" yaml:"last,omitempty"` // 末次登录时间 // 用户的自增 ID ID int64 `orm:"name(id);ai" json:"id" xml:"id,attr" cbor:"id" yaml:"id" comment:"user id"`