feat:完善信息
This commit is contained in:
@ -8,6 +8,13 @@ type UserTenant struct {
|
||||
*model.UserTenant
|
||||
}
|
||||
|
||||
func (m *UserTenant) LastChooseInfo(uid uint64) error {
|
||||
_, err := model.FirstField(m.UserTenant, []string{"id", "uuid", "avatar", "identity"},
|
||||
model.NewWhere("uid", uid),
|
||||
model.NewWhere("selected", model.UserTenantSelectedForYes))
|
||||
return err
|
||||
}
|
||||
|
||||
func NewUserTenant() *UserTenant {
|
||||
return &UserTenant{UserTenant: model.NewUserTenant()}
|
||||
}
|
||||
|
Reference in New Issue
Block a user