User code clean and ui improve

This commit is contained in:
Unknown committed 2014-05-05 16:21:43 -04:00
1 parent c1eb4d894a
commit bbdfe25769
19 files changed
+308 -322

No files matched your search

+6
View File
@@ -74,3 +74,9 @@ func GetOauthByUserId(uid int64) (oas []*Oauth2, err error) {
err = orm.Find(&oas, Oauth2{Uid: uid})
return oas, err
}
// DeleteOauth2ById deletes a oauth2 by ID.
func DeleteOauth2ById(id int64) error {
_, err := orm.Delete(&Oauth2{Id: id})
return err
}